Process automatic decision-making and reasoning method, device, computer equipment and storage medium
By constructing a process timing knowledge graph and combining it with deep learning algorithms, the problem of heterogeneous knowledge management and insufficient computing resources is solved, efficient automatic process decision-making and reasoning is achieved, and the production efficiency and the dynamics of knowledge management are improved.
Patent Information
- Application Number
- CN202210248263.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-14
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-03-14
AI Technical Summary
Traditional process decision-making has heterogeneous knowledge management problems and insufficient computing resources in intelligent manufacturing systems, which leads to wrong decisions and affects production efficiency.
Adopting process automatic decision-making and reasoning methods, by building part production process knowledge base models, integrating production data, building process timing knowledge graphs, using convolutional neural networks to extract knowledge features, and combining automatic decision-making models and partially observable Markov decision processes Algorithms perform process reasoning.
It improves the accuracy and efficiency of process decision-making, enhances the system's dynamic knowledge management capabilities, and makes process knowledge more complete.
Smart Images

Figure CN114647741B
Abstract
Description
Technical Field
[0001] The present application relates to the field of deep learning technology, and in particular to a method, device, computer equipment and storage medium for automatic process decision-making and reasoning. Background Art
[0002] The application of intelligent process decision-making in intelligent manufacturing systems is a challenging task. First of all, process design is one of the most time-consuming and knowledge-intensive tasks in the entire modern product development process, and it involves a series of decision-making behaviors. Most of these behaviors rely on the long-term production accumulation of enterprises and personal knowledge accumulation. However, since the traditional process knowledge organization form is mainly based on relational databases, it is difficult to connect with the equipment resources and process knowledge of enterprises. Most traditional process decisions often lack the support of process parameters (cutting speed, feed rate, cutting depth, etc.), which leads to traditional process decisions often staying at a single feature level and unable to make decisions at the production task level. Secondly, many experts from different fields, disciplines, and enterprises use different process design systems to input production knowledge into the enterprise process knowledge base. These knowledge have different structures and organizational forms, which leads to a large amount of heterogeneous process knowledge stored in the enterprise process knowledge base, which is very difficult for computers to make automated process decisions.
[0003] Therefore, a large amount of heterogeneous knowledge and insufficient computing resources can easily lead to wrong process decisions, thus affecting actual production efficiency. In addition, most of the existing temporal knowledge reasoning methods are based on embedding technology or traditional static knowledge graph reasoning technology. Embedding-based technologies often only search for similar entities near the current entity and lack flexibility, while knowledge reasoning based on traditional static knowledge graphs cannot obtain the temporal correlation between knowledge. Most reasoning algorithms only perform implicit reasoning on the edges of different entities and cannot handle specific reasoning paths. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a process automatic decision-making and reasoning method, device, computer equipment and storage medium to solve the problem that a large amount of heterogeneous knowledge and insufficient computing resources can easily lead to erroneous process decisions, thereby affecting actual production efficiency.
[0005] In order to solve the above technical problems, the present application provides a process automatic decision-making and reasoning method, which adopts the following technical solution and includes the following steps:
[0006] Construct a parts production process knowledge base model that combines process automatic decision-making and reasoning;
[0007] Construct a three-level information model of parts information, process knowledge and equipment information, integrate production data and construct a process time series knowledge graph;
[0008] A convolutional neural network (CNN) algorithm is used to extract process knowledge features from the process time series knowledge graph;
[0009] Based on the process knowledge features, combined with the automatic decision-making model, the production tasks are split, and the spatial features of the subtasks are extracted, and the process knowledge that meets the spatial features and timing requirements in the part production process knowledge base is retrieved to make process decisions;
[0010] A partially observable Markov decision process algorithm is adopted to define the process time series knowledge graph as the environment. The policy network interacts with the environment to learn the historical process path information, and the reward function is combined to perform process reasoning.
[0011] Preferably, the steps of constructing a parts production process knowledge base model combining process automatic decision-making and reasoning specifically include:
[0012] Build a production process time series knowledge graph based on actual production process data;
[0013] Construct a process automatic decision model, use the CNN algorithm to extract the spatial features of the process time series knowledge graph quadruple, and combine the process automatic decision model to make automatic decisions on the parts production process;
[0014] A process reasoning model is constructed, the POMDP algorithm is used for process reasoning, and the process knowledge is dynamically updated through manual verification.
[0015] Preferably, the steps of constructing a three-level information model of part information, process knowledge and equipment information, integrating process knowledge production data and constructing a process time series knowledge graph specifically include:
[0016] Preprocessing of parts production process data through natural language recognition, part-of-speech tagging and manual intervention;
[0017] Use STEP-NC to classify process knowledge and construct the process time series knowledge graph model layer;
[0018] Construct three levels of information: parts information, process knowledge and equipment information;
[0019] Perform named entity recognition and relationship extraction on real-time production data, process documents and historical data to obtain parts production process knowledge;
[0020] The process timing knowledge graph is constructed by combining the process timing knowledge graph pattern layer and the acquired parts production process knowledge.
[0021] Preferably, the step of extracting process knowledge features from the process knowledge and process time series knowledge graph using a convolutional neural network (CNN) algorithm specifically includes: obtaining vector representations of entities and relationships in the process time series knowledge graph through word embedding;
[0022] The spatial features of the embedded representation of process knowledge quadruple are extracted through the CNN algorithm.
[0023] Preferably, the steps of splitting the production task based on the process knowledge features and combining the automatic decision-making model, extracting the spatial features of the subtasks, and retrieving the process knowledge that meets the spatial features and timing requirements in the part production process knowledge base to make process decisions specifically include:
[0024] Extract task entities in production tasks through named entity recognition and split the tasks into several subtasks;
[0025] Obtain the part information model in the process sequence knowledge graph and retrieve part features and attribute embedding;
[0026] Get the target part information node, retrieve the corresponding part production process and equipment information through the Neo4j database, and verify the timing consistency.
[0027] Preferably, the partially observable Markov decision process algorithm is used to define the constructed process time series knowledge graph as the environment, and the steps of learning the historical process path information and combining the reward function to perform process reasoning specifically include:
[0028] Modeling the process reasoning process using a reinforcement learning framework;
[0029] The process time series knowledge graph is defined as a five-tuple (S, O, A, P, R), where S represents the state, O represents the observation value, A represents the action, P represents the transition probability, and R represents the reward;
[0030] The reward function is divided into global reward and path reward, which reduces the global reward and increases the possibility of the agent exploring new relationships.
[0031] The agent uses a long short-term memory network to encode path history information into a continuous vector;
[0032] Use Monte Carlo policy gradient to maximize cumulative rewards;
[0033] Approximate gradients are used to update policy network parameters.
[0034] In order to solve the above technical problems, the present application also provides a process automatic decision-making and reasoning device, which adopts the following technical solutions, including:
[0035] A construction module is used to construct a parts production process knowledge base model that combines process automatic decision-making and reasoning;
[0036] Integration module, used to build a three-level information model of parts information, process knowledge and equipment information, integrate production data and build a process time series knowledge graph;
[0037] An extraction module, used for extracting process knowledge features from the process time series knowledge graph by using a convolutional neural network (CNN) algorithm;
[0038] A decision-making module is used to split the production task based on the process knowledge features and in combination with the automatic decision-making model, extract the spatial features of the subtasks, and retrieve the process knowledge that meets the spatial features and timing requirements in the part production process knowledge base to make a process decision;
[0039] The reasoning module is used to adopt a partially observable Markov decision process algorithm, define the process time series knowledge graph as an environment, interact with the environment through a policy network, learn historical process path information, and perform process reasoning in combination with a reward function.
[0040] Preferably, the construction module specifically includes:
[0041] The knowledge graph construction module is used to construct a production process time series knowledge graph based on actual production process data;
[0042] The automatic decision model construction module is used to construct the process automatic decision model, use the CNN algorithm to extract the spatial features of the process time series knowledge graph quadruple, and combine the process automatic decision model to make automatic decisions on the parts production process;
[0043] The process reasoning model construction module is used to construct the process reasoning model, use the POMDP algorithm to perform process reasoning and dynamically update process knowledge through manual verification.
[0044] In order to solve the above technical problems, the present application also provides a computer device, which adopts the technical solution described below, including a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the above-mentioned process automatic decision-making and reasoning method when executing the computer-readable instructions.
[0045] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, which adopts the technical solution described below, and stores computer-readable instructions on the computer-readable storage medium. When the computer-readable instructions are executed by the processor, the steps of the above-mentioned process automatic decision-making and reasoning method are implemented.
[0046] Compared with the prior art, the present application has the following beneficial effects: the process data is integrated by using a time series knowledge graph, the process knowledge of a large amount of process documents is integrated, and the time information is combined with the original knowledge to make the process knowledge management dynamic; in the automatic decision-making stage, the CNN algorithm is used to extract the features of the knowledge, and the automatic decision-making model is combined to split the production tasks and retrieve the production process and equipment information that meets the production tasks in the process time series knowledge graph, which can effectively improve the system decision response rate while making accurate decisions; the deep learning-based process automatic decision-making method and the POMDP-based process reasoning are combined, and on the basis of process decision-making, the unknown production process is inferred, and the reasoning path is obtained and manually verified, and then updated to the process time series knowledge graph, so that the process knowledge is more complete. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0048] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0049] Figure 2 is a flow chart of an embodiment of the process automatic decision-making and reasoning method of the present application;
[0050] Figure 3 It is a schematic diagram of the architecture of the process automatic decision-making and reasoning method of this application;
[0051] Figure 4 It is the process of convolution of the process timing knowledge graph PTKG of this application;
[0052] Figure 5 It is the process automatic decision flow chart of this application;
[0053] Figure 6 It is the three-level information model of the process timing knowledge graph of this application;
[0054] Figure 7 It is a partially observable Markov decision process algorithm model of this application;
[0055] Figure 8 It is a structural schematic diagram of an embodiment of the process automatic decision-making and reasoning device of the present application;
[0056] Fig. 9 It is a structural diagram of an embodiment of a computer device of the present application. DETAILED DESCRIPTION
[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0058] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0059] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0060] like Figure 1 As shown, the system architecture 100 may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0061] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0062] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture E perts Group Audio Layer III), MP4 (Moving Picture E perts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0063] The server 105 may be a server that provides various services, for example, a background server that provides support for pages displayed on the first terminal device 101 , the second terminal device 102 , and the third terminal device 103 .
[0064] It should be noted that the process automatic decision-making and reasoning method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the process automatic decision-making and reasoning device is generally set in the server / terminal device.
[0065] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0066] Embodiment 1
[0067] Continue to refer Figure 2 , showing a flow chart of an embodiment of the process automatic decision-making and reasoning method of the present application. The process automatic decision-making and reasoning method comprises the following steps:
[0068] Step S201: construct a parts production process knowledge base model that combines process automatic decision-making and reasoning.
[0069] In this embodiment, the electronic device (eg Figure 1 The server / terminal device shown in the figure) can receive the process automatic decision and reasoning request through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMA process automatic decision and reasoning connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0070] Figure 3Schematic diagram of the process automatic decision-making and reasoning method architecture of this application. Figure 3 As shown in the figure, the process automatic decision and reasoning method architecture includes first constructing a process knowledge base that combines process automatic decision and process reasoning; secondly, constructing a three-level information model of part information-process knowledge-equipment information to integrate process knowledge; thirdly, using the convolutional neural network (CNN) algorithm to extract process knowledge features; thirdly, based on process knowledge features, combined with the automatic decision model, splitting the production task and extracting features, retrieving the matching process knowledge in the knowledge base to make process decisions; finally, using the POMDP algorithm, defining the constructed process time series knowledge graph as the environment, interacting with the environment through the policy network, learning the process history path information, and combining the new reward function to make process reasoning. Named entity recognition and relationship extraction are performed on real-time production data, process documents, and historical data to obtain the process knowledge therein, and the process knowledge is integrated through the constructed three-level information model of part information-process knowledge-equipment information to obtain the process time series knowledge graph. The quadruple in the process time series knowledge graph is input into the CNN algorithm to extract its features, combined with the process decision model, to retrieve the process information that meets the actual production task requirements and time series requirements, and realize process automatic decision. Based on the process time series knowledge graph and combined with the POMDP algorithm, all knowledge is defined as the environment. For a given quadruple, its path information is learned through the strategy network, and finally the destination entity is reached to realize process path reasoning.
[0071] In some optional implementations of this embodiment, step S201 specifically includes:
[0072] S2011. Construct a production process time series knowledge graph based on actual production process data.
[0073] In the actual production process, a large amount of semi-structured and unstructured data will be generated. These large amounts of semi-structured and unstructured data have great use value and can be converted into structured knowledge. The purpose of constructing a production process time series knowledge graph is to integrate production process resources. First, historical data, process file data, and real-time process data in the production process are obtained. Secondly, a deep learning algorithm is used to extract entities and relationships, perform knowledge fusion processing on process-related information, establish a three-level information model of process knowledge, reorganize part information, process knowledge, and equipment resources, and combine time information to construct a process time series knowledge graph (PTKG).
[0074] The ontology of PTKG is formally defined as:
[0075] O=<M part-inf , M pocess-inf , M device-inf , R, T>
[0076] Its meaning is as follows:
[0077] Definition 1: Part Information Model (M part-inf ). The part information model is essentially composed of n processing features. The formula is as follows:
[0078]
[0079] where F i Represents the i-th feature in the model. i The formula is as follows:
[0080] F i = <G inf , P.R. inf , P.A. inf , P.R. inf , FPT inf >
[0081] G inf Representation feature F i The geometric information of PR, including main features and auxiliary features; inf Representation feature F i The process requirement information, including accuracy level, surface roughness and other properties; PA inf Indicates part feature F i Auxiliary information of FR, including material properties and other properties; inf Indicates part feature F i Relationship with geometric information, process requirements and auxiliary information; FPT inf Indicates part feature F i The temporal relationship to its properties and process requirements.
[0082] Definition 2: Process Information Model (M pocess-inf ). It is based on the expert experience knowledge in the process documents and the existing design standards, and is mainly composed of the details of the part production process and the required equipment resources. The formula is as follows:
[0083]
[0084] Where P i represents the ith process of the process information model. i The formula is as follows:
[0085] P i = <PO inf , P.S. inf , P.D. inf , P.R. inf , PT inf >.
[0086] PO inf Indicates process P iSpecific operations, including tools, fixtures, gauges and sensors; PS inf Indicates process P i The established design standards; PD inf Indicates process P i Equipment required; PR inf Indicates process P i Relationship with specific operations and equipment; PDT inf Indicates process P i The time relationship between specific operations and equipment.
[0087] Definition 3: Device Information Model (M device-inf ). It is the underlying equipment resources required to produce parts, such as lathes, CNC milling machines, etc. The formula is as follows:
[0088]
[0089] D i represents the ith device in the device information model, D i The formula is as follows:
[0090] D i = <MD inf , DO inf , DR inf , DT inf >
[0091] Among them MD inf Indicates the equipment D under the current process i Parameter information and material information of DO inf Indicates device D i Operator information; DR inf Indicates device D i Relationship to its parameters and operators; DT inf Indicates device D i The temporal relationship with its parameters and operators.
[0092] R, T represent the relationship and time information of part information, process knowledge and equipment resources, respectively. In order to reduce the redundancy of time information and facilitate time-aware process decision-making, time information is only dynamically updated between part information and process knowledge, and between process knowledge and equipment information. The attribute characteristics of parts, processes and equipment are relatively fixed, so their time information is set to: " / ".
[0093] In order to enable the computer to obtain better knowledge extraction effect, the process knowledge is classified. The specific classification is shown in Table 1:
[0094] Table 1 Knowledge classification and examples
[0095] Knowledge Category Symbolic representation Example Part Features F shaft; hole; end face; groove Processing methods M rough machining equipment E Lathe; Drilling Machine; Milling Machine Cutting elements CE Feed rate; back cutting depth Material MT Carbon steel; Stainless steel Feature attributes FA Accuracy grade; surface roughness Device properties EA Spindle speed; Maximum cutting length Material properties MTA Thermal conductivity; gloss; hardness Process parameters PP Feed rate: 2mm
[0096] Figure 4 is the PTKG convolution process of this application. Figure 4 As shown, the fact quadruple based on PTKG is input into the convolutional layer of CNN to learn entity and relationship embedding. After embedding the entities and relationships into the vector space, their vector form is obtained. The embedding of each embedded quadruple (h, r, e, t) is represented as a matrix k represents the dimension of embedding, through the convolution kernel Slide to the input matrix A to extract its high-level features, repeat the operation ω for each row of matrix A, and generate a feature map where v i =g(ω·A i,: +b), where is the i-th row of matrix A, is the bias, g is the activation function ReLU, and finally the embedding feature of the four-tuple (h, r, e, t) is obtained by vector dot multiplication.
[0097] S2012. Construct an automatic process decision model, use the CNN algorithm to extract the spatial features of the process time series knowledge graph quadruple, and combine the automatic process decision model to make automatic decisions on the parts production process.
[0098] Nodes are similarly matched based on semantics and attributes. This step fully considers the node semantics and actual attribute requirements, can solve the heterogeneous problem in the knowledge base, and can improve the accuracy and efficiency of the process reasoning solution.
[0099] Figure 5 This is the process automatic decision flow chart of this application. Figure 5 As shown in the figure, in order to make accurate process decisions, it is necessary to solve the problems of concept, semantic matching and temporal consistency of relevant process knowledge nodes. Therefore, for the parts or feature nodes to be decided, a preliminary embedding similarity evaluation of the nodes from different perspectives such as concepts and attributes can achieve the correct mapping of embedded nodes to process knowledge nodes.
[0100] Step 1: Task concept embedding. Task concept embedding can effectively solve the problem of concept heterogeneity. First, use the open source tool BERT to train the embedding features of each word, and then use the CNN algorithm to embed the task into the vector space. If the corresponding part entity cannot be found in the space, the task is added as a node in PTKG and its features and attributes are added. Otherwise, the next step is to perform feature and attribute embedding judgment.
[0101] Step 2: Attribute judgment. Simply considering simple concept heterogeneity cannot meet the requirements of accurate decision-making. The attributes of the parts will also affect the process decision-making process. Therefore, the process decision should consider the requirements of each attribute of the node, embed each attribute into the vector space and match it to the accurate part knowledge node.
[0102] Step 3: Process decision. After matching the accurate part knowledge node, the relationship reasoning is performed through the Cypher of the graph database Neo4j, and combined with the temporal consistency judgment, the process knowledge and equipment information required for the part are further obtained.
[0103] S2013. Construct a process reasoning model, use the POMDP algorithm to perform process reasoning, and dynamically update process knowledge through manual verification.
[0104] First, we use the reinforcement learning framework to model the path reasoning process and define the environment as a partially observable Markov decision process (POMDP) on the process time series knowledge graph. We define POMDP as a five-tuple (S, O, A, P, R), where each component is as follows:
[0105] S (state): valid continuous state space S, each state s∈S is represented by s=(e t , e s ,r,e o ,t),e t Represents the current entity, e s and e o Represent the starting entity and the target entity respectively, r represents e s and e o The relationship at time t.
[0106] O(observation value): The whole environment is unobservable, and the agent only transfers the current position and task. The observation function is defined as O(s(e t , e s ,r,e o , t))=(e t , e s , r, t).
[0107] A(Action): The action space is defined as the current entity e in state s t The set of all possible relationships and times, namely A s ={(r, t|s)}, and add a self-loop operation on this basis. When the agent selects the boundary entity, the agent can reach the target entity within a given number of steps.
[0108] P(transfer): translation function P, formally P(s, a) = (v, e s ,r,e O, t), indicating that the environment updates the state to a new state node through the agent, and v is the state node where the agent is currently located.
[0109] R (Reward): This paper defines the reward function as two parts:
[0110] The first part is the basic reward:
[0111]
[0112] The second part is the path reward:
[0113] R2=σ(f(e s , e t ))
[0114] Where σ(x) is the tanh function, f(x, y) represents the reasoning path from entity x to entity y, is the entity dot product, and the path reward scores the reasoning path, which appropriately reduces the overall reward of the reasoning path and further increases the probability of exploring new relationships.
[0115] Combined two parts of the reward:
[0116] R=λ1R1+λ2R2 λ1, λ2∈[0, 1].
[0117] The policy network interacts with the environment. In a given PTKG, it defines entity pairs (e s , e o ) between multiple reasoning paths: P = {p1, p2, ..., p m}, where p = {e s ,r0:t0,e1,r1:t 10 ,,...,r k-1 :t k-1 , e O}, ':' indicates vector connection.
[0118] The agent based on long short-term memory (LSTM) transforms historical information H t Encoded as a continuous vector h t , H t =(A t-1 , O t , H t-1 )=(r t-1 :t t-1 , O t , H t-1 ) is the sequence of past actions and observations. We still use CNN-based entity and relation embedding vectors, defined as e, r, t respectively.
[0119] Dynamically updating LSTM:
[0120] h0=LSTM(a s ;o s , 0);
[0121] h t =LSTM(a t-1 ;o t ,h t-1 ), t>0;
[0122] where a s is the starting entity e s The action vector, o s is the initial observation value, a t-1 =(r t-1 , t t-1 ) is the vector representation of the relationship and time at time t-1. t is the observed value at time t.
[0123] Based on the current observation value o t and the current history vector h t , the neural network selects the relationship and time under the current conditions as the output action. The neural network is a two-layer feedforward network and is normalized using the softmax function. The definition of the policy network is as follows:
[0124] πθ(a t |o t )=softmax(W1ReLU(W2[o t :h t ]))
[0125] Where W1 and W2 are the weight matrices of the two-layer feedforward network, o t ,h t are the observation value vector and history vector at time r respectively.
[0126] The environment stores all entity vectors, relationship vectors, time vectors, etc. Given a missing quadruple (e, r, h, t), initialize the current vector s1, and pass the observation value o1 obtained by the observation function to the agent in the policy network. The agent transforms the state into s2 through action a1 in the environment, calculates the reward of the reasoning path, and forms an iteration of the environment and the agent. Finally, the training process will obtain the reward of the entire reasoning path through the following two formulas.
[0127] For the policy network, we use Monte Carlo policy gradient to maximize the cumulative reward:
[0128] J(θ)= ;
[0129] Where J(θ) is the reward of one cycle, the first expectation E is the average value of the training data set, and the second expectation E is the approximate value of multiple training samples. D represents the true quadruple observed in PTKG (e t , r c ,v,t c ), represents the overall reward for taking action a in state s.
[0130] Adopt approximate gradient update strategy network parameters:
[0131]
[0132] Step S202: construct a three-level information model of part information, process knowledge and equipment information, integrate production data and construct a process time series knowledge graph.
[0133] In this embodiment, step S202 may further include the following steps:
[0134] Step S2021, pre-processing the parts production process data through natural language recognition, part-of-speech tagging and manual intervention.
[0135] The natural language recognition tool Langid is used to identify the language of the process documents. The precise mode of Jieba word segmentation is used to segment the process text. The word segmentation results are manually reviewed to ensure the integrity and accuracy of the data.
[0136] Step S2022: Use STEP-NC to classify process knowledge and construct a process timing knowledge graph model layer.
[0137] Based on the international industrial standard STEP-NC, the processing technology-related concepts and relationships in the standard can be mapped to the model layer of the process timing knowledge graph; BIO annotation is used to manually annotate the process knowledge according to the mapping results.
[0138] Step S2023: construct a three-level information model of part information, process knowledge and equipment information.
[0139] According to the actual production process, it can be divided into:
[0140] 1. Determine the basic attribute information of the target part;
[0141] 2. Each attribute corresponds to the production process information;
[0142] 3. Equipment and production parameters required for each production process;
[0143] 4. Build a three-level information model from top to bottom based on the production process.
[0144] Step S2024: perform named entity recognition and relationship extraction on real-time production data, process documents and historical data to obtain parts production process knowledge.
[0145] 1. Use the BERT-BiLSTM-CRF model to perform named entity recognition to obtain entities related to parts, processes, and equipment in real-time production data, process documents, and historical data;
[0146] 2. Use the BiLSTM-Attention model to extract relationships and obtain the relationships between related entities.
[0147] Step S2025: Combine the process timing knowledge graph pattern layer and the acquired parts production process knowledge to construct a process timing knowledge graph.
[0148] The process time series knowledge graph pattern layer is the sum of entity and relationship categories. For example, this patent includes parts knowledge, process knowledge, and equipment knowledge, which divide entities into these three categories; the relationships between entities can include attributes, materials, processing methods, etc. The entities and their relationships obtained by named entity recognition and relationship extraction are added to the pattern layer; the obtained process knowledge is mapped to the graph database Neo4j for storage through knowledge mapping.
[0149] Figure 6 It is the three-level information model of the process timing knowledge graph of this application. Figure 6 As shown, according to the part information model (M part-inf ), process information model (M pocess-inf ) and the device information model (M device-inf ), three levels of information are established. For example, feature 1, process 1, and equipment 1 of part 1. Feature 1 has attribute information such as size, geometric information, material, and identifier. Process 1 has attribute information such as tools, operations, sensors, and design standards. Equipment 1 has attribute information such as specifications, attributes, parameters, and operations.
[0150] In the field of mechanical processing, the named entity recognition in the processing field is realized through the collaboration of the multi-level neural network BERT-BiLSTM-CRF composed of vector expression, bidirectional long short-term memory (BiLSTM) layer and conditional random field (CRF) layer, and the relationship extraction model composed of BiLSTM and attention mechanism (Attention) is used to realize the knowledge extraction in the processing field. In addition, since the process documents in the processing field are arranged in a scattered, complex and irregular form, it is difficult to obtain satisfactory knowledge extraction results if the knowledge extraction method is used directly. For this reason, the data text is preprocessed in accordance with the natural language processing in the general field. The specific steps are as follows:
[0151] Step 1: Before text processing, it is necessary to check whether the text is a meaningful language. We use the Langid natural language recognition tool, which has higher accuracy but slightly slower speed.
[0152] Step 2: Sentence segmentation / part-of-speech tagging. The system uses Jieba word segmentation tool. In addition, the system uses SnowNLP and PkuSeg as auxiliary tools to make the tags more accurate.
[0153] Step 3: Considering the general situation in the process text, that is, it is impossible to confirm whether there is sensitive information in the data set. Therefore, the Cherry classifier is used to perform a secondary screening of the data to prevent the model from deteriorating.
[0154] Step 4: The process documents provided by experts and process personnel are often very time-sensitive. Therefore, considering whether the process documents can be actually applied, it is also necessary to check the process equipment involved in the processing technology in combination with the processing resource library of the actual production workshop to ensure that the equipment resources meet the latest production technology.
[0155] Step S203, using a convolutional neural network (CNN) algorithm to extract process knowledge features from the process timing knowledge graph.
[0156] In this embodiment, step S203 may further include the following steps:
[0157] Step S2031, obtain vector representation of entities and relationships in the process timing knowledge graph through word embedding.
[0158] The BERT model is used to convert entities and relations in the process knowledge graph into word vector representations.
[0159] Step S2032: extract the spatial features of the embedded representation of the process knowledge quadruple through the CNN algorithm.
[0160] 1. Convert the quadruple in the process timing knowledge graph into word vectors and combine them into a 4x4 matrix;
[0161] 2. Perform convolution operation on each row of the matrix through the CNN algorithm, and finally obtain the spatial features of the quadruple through vector operation.
[0162] Step S204, based on the process knowledge features and combined with the automatic decision-making model, the production tasks are split and the spatial features of the subtasks are extracted, and the process knowledge that meets the spatial features and timing requirements in the part production process knowledge base is retrieved to make process decisions.
[0163] In this embodiment, step S204 may further include the following steps:
[0164] Step S2041: extract task entities in the production task through named entity recognition, and split the task into several subtasks.
[0165] The BERT-BiLSTM-CRF proposed in step S2024 is used to perform named entity recognition on the production task to identify the part entities and their time information. If multiple part entities are identified, the task is split into several subtasks.
[0166] Step S2042: Obtain the part information model in the process timing knowledge graph, and retrieve part features and attribute embedding.
[0167] Extract all part information models in the process timing knowledge graph, which includes all part entities and their attribute information. Retrieve target part information in the model, compare whether the part features and attribute embeddings in the model and task match, and then confirm whether the model includes the part entity information in the production task.
[0168] Step S2043: Obtain the target part information node, retrieve the corresponding part production process and equipment information through the Neo4j database, and verify the timing consistency.
[0169] 1. After successfully matching the part entity in the production task, obtain its location information in the database;
[0170] 2. Through the relationship between the part information model and the process information model, retrieve the corresponding process information in the Neo4j database and verify whether the time information matches.
[0171] The graph database Neo4j is a non-relational graph database system that uses graphs to represent the relationships between nodes. Nodes represent entities, and relationships represent the associations between entities. Neo4j represents the associated data in real-world scenarios as a network graph. You can use Neo4j's Cypher language to store and integrate the entities and entity relationship data extracted above.
[0172] Step S205: adopt a partially observable Markov decision process algorithm, define the process time series knowledge graph as an environment, interact with the environment through a policy network, learn historical process path information, and perform process reasoning in combination with a reward function.
[0173] In some optional implementations of this embodiment, step 205 may further specifically perform the following steps:
[0174] Step S2051: Model the process reasoning process using a reinforcement learning framework.
[0175] Using the idea of reinforcement learning, the process of process reasoning is modeled as a process of interaction between an intelligent agent and the environment. The intelligent agent accumulates the rewards obtained from each action by interacting with the environment, and records the action set with the maximum reward to obtain the final process reasoning path.
[0176] Step S2052: define the process timing knowledge graph as a five-tuple (S, O, A, P, R), where S represents the state, O represents the observation value, A represents the action, P represents the transition probability, and R represents the reward.
[0177] 1. Environment state S: The entire environment state space S is determined by the question, answer and current reasoning position vector. The current state S = (current entity, starting entity, relationship, target entity), where all nodes and relationships are embedded vector representations of the process time series knowledge graph;
[0178] 2. Observation value O: The agent can only see the current reasoning position (i.e., current entity) and the question to be answered (starting entity, relationship), so the observation value O = (current entity, starting entity, relationship);
[0179] 3. Action space A: The action space A of each time t and state S is the set of nodes that can be reached by the current state and the relationships that have been passed through, A = (current entity, relationship, reachable entity);
[0180] 4. Transition probability matrix P: represents the probability of the agent transferring from the current entity to the next entity;
[0181] 5. Reward function R: The reward is divided into global reward and path reward. If the target entity is reached, the global reward is +, if not reached, it is -. The path reward is the score of the current reasoning path. Appropriately reducing the global path increases the possibility of the agent exploring new entities.
[0182] Step S2053: divide the reward function into global reward and path reward, reduce the global reward, and increase the possibility of the agent exploring new relationships.
[0183] The global reward is based on whether the agent reaches the target entity, while the path reward is a real-time score for the agent's reasoning process. The combination of the two can not only obtain the quality of the agent's reasoning path in real time, but also increase its possibility of exploring new paths.
[0184] Step S2054: The agent uses a long short-term memory network to encode the path history information into a continuous vector.
[0185] By utilizing LSTM’s sensitivity to time series data, we can effectively combine the current state with historical information of the reasoning path, enhance the agent’s ability to perceive the environment, and improve reasoning efficiency.
[0186] Step S2055: Use Monte Carlo strategy gradient to maximize the cumulative reward.
[0187] Maximizing the rewards of the cumulative reasoning path helps the agent learn the rewards for each action, which helps the agent take actions with the maximum reward for various states, thereby obtaining the optimal reasoning path.
[0188] Step S2056: Use approximate gradient to update strategy network parameters.
[0189] The loss is calculated by comparing the current entity and the target entity obtained by the action selected by the agent, and the loss is back-propagated through the neural network to update the network parameters in real time to achieve the effect of optimizing the policy network.
[0190] Figure 7 is a partially observable Markov decision process algorithm model of this application. Figure 7 As shown, input: a 4-tuple vector (e1, e2, ...} consisting of an entity vector set {e1, e2, ...}, a relationship vector set {r1, r2, ...}, and a time vector set {t1, t2, ...} s , r,?, t).
[0191] Output: Complete reasoning path p: {e s ,r0:t0,e1,r1:t 10 ,,...,r k-1 :t k-1 , e0} and the maximum expected cumulative reward g.
[0192] 1. for episode←1 to N do N cycles, indicating that the policy network is trained N times. ;
[0193] 2. Initialization: state vector S: s i ←s0 initializes the state vector to S0.
[0194] 3. Initialization: path length length←0 Initialize the current path length to 0.
[0195] 4. Get the observation vector O: o t ←o(s t ) obtains the current observation value through the state vector.
[0196] 5. Set the history vector h t-1 ←0, action vector a t-1 ←0 sets the history vector and action vector to 0 respectively.
[0197] 6. While length<max_length do max_length is the maximum path length, and length is the current path length.
[0198] 7. Update history vector: h t ←LSTM(a t-1 ;o t ,h t-1 ) Input the action vector and observation value into LSTM to obtain the current history vector.
[0199] 8. Get the action vector: a t (r t :t t )←π θ (a t |o t ) Input the action vector and observation value into the policy network to obtain the action vector for the current entity.
[0200] 9. Observation reward R: R t ←λ1R1+λ2R2, next state s t+1 The global reward and path reward are obtained according to the current action and combined to get the overall reward R. The state vector at time t+1 is obtained according to the action vector at time t.
[0201] 10. Get the observation vector: o t+1 ←o(s t+1 )Get the current observation value based on the current state vector.
[0202] 11. Increment the length of the inference path by +1.
[0203] 12. Update the parameters θ and calculate the loss based on the predicted entity and the target entity and back-propagate the loss to update the parameters of the policy network.
[0204] 13. Update the calculation method of the parameters.
[0205] 14. end for to end the training.
[0206] In this embodiment, a time series knowledge graph is used to integrate process data, which integrates the process knowledge of massive process documents. On the basis of the original knowledge, time information is combined to make process knowledge management dynamic. In the automatic decision-making stage, a CNN algorithm is used to extract the characteristics of knowledge, and combined with the automatic decision-making model, the production tasks are split and the production process and equipment information that meet the production tasks in the process time series knowledge graph are retrieved, which can effectively improve the system decision response rate while making accurate decisions. The deep learning-based process automatic decision-making method and the POMDP-based process reasoning are combined. On the basis of process decision-making, the unknown production process is inferred, and the reasoning path is obtained and manually verified, and then updated to the process time series knowledge graph to make the process knowledge more complete.
[0207] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0208] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0209] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0210] Embodiment 2
[0211] Further references Figure 8 , as a response to the above Figure 2 The present application provides an embodiment of a process automatic decision-making and reasoning device, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0212] like Figure 8 As shown, the process automatic decision and reasoning device 400 described in this embodiment includes: a construction module 401, an integration module 402, an extraction module 403, a decision module 404 and a reasoning module 405. Among them:
[0213] Construction module 401, used to construct a parts production process knowledge base model combining process automatic decision-making and reasoning;
[0214] Integration module 402, used to construct a three-level information model of part information, process knowledge and equipment information, integrate production data and construct a process time series knowledge graph;
[0215] An extraction module 403 is used to extract process knowledge features from the process time series knowledge graph using a convolutional neural network (CNN) algorithm;
[0216] The decision module 404 is used to split the production task based on the process knowledge features and the automatic decision model, extract the spatial features of the subtasks, and retrieve the process knowledge that meets the spatial features and timing requirements in the part production process knowledge base to make a process decision;
[0217] The reasoning module 405 is used to adopt a partially observable Markov decision process algorithm, define the process time series knowledge graph as an environment, interact with the environment through a policy network, learn historical process path information, and perform process reasoning in combination with a reward function.
[0218] In this embodiment, the construction module 401 specifically includes:
[0219] The knowledge graph construction module is used to construct a production process time series knowledge graph based on actual production process data;
[0220] The automatic decision model construction module is used to construct the process automatic decision model, use the CNN algorithm to extract the spatial features of the process time series knowledge graph quadruple, and combine the process automatic decision model to make automatic decisions on the parts production process;
[0221] The process reasoning model construction module is used to construct the process reasoning model, use the POMDP algorithm to perform process reasoning and dynamically update process knowledge through manual verification.
[0222] In this embodiment, a time series knowledge graph is used to integrate process data, which integrates the process knowledge of massive process documents. On the basis of the original knowledge, time information is combined to make process knowledge management dynamic. In the automatic decision-making stage, a CNN algorithm is used to extract the characteristics of knowledge, and combined with the automatic decision-making model, the production tasks are split and the production process and equipment information that meet the production tasks in the process time series knowledge graph are retrieved, which can effectively improve the system decision response rate while making accurate decisions. The deep learning-based process automatic decision-making method and the POMDP-based process reasoning are combined. On the basis of process decision-making, the unknown production process is inferred, and the reasoning path is obtained and manually verified, and then updated to the process time series knowledge graph to make the process knowledge more complete.
[0223] Embodiment 3
[0224] To solve the above technical problems, the present application also provides a computer device. Fig. 9 , Fig. 9 This is a basic structural block diagram of the computer device in this embodiment.
[0225] The computer device 6 includes a memory 61, a processor 62, and a network interface 63 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 6 having components of a memory 61, a processor 62, and a network interface 63, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital processor (DSP), an embedded device, etc.
[0226] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0227] The memory 61 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or D process automatic decision and reasoning memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 61 can be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. In other embodiments, the memory 61 can also be an external storage device of the computer device 6, such as a plug-in hard disk equipped on the computer device 6, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 61 can also include both the internal storage unit of the computer device 6 and its external storage device. In this embodiment, the memory 61 is generally used to store the operating system and various application software installed on the computer device 6, such as computer-readable instructions of process automatic decision and reasoning methods, etc. In addition, the memory 61 can also be used to temporarily store various types of data that have been output or are to be output.
[0228] The processor 62 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 62 is generally used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is used to run computer-readable instructions stored in the memory 61 or process data, such as computer-readable instructions for running the process automatic decision-making and reasoning method.
[0229] The network interface 63 may include a wireless network interface or a wired network interface. The network interface 63 is generally used to establish a communication connection between the computer device 6 and other electronic devices.
[0230] In this embodiment, a time series knowledge graph is used to integrate process data, which integrates the process knowledge of massive process documents. On the basis of the original knowledge, time information is combined to make process knowledge management dynamic. In the automatic decision-making stage, a CNN algorithm is used to extract the characteristics of knowledge, and combined with the automatic decision-making model, the production tasks are split and the production process and equipment information that meet the production tasks in the process time series knowledge graph are retrieved, which can effectively improve the system decision response rate while making accurate decisions. The deep learning-based process automatic decision-making method and the POMDP-based process reasoning are combined. On the basis of process decision-making, the unknown production process is inferred, and the reasoning path is obtained and manually verified, and then updated to the process time series knowledge graph to make the process knowledge more complete.
[0231] Embodiment 4
[0232] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the process automatic decision-making and reasoning method as described above.
[0233] In this embodiment, a time series knowledge graph is used to integrate process data, which integrates the process knowledge of massive process documents. On the basis of the original knowledge, time information is combined to make process knowledge management dynamic. In the automatic decision-making stage, a CNN algorithm is used to extract the characteristics of knowledge, and combined with the automatic decision-making model, the production tasks are split and the production process and equipment information that meet the production tasks in the process time series knowledge graph are retrieved, which can effectively improve the system decision response rate while making accurate decisions. The deep learning-based process automatic decision-making method and the POMDP-based process reasoning are combined. On the basis of process decision-making, the unknown production process is inferred, and the reasoning path is obtained and manually verified, and then updated to the process time series knowledge graph to make the process knowledge more complete.
[0234] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0235] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A process automatic decision and reasoning method, It is characterized in that The steps include: Construct a parts production process knowledge base model that combines process automatic decision-making and reasoning; Construct a three-level information model of parts information, process knowledge and equipment information, integrate production data and construct a process time series knowledge graph; A convolutional neural network (CNN) algorithm is used to extract process knowledge features from the process time series knowledge graph; Based on the process knowledge features, combined with the automatic decision-making model, the production tasks are split, and the spatial features of the subtasks are extracted, and the process knowledge that meets the spatial features and timing requirements in the part production process knowledge base is retrieved to make process decisions; The partially observable Markov decision process algorithm is adopted to define the process time series knowledge graph as the environment, and the policy network interacts with the environment to learn the historical process path information, and the reward function is combined to perform process reasoning; The steps of constructing a parts production process knowledge base model combining process automatic decision-making and reasoning specifically include: Build a production process time series knowledge graph based on actual production process data; Construct a process automatic decision model, use the CNN algorithm to extract the spatial features of the process time series knowledge graph quadruple, and combine the process automatic decision model to make automatic decisions on the parts production process; Construct a process reasoning model, use the POMDP algorithm to perform process reasoning, and dynamically update process knowledge through manual verification; The steps of constructing a three-level information model of part information, process knowledge and equipment information, integrating process knowledge production data and constructing a process time series knowledge graph specifically include: Preprocessing of parts production process data through natural language recognition, part-of-speech tagging and manual intervention; Use STEP-NC to classify process knowledge and construct the process time series knowledge graph model layer; Construct three levels of information: parts information, process knowledge and equipment information; Perform named entity recognition and relationship extraction on real-time production data, process documents and historical data to obtain parts production process knowledge; Combining the process timing knowledge graph pattern layer and the acquired parts production process knowledge, a process timing knowledge graph is constructed; The step of extracting process knowledge features from the process knowledge time series knowledge graph using a convolutional neural network (CNN) algorithm specifically includes: The entities and relations in the process time series knowledge graph are represented by vectors through word embedding; The spatial features of the embedded representation of process knowledge quadruple are extracted through CNN algorithm; The steps of splitting the production task based on the process knowledge features and combining the automatic decision-making model, extracting the spatial features of the subtasks, and retrieving the process knowledge that meets the spatial features and timing requirements in the part production process knowledge base to make process decisions specifically include: Extract task entities in production tasks through named entity recognition and split the tasks into several subtasks; Obtain the part information model in the process sequence knowledge graph and retrieve part features and attribute embedding; Get the target part information node, retrieve the corresponding part production process and equipment information through the Neo4j database and verify the timing consistency; The partially observable Markov decision process algorithm is used to define the constructed process time series knowledge graph as the environment, and the strategy network interacts with the environment to learn the historical process path information. The process reasoning steps are specifically as follows: Modeling the process reasoning process using a reinforcement learning framework; Define the process sequence knowledge graph as a five-tuple , Indicates the status, represents the observed value, Indicates action, represents the transition probability, Indicates reward; The reward function is divided into global reward and path reward, which reduces the global reward and increases the possibility of the agent exploring new relationships. The agent uses a long short-term memory network to encode path history information into a continuous vector; Use Monte Carlo policy gradient to maximize cumulative rewards; Approximate gradients are used to update policy network parameters.
2. A process automatic decision and reasoning device, It is characterized in that include: A construction module is used to construct a parts production process knowledge base model that combines process automatic decision-making and reasoning; Integration module, used to build a three-level information model of parts information, process knowledge and equipment information, integrate production data and build a process time series knowledge graph; An extraction module, used for extracting process knowledge features from the process time series knowledge graph by using a convolutional neural network (CNN) algorithm; A decision-making module is used to split the production task based on the process knowledge features and in combination with the automatic decision-making model, extract the spatial features of the subtasks, and retrieve the process knowledge that meets the spatial features and timing requirements in the part production process knowledge base to make a process decision; A reasoning module, which is used to adopt a partially observable Markov decision process algorithm, define the process time series knowledge graph as an environment, interact with the environment through a policy network, learn historical process path information, and perform process reasoning in combination with a reward function; The construction module specifically includes: The knowledge graph construction module is used to construct a production process time series knowledge graph based on actual production process data; The automatic decision model construction module is used to construct the process automatic decision model, use the CNN algorithm to extract the spatial features of the process time series knowledge graph quadruple, and combine the process automatic decision model to make automatic decisions on the parts production process; Process reasoning model construction module, used to construct the process reasoning model, use the POMDP algorithm to perform process reasoning and dynamically update process knowledge through manual verification; The integration module specifically includes: A preprocessing module is used to preprocess the part production process data through natural language recognition, part-of-speech tagging and manual intervention; The layer module is used to classify process knowledge using STEP-NC and construct the process time series knowledge graph pattern layer; Information module, used to construct three levels of information: part information, process knowledge, and equipment information; The recognition module is used to perform named entity recognition and relationship extraction on real-time production data, process documents and historical data to obtain part production process knowledge; A construction module is used to combine the process timing knowledge graph pattern layer and the acquired parts production process knowledge to construct a process timing knowledge graph; The extraction module specifically includes: The representation module is used to obtain vector representations of entities and relationships in the process time series knowledge graph through word embedding; The quadruple module is used to extract the spatial features of the embedded representation of the process knowledge quadruple through the CNN algorithm; The decision module specifically includes: The splitting module is used to extract task entities in the production task through named entity recognition and split the task into several subtasks; The retrieval module is used to obtain the part information model in the process timing knowledge graph and retrieve the part features and attribute embedding; The retrieval module is used to obtain the target part information node, retrieve the corresponding part production process and equipment information through the Neo4j database, and verify the timing consistency; The reasoning module specifically includes: A modeling module for modeling the process reasoning process using a reinforcement learning framework; Definition module, used to define the process sequence knowledge graph as a five-tuple , Indicates the status, represents the observed value, Indicates action, represents the transition probability, Indicates reward; The reward function module is used to divide the reward function into global reward and path reward, reduce the global reward, and increase the possibility of the agent exploring new relationships; An agent module, which is used for the agent to encode path history information into a continuous vector using a long short-term memory network; A reward module, which is used to maximize the cumulative reward using Monte Carlo policy gradients; The update module is used to update the policy network parameters using approximate gradients.
3. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the process automatic decision-making and reasoning method as described in claim 1 are implemented.
4. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the process automatic decision-making and reasoning method as claimed in claim 1 are implemented.
Citation Information
Cited By
Process scheme generation method based on image data and knowledge graph
CN120849645A
