Small sample knowledge reasoning method, device and medium based on three partial order structures

Through a small-sample knowledge reasoning method based on a three-branch partial order structure, through particle splitting, reorganization and isomorphism operations, the problem of insufficient interpretability of existing methods in the field of high interpretability is solved, and a more efficient small-sample knowledge reasoning effect is achieved, which is particularly suitable for Chinese medicine syndrome differentiation and treatment.

CN119514701BActive Publication Date: 2025-10-10SOUTH CHINA NORMAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411441918.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-10-10
Estimated Expiration
2044-10-16

AI Technical Summary

Technical Problem

Existing small-sample knowledge reasoning methods have low interpretability in applications that require high interpretability and cannot effectively solve the small-sample data problem.

Method used

A small sample knowledge reasoning method based on a three-branch partial order structure is adopted. Through particle splitting, reorganization and isomorphism operations, deductive reasoning is performed from the perspective of symbolic representation to augment data to generate new knowledge.

Benefits of technology

It improves the interpretability of small-sample knowledge reasoning and is suitable for application scenarios that require high interpretability, such as syndrome differentiation and treatment in the field of traditional Chinese medicine.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119514701B_ABST
    Figure CN119514701B_ABST
Patent Text Reader

Abstract

The application discloses a small sample knowledge reasoning method and device based on a three-branch partial order structure and a medium. The method generates a three-branch partial order structure diagram according to to-be-analyzed data, performs particle splitting operation, particle recombination operation and particle isomorphism operation on attributes layer by layer based on the three-branch partial order structure diagram, and further generates a new object mode and outputs the new object mode. The embodiment of the application can realize data augmentation through deductive reasoning from the perspective of symbolic representation, is more suitable for processing small sample problems with higher requirements for interpretability compared with an existing small sample reasoning method based on a vector, and can be widely applied to small sample reasoning learning processes, such as syndrome differentiation and treatment in the field of traditional Chinese medicine, which require high interpretability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of small sample knowledge reasoning, and in particular to a small sample knowledge reasoning method, device and medium based on a three-branch partial order structure. Background Art

[0002] Few-shot learning (FSL), a learning model for problems with small sample data, is an important and challenging problem in the field of artificial intelligence. The massive amount of data generated in the big data era has fueled the rapid development of artificial intelligence technology. This has led to the situation where most current AI models can only fully learn from a large number of samples. However, in certain specific fields, such as medical research, face recognition, and anomaly detection, obtaining large numbers of samples is difficult. In response to this, scholars have begun to consider whether knowledge learned from small samples can be used to address this problem. This conjecture has sparked widespread research interest, and the concept of few-shot learning has gradually emerged.

[0003] At present, some explorations on small-sample knowledge reasoning have achieved preliminary results, such as: small-sample link prediction on knowledge graphs through meta-learning, small-sample node classification on attribute networks, and small-sample relationship learning on knowledge graphs through hybrid attention mechanisms.

[0004] However, most of the above results focus on small-sample reasoning from the perspective of vector representation, and their interpretability is relatively low, so they cannot be effectively applied in fields that require high interpretability. Summary of the Invention

[0005] In view of this, the embodiments of the present invention provide a small sample knowledge reasoning method, device and medium based on the three-branch partial order structure, which is based on the concept cognition learning method of the three-branch partial order structure.

[0006] A first aspect of the present invention provides a small sample knowledge reasoning method based on a three-branch partial order structure, comprising the following steps:

[0007] Acquire data to be analyzed, and generate a three-branch partial order structure graph according to the data to be analyzed;

[0008] The first layer of the three-branch partial order structure graph from top to bottom is used as the target layer;

[0009] Get the attribute particles of the target layer;

[0010] When the attribute particles of the target layer meet the particle splitting conditions, the particle splitting operation is performed on the attribute particles of the target layer to split one attribute particle into multiple new attribute particles;

[0011] When the attribute particles of the target layer meet the particle reorganization conditions, the particle reorganization operation is performed on the attribute particles of the target layer to combine multiple attribute particles into a new attribute particle;

[0012] When the attribute particles of the target layer meet the particle isomorphism conditions, the particle isomorphism operation is performed on the attribute particles of the target layer, multiple attribute particles are isomorphized into new attribute particles and a new object model is generated;

[0013] Determine whether a new object pattern is generated in the particle isomorphism operation; when a new object pattern is generated, return to the step of performing a particle reorganization operation on the attribute particles of the target layer when the attribute particles of the target layer meet the particle reorganization conditions; when the attribute particles of the target layer meet the particle reorganization conditions, perform a particle reorganization operation and a particle isomorphism operation on the attribute particles of the target layer until no new object pattern is generated;

[0014] When no new object pattern is generated, the next layer is added to the target layer, and the process returns to the step of obtaining the attribute particles of the target layer. When the attribute particles of the target layer meet the particle splitting conditions, the attribute particles of the target layer are subjected to particle splitting, particle reorganization, and particle isomorphism operations until all layers in the three-branch partial order structure diagram are processed.

[0015] All newly generated object patterns are obtained from the three partial order structure graphs and summarized and output.

[0016] Furthermore, the data to be analyzed is represented by triple data, specifically including an object set, an attribute set, and an object-attribute correspondence relationship; the object set includes multiple object patterns, and the attribute set includes multiple attribute elements; the object-attribute correspondence relationship refers to the correspondence relationship between the object patterns and the attribute elements;

[0017] Generating a three-branch partial order structure graph according to the data to be analyzed specifically includes the following steps:

[0018] Expand the attribute element with the most object-attribute correspondences as the root node, and generate a tree diagram with each object pattern corresponding to the root node as a branch.

[0019] On each branch, the attribute elements corresponding to the object pattern are arranged as nodes from top to bottom in the preset attribute element order;

[0020] Each group of nodes extending downward from the root node is considered a level;

[0021] Check the attribute elements of the nodes in each layer. If the same attribute element appears in nodes of multiple layers, merge the node into the node of the layer where the attribute element first appears in the corresponding branch, so that after the merger, the node in the layer of the branch has multiple attribute elements.

[0022] Merging nodes with the same extended path in different branches unfolded from the root node;

[0023] In the three-branch partial order structure diagram, each node forms an attribute particle; the attribute particle is represented by a triple data, which is the core attribute of the attribute particle corresponding node, the attribute element set of the connection line from the attribute particle corresponding node to the root node, and the object mode set corresponding to the attribute particle corresponding node; the core attribute refers to one or more attribute elements possessed by the attribute particle corresponding node.

[0024] Further, before the step of taking the first layer as the target layer, the following steps are further included:

[0025] Judging whether the root node of the three-branch partial order structure diagram can perform particle splitting operation;

[0026] When the root node of the three-branch partial order structure diagram can perform particle splitting operation, performing particle splitting operation on the root node of the three-branch partial order structure diagram, and the new attribute particle formed by the splitting operation is used as a new root node, and the original root node is used as a child node of the new root node.

[0027] Further, the particle splitting operation is realized by a preset particle splitting operator, and specifically includes the following steps:

[0028] Establishing a first set, a second set and a third set; the first set takes each target layer attribute particle as an element, and the second set and the third set are empty sets;

[0029] Iterating through each attribute particle in the first set in turn, and taking the first attribute particle accessed as a target attribute particle;

[0030] Judging the core attribute possessed by the target attribute particle;

[0031] If the target attribute particle has more than one core attribute, performing particle splitting operation on the target attribute particle using a preset particle splitting operator to generate a plurality of new attribute particles;

[0032] Adding the new attribute particles obtained by the particle splitting operation as elements to the third set;

[0033] Iterating through each new attribute particle in the third set in turn, and comparing each new attribute particle in the third set with the union of the first set and the second set;

[0034] If there is an attribute granule in the union of the first set and the second set whose core attributes and parent nodes are exactly the same as those of the new attribute granule in the third set, then the attribute element set of the new attribute granule is added to the attribute element set of the target attribute granule, and the new attribute granule is deleted from the third set;

[0035] Add the elements in the third set to the second set, and clear the third set;

[0036] The next attribute granule to be visited is used as the target attribute granule, and the process returns to the step of determining the core attributes of the target attribute granule until every attribute granule in the first set has been visited;

[0037] Each new attribute particle in the second set is treated as a node and added to the level corresponding to the target attribute particle in the three-branch partial order structure graph, and the parent node of the target attribute particle corresponding to each new attribute particle is connected.

[0038] Furthermore, the particle reorganization operation is implemented by a preset particle reorganization operator, and specifically includes the following steps:

[0039] Establishing a fourth set, a fifth set, and a sixth set; wherein the fourth set has each target layer attribute particle as an element, and the fifth set and the sixth set are empty sets;

[0040] Arbitrarily combining each target layer attribute particle in the fourth set to form multiple attribute particle pairs;

[0041] Traverse the plurality of attribute particle pairs in sequence, and use the first pair of attribute particles visited as the target attribute particle pair;

[0042] Determining whether the target attribute particle pair meets the particle recombination condition;

[0043] If the target attribute particle pair meets the particle recombination condition, a preset particle recombination operator is used to perform a particle recombination operation on the target attribute particle pair to combine them into a new attribute particle;

[0044] Adding the new attribute particles obtained by the particle reorganization operation as elements to the sixth set;

[0045] Traversing each new attribute particle in the sixth set in turn, and comparing each new attribute particle in the sixth set with the union of the fourth set and the fifth set;

[0046] If there is an attribute grain in the union of the fourth set and the fifth set whose core attribute and parent node are exactly the same as the new attribute grain in the sixth set, then delete the new attribute grain from the sixth set;

[0047] Add the elements in the sixth set to the fifth set, and clear the sixth set;

[0048] The next pair of attribute grains to be visited is taken as the target attribute grain pair, and the process returns to the step of determining whether the target attribute grain pair meets the grain reorganization condition, until every pair of attribute grains in the fourth set has been visited;

[0049] Each of the new attribute particles in the fifth set is taken as a node and added to the level corresponding to the target attribute particle in the three-branch partial order structure graph, and the parent node of the target attribute particle corresponding to each new attribute particle is connected.

[0050] Furthermore, the particle recombination conditions specifically include:

[0051] The corresponding nodes of each attribute particle in the target attribute particle pair have a common parent node;

[0052] The corresponding nodes of each attribute particle in the target attribute particle pair are all located at the same level;

[0053] The corresponding nodes of each attribute particle in the target attribute particle pair correspond to different object modes;

[0054] When the target attribute particle pair satisfies the above conditions at the same time, it is considered that the target attribute particle pair satisfies the particle recombination condition.

[0055] Furthermore, the particle isomorphism operation is implemented by a preset particle isomorphism operator, and specifically includes the following steps:

[0056] Establishing a seventh set, an eighth set, and a ninth set; wherein the seventh set has each target layer attribute particle as an element, and the eighth set and the ninth set are empty sets;

[0057] Arbitrarily combining each target layer attribute particle in the seventh set to form multiple attribute particle pairs;

[0058] Traversing the plurality of attribute particle pairs in sequence, and taking the first pair of attribute particles visited as the target attribute particle pair; the target attribute particle pair includes the first target attribute particle and the second target attribute particle;

[0059] Determining whether the target attribute particle pair satisfies a particle isomorphism condition;

[0060] If the target attribute particle pair meets the particle recombination condition, the following steps are performed on the first target attribute particle: a particle isomorphism operation is performed on the first target attribute particle using the second target attribute particle using a preset particle recombination operator to obtain a first new attribute particle; the first new attribute particle is added as an element to the eighth set; it is determined whether the core attribute of each first new attribute particle in the eighth set is an empty set; if so, a node corresponding to the first new attribute particle is added to the next layer of the level corresponding to the first target attribute particle in the three-branch partial order structure diagram, and the node corresponding to the first new attribute particle is treated as a child node of the node corresponding to the first target attribute particle; and the branch corresponding to the first new attribute particle is generated as a new object pattern;

[0061] The following steps are performed on the second target attribute particle: using a preset particle recombination operator to perform a particle isomorphism operation on the first target attribute particle based on the second target attribute particle to obtain a second new attribute particle; adding the second new attribute particle as an element to the ninth set; determining whether the core attribute of each second new attribute particle in the ninth set is an empty set; if so, adding a node corresponding to the second new attribute particle to the next layer of the level corresponding to the second target attribute particle in the three-branch partial order structure diagram, and treating the node corresponding to the second new attribute particle as a child node of the node corresponding to the second target attribute particle; and generating the branch corresponding to the second new attribute particle as a new object pattern;

[0062] Clearing the eighth set and the ninth set;

[0063] The next pair of attribute particles to be visited is taken as the target attribute particle pair, and the process returns to the step of determining whether the target attribute particle pair satisfies the particle isomorphism condition, until every pair of attribute particles in the seventh set has been visited;

[0064] The new object patterns generated by the particle isomorphism operation are summarized and output.

[0065] Furthermore, the particle isomorphism conditions specifically include:

[0066] The corresponding nodes of each attribute particle in the target attribute particle pair are all located at the same level;

[0067] The intersection of the core attributes of each attribute particle in the target attribute particle pair is a non-empty set;

[0068] When the target attribute particle pair satisfies the above conditions at the same time, it is considered that the target attribute particle pair satisfies the particle isomorphism condition.

[0069] A second aspect of the present invention discloses an electronic device, comprising a processor and a memory;

[0070] The memory is used to store programs;

[0071] The processor executes the program to implement the small sample knowledge reasoning method based on a three-branch partial order structure.

[0072] The third aspect of the present invention discloses a computer-readable storage medium, characterized in that the storage medium stores a program, and the program is executed by a processor to implement the small sample knowledge reasoning method based on a three-branch partial order structure.

[0073] The present invention also discloses a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium and execute the computer instructions, causing the computer device to perform the above method.

[0074] The embodiments of the present invention have the following beneficial effects: The proposed method, device, and medium for small-sample knowledge reasoning based on a three-branch partial order structure can achieve data augmentation through deductive reasoning from the perspective of symbolic representation, and obtain new knowledge from the original data through particle splitting, combination, and isomorphism operations. Therefore, compared with existing vector-based small-sample reasoning methods, the present invention is more suitable for handling small-sample problems with higher interpretability requirements and is widely used in small-sample reasoning learning processes that require high interpretability, such as syndrome differentiation and treatment in the field of Traditional Chinese Medicine.

[0075] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0077] Figure 1 This is the main implementation flow chart of a small sample knowledge reasoning method based on a three-branch partial order structure of the present invention.

[0078] Figure 2 It is a schematic diagram of a three-branch partial order structure generated by the present invention based on the data to be analyzed in an embodiment of the present invention.

[0079] Figure 3 This is a detailed implementation flowchart of another small sample knowledge reasoning method based on a three-branch partial order structure of the present invention.

[0080] Figure 4 This is an incomplete picture of an unprocessed prescription similar to Guizhi Decoction.

[0081] Figure 5 The present invention is a Guizhi Decoction-type prescription completion diagram processed by a small sample knowledge reasoning method based on a three-branch partial order structure.

[0082] Figure 6 It is a structural schematic diagram of an electronic device of the present invention.

[0083] Figure 7 It is a schematic diagram of the structure of a computer-readable storage medium of the present invention. DETAILED DESCRIPTION

[0084] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0085] Compared to vector-based representations, symbolic representations are relatively more interpretable. Therefore, it is necessary to explore small-sample reasoning from the perspective of symbolic representation, such as concept-based small-sample reasoning. To this end, embodiments of the present invention provide a small-sample knowledge reasoning method, device, and medium based on a three-branch partial order structure, a conceptual cognitive learning method, from the perspective of symbolic representation.

[0086] like Figure 1 As shown, the first embodiment of the present invention provides a small sample knowledge reasoning method based on a three-branch partial order structure, including the following steps:

[0087] S1. Obtain the data to be analyzed and generate a three-branch partial order structure diagram based on the data to be analyzed.

[0088] S2. Take the first layer of the three-branch partial order structure graph from top to bottom as the target layer;

[0089] S3. Get the attribute particles of the target layer;

[0090] S4. When the attribute particle of the target layer meets the particle splitting condition, perform a particle splitting operation on the attribute particle of the target layer, splitting one attribute particle into multiple new attribute particles;

[0091] S5. When the attribute particles of the target layer meet the particle reorganization conditions, perform a particle reorganization operation on the attribute particles of the target layer to combine multiple attribute particles into a new attribute particle;

[0092] S6. When the attribute granules of the target layer meet the particle isomorphism conditions, perform a particle isomorphism operation on the attribute granules of the target layer, isomorphize multiple attribute granules into new attribute granules and generate a new object model;

[0093] S7. Determine whether a new object pattern is generated during the particle isomorphism operation. If a new object pattern is generated, return to the step of performing a particle reorganization operation on the attribute particles of the target layer when the attribute particles of the target layer meet the particle reorganization conditions. If the attribute particles of the target layer meet the particle reorganization conditions, perform the particle reorganization operation and the particle isomorphism operation on the attribute particles of the target layer until no new object pattern is generated.

[0094] When no new object pattern is generated, the next layer is added to the target layer, and the process returns to the step of obtaining the attribute particles of the target layer. When the attribute particles of the target layer meet the particle splitting conditions, the particle splitting operation, particle reorganization operation, and particle isomorphism operation are performed on the attribute particles of the target layer until all levels in the three-branch partial order structure diagram are processed.

[0095] S8. Obtain all newly generated object patterns from the three-branch partial order structure graph and summarize the output.

[0096] The present invention proposes a small-sample knowledge reasoning method based on a three-branch partial order structure, which can achieve data augmentation through deductive reasoning from the perspective of symbolic representation. It can be applied to small-sample reasoning learning processes that require high interpretability, such as syndrome differentiation and treatment in the field of traditional Chinese medicine.

[0097] As a further embodiment, the implementation process of the main steps of the present invention is discussed in detail below:

[0098] S1. Obtain the data to be analyzed and generate a three-branch partial order structure diagram based on the data to be analyzed.

[0099] In the embodiment of the present invention, the data to be analyzed is represented by triple data K = {U, M, I}, which specifically includes an object set U, an attribute set M, and an object-attribute correspondence I. The object set U consists of multiple object patterns {1, 2, 3, ...}, the attribute set M consists of multiple attribute elements {a, b, c, ...}, and the object-attribute correspondence I is a binary correspondence between the object set U and the attribute set M, that is,

[0100] Table 1 Example of data to be analyzed

[0101]

[0102] Table 1 shown above is an exemplary diagram of the data to be analyzed. The data in the first column on the left of Table 1 is the object set U = {1, 2, 3, 4, 5, 6, 7, 8}, and the data in the first row on the top is the attribute set M = {a, b, c, d, e, f, g, h}. The data in the intersection of the first row and the first column is the object-attribute correspondence. In the intersection unit, the number "1" indicates that the object pattern of the corresponding row has the attribute element of the corresponding column, and there is a binary correspondence between the two. If it is empty, it means that there is no binary correspondence.

[0103] Taking the data in Table 1 as an example, the process of generating a three-branch partial order structure diagram in step S1 of the embodiment of the present invention is described:

[0104] S1-1. Expand the attribute element with the most object-attribute correspondences as the root node, and generate a tree diagram with each object pattern corresponding to the root node as a branch. In Table 1, the attribute element with the most object-attribute correspondences is "a", so Figure 2 In the example, expand the tree with a as the root node. Since the object pattern corresponding to attribute element a includes {1,2,3,4,5,6,7,8}, eight branches need to be expanded from node a.

[0105] In some embodiments, there may be object patterns that do not have a corresponding relationship with the attribute element with the most object-attribute correspondences. For these object patterns, it is necessary to search for the attribute element with the most object-attribute correspondences in the data table to be analyzed among the attribute elements with which these object patterns have an object-attribute correspondence, and establish multiple three-branch partial order structure graphs for processing. The process for establishing each three-branch partial order structure graph is consistent with the process for establishing the three-branch partial order structure graph described in the embodiments of the present invention and will not be repeated here.

[0106] S1-2. On each branch, arrange the attribute elements corresponding to the object pattern as nodes from top to bottom according to the preset attribute element order. According to the data in Table 1, the node order for each branch is [a,b,g], [a,b,g,h], [a,b,c,g,h], [a,c,g,h,i], [a,b,d,f], [a,b,c,d,f], [a,c,d,e], and [a,c,d,f].

[0107] S1-3. Consider each group of nodes extending downward from the root node as a layer. Based on the order of the attribute elements in step S1-2, the first layer's attribute element set is [b, c], the second layer's attribute element set is [g, c, d], the third layer's attribute element set is [h, g, f, e], and the fourth layer's attribute element set is [h, i, f].

[0108] S1-4. Check the attribute elements of the nodes in each level. If the same attribute element appears in nodes of multiple levels, merge the node into the node of the level where the attribute element first appears on the corresponding branch, so that after the merger, the node of the branch at this level has multiple attribute elements.

[0109] Based on the attribute element set for each layer obtained in step S1-3, it can be found that attribute element [c] in the first layer also appears in the second layer. Attribute element [c] appearing in the second layer belongs to both object pattern 3 and object pattern 6. Therefore, it is necessary to merge the attribute nodes of the first and second layers in object pattern 3 and object pattern 6 to form a composite node. That is, the node order for the corresponding branch of object pattern 3 is [a, bc, g, h]; the node order for the corresponding branch of object pattern 6 is [a, bc, d, f].

[0110] After the attribute elements are merged, the attribute element set of the first layer of the three-branch partial order structure graph generated based on Table 1 is [b, c, bc], the attribute element set of the second layer is [d, g], the attribute element set of the third layer is [e, f, h], and the attribute element of the fourth layer is [i]. We again check whether the attribute elements of the nodes in each layer appear in more than one layer. It is found that each attribute element appears in only one layer, so the processing of steps S1-4 is considered complete.

[0111] S1-5. Merge the nodes with the same extension path in different branches expanded by the root node.

[0112] In this embodiment of the present invention, nodes with the same departure and arrival nodes are considered to have the same extended path. For example, if the branch nodes of object pattern 1 are [a, b, g] and the branch nodes of object pattern 2 are [a, b, g, h], they have the same extended path [a, b, g]. Therefore, the identical portions [a, b, g] of the branches corresponding to object pattern 1 and object pattern 2 need to be merged.

[0113] The three-branch partial order structure diagram finally obtained based on the data in Table 1 is as follows Figure 2 shown. Figure 2 The three-branch partial order structure in has 4 levels and 8 branches, each branch corresponding to an object pattern in Table 1.

[0114] S2. Take the first layer of the three-branch partial order structure graph from top to bottom as the target layer.

[0115] After the three-branch partial order structure graph is constructed, the nodes are divided into multiple levels starting from the root node of the three-branch partial order structure graph, and the attribute granule processing operation is performed layer by layer in a progressive manner. The division method of the levels is the same as the division method of step S1-3 and will not be repeated here.

[0116] In some embodiments, before determining the target layer in step S2, the method further includes the following steps:

[0117] S1-01. Determine whether the root node of the three-branch partial order structure graph can be subjected to the particle splitting operation;

[0118] S2-02. When the root node of the three-branch partial order structure graph can be subjected to a particle splitting operation, the root node of the three-branch partial order structure graph is subjected to a particle splitting operation. The particle splitting operation on the root node is applicable to the case where there is more than one core attribute of the root node, that is, the attribute elements appear in a combined form in the attribute element set M of the data to be analyzed. Since the particle splitting, particle reorganization and particle isomorphism operations on the nodes in the embodiment of the present invention start from the first layer of the three-branch partial order structure graph, it is easy to omit the knowledge expansion of the root node. However, the root node itself does not meet the respective conditions of the particle reorganization and particle isomorphism operations. Therefore, in this part of the embodiments, the particle splitting operation on the root node is supplemented to better acquire knowledge from the data to be analyzed. The implementation process of the method of this part of the embodiments is as follows. Figure 3 shown.

[0119] S3. Obtain the attribute particles of the target layer.

[0120] The following is based on Figure 2 The concepts of attribute granules and object models involved in the embodiments of the present invention are explained as follows:

[0121] In the three-branch partial order structure graph, each node forms an attribute granule (AG), which is represented by the triple data AG = {K, O, A}. K represents the core attribute of the node corresponding to the attribute granule. For example, the three nodes AG in the first layer are 11 AG 12 and AG 13 The core attributes of the attribute granules formed are [b], [c] and [bc]. O represents the object mode of the node corresponding to the attribute granule. Since the node merging operation is performed in step S1-5, the attribute granule at the top level may have more than one object mode. For example, the object modes of the attribute granules formed by the three nodes in the first layer are 125, 478 and 36 respectively. This means that object mode 1, object mode 2 and object mode 5 pass through node AG. 11 ; Object mode 4, object mode 7 and object mode 8 pass through node AG 12 ; Object mode 3 and object mode 6 pass through node AG 13 A represents the attribute element set of the line from the corresponding node to the root node of the attribute granule. For example, the attribute element set of the attribute granule formed by the three nodes in the first layer is [ab], [ac] and [abc]. In summary, Figure 2 The attribute particles of the three nodes in the first layer can be expressed as: AG 11 =(b,125,ab),AG 12 =(c,478,ac),AG 13 =(bc,36,abc).

[0122] In the three-branch partial order structure diagram, each branch from top to bottom corresponds to an object pattern (ObjectPattern, OP). The object pattern can also be represented by a two-tuple data OP=(O,A). Where O represents the object set element of the object pattern, for example, the object set element of object pattern 1 (OP1) is 1, and the object set element of object pattern 2 (OP2) is 2. A represents the attribute element that has an object-attribute correspondence relationship with the object pattern, for example, the attribute element of object pattern 1 (OP1) is [abdf], and the attribute element of object pattern 2 (OP2) is [abgh]. In summary, Figure 2 The object pattern of each branch can be described as follows: OP1 = (5, abdf), OP2 = (2, abgh), OP3 = (1, abg), OP4 = (8, acdf), OP5 = (7, acde), OP6 = (4, acghi), OP7 = (6, abcdf), OP8 = (3, abcgh).

[0123] S4. When the attribute particles of the target layer meet the particle splitting conditions, a particle splitting operation is performed on the attribute particles of the target layer to split one attribute particle into multiple new attribute particles.

[0124] In the embodiment of the present invention, for a given attribute particle AG={K,O,A} in a three-branch attribute partial order structure, if the core attribute K={a1,a2,…,a k} contains multiple elements (|K|>1), then theoretically, the attribute particle AG has the ability to split into new particles.

[0125] The specific process of particle splitting operation of the present invention is described below:

[0126] S4-1. Establish the first set AGL, the second set AGR and the third set AGS; in the first set, each target layer attribute particle is an element, ie AGL = {AG}, the second set and the third set are empty sets

[0127] S4-2. Each attribute granule AG in the first set is traversed in sequence, and the first attribute granule AG1 to be visited is used as the target attribute granule. As a more specific embodiment, the attribute granules AG in the first set AGL can be sorted in descending order according to a certain core element arrangement order |AG.K|, and then each attribute granule is visited in sequence according to this order.

[0128] S4-3. Determine the core attribute of the target attribute particle AG1; if the target attribute particle AG1 has more than one core attribute AG1.K, that is, |AG1.K|>1, use the preset particle splitting operator gs to perform a particle splitting operation on the target attribute particle AG1 to generate multiple new attribute particles AGi .

[0129] Set2 K is the power set of K, then the particle splitting operator gs can be described as follows:

[0130]

[0131] As shown in Equation 1, for each new attribute particle AG i , whose core attribute set AG i .K and the concept intension AG i .A are the subsets of the target attribute particle K and A respectively; while its concept extension AGi.O has a certain degree of uncertainty, and the uncertainty part {?} is exactly what the whole knowledge reasoning process needs to fill in.

[0132] S4-4. Add the new attribute particle AG i obtained by the particle splitting operation to the third set AGS, i.e. AGS = gs(AG1) = {AG i}.

[0133] S4-5. Traverse each new attribute particle AG i in the third set AGS in turn, and compare each new attribute particle AG i in the third set AGS with the union set AGL∪AGR of the first set and the second set; if there exists a core attribute AG i .K in the union set AGL∪AGR of the first set and the second set that is exactly the same as the attribute particle of the parent node in the third set, then add the attribute element set of the new attribute particle to the attribute element set of the target attribute particle, i.e. AG1.A = AGi.A∪AG1.A; at the same time, delete the new attribute particle AG i from the third set AGS.

[0134] S4-6. Add the elements AG i in the third set AGS to the second set AGR, and empty the third set AGS;

[0135] S4-7. Take the next attribute particle to be visited as the target attribute particle AG n , and return to the step of judging the core attribute possessed by the target attribute particle until each attribute particle AG in the first set AGL is visited;

[0136] S4-8. Add each new attribute particle AG i in the second set AGR to the three-branch partial order structure diagram in the corresponding level corresponding to the target attribute particle AG n , and connect each new attribute particle AG iThe corresponding target attribute particle AG n The parent node of .

[0137] As a further explanation, according to the principle of granular computing, for the particle splitting operator, Theorem 1 can be obtained: for an attribute particle AG in a given attribute partial order structure, if particle AG has the ability to split into new particles, then through the particle splitting operator gs, all newly generated particles gs(AG) must be located at the same level as AG in the corresponding granular structure; at the same time, gs(AG) and AG have the same parent particle. Therefore, in the embodiment of the present invention, the new attribute particle AG in the second set AGR is i Each is added as a node to the three-branch partial order structure graph and the target attribute particle AG n In the corresponding level, and connect each new attribute particle AG i The corresponding target attribute particle AG n The parent node of .

[0138] S5. When the attribute particles of the target layer meet the particle reorganization conditions, a particle reorganization operation is performed on the attribute particles of the target layer to combine multiple attribute particles into a new attribute particle.

[0139] In the embodiment of the present invention, for two attribute particles AG1 and AG2 in a given attribute partial order structure, if they satisfy the following conditions: a) the two particles are located in the same layer; b) the two particles each correspond to an object mode; and c) the two particles have a common parent particle, then theoretically, particles AG1 and AG2 can be combined to form a new particle. Therefore, the particle recombination conditions of the embodiment of the present invention specifically include:

[0140] The corresponding nodes of each attribute particle AG in the target attribute particle pair have a common parent node;

[0141] The corresponding nodes of each attribute particle AG in the target attribute particle pair are all located at the same level;

[0142] The corresponding nodes of each attribute particle AG in the target attribute particle pair correspond to different object modes;

[0143] When the target attribute particle pair meets the above conditions at the same time, it is considered that the target attribute particle pair meets the particle recombination condition.

[0144] The specific process of the particle recombination operation of the present invention is described below:

[0145] S5-1. Establish the fourth set AGL, the fifth set AGR and the sixth set AGS; the fourth set AGL is composed of each target layer attribute particle as an element, ie AGL = {AG}; the fifth set and the sixth set are empty sets.

[0146] S5-2. Arbitrarily combine each target layer attribute particle AG in the fourth set AGL to form multiple attribute particle pairs [AG m , AG n The embodiment of the present invention provides an explanation of particle reorganization of an attribute particle pair composed of two target layer attribute particles AG. For a target attribute particle pair composed of more than two target layer attribute particles AG, particle reorganization is performed by referring to the process of the attribute particle pair composed of two target layer attribute particles AG.

[0147] S5-3. Traverse multiple attribute particle pairs in sequence [AG m , AG n ], the first pair of attribute particles to be accessed is taken as the target attribute particle pair [AG1, AG2]. As a more specific embodiment, multiple target attribute particle pairs [AG m , AG n ] are sorted in descending order, and then each pair of target attribute particles is visited in turn according to the sorting.

[0148] S5-4. Determine whether the target attribute particle pair [AG1, AG2] meets the particle recombination condition; if the target attribute particle pair [AG1, AG2] meets the particle recombination condition, use the preset particle recombination operator to perform particle recombination operation on the target attribute particle pair to combine into a new attribute particle AG i .

[0149] The particle recombination operator gc can be described as follows:

[0150] gc(AG1,AG2)={AG i |AG i .K=AG1.K∪AG2.K,AG i .A=AG1.A∪AG2.A,AG i .O=?,i=1}(Formula

[0151] 2).

[0152] As shown in Formula 2, the particle recombination operator gc satisfies the commutative law: gc(AG1,AG2)=gc(AG2,AG1); for each new particle AG generated by gc i , its core attribute set AG i .K and concept connotation AG i .A is the union of K and A of the two original particles; and its conceptual extension AG i .O is completely uncertain and needs to be filled in during the process of knowledge reasoning.

[0153] S5-5. Reorganize the particles to obtain the new attribute particles AG iAdded as an element to the sixth set AGS, that is, AGS = gc(AG1,AG2) = {AG i}.

[0154] S5-6. Sequentially traverse each new attribute particle AG in the sixth set AGS i , each new attribute particle AG in the sixth set AGS i Compare in the union of the fourth set and the fifth set AGL∪AGR; if there is a core attribute AG in the union of the fourth set and the fifth set AGL∪AGR i .K and the parent node and the new attribute particle AG in the sixth set i If the attribute particle AG is exactly the same, the new attribute particle AG i Deleted from the sixth collection AGS.

[0155] S5-7. Add the elements in the sixth set AGS to the fifth set AGR, and clear the sixth set AGS.

[0156] S5-8. The next pair of attribute particles to be accessed [AG m+1 AG n+1 ] as the target attribute particle pair, return to the step of judging whether the target attribute particle pair meets the particle recombination condition, until each pair of attribute particles in the fourth set [AG m AG n ] were visited.

[0157] S5-9. Add the new attribute particles AG in the fifth set i Each as a node, added to the three-branch partial order structure graph with the target attribute particle [AG m AG n ] corresponding level, and connect each new attribute particle AG i The corresponding target attribute particle [AG m AG n ]'s parent node.

[0158] As a further explanation, according to the principle of granular computing, for the particle recombination operator, Theorem 2 can be obtained:

[0159] For a target attribute particle pair [AG1, AG2] in a given attribute partial order structure, if they can be combined to form a new particle AG i , then through the particle recombination operator gc, the newly generated particle gc(AG1,AG2) must be located in the same layer as the original particle [AG1,AG2] and have the same parent particle. Therefore, the embodiment of the present invention will be the fifth set of new attribute particles AG i Each as a node, added to the three-branch partial order structure graph with the target attribute particle [AG m AGn ] corresponding level, and connect each new attribute particle AG i The corresponding target attribute particle [AG m AG n ]'s parent node.

[0160] S6. When the attribute granules of the target layer meet the particle isomorphism conditions, perform particle isomorphism operation on the attribute granules of the target layer, isomorphize multiple attribute granules into new attribute granules and generate a new object model.

[0161] In the embodiment of the present invention, for two attribute particles AG1 and AG2 in a given attribute partial order structure, if they satisfy: a) the two particles are located in the same layer; b) Theoretically, the attribute particles AG1 and AG2 can each expand their own sub-particles to form new particles based on the core attributes of the other sub-particles through isomorphic operations. Therefore, the particle isomorphism conditions of the embodiment of the present invention specifically include:

[0162] The corresponding nodes of each attribute particle in the target attribute particle pair are all located at the same level;

[0163] The intersection of the core attributes of each attribute particle in the target attribute particle pair is a non-empty set;

[0164] When the target attribute particle pair satisfies the above conditions at the same time, it is considered that the target attribute particle pair satisfies the particle isomorphism condition.

[0165] The specific process of particle isomorphism operation of the present invention is described below:

[0166] S6-1. Establish the seventh set AGL, the eighth set AGS1 and the ninth set AGS2; in the seventh set, each target layer attribute particle is an element, ie AGL = {AG}; the eighth and ninth sets are empty sets

[0167] S6-2. Arbitrarily combine the attribute particles AG of each target layer in the seventh set AGL to form multiple attribute particle pairs [AG m , AG n The embodiment of the present invention provides a particle isomorphism description of an attribute particle pair composed of two target layer attribute particles AG. For a target attribute particle pair composed of more than two target layer attribute particles AG, particle isomorphism is performed by referring to the process of an attribute particle pair composed of two target layer attribute particles AG.

[0168] S6-3. Traverse multiple attribute particle pairs in sequence [AG m , AG n] as a target attribute granule pair; the target attribute granule pair includes a first target attribute granule and a second target attribute granule. As a more specific example, the plurality of target attribute granule pairs [AG m , AG n ] can be sorted in descending order according to the arrangement order of the certain core element |AG.K|, and each target attribute granule pair can be accessed in turn according to the sorting.

[0169] S6-4. Determine whether the target attribute granule pair satisfies the granule isomorphism condition; if the target attribute granule pair satisfies the granule recombination condition, perform the following steps on the first target attribute granule:

[0170] S6-4-a1. Perform a granule isomorphism operation on the first target attribute granule using the second target attribute granule based on a preset granule recombination operator to obtain a first new attribute granule gi(AG1, AG2).

[0171] S6-4-a2. Add the first new attribute granule as an element to an eighth set, i.e., AGS1 = gi(AG1, AG2) = {AG i}.

[0172] S6-4-a3. Determine whether the core attribute of each first new attribute granule in the eighth set is an empty set, i.e., If so, add a node corresponding to the first new attribute granule to the next layer of the first target attribute granule in the three-branch partial order structure diagram, and process the node corresponding to the first new attribute granule as a child node of the node corresponding to the first target attribute granule; generate a new object pattern OP = (AG i .O, AG i .A) using the node corresponding to the first new attribute granule as an object.

[0173] Perform the following steps on the second target attribute granule:

[0174] S6-4-b1. Perform a granule isomorphism operation on the second target attribute granule using the first target attribute granule based on a preset granule recombination operator to obtain a second new attribute granule gi(AG2, AG1);

[0175] S6-4-b2. Add the second new attribute granule as an element to a ninth set, i.e., AGS2 = gi(AG2, AG1) = {AG i}.

[0176] S6-4-b3. Determine whether the core attribute of each second new attribute granule in the ninth set is an empty set, i.e., If so, then add the second new attribute particle corresponding node to the next layer of the second target attribute particle corresponding level in the three-branch partial order structure diagram, and treat the second new attribute particle corresponding node as a child node of the second target attribute particle corresponding node; treat the second new attribute particle corresponding branch as a new object pattern OP=(AG i .O,AG i .A)Generate.

[0177] Specifically, assuming that {CG1} and {CG2} are child nodes of AG1 and AG2 respectively, the particle isomorphism operator gi can be described as follows:

[0178]

[0179] (Formula 3).

[0180] As shown in formula 3, the particle isomorphism operator gi does not satisfy the commutative law: gi(AG1,AG2)≠gi(AG2,AG1); for each new attribute particle AG generated by gi(AG1,AG2) i , its core attribute set AG i K must be the same as one of the attribute particles of the child node of AG2 and not appear in the original child node of AG1; at the same time, its conceptual connotation AG i .A is AG i The union of .K and AG2.A; and its conceptual extension AG i .O is completely uncertain and needs to be filled in during the process of knowledge reasoning. For each new attribute particle AG generated by gi(AG2,AG1) i , the situation is similar.

[0181] According to the principle of granular computing, for particle isomorphic operators, Theorem 3 can be obtained:

[0182] For two attribute particles AG1 and AG2 in a given attribute partial order structure, if they can be isomorphically formed into new attribute particles, then through the particle isomorphism operator gi, the newly generated attribute particles gi(AG1,AG2) and gi(AG2,AG1) must be located in the next layer of the original particles AG1 and AG2 respectively, and are the sub-particles of AG1 and AG2 respectively.

[0183] In addition, for AG i ∈{gi(AG1,AG2)∪gi(AG2,AG1)}, if Then AG i This is a possible object model and can be described as: OP = (AG i .O,AG i .A).

[0184] S6-5. Empty the eighth set AGS1 and the ninth set AGS2.

[0185] S6-6. The next pair of attribute granules [AG m+1 , AG n+1 ] to be accessed are taken as the target attribute granule pair, and the step of judging whether the target attribute granule pair meets the granule isomorphism condition is returned to until each pair of attribute granules [AG m , AG n ] in the seventh set is accessed.

[0186] S6-7. The new object patterns OP generated by the granule isomorphism operation are summarized and outputted.

[0187] It can be seen that, by the granule passing operation, the new object patterns can be obtained, and the new object patterns are taken as new knowledge to be learned.

[0188] S7. It is judged whether new object patterns are generated in the granule isomorphism operation; when new object patterns are generated, the step of performing the granule recombination operation on the attribute granules of the target layer when the attribute granules of the target layer meet the granule recombination condition is returned to, and the granule recombination operation and the granule isomorphism operation are performed on the attribute granules of the target layer when the attribute granules of the target layer meet the granule recombination condition until no new object pattern is generated.

[0189] When no new object pattern is generated, the next layer is added to the target layer, and the step of obtaining the attribute granules of the target layer is returned to, and the granule splitting operation, the granule recombination operation and the granule isomorphism operation are performed on the attribute granules of the target layer when the attribute granules of the target layer meet the granule splitting condition until all layers in the three-branch partial order structure diagram are processed.

[0190] In the embodiment of the present application, when the processing of the current target layer is completed, the next layer in the three-branch partial order structure diagram is added to the target layer, and new knowledge is learned from the nodes of different layers, different core attributes and different object patterns by the granule splitting operation, the granule recombination operation and the granule isomorphism operation, and small sample knowledge reasoning is performed from top to bottom layer by layer using the granular computing thinking.

[0191] S8. All the newly generated object patterns in the three-branch partial order structure diagram are obtained and summarized and outputted.

[0192] “Shanghan Lun” is a clinical work of traditional Chinese medicine written by Zhang Zhongjing in Han Dynasty, which collects 113 kinds of Chinese medicine prescriptions for treating various exogenous diseases and miscellaneous diseases. Among the 113 prescriptions, “Guizhi Decoction” and its similar prescriptions are very famous and widely used in clinical practice of traditional Chinese medicine. Therefore, as a specific embodiment, Figure 4 , 5The knowledge reasoning based on the method of the embodiment of the present application is given to the Guizhifulang type prescription in the ancient book Shanghanlun. There are about 21 Guizhifulang type prescriptions in Shanghanlun, Figure 4 The three partial order structure diagrams generated based on the traditional Chinese medicine compositions of 9 prescriptions are shown.

[0193] After the particle splitting, particle recombination, particle isomorphism and other operations in the embodiment of the present application, the knowledge shown in Figure 5

[0194] At the top layer, the composite node of “Gancao-Shengjiang” can generate two independent nodes of “Gancao” and “Shengjiang” at the same level through particle splitting, and the two independent nodes of “Gancao” and “Shengjiang” can have similar node links to the composite node through particle isomorphism. At the bottom layer, the composite node of “Fuling-Baizhu” can generate two independent nodes of “Fuling” and “Baizhu” at the same level through particle splitting, and the two independent nodes of “Baizhu” and “Fuzi” can generate the composite node of “Fuzi-Baizhu” at the same level through particle recombination.

[0195] From the top layer to the bottom layer, the continuous iteration of particle splitting, combination and isomorphism can form new knowledge.

[0196] After the particle computing knowledge reasoning based on the partial order structure, Figure 5 not only the incomplete other Guizhifulang type prescription knowledge in Figure 4 Shanghanlun is completed, but also a lot of other knowledge can be reasoned out. In addition, Figure 5 part of the knowledge verified in other ancient books (such as the traditional Chinese medicine composition mode of Baoyuan Dacheng Decoction in Taiping Hui Ming He Ji Lu Fang) is also presented in

[0197] The small sample knowledge reasoning method based on three partial order structures proposed in the first embodiment of the present application can realize data augmentation through deductive reasoning from the perspective of symbolic representation, and obtain new knowledge from the original data through particle splitting, combination and isomorphism. Therefore, compared with the existing small sample reasoning method based on vectors, the present application is more suitable for processing small sample problems with higher requirements for interpretability, and is widely used in the small sample reasoning learning process of diagnosis and treatment in the field of traditional Chinese medicine which requires high interpretability.

[0198] Figure 6 ​It is a structural diagram of the electronic device proposed in the second embodiment of the present invention. The memory of this embodiment stores program instructions for implementing the small sample knowledge reasoning method based on the three-branch partial order structure of any of the above embodiments. The processor is used to execute the program instructions stored in the memory to perform small sample knowledge reasoning based on the three-branch partial order structure. Among them, the processor can also be called a CPU (Central Processing Unit). The processor may be an integrated circuit chip with signal processing capabilities. The processor can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0199] The contents of the method in the first embodiment of the present invention are all applicable to this electronic device embodiment. The functions specifically implemented by this electronic device embodiment are the same as those of the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method.

[0200] Figure 7 This is a structural diagram of the computer-readable storage medium of the third embodiment of the present invention. The computer-readable storage medium of the fourth embodiment of the present invention stores program instructions that can implement the above-mentioned small sample knowledge reasoning method based on the three-branch partial order structure, wherein the program instructions can be stored in the above-mentioned storage medium in the form of a software product, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical disks, or terminal devices such as computers, servers, mobile phones, and tablets.

[0201] The contents of the method in the first embodiment of the present invention are all applicable to this computer-readable storage medium embodiment. The functions specifically implemented by this computer-readable storage medium embodiment are the same as those of the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method.

[0202] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement the small sample knowledge reasoning method based on the three-branch partial order structure provided by the above embodiment.

[0203] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation portal for user to choose authorization or refusal.

[0204] Those skilled in the art can understand that the modules in the device in the embodiments of the present application can be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments of the present application can be combined into one module or unit or component, and furthermore can be divided into multiple sub-modules or sub-units or sub-components. All features disclosed in the specification (including the corresponding claims, abstract and drawings) and all processes or units of any method or device disclosed in this way can be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless explicitly stated otherwise, each feature disclosed in the specification (including the corresponding claims, abstract and drawings) can be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0205] Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0206] It should be noted that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and a portable compact disc read-only memory (CDROM). Furthermore, 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 it in another suitable manner if necessary, and then storing it in a computer memory.

[0207] In addition, each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. In particular, for embodiments such as devices and equipment, since they are basically similar to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The embodiments of the devices and equipment described above are merely schematic, wherein the modules, units, etc. described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed to multiple places, such as nodes in a system network. Specifically, some or all of the modules and units may be selected according to actual needs to achieve the purpose of the above-mentioned embodiment scheme. Those skilled in the art can understand and implement it without paying any creative work.

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

[0209] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0210] In addition, the terms "first" and "second" used in the embodiments of the present invention are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in this embodiment. Therefore, the features defined by the terms "first" and "second" in the embodiments of the present invention can explicitly or implicitly indicate that the embodiment includes at least one of such features. In the description of the present invention, the word "plurality" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.

[0211] In the embodiments of the present invention, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or apparatus. In the absence of further restrictions, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or apparatus comprising the element. In addition, components, features, and elements with the same name in different embodiments of the present invention may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0212] Although embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention, and those of ordinary skill in the art may change, modify, replace, and modify the above embodiments within the scope of the present invention. Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the present invention. This application is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art that are not disclosed in the present invention. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present invention are indicated by the claims below.

Claims

1. A small sample knowledge reasoning method based on a three-branch partial order structure, characterized by: The following steps are involved: Acquire data to be analyzed, and generate a three-branch partial order structure graph according to the data to be analyzed; The first layer of the three-branch partial order structure graph from top to bottom is used as the target layer; Get the attribute particles of the target layer; When the attribute particles of the target layer meet the particle splitting conditions, the particle splitting operation is performed on the attribute particles of the target layer to split one attribute particle into multiple new attribute particles; When the attribute particles of the target layer meet the particle reorganization conditions, the particle reorganization operation is performed on the attribute particles of the target layer to combine multiple attribute particles into a new attribute particle; When the attribute particles of the target layer meet the particle isomorphism conditions, the particle isomorphism operation is performed on the attribute particles of the target layer, multiple attribute particles are isomorphized into new attribute particles and a new object model is generated; Determine whether a new object pattern is generated in the particle isomorphism operation; when a new object pattern is generated, return to the step of performing a particle reorganization operation on the attribute particles of the target layer when the attribute particles of the target layer meet the particle reorganization conditions; when the attribute particles of the target layer meet the particle reorganization conditions, perform a particle reorganization operation and a particle isomorphism operation on the attribute particles of the target layer until no new object pattern is generated; When no new object pattern is generated, the next layer is added to the target layer, and the process returns to the step of obtaining the attribute granules of the target layer. When the attribute granules of the target layer meet the particle splitting conditions, the attribute granules of the target layer are subjected to particle splitting, particle reorganization, and particle isomorphism operations until all levels in the three-branch partial order structure diagram are processed. Obtain all newly generated object patterns from the three partial order structure graphs and summarize and output them; The data to be analyzed is represented by triple data, specifically including an object set, an attribute set, and an object-attribute correspondence relationship; the object set includes multiple object patterns, and the attribute set includes multiple attribute elements; the object-attribute correspondence relationship refers to the correspondence relationship between the object patterns and the attribute elements; Generating a three-branch partial order structure graph according to the data to be analyzed specifically includes the following steps: Expand the attribute element with the most object-attribute correspondences as the root node, and generate a tree diagram with each object pattern corresponding to the root node as a branch. On each branch, the attribute elements corresponding to the object pattern are arranged as nodes from top to bottom in the preset attribute element order; Each group of nodes extending downward from the root node is considered a level; Check the attribute elements of the nodes in each layer. If the same attribute element appears in nodes of multiple layers, merge the node into the node of the layer where the attribute element first appears in the corresponding branch, so that after the merger, the node in the layer of the branch has multiple attribute elements. Merge the nodes with the same extension path in different branches expanded by the root node; In the three-branch partial order structure diagram, each node forms an attribute granule; the attribute granule is represented by triple data, which are the core attribute of the node corresponding to the attribute granule, the attribute element set of the line from the node corresponding to the attribute granule to the root node, and the object mode set corresponding to the node corresponding to the attribute granule; the core attribute refers to one or more attribute elements possessed by the node corresponding to the attribute granule.

2. The small sample knowledge reasoning method based on a three-branch partial order structure according to claim 1 is characterized in that: Before the step of taking the first layer as the target layer, the method further includes the following steps: Determining whether the root node of the three-branch partial order structure graph can perform a particle splitting operation; When the root node of the three-branch partial order structure graph can be subjected to a particle splitting operation, the particle splitting operation is performed on the root node of the three-branch partial order structure graph, the new attribute particle formed by the split is used as a new root node, and the original root node is used as a child node of the new root node.

3. The small sample knowledge reasoning method based on a three-branch partial order structure according to claim 1 is characterized in that: The particle splitting operation is implemented by a preset particle splitting operator, and specifically includes the following steps: Establish a first set, a second set, and a third set; the first set includes each target layer attribute particle as an element, and the second set and the third set are empty sets; Traverse each attribute grain in the first set in turn, and use the first attribute grain visited as the target attribute grain; Determine the core attributes of the target attribute particle; If the target attribute particle has more than one core attribute, a preset particle splitting operator is used to perform a particle splitting operation on the target attribute particle to generate multiple new attribute particles; Adding the new attribute particles obtained by the particle splitting operation as elements to the third set; Traversing each new attribute particle in the third set in turn, and comparing each new attribute particle in the third set with the union of the first set and the second set; If there is an attribute granule in the union of the first set and the second set whose core attributes and parent nodes are exactly the same as those of the new attribute granule in the third set, then the attribute element set of the new attribute granule is added to the attribute element set of the target attribute granule, and the new attribute granule is deleted from the third set; Add the elements in the third set to the second set, and clear the third set; The next attribute granule to be visited is used as the target attribute granule, and the process returns to the step of determining the core attributes of the target attribute granule until every attribute granule in the first set has been visited; Each new attribute particle in the second set is treated as a node and added to the level corresponding to the target attribute particle in the three-branch partial order structure graph, and the parent node of the target attribute particle corresponding to each new attribute particle is connected.

4. The small sample knowledge reasoning method based on a three-branch partial order structure according to claim 1 is characterized in that: The particle reorganization operation is implemented by a preset particle reorganization operator, and specifically includes the following steps: Establishing a fourth set, a fifth set, and a sixth set; wherein the fourth set has each target layer attribute particle as an element, and the fifth set and the sixth set are empty sets; Arbitrarily combining each target layer attribute particle in the fourth set to form multiple attribute particle pairs; Traverse the plurality of attribute particle pairs in sequence, and use the first pair of attribute particles visited as the target attribute particle pair; Determining whether the target attribute particle pair meets the particle recombination condition; If the target attribute particle pair meets the particle recombination condition, a preset particle recombination operator is used to perform a particle recombination operation on the target attribute particle pair to combine them into a new attribute particle; Adding the new attribute particles obtained by the particle reorganization operation as elements to the sixth set; Traversing each new attribute particle in the sixth set in turn, and comparing each new attribute particle in the sixth set with the union of the fourth set and the fifth set; If there is an attribute grain in the union of the fourth set and the fifth set whose core attribute and parent node are exactly the same as the new attribute grain in the sixth set, then delete the new attribute grain from the sixth set; Add the elements in the sixth set to the fifth set, and clear the sixth set; The next pair of attribute grains to be visited is taken as the target attribute grain pair, and the process returns to the step of determining whether the target attribute grain pair meets the grain reorganization condition, until every pair of attribute grains in the fourth set has been visited; Each of the new attribute particles in the fifth set is taken as a node and added to the level corresponding to the target attribute particle in the three-branch partial order structure graph, and the parent node of the target attribute particle corresponding to each new attribute particle is connected.

5. The small sample knowledge reasoning method based on a three-branch partial order structure according to claim 4 is characterized in that: The particle recombination conditions specifically include: The corresponding nodes of each attribute particle in the target attribute particle pair have a common parent node; The corresponding nodes of each attribute particle in the target attribute particle pair are all located at the same level; The corresponding nodes of each attribute particle in the target attribute particle pair correspond to different object modes; When the target attribute particle pair satisfies the above conditions at the same time, it is considered that the target attribute particle pair satisfies the particle recombination condition.

6. The small sample knowledge reasoning method based on a three-branch partial order structure according to claim 1 is characterized in that: The particle isomorphism operation is implemented by a preset particle isomorphism operator, and specifically includes the following steps: Establishing a seventh set, an eighth set, and a ninth set; wherein the seventh set has each target layer attribute particle as an element, and the eighth set and the ninth set are empty sets; Arbitrarily combining each target layer attribute particle in the seventh set to form multiple attribute particle pairs; Traversing the plurality of attribute particle pairs in sequence, and taking the first pair of attribute particles visited as the target attribute particle pair; the target attribute particle pair includes the first target attribute particle and the second target attribute particle; Determining whether the target attribute particle pair satisfies a particle isomorphism condition; If the target attribute particle pair meets the particle recombination condition, the following steps are performed on the first target attribute particle: a particle isomorphism operation is performed on the first target attribute particle using the second target attribute particle using a preset particle recombination operator to obtain a first new attribute particle; the first new attribute particle is added as an element to the eighth set; it is determined whether the core attribute of each first new attribute particle in the eighth set is an empty set; if so, a node corresponding to the first new attribute particle is added to the next layer of the level corresponding to the first target attribute particle in the three-branch partial order structure diagram, and the node corresponding to the first new attribute particle is treated as a child node of the node corresponding to the first target attribute particle; and the branch corresponding to the first new attribute particle is generated as a new object pattern; The following steps are performed on the second target attribute particle: using a preset particle recombination operator to perform a particle isomorphism operation on the first target attribute particle based on the second target attribute particle to obtain a second new attribute particle; adding the second new attribute particle as an element to the ninth set; determining whether the core attribute of each second new attribute particle in the ninth set is an empty set; if so, adding a node corresponding to the second new attribute particle to the next layer of the level corresponding to the second target attribute particle in the three-branch partial order structure diagram, and treating the node corresponding to the second new attribute particle as a child node of the node corresponding to the second target attribute particle; and generating the branch corresponding to the second new attribute particle as a new object pattern; Clearing the eighth set and the ninth set; The next pair of attribute particles to be visited is taken as the target attribute particle pair, and the process returns to the step of determining whether the target attribute particle pair satisfies the particle isomorphism condition, until every pair of attribute particles in the seventh set has been visited; The new object patterns generated by the particle isomorphism operation are summarized and output.

7. The small sample knowledge reasoning method based on a three-branch partial order structure according to claim 6 is characterized in that: The particle isomorphism conditions specifically include: The corresponding nodes of each attribute particle in the target attribute particle pair are all located at the same level; The intersection of the core attributes of each attribute particle in the target attribute particle pair is a non-empty set; When the target attribute particle pair satisfies the above conditions at the same time, it is considered that the target attribute particle pair satisfies the particle isomorphism condition.

8. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement a small sample knowledge reasoning method based on a three-branch partial order structure as described in any one of claims 1-7.

9. A computer-readable storage medium, characterized in that The storage medium stores a program, and the program is executed by a processor to implement a small sample knowledge reasoning method based on a three-branch partial order structure according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Knowledge graph and affair graph fusion method, device and system

    CN114417004A

  • Acupuncture ancient book knowledge integration and application method based on partial sequence structure

    CN114530254A