Hierarchical knowledge representation method for skills in dynamic task scene

The knowledge hierarchical understanding framework and triplet fusion are constructed through the graph database to establish a dynamic operation skills knowledge base, which solves the problem of insufficient description of static object information in the existing technology and improves the efficiency of robot operation skill learning and task planning.

CN118709769APending Publication Date: 2024-09-27TSINGHUA UNIVERSITY

Patent Information

Application Number
CN202410801470.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing knowledge-based robot operation representation methods focus on describing static object information, fail to effectively achieve reasonable decoupling between different elements and description of dynamic factors, and are difficult to adapt to dynamic task scenarios.

Method used

A graph database is used to build a knowledge hierarchical understanding framework, external knowledge fusion and dynamic updating are performed through triples, and a dynamic operating skills knowledge base is established, which is divided into environment level and operation level to express static and dynamic factors, combined with a real-time knowledge updating mechanism.

Benefits of technology

It improves the interpretability and task planning efficiency of robot operation skill learning, realizes knowledge-guided and data-driven operation task reasoning, and adapts to model design and data collection of different scene characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709769A
    Figure CN118709769A
Patent Text Reader

Abstract

The invention relates to the technical field of robots and knowledge engineering, in particular to a hierarchical knowledge representation method and device for skills in a dynamic task scenario, electronic equipment and a storage medium, and the method comprises the following steps: constructing a knowledge hierarchical understanding framework by using a graph database based on different semantic knowledge types; and performing knowledge extraction on the dynamic task scene based on a preset task, performing external knowledge fusion based on the triple, and dynamically updating the knowledge base to obtain a dynamic operation skill knowledge base. A multi-level knowledge expression system of operation, planning, tasks and objects is designed, a dynamic action library, a dynamic skill library and a dynamic task library are established, the dynamic action library, the dynamic skill library, the dynamic task library, a static entity library and a static scene library form a robot skill operation knowledge library in a dynamic scene, and knowledge-guided and data-driven operation task reasoning is achieved. And an operation skill knowledge base is constructed after a model is designed and data is collected according to different scene characteristics, so that the interpretability of robot operation skill learning and the operation task planning and skill migration efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics and knowledge engineering technology, and in particular to a method, device, electronic device and storage medium for hierarchical knowledge representation of skills in dynamic task scenarios. Background Art

[0002] Task understanding and skill refinement are key capabilities of service robots. How to decompose tasks in a way similar to human cognition can be transformed into a planning problem in a symbolic space. Classical task and motion planning methods rely heavily on predefined planning domains, symbolic rules, and complex strategy searches. This will result in it being unable to handle problems in a way that conforms to human cognition and semantics, and the high cost of formulation. The limitation that the robot must ensure that all elements are known before starting a task will make it difficult to migrate efficiently and unable to adapt to the ever-changing dynamic task scenarios. To solve this problem, some semantic-based knowledge base construction methods have been considered in the representation and task planning of robot operations. This allows robots to obtain content related to operation tasks from human knowledge. However, knowledge is a higher-dimensional organizational form than data, and it has discrete and structured characteristics, making it difficult to directly describe continuous operation data. Therefore, existing knowledge-based robot operation representation methods focus on characterizing static object information in operations, without realizing reasonable decoupling and dynamic factors between different elements, and the description of tasks, actions, and skills is flat and chaotic. In the process of query and reasoning, they only consider regularized symbolic calculations.

[0003] In summary, how to design models and construct an operational skills knowledge base based on the characteristics of different scenarios is an urgent problem that needs to be solved. Summary of the invention

[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0005] To this end, the first purpose of this application is to propose a hierarchical knowledge representation method for skills in dynamic task scenarios to solve the problems that existing knowledge-based robot operation representation methods focus on characterizing static object information in the operation and fail to achieve reasonable decoupling and dynamic factors between different elements.

[0006] The second object of the present application is to provide a device.

[0007] The third objective of the present application is to provide an electronic device.

[0008] A fourth objective of the present application is to provide a computer-readable storage medium.

[0009] To achieve the above objectives, the first embodiment of the present application proposes a hierarchical knowledge representation method for skills in a dynamic task scenario, including:

[0010] Based on different types of semantic knowledge, a knowledge hierarchical understanding framework is constructed using graph databases;

[0011] Extract knowledge from dynamic task scenarios based on preset tasks and construct triples;

[0012] External knowledge is integrated based on the triples, and the knowledge base is dynamically updated to obtain a dynamic operation skill knowledge base.

[0013] Preferably, the construction of a knowledge hierarchical understanding framework based on different semantic knowledge types using a graph database includes:

[0014] A hierarchical knowledge understanding framework is constructed by using a graph database Neo4j. The graph database Neo4j stores data as a graph structure, in which nodes represent entities and relationships represent connections between entities, thereby constructing a hierarchical knowledge understanding framework.

[0015] Preferably, the knowledge hierarchical understanding framework includes:

[0016] Constructing an ontology module, and using the ontology module to dynamically express initial knowledge using the task to be parsed;

[0017] Constructing a template module, and using the template module to operate the task template;

[0018] Construct an instance module and use the instance module to perform instance operations.

[0019] Preferably, it also includes:

[0020] The knowledge hierarchical understanding framework is divided into two levels: level one is the environment level, which is used to express the static factors of the operation, including objects, agents and scenes; level two is the operation level, which is used to express the dynamic factors of the operation, including tasks, skills and actions.

[0021] Preferably, the extracting knowledge from the dynamic task scenario based on the preset task includes:

[0022] Based on preset tasks, knowledge is extracted from dynamic task scenarios. The processing method from text to knowledge is divided into four tasks. Task one is operation text collection, including text description of the operation process; Task two is entity extraction, which uses the prior knowledge and reasoning ability of the large language model to extract labels from text data and construct triples.

[0023] Preferably, the external knowledge fusion based on the triples and the dynamic updating of the knowledge base to obtain the dynamic operation skill knowledge base includes:

[0024] Based on the triples constructed in Task 2, Task 3 is used to perform external knowledge fusion, and context neighbors are retrieved from a general knowledge base using a standard query language to expand the knowledge related to the operation task;

[0025] Based on the knowledge expanded in Task 3, Task 4 is used to dynamically update the knowledge base, unique identifiers are added to all actions in each template, and the existing knowledge is updated to the knowledge base to obtain a dynamic operation skill knowledge base.

[0026] Preferably, the executing of the instance operation by using the instance module comprises: adding the execution parameters and timestamp of the operation on the basis of the corresponding template each time the instance is executed.

[0027] To achieve the above-mentioned purpose, the second aspect of the present application proposes a hierarchical knowledge representation device for skills in a dynamic task scenario, including:

[0028] The framework building module uses graph databases to build a knowledge hierarchical understanding framework based on different semantic knowledge types;

[0029] The knowledge extraction module extracts knowledge from dynamic task scenarios based on preset tasks and constructs triples;

[0030] The knowledge base updating module integrates external knowledge based on the triples and dynamically updates the knowledge base to obtain a dynamic operation skill knowledge base.

[0031] To achieve the above-mentioned purpose, the third aspect of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0032] The memory stores computer-executable instructions;

[0033] The processor executes the computer-executable instructions stored in the memory to implement any of the above methods.

[0034] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a computer-readable storage medium, including computer-executable instructions stored in the computer-readable storage medium, and the computer-executable instructions are used to implement any of the methods described above when executed by a processor.

[0035] The present application provides a hierarchical knowledge representation method for skills in dynamic task scenarios, designs a multi-level knowledge expression system for operations, planning, tasks and objects, establishes a dynamic action library, skill library and task library, and together with the static entity library and scenario library, constitutes a robot skill operation knowledge base in dynamic scenarios. Combined with the real-time knowledge update mechanism, it realizes knowledge-guided and data-driven operation task reasoning, designs models according to the characteristics of different scenarios, and constructs an operation skill knowledge base after collecting data, thereby improving the interpretability of robot operation skill learning and improving the efficiency of robot operation task planning and skill transfer.

[0036] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0038] Figure 1 A flowchart of a first specific embodiment of a hierarchical knowledge representation method for skills in a dynamic task scenario provided by the present invention;

[0039] Figure 2 This is a structural diagram of the hierarchical knowledge representation method of operation skills in dynamic task scenarios;

[0040] Figure 3 Illustration of the case designed for the model;

[0041] Figure 4a This is a case illustration of the first knowledge extraction;

[0042] Figure 4b This is a case illustration of the second knowledge extraction;

[0043] Figure 5 A structural block diagram of a hierarchical knowledge representation device for skills in a dynamic task scenario provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The core of the present invention is to provide a hierarchical knowledge representation method, device, electronic device and storage medium for skills in dynamic task scenarios. By designing a multi-level knowledge expression system of operations, planning, tasks and objects, a dynamic action library, skill library and task library are established to improve the interpretability of robot operation skill learning and the efficiency of robot operation task planning and skill transfer.

[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0046] Please refer to Figure 1 , Figure 1 This is a flowchart of a first specific embodiment of a hierarchical knowledge representation method for skills in a dynamic task scenario provided by the present invention; the specific operation steps are as follows:

[0047] Step S101: Based on different semantic knowledge types, a knowledge hierarchical understanding framework is constructed using a graph database;

[0048] The construction of a knowledge hierarchical understanding framework based on different semantic knowledge types using a graph database includes:

[0049] A hierarchical knowledge understanding framework is constructed by using a graph database Neo4j. The graph database Neo4j stores data as a graph structure, in which nodes represent entities and relationships represent connections between entities, thereby constructing a hierarchical knowledge understanding framework.

[0050] Step S102: extracting knowledge from the dynamic task scenario based on the preset task and constructing a triple;

[0051] The knowledge hierarchical understanding framework includes:

[0052] Construct an ontology module, and use the ontology module to dynamically express the initial knowledge of the task to be parsed, so as to express the abstract conceptual knowledge, that is, the semantic knowledge of the entity itself;

[0053] Construct a template module, use the template module to operate the task template, and express various operation tasks or skill templates. Each task or skill is an operation process with an action sequence as the backbone, involving the scene where the operation occurs and the intelligent agent and object corresponding to each action primitive;

[0054] An instance module is constructed, and the instance operation is executed using the instance module. Each time the instance is executed, the execution parameters and timestamp of the operation are added based on the corresponding template.

[0055] The knowledge hierarchical understanding framework is divided into two levels: level one is the environment level, which is used to express the static factors of the operation, including objects, agents and scenes; level two is the operation level, which is used to express the dynamic factors of the operation, including tasks, skills and actions.

[0056] The extracting knowledge from the dynamic task scenario based on the preset task includes:

[0057] Based on preset tasks, knowledge is extracted from dynamic task scenarios. The processing method from text to knowledge is divided into four tasks. Task one is operation text collection, including text description of the operation process; Task two is entity extraction, which uses the prior knowledge and reasoning ability of the large language model to extract labels from text data and construct triples.

[0058] Step S103: external knowledge is integrated based on the triples, and the knowledge base is dynamically updated to obtain a dynamic operation skill knowledge base.

[0059] Based on the triples constructed in Task 2, Task 3 is used to perform external knowledge fusion, and context neighbors are retrieved from a general knowledge base using a standard query language to expand the knowledge related to the operation task;

[0060] Based on the knowledge expanded in Task 3, Task 4 is used to dynamically update the knowledge base, unique identifiers are added to all actions in each template, and the existing knowledge is updated to the knowledge base to obtain a dynamic operation skill knowledge base.

[0061] The environment level is used to express the static factors of the operation, including objects, agents, and scenes. Among them, objects are used to express the object of the operation, which is generally a physical object; agents are used to express the subject of the operation, mainly people and robots; scenes are used to express the background space of the operation.

[0062] The operation level is used to express the dynamic factors of the operation, including tasks, skills and actions. Among them, tasks are used to express the purpose of the operation; skills are used to express the condensed prior knowledge in the operation; actions are used to express the underlying primitives of the operation.

[0063] This embodiment provides a hierarchical knowledge representation method for skills in dynamic task scenarios. It designs models and collects data according to the characteristics of different scenarios to build an operation skill knowledge base, designs a multi-level knowledge expression system for operations, planning, tasks and objects, and establishes a dynamic action library, skill library and task library. Together with the static entity library and scenario library, they constitute a robot skill operation knowledge base in dynamic scenarios. Combined with the real-time knowledge update mechanism, it realizes knowledge-guided and data-driven operation task reasoning, improves the interpretability of robot operation skill learning, and improves the efficiency of robot operation task planning and skill transfer.

[0064] Based on the above embodiment, this embodiment describes a hierarchical knowledge representation method for skills in a dynamic task scenario. Figure 2 As shown, the details are as follows:

[0065] Knowledge base construction includes two parts: model design and knowledge extraction. Model design uses the graph database Neo4j to build a hierarchical understanding framework of knowledge. Neo4j stores data as a graph structure, in which nodes represent entities and relationships represent the connections between entities, thereby building a hierarchical understanding framework of knowledge.

[0066] In terms of model design, the operational skills are dynamically expressed in a semantic manner from a composite perspective of three modules and two levels. The three modules include module one, module two, and module three, representing different types of semantic knowledge. Module one is the ontology module, which is used to express common sense knowledge; module two is the template module, which is used to express the operational task template; module three is the instance module, which is used to express the operational instance execution. The two levels include level one and level two. Level one is the environment level, which is used to express the static factors of the operation, including objects, agents, and scenes; level two is the operational level, which is used to express the dynamic factors of the operation, including tasks, skills, and actions. In terms of knowledge extraction, it includes task one, task two, task three, and task four, representing the processing method from text to knowledge. The first task is to collect operation texts, including text descriptions of operation procedures; the second task is entity extraction, which is to extract labels and construct triples from text data through the prior knowledge and reasoning ability of the large language model GPT; the third task is external knowledge fusion, which is to use the standard query language SparQL to retrieve neighbors from the common sense knowledge base to expand knowledge; the fourth task is the dynamic update of the knowledge base, which is to update the existing knowledge into the knowledge base using SparQL.

[0067] The specific contents are as follows:

[0068] First, the model design includes L1, L2, M1, M2 and M3, where L1 is level one, L2 is level two, M1 is module one, M2 is module two, and M3 is module three. Secondly, knowledge extraction includes T1, T2, T3, and T4, where T1 is task one, T2 is task one, T3 is task one, and T4 is task one.

[0069] Through model design, this embodiment decouples the knowledge types and operation factors in the operation in a hierarchical manner in the form of semantic knowledge, including modules 1, 2, and 3, as well as objects, agents, and scenarios in level 1 and tasks, skills, and actions in level 2. Based on the model design, knowledge extraction extracts sufficient operation knowledge from text datasets, large language models, and external knowledge bases and stores them in the operation skill knowledge base by executing tasks 1, 2, 3, and 4 in sequence.

[0070] During the operation of the robot, the operation skill knowledge base can provide it with an understanding and planning method for upper-level tasks, helping the robot to draw on past experience and knowledge to split complex tasks into simple tasks or even action sequences, and then hand them over to the lower-level motion planning and physical execution to implement the operation. Each successful operation execution is also stored in the operation skill knowledge base as a new instance, realizing a closed-loop robot operation guided by knowledge.

[0071] like Figure 3 As shown in the figure, Neo4j, a graph database, is used to build a hierarchical framework for understanding knowledge. Neo4j stores data as a graph structure, where nodes represent entities and relationships represent connections between entities, thereby building a hierarchical framework for understanding knowledge.

[0072] Knowledge has different types. For example, the same object may be a concept description or a specific instance in a task. This requires a modular representation based on the knowledge type, that is, from ontology to template to instance.

[0073] The ontology module is used to represent abstract conceptual knowledge, which is equivalent to a dictionary and is similar to a classic common sense knowledge base. The ontology stores the semantic knowledge of the entity itself, organizes different types of entities from the perspective of concept definition, and has strict category division and hierarchical relationships.

[0074] The template module is used to represent various operational tasks or skills. Each task or skill is an operational process with an action sequence as the backbone, involving the scene where the operation occurs and the agent and object corresponding to each action primitive. This means building logical or temporal relationships between nodes at different levels. Each entity in the template is associated with the entity of the same name in the ontology through instanceof, which means that the concept is concretized in the operation.

[0075] The instance module is used to represent each execution of an operation, which is equivalent to a log. The instance adds the execution parameters and timestamp of the operation based on the corresponding template. All entities and relationships in the instance are mapped from the entities and relationships in the corresponding template. Each execution of each operation task will generate an instance, so the knowledge in the instance will be continuously added during the execution process.

[0076] In addition to knowledge types, hierarchical decoupling is performed from the perspective of operational factors: the factors in the operation are divided into two levels: environment and operation. The environmental level refers to concrete and stable factors, including objects, agents and scenes in the environment; the operational level refers to abstract and changeable factors, including tasks, skills and actions in the operation.

[0077] Based on the above two levels, the operation process is defined from the perspective of human cognition: in a scenario, the intelligent agent aims to complete the task, calls a series of skills during the operation, performs a series of actions on a series of objects, and summarizes the same type of tasks into skills after completing the operation.

[0078] like Figure 4a , Figure 4b As shown in Figure 1, Task 1 is to collect operation texts. WikiHow is an open-source life guide, essentially a text dataset. We selected task guides that describe physical and simple operations, that is, the objects being operated have state or position changes during the task, which excludes virtual operations and even more abstract and complex non-operational tasks. We specifically selected guides for physical and simple operation tasks, where the objects being operated undergo state or position changes during the task, such as “How to assemble a SIM card” and “How to assemble a flexible cable”.

[0079] Task 2 is entity extraction. The text data provided by wikiHow is used as input, and the large language model GPT extracts keywords based on the prompt words, outputs the verb sequence in the operation and the nouns and prepositions corresponding to each verb. Large language models are transformer language models with trillions or more parameters. These models are trained on large amounts of text data, making the models show extraordinary proficiency in understanding natural language and solving complex problems. Since large language models have extensive prior knowledge and reasoning capabilities, they are helpful for entity extraction and updating. Then, Neo4j is used to construct triples based on the extracted entities and relations. Triples are the basic components of knowledge graphs and are in the form of "entity-relationship-entity". The parent-child relationship between tasks and actions is represented by the relationship "contain", the sequential relationship between actions is represented by the relationship "next", the subject of the action, i.e., the executor, is represented by the relationship "subject", the object of the action is represented by the relationship "object", and the target or location of the action is represented by the relationship "from / in / on / beside".

[0080] Task three is external knowledge integration. The entity node itself is single. In order to obtain more relevant category context information, the three types of entities, namely subject, object and location, are connected to the common sense knowledge base DBpedia through SparQL (a standard query language for retrieving and operating structured data stored in triple format, which is often used to describe and link data, especially in the semantic web). In DBpedia, by limiting the triple relationship to 'typeof', 'hypernym', 'ingredient' to retrieve neighbor nodes, the category, context and ingredient information of the local entity are obtained as new knowledge and added to the existing knowledge triple.

[0081] Task 4 is the dynamic update of the knowledge base. Considering that in the execution instance of the robot operation, actions with the same semantics under different tasks may have different parameters. If these actions all point to the same node, it will cause the data structure of the template in the knowledge framework to be over-coupled. Therefore, a randomly generated Hash suffix is ​​appended to all actions in each template as a unique identifier. Finally, the template data is imported into the triple knowledge base through SparQL. The meta node of the action is added to the ontology to aggregate the action entities with the same name in the template. On the other hand, the object entities in the template are also copied to the ontology and connected through instanceof.

[0082] The embodiment of the present invention provides a hierarchical knowledge representation method for skills in dynamic task scenarios, designs a multi-level knowledge expression system for operations, planning, tasks and objects, establishes a dynamic action library, a skill library and a task library, and constitutes a robot skill operation knowledge base in dynamic scenarios with a static entity library and a scenario library. Combined with the real-time knowledge update mechanism, knowledge-guided and data-driven operation task reasoning is realized. The model design of the operation skill knowledge base is decoupled from the two dimensions of operation elements and knowledge types, ensuring the stability and flexibility of the knowledge base architecture to serve the subsequent knowledge extraction. Knowledge extraction dynamically updates and completes the knowledge from different data sources to the operation skill knowledge base through four tasks, especially the template-centered operation tasks, and finally completes the complete construction of the operation skill knowledge base. The operation skill knowledge base is constructed after designing models and collecting data according to the characteristics of different scenarios, improving the interpretability of robot operation skill learning, and improving the efficiency of robot operation task planning and skill transfer.

[0083] Please refer to Figure 5 , Figure 5 A structural block diagram of a hierarchical knowledge representation device for skills in a dynamic task scenario provided by an embodiment of the present invention; the specific device may include:

[0084] The framework construction module 100 constructs a knowledge hierarchical understanding framework based on different semantic knowledge types using a graph database;

[0085] The knowledge extraction module 200 extracts knowledge from the dynamic task scenario based on the preset task and constructs a triple;

[0086] The knowledge base updating module 300 performs external knowledge integration based on the triples and dynamically updates the knowledge base to obtain a dynamic operation skill knowledge base.

[0087] A hierarchical knowledge representation device for skills in a dynamic task scenario in this embodiment is used to implement the aforementioned hierarchical knowledge representation method for skills in a dynamic task scenario. Therefore, the specific implementation method of a hierarchical knowledge representation device for skills in a dynamic task scenario can be seen in the embodiment part of the hierarchical knowledge representation method for skills in a dynamic task scenario in the previous text. For example, the framework construction module 100, the knowledge extraction module 200, and the knowledge base update module 300 are respectively used to implement steps S101, S102, and S103 in the aforementioned hierarchical knowledge representation method for skills in a dynamic task scenario. Therefore, its specific implementation method can refer to the description of the corresponding parts of the embodiments and will not be repeated here.

[0088] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.

[0089] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.

[0090] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.

[0091] It should be understood that the present invention can make various modifications, combinations, sub-combinations and substitutions to the three modules, two levels and four tasks according to design requirements and other factors. Any modifications and changes made without departing from the concept of the present invention are within the scope of protection of the present invention.

[0092] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.

[0093] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.

[0094] The present application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, the present disclosure is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk can be minimized by limiting data collection and deleting the data. In addition, when applicable, such personal information is de-identified to protect the privacy of the user.

[0095] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0096] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0097] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0098] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0099] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0100] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0101] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0102] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A hierarchical knowledge representation method for skills in dynamic task scenarios, characterized in that: include: Based on different types of semantic knowledge, a knowledge hierarchical understanding framework is constructed using graph databases; Extract knowledge from dynamic task scenarios based on preset tasks and construct triples; External knowledge is integrated based on the triples, and the knowledge base is dynamically updated to obtain a dynamic operation skill knowledge base.

2. The hierarchical knowledge representation method of skills in dynamic task scenarios according to claim 1 is characterized in that: The construction of a knowledge hierarchical understanding framework based on different semantic knowledge types using a graph database includes: A hierarchical knowledge understanding framework is constructed by using a graph database Neo4j. The graph database Neo4j stores data as a graph structure, in which nodes represent entities and relationships represent connections between entities, thereby constructing a hierarchical knowledge understanding framework.

3. The hierarchical knowledge representation method of skills in dynamic task scenarios according to claim 2 is characterized in that: The knowledge hierarchical understanding framework includes: Constructing an ontology module, and using the ontology module to dynamically express initial knowledge using the task to be parsed; Constructing a template module, and using the template module to operate the task template; Construct an instance module and use the instance module to perform instance operations.

4. The hierarchical knowledge representation method of skills in dynamic task scenarios according to claim 3 is characterized in that: Also includes: The knowledge hierarchical understanding framework is divided into two levels: level one is the environment level, which is used to express static factors of operations, including objects, agents and scenes; Level 2 is the operational level, which is used to express the dynamic factors of operations, including tasks, skills and actions.

5. The hierarchical knowledge representation method of skills in dynamic task scenarios according to claim 1 is characterized in that: The extracting knowledge from the dynamic task scenario based on the preset task includes: Based on preset tasks, knowledge is extracted from dynamic task scenarios. The processing method from text to knowledge is divided into four tasks. Task one is operation text collection, including text description of the operation process; Task two is entity extraction, which uses the prior knowledge and reasoning ability of the large language model to extract labels from text data and construct triples.

6. The hierarchical knowledge representation method of skills in dynamic task scenarios according to claim 5 is characterized in that: The external knowledge fusion based on the triples and the dynamic updating of the knowledge base to obtain the dynamic operation skill knowledge base include: Based on the triples constructed in Task 2, Task 3 is used to perform external knowledge fusion, and context neighbors are retrieved from a general knowledge base using a standard query language to expand the knowledge related to the operation task; Based on the knowledge expanded in Task 3, Task 4 is used to dynamically update the knowledge base, unique identifiers are added to all actions in each template, and the existing knowledge is updated to the knowledge base to obtain a dynamic operation skill knowledge base.

7. The hierarchical knowledge representation method of skills in dynamic task scenarios according to claim 3 is characterized in that: The using the instance module to execute the instance operation includes: adding the execution parameters and timestamp of the operation on the basis of the corresponding template each time the instance is executed.

8. A hierarchical knowledge representation device for skills in dynamic task scenarios, characterized in that: include: The framework building module uses graph databases to build a knowledge hierarchical understanding framework based on different semantic knowledge types; The knowledge extraction module extracts knowledge from dynamic task scenarios based on preset tasks and constructs triples; The knowledge base updating module integrates external knowledge based on the triples and dynamically updates the knowledge base to obtain a dynamic operation skill knowledge base.

9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Methods and systems for capturing analytic model authoring knowledge

    CN108073760A

  • Cognitive robotic process automation

    CN112183708A

  • Robot task processing method and system based on ontology knowledge representation

    CN113821648A

  • Cognitive robotic process automation

    US20210004711A1

Cited By

  • LLM-based data analysis private domain knowledge entry auxiliary method

    CN119106054A