Target operation execution method, device, electronic device and storage medium
By using knowledge graphs to train decision-making models in the manufacturing field, the problems of low decision-making accuracy and efficiency in the existing technology are solved, real-time and efficient operation guidance in welding quality control is achieved, and production efficiency and product quality are improved.
Patent Information
- Application Number
- CN202311585875.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-11-24
AI Technical Summary
In the existing manufacturing field, knowledge graphs have low decision-making accuracy and low efficiency when guiding production operations. It is difficult to achieve real-time, accurate, and professional decision support. Especially in welding quality control scenarios, it relies on the experience of technical personnel, and the efficiency and cost are high. Affect production efficiency and product quality.
By acquiring the knowledge graph in the target field, training the decision-making model to determine operating conditions, converting and predicting the target operating conditions, real-time and efficient guidance of production operations based on the knowledge graph is achieved, reducing reliance on the experience of technical personnel.
It improves operation quality and production efficiency, realizes real-time, accurate and efficient decision support of knowledge graph in welding quality control scenarios, reduces production costs and increases the probability of successful operation execution.
Smart Images

Figure CN117634908B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device, electronic device and storage medium for executing a target operation. Background Art
[0002] At present, knowledge graphs have been initially applied in intelligent manufacturing fields such as equipment failure operation and maintenance, quality control, and workshop scheduling. They can realize the integration of "human-machine-object" data, provide intelligent decision-making guidance for technicians, and improve production efficiency and ensure product quality to a certain extent. However, due to the strong specialization, complexity and diversity of manufacturing knowledge, the ability of knowledge graphs to extract knowledge is not high, and cognitive learning ability needs to be broken through. Therefore, it is difficult for existing knowledge graphs in the manufacturing field to ensure that the decisions provided are real-time, accurate, and professional.
[0003] In addition, for welding quality control scenarios, technicians currently mainly control them by querying reports or relying on experience, and there has been no relevant research on applying knowledge graphs to this scenario. This method is inefficient, costly, and has extremely high requirements for the professional ability of technicians, which to a certain extent affects the production rhythm and reduces product quality. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a target operation execution method, device, electronic device and storage medium to solve the problems of low decision-making accuracy and low efficiency when using knowledge graphs to guide actual production operations in the prior art.
[0005] According to a first aspect of an embodiment of the present application, a method for executing a target operation is provided, comprising:
[0006] Obtain the knowledge graph of the target domain;
[0007] The knowledge graph of the target domain is used as training data to train a decision model, which is used to determine the operation conditions corresponding to the operation in the target domain based on the knowledge graph;
[0008] Obtain the target operation in the target domain and convert the target operation into an entity corresponding to the knowledge graph;
[0009] Input entities into the decision model and predict the target operating conditions;
[0010] Use the target action condition to perform the target action.
[0011] According to a second aspect of an embodiment of the present application, a target operation execution device is provided, including:
[0012] An acquisition module, configured to acquire a knowledge graph of a target domain;
[0013] A training module is configured to use the knowledge graph of the target domain as training data to train a decision model, where the decision model is used to determine an operation condition corresponding to an operation in the target domain based on the knowledge graph;
[0014] A conversion module is configured to obtain a target operation in a target domain and convert the target operation into an entity corresponding to the knowledge graph;
[0015] A prediction module is configured to input the entity into the decision model and predict the target operation condition;
[0016] The execution module is configured to execute the target operation using the target operation condition.
[0017] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0018] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0019] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application train a decision model based on a knowledge graph of the target domain, and the decision model is used to determine the operating conditions corresponding to the operation in the target domain based on the knowledge graph, and then for the target operation that needs to be performed in the target domain, the target operation is first converted into an entity corresponding to the knowledge graph, and the converted entity is input into the trained decision model, and the template operating conditions corresponding to the target operation are predicted, and finally the target operation is executed using the target operating conditions, thereby improving the operation quality, realizing real-time, accurate and efficient guidance of production operations based on the knowledge graph of the target domain, without relying on the individual experience of technical personnel, increasing the probability of successful operation execution, and improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying any creative work.
[0021] Figure 1 It is a flowchart of a target operation execution method provided in an embodiment of the present application.
[0022] Figure 2It is a flowchart of a method for obtaining a decision model by training a knowledge graph of a target field as training data, as provided in an embodiment of the present application.
[0023] Figure 3 It is a flowchart of a method for collaboratively encoding a first feature vector of an entity pair to obtain a third feature vector provided in an embodiment of the present application.
[0024] Figure 4 It is a flowchart of a method for fusing the third feature vector and the fourth feature vector in a multimodal feature module to obtain a fused feature vector, as provided in an embodiment of the present application.
[0025] Figure 5 It is a flow chart of a method provided in an embodiment of the present application for performing contrastive learning on the fused feature vector in the contrastive learning module to obtain a contrastive learning loss function.
[0026] Figure 6 It is a flowchart of a method provided in an embodiment of the present application for performing cross-modal fusion and communication coding operations on anchor samples, positive samples, and negative samples to obtain coding vectors.
[0027] Figure 7 It is a structural diagram of the decision model provided in the embodiment of the present application.
[0028] Figure 8 It is a comparison chart of the accuracy and loss function curves of the decision model provided in the embodiment of the present application and the KGAT algorithm during the training process.
[0029] Fig. 9 It is a schematic diagram of a target operation execution device provided in an embodiment of the present application.
[0030] Fig.10 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0032] A method and device for executing a target operation according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0033] As mentioned above, due to the high degree of specialization, complexity and diversity of manufacturing knowledge, the knowledge graph's ability to extract knowledge is not high, and cognitive learning capabilities need to be broken through. Therefore, the existing knowledge graphs in the manufacturing field are difficult to ensure that the decisions provided are real-time, accurate and professional.
[0034] For welding quality control scenarios, the welding manufacturing system contains "human-machine-object" ternary data, but the knowledge base and expert system cannot combine expert knowledge with data analysis, and cannot realize human-machine-object data fusion decision-making, so the decision-making efficiency and accuracy are not high. Taking the spot welding nugget quality control in the welding process as an example, the spot welding nugget is an important part of the welding quality. The basis for evaluating the quality of the nugget is the size of the nugget diameter, and the nugget diameter is affected by the robot current, voltage, energy and power. In actual production, when it is determined that the diameter of the spot welding nugget does not meet the requirements, it is necessary to adjust the spot welding conditions, including one or more of the human, machine and object conditions, and re-execute the spot welding operation so that the diameter of the nugget after the operation is completed meets the requirements.
[0035] At present, technicians mainly control it by querying reports or relying on experience, and there has been no relevant research to apply knowledge graphs to this scenario. In other words, when it is determined that the diameter of the spot welding nugget does not meet the requirements, technicians usually adjust the spot welding conditions by querying reports or relying on their own experience and re-execute the spot welding operation. This method is inefficient, costly, and has extremely high requirements on the professional ability of technicians, which to a certain extent affects the production rhythm and reduces product quality.
[0036] In view of this, an embodiment of the present application provides a method for executing a target operation, by training a decision model based on a knowledge graph of the target domain, the decision model is used to determine the operating conditions corresponding to the operation in the target domain based on the knowledge graph, and then for the target operation that needs to be executed in the target domain, the target operation is first converted into an entity corresponding to the knowledge graph, and the converted entity is input into the trained decision model, and the template operating conditions corresponding to the target operation are predicted, and finally the target operation is executed using the target operating conditions, thereby improving the operation quality, realizing real-time, accurate and efficient guidance of production operations based on the knowledge graph of the target domain, without relying on the individual experience of technical personnel, increasing the probability of successful operation execution, and improving production efficiency.
[0037] Figure 1 is a flow chart of a method for executing a target operation provided by an embodiment of the present application. Figure 1 As shown, the target operation execution method includes the following steps:
[0038] In step S101, a knowledge graph of a target domain is obtained.
[0039] In step S102, the knowledge graph of the target domain is used as training data to train a decision model.
[0040] Among them, the decision model is used to determine the operating conditions corresponding to the operation in the target field based on the knowledge graph.
[0041] In step S103, the target operation in the target domain is obtained, and the target operation is converted into an entity corresponding to the knowledge graph.
[0042] In step S104, the entity is input into the decision model and the target operating condition is predicted.
[0043] In step S105 , the target operation is performed using the target operation condition.
[0044] In the embodiment of the present application, the method can be used to select optimized target operation conditions for target operations in a target field, and perform target operations based on the target operation conditions, thereby ensuring the quality of the operation. The target field can be a field where there is a relatively complex relationship between the operation and the operation conditions, such as the field of automobile body-in-white welding quality control. Furthermore, the method can be executed by a terminal with certain data processing and computing capabilities.
[0045] In an embodiment of the present application, a knowledge graph of the target domain may be first obtained. The knowledge graph of the target domain may be constructed using an existing knowledge graph construction method, such as extracting triple information of the target domain using a general extraction model, or extracting triple information of the target domain using a joint extraction model based on global interactive flexible graph convolution, and then storing the triple information in a graph database to obtain a knowledge graph. The knowledge graph of the target domain includes entities corresponding to various operations, operation conditions, and operation results in the target domain, as well as the relationships between the entities.
[0046] Taking the target field of body-in-white welding quality control as an example, for example, one of the operations is a spot welding operation. The operating conditions corresponding to the spot welding operation may include the current, voltage, energy, and power signals of the welding robot, and the operation results may include the diameter of the nugget. In the knowledge graph, the spot welding operation, the current, voltage, energy, power signal of the welding robot, and the diameter of the nugget are all represented by entities, and there are relationships between these entities. However, the strength of the relationship between the entities cannot be identified in the knowledge graph. Therefore, it is necessary to deeply explore the relationship between the entities in the knowledge graph to obtain the optimal operating conditions corresponding to the operation when the operation results meet specific conditions, and then configure the optimal operating conditions to the operation to improve the quality of the operation.
[0047] In an embodiment of the present application, the knowledge graph of the target domain can be used as training data to train a decision model. The decision model can be used to determine the operating conditions corresponding to the operation in the target domain based on the knowledge graph. Furthermore, the decision model can use the knowledge graph of the target domain as a model input, and obtain the relationship between the nodes corresponding to the operation result entity and the nodes corresponding to each operation condition entity in the knowledge graph through collaborative coding mining, and further mine the relationship between different modes of each node through comparative learning and cross-modal fusion communication coding, so as to realize multimodal knowledge fusion, thereby making the mined node relationship more accurate.
[0048] In the embodiment of the present application, after completing the training of the decision model, the target operation in the target field can be obtained, and the target operation can be converted into an entity corresponding to the knowledge graph. Subsequently, the entity of the converted target operation is input into the trained decision model to predict the target operation condition. The target operation condition is the optimal operation condition required for the target operation under the premise of obtaining an operation result that meets the quality requirements.
[0049] In the embodiment of the present application, after the target operating conditions are determined, the target operating conditions can be used to perform the target operation, thereby achieving quality control of the operation. In one example, if the target operation is a spot welding operation, after the current value, voltage value, energy value, and power signal value of the welding robot are determined using the decision model, the group of current values, voltage values, energy values, and power signal values can be sent to the welding robot, so that the welding robot uses the group of current values, voltage values, energy values, and power signal values to perform the spot welding operation, thereby obtaining a weld nugget diameter that meets the requirements.
[0050] According to the technical solution provided in the embodiments of the present application, a decision model is trained based on a knowledge graph of the target domain. The decision model is used to determine the operating conditions corresponding to the operation in the target domain based on the knowledge graph. Then, for the target operation that needs to be performed in the target domain, the target operation is first converted into an entity corresponding to the knowledge graph, and the converted entity is input into the trained decision model to predict the template operating conditions corresponding to the target operation. Finally, the target operation is performed using the target operating conditions, thereby improving the operation quality and achieving real-time, accurate and efficient guidance of production operations based on the knowledge graph of the target domain, without relying on the individual experience of technical personnel, thereby increasing the probability of successful operation execution and improving production efficiency.
[0051] In an embodiment of the present application, the decision model may include an embedded expression layer, a collaborative encoding module, a multimodal feature module and a contrastive learning module.
[0052] Figure 2 1 is a flow chart of a method for obtaining a decision model by training the knowledge graph of the target field as training data provided in an embodiment of the present application. Figure 2As shown, the method comprises the following steps:
[0053] In step S201, entities and relationships in the knowledge graph are obtained.
[0054] In step S202, entities in the knowledge graph are mapped to the word vector space and the signal vector space respectively in the embedding expression layer to obtain a first feature vector set and a second feature vector set.
[0055] Each first feature vector in the first feature vector set corresponds to an entity, and each second feature vector in the second feature vector set corresponds to an entity.
[0056] In step S203, entity pairs with a relationship are obtained, and the first feature vectors of the entity pairs are collaboratively encoded in the collaborative encoding module to obtain a third feature vector, and the second feature vectors of the entity pairs are collaboratively encoded to obtain a fourth feature vector.
[0057] In step S204, the third feature vector and the fourth feature vector are fused in the multimodal feature module to obtain a fused feature vector.
[0058] In step S205, a contrastive learning module performs contrastive learning on the fused feature vector to obtain a contrastive learning loss function.
[0059] In step S206, in response to the contrastive learning loss function not satisfying the preset conditions, the network parameters of the collaborative coding module, the multimodal feature module and the contrastive learning module are updated, and the steps of collaborative coding, feature fusion and contrastive learning of entity pairs are re-executed until the contrastive learning loss function satisfies the preset conditions, thereby obtaining a trained decision model.
[0060] In an embodiment of the present application, when training a decision model, the entities and relationships in the knowledge graph can be first obtained, and then the entities in the knowledge graph can be mapped to the word vector space and the signal vector space respectively in the embedded expression layer to obtain a first feature vector set and a second feature vector set. Among them, each first feature vector in the first feature vector set corresponds to an entity, and each second feature vector in the second feature vector set corresponds to an entity. Among them, since the entities in the knowledge graph may include entities determined by documents, texts, etc., and may also include entities obtained by signal conversion such as current and energy, that is, entities can be expressed in a multimodal form, they can be mapped to different vector spaces, so that different feature mining methods can be used for entities of different modalities to extract more accurate information.
[0061] In an embodiment of the present application, entity pairs with relationships can be further obtained, and then the first feature vector of the entity pair is collaboratively encoded in the collaborative encoding module to obtain a third feature vector, and the second feature vector of the entity pair is collaboratively encoded to obtain a fourth feature vector. Among them, the entity pair with relationships can be a triple in the knowledge graph, and the triple includes a subject entity, an object entity, and the relationship between the subject entity and the object entity. Furthermore, the entity pairs obtained are all entity pairs with relationships in the knowledge graph, and each pair of entity pairs is collaboratively encoded separately.
[0062] In the embodiment of the present application, after the third feature vector and the fourth feature vector are obtained by collaborative coding, since the decision model cannot distinguish between the multimodal features of the word vector space and the signal vector space, it is necessary to fuse the feature information of the word vector space and the feature information of the signal vector space. Specifically, the third feature vector and the fourth feature vector can be fused in the multimodal feature module to obtain a fused feature vector.
[0063] In an embodiment of the present application, the fused feature vector can also be subjected to comparative learning in a comparative learning module to learn the interaction information between different modalities, adaptively treat the features of different modalities differently, and further mine the multimodal features to obtain a comparative learning loss function.
[0064] In an embodiment of the present application, it can be determined whether the contrastive learning loss function meets the preset conditions. If not, the network parameters of the collaborative coding module, the multimodal feature module and the contrastive learning module are updated, and the steps of collaborative coding, feature fusion and contrastive learning of the entity pairs are re-executed until the contrastive learning loss function meets the preset conditions and a trained decision model is obtained.
[0065] Figure 3 is a flow chart of a method for collaboratively encoding a first feature vector of an entity pair to obtain a third feature vector provided by an embodiment of the present application. Figure 3 As shown, the method comprises the following steps:
[0066] In step S301, the collaborative encoding module obtains other related entities of the target entity in the entity pair in the knowledge graph.
[0067] Among them, other associated entities of the target entity in the knowledge graph are entities that have a relationship with the target entity in the knowledge graph.
[0068] In step S302, a first attention weight is calculated based on the first feature vector of the target entity and the first feature vectors of other associated entities.
[0069] In step S303, the first attention weight is regularized to obtain a second attention weight.
[0070] In step S304, a first potential mapping network of the target entity is determined based on the second attention weight and the first feature vectors of other associated entities.
[0071] In step S305, a multi-head attention algorithm is used to update the first potential mapping network of the target entity to obtain a second potential mapping network of the target entity.
[0072] In step S306, the first feature vector of the target entity is updated based on the second latent mapping network to obtain a third feature vector.
[0073] As mentioned above, the acquired entity pair is an entity pair in the triple of the knowledge graph, which includes a subject entity and an object entity. In an embodiment of the present application, one of the entities in the entity pair can be selected as the target entity, and then other related entities of the target entity in the knowledge graph can be obtained in the collaborative coding module. Specifically, all triples of the target entity in the knowledge graph can be obtained, and other entities except the target entity in all triples can be extracted, that is, other related entities of the above-mentioned target entity in the knowledge graph.
[0074] In an embodiment of the present application, a first attention weight can be calculated based on the first eigenvector of the target entity and the first eigenvectors of other related entities. The first attention weight is then regularized to obtain a second attention weight. Based on the second attention weight and the first eigenvectors of other related entities, the first potential mapping network of the target entity can be determined. Further, the first potential mapping network of the target entity is updated using a multi-head attention algorithm to obtain a second potential mapping network of the target entity. The first eigenvector of the target entity is updated based on the second potential mapping network to obtain a third eigenvector.
[0075] In an example, if a and b are two entities of a triple in the knowledge graph, the feature vectors of the entities a and b can be input into the collaborative encoding module to learn the communication information between the entities, so that the entities in the knowledge graph can be better represented in the vector space and the generalization of the model can be enhanced. The collaborative encoding module can use collaborative attention memory, so the first attention weight π(a,b) between entities a and b can be expressed as:
[0076]
[0077] Among them, v a and v b are the first eigenvectors of entities a and b mapped to word vector space or signal vector space respectively, v a The transpose of r represents the relationship between the triples of entities a and b, M ris the linear transformation matrix describing the relationship r.
[0078] Subsequently, the first attention weight can be regularized using the normalized exponential function (Softmax) to obtain the second attention weight
[0079]
[0080] Where b' is the other related entities of entity a in the knowledge graph, S(u) is the set of all entities in the knowledge graph, and i' is the number of entity b' in the entity set. Regularized second attention weight This enables entities in the knowledge graph to adaptively learn the interaction information with other related entities (i.e., entities corresponding to adjacent nodes). By characterizing the historical interaction information of entity a, the first potential mapping network v centered on entity a can be obtained. S(a) :
[0081]
[0082] Among them, v S(a) The essence is the linear combination of all adjacent nodes of entity a, and S(a) is the set of entities corresponding to all adjacent nodes of entity a. In order to learn the propagation information between entities more stably, the multi-head attention algorithm can be used to update the first potential mapping network to obtain the second potential mapping network v centered on entity a. S(a) ':
[0083]
[0084] in, is the h-th regularization coefficient, and H is the number of heads of the multi-head attention algorithm.
[0085] Finally, the first feature vector v of entity a is transformed using the second latent mapping network a By updating, we can get the third eigenvector v of entity a a ':
[0086] v a '=g(v a ,S(a))=σ(W(v a +v S(a) '+k))
[0087] Among them, σ is the activation function, W is the nonlinear transformation weight coefficient, and k is the bias coefficient.
[0088] In the same way, the third eigenvector v of entity b can be calculated: b 'for:
[0089] vb '=g(v b ,S(b))=σ(W(v b +v S(b) '+k))
[0090] Among them, v b is the first eigenvector of entity b, S(b) is the set of entities corresponding to all adjacent nodes of entity b, v S(b) ' is the second potential mapping network centered on entity b.
[0091] In the same way, the fourth eigenvector of the target entity in the entity pair can be calculated. That is, the second eigenvector of the entity pair is collaboratively encoded to obtain the fourth eigenvector, which can be implemented in the following way: in the collaborative encoding module, other related entities of the target entity in the knowledge graph are obtained, and the other related entities of the target entity in the knowledge graph are entities that have a relationship with the target entity in the knowledge graph; the third attention weight is calculated based on the second eigenvector of the target entity and the second eigenvector of other related entities; the third attention weight is regularized to obtain the fourth attention weight; the third potential mapping network of the target entity is determined based on the fourth attention weight and the second eigenvector of other related entities; the third potential mapping network of the target entity is updated using the multi-head attention algorithm to obtain the fourth potential mapping network of the target entity; the second eigenvector of the target entity is updated based on the fourth potential mapping network to obtain the fourth eigenvector.
[0092] That is to say, the calculation method of the fourth eigenvector of entity a and the fourth eigenvector of entity b is the same as the calculation method of the third eigenvector of entity a mentioned above, which will not be repeated here.
[0093] Figure 4 1 is a flow chart of a method for fusing the third feature vector and the fourth feature vector in a multimodal feature module to obtain a fused feature vector provided by an embodiment of the present application. Figure 4 As shown, the method comprises the following steps:
[0094] In step S401, the third eigenvector and the fourth eigenvector are concatenated in the multimodal feature module to obtain a fifth eigenvector.
[0095] In step S402, feature mining is performed on the fifth feature vector to obtain a fused feature vector.
[0096] In the embodiment of the present application, the third feature vector and the fourth feature vector may be first concatenated in the modal feature module to obtain a fifth feature vector, and then feature mining may be further performed on the fifth feature vector to obtain a fused feature vector.
[0097] Figure 5 1 is a flow chart of a method for performing contrastive learning on the fused feature vector in the contrastive learning module to obtain a contrastive learning loss function provided in an embodiment of the present application. Figure 5 As shown, the method comprises the following steps:
[0098] In step S501, anchor samples are obtained from the fused feature vectors through a masking operation.
[0099] In step S502, a positive sample is obtained by self-fusion feature vectors through a Dropout operation.
[0100] In step S503, negative samples are obtained from the self-fused feature vectors through a perturbation Perturb operation.
[0101] In step S504, cross-modal fusion coding operations are performed on the anchor samples, positive samples and negative samples respectively to obtain coding vectors.
[0102] In step S505, a contrastive learning loss function is calculated based on the encoding vector.
[0103] In an embodiment of the present application, a masking layer, a dropout layer, and a perturbation layer can be used to generate anchor samples, positive samples, and negative samples, respectively, and then the interactive information between different modalities can be learned by contrastive learning, and the features of different modalities can be adaptively treated differently, so that the features of different modalities can be reasonably used. In other words, through the Masking operation, the anchor sample can be obtained by self-fusion feature vectors, through the Dropout operation, the positive sample can be obtained by self-fusion feature vectors, and through the Perturb operation, the negative sample can be obtained by self-fusion feature vectors. Then, cross-modal fusion exchange coding operations are performed on the anchor sample, the positive sample, and the negative sample, respectively, to obtain the coding vector. Finally, the contrastive learning loss function is calculated based on the coding vector.
[0104] Among them, the process of generating anchor samples by fusion features through the Masking layer can be described as:
[0105]
[0106] Among them, V1 is the anchor sample, || represents the feature vector connection operation, V t is the first eigenvector that maps the entity in the knowledge graph to the word vector space, ε t V is the first eigenvector that maps the edge (i.e., the relationship between entities) in the knowledge graph to the word vector space. s is the second eigenvector that maps entities in the knowledge graph to the signal vector space, ε sM is the second eigenvector that maps the edge (i.e., the relationship between entities) in the knowledge graph to the signal vector space. M1 is the mask vector for the knowledge graph node. The eigenvector of a certain modality of an entity can be replaced by a randomly initialized embedding value to perform a mask operation. The mask operation can be interpreted as a special case with a Dropout value of 100%, which can enhance the influence of other modal features on the decision effect except the mask modality in model training.
[0107] On the other hand, the Dropout layer can be used to randomly reset the relationship in a triple in the knowledge graph with a specific probability to generate positive samples. The process can be described as:
[0108] V2=(V t ,M2·ε t )||(V s ,M2·ε s )
[0109] Among them, V1 is a positive sample, and M2 is the mask vector of the edge set in the knowledge graph. This process can ensure that the model captures useful features of different modalities during training and improve the accuracy of decision-making.
[0110] The process of generating negative samples using the Perturb layer can be to randomly combine the main entity, the guest entity, and the relationship that were originally not together to form a new triplet through an algorithm, thereby generating a feature vector of the negative sample.
[0111] Assume that the anchor sample generated by the Masking layer is It can be expressed in two modes: Positive samples generated by the Dropout layer It can also be expressed as Negative samples generated by the Perturb layer It can be expressed as Where d represents a function that generates random indices from a sample set, which can ensure that the correlation between different modalities is learned. Then, the contrastive learning loss function (Infonce) is used to maximize the positive The consistency of The consistency of the decision model can be completed. In other words, the contrastive learning loss function needs to meet the preset conditions that the contrastive learning loss function can maximize the consistency between the anchor sample and the positive sample, and maximize the difference between the anchor sample and the negative sample.
[0112] Among them, ensure maximum alignment The consistency of The consistency process can be described as:
[0113]
[0114] Among them, L s It means keeping feature V1 unchanged and enumerating the loss function obtained by feature V2, where k is the negative sample set The function h can calculate the similarity of positive or negative pairs and use it as the evaluation score of the model. The function h can be described as:
[0115]
[0116] Among them, τ is a hyperparameter for adjusting the dynamic range, and f represents the process of mining features V1 and V2.
[0117] In the same way, we can calculate the loss function L obtained by keeping feature V2 unchanged and enumerating feature V1 p Then the loss function L s and L p Add together to get the contrastive learning loss function L:
[0118] L=L s +L p .
[0119] Figure 6 1 is a flow chart of a method for performing cross-modal fusion and communication coding operations on anchor samples, positive samples, and negative samples to obtain coding vectors, provided in an embodiment of the present application. Figure 6 As shown, the method comprises the following steps:
[0120] In step S601, the bidirectional encoder representation method BERT pre-training model is used to perform feature mining on the anchor samples, positive samples and negative samples respectively to obtain their respective mining feature vectors.
[0121] In step S602, the mining feature vectors are processed using a guided communication module to obtain interactive information of mining feature vectors of different modes.
[0122] In step S603, the interactive information is fused using a cross-modal fusion module to obtain a coding vector.
[0123] In the embodiment of the present application, the bidirectional encoder representation method (Bidirectional Encoder Representations from Transformers, BERT) pre-trained model can be used to perform feature mining on anchor samples, positive samples, and negative samples respectively to obtain respective mining feature vectors. Then, the mining feature vectors are processed using the guided communication module to obtain the interactive information of the mining feature vectors of different modes. Finally, the cross-modal fusion module is used to fuse the interactive information to obtain the encoding vector.
[0124] The BERT model can be a three-layer model, which is used to mine high-dimensional features of signal space and text space. Suppose the feature vectors of signal space and text space are X sl and X wd , then the process of mining deep feature information in the signal space and text space through the BERT layer can be expressed as:
[0125]
[0126]
[0127]
[0128]
[0129]
[0130]
[0131] Among them, S pos is the eigenvector position embedding matrix in the signal vector space, T pos is the feature vector position embedding matrix in the word vector space, represents the hidden feature state output by the signal vector space of the lth BERT layer, represents the characteristic state of the signal vector space output by the lth BERT layer, Represents the hidden feature state output by the word vector space of the lth BERT layer, represents the feature state of the word vector space output after the lth BERT layer, LN represents the regularization operation, FFN represents the forward feedback operation, and MHA represents the multi-head attention mechanism. The calculation process of the multi-head attention mechanism can be expressed as:
[0132] MHA(x)=[head1;...;head h ]W o
[0133]
[0134]
[0135] Where d represents the dimension of hidden embedding, q, k and v are auxiliary vectors in the multi-head attention mechanism, and W o , and is the transformation matrix.
[0136] Furthermore, the process of the forward feedback operation FFN can be described as follows:
[0137] FFN(x)=Relu(xW1+b1)W2+b2
[0138] Among them, W1 and W2 are linear transformation matrices, b1 and b2 are bias parameters. The feature vector obtained after mining through the three layers of BERT layer and The process of importing the guided communication module and capturing the interactive information between different modal features can be expressed as:
[0139]
[0140]
[0141] Among them, Attn is the guiding exchange function, and is the transformation matrix.
[0142] Next, we will guide the interaction features obtained by the communication module and Import the cross-modal fusion module for feature fusion. The process can be expressed as:
[0143]
[0144]
[0145] in, Cross is the cross loss, attention() is the attention function, and is the transformation matrix.
[0146] Figure 7 Schematic diagram of the decision model provided in the embodiment of the present application. Figure 7As shown in the figure, the decision model includes an embedding expression Embedding layer, a collaborative encoding module, a multimodal feature module and a contrastive learning module, wherein the contrastive learning module includes a Masking layer, a Dropout layer, a Perturb layer, a cross-modal fusion communication encoding module and a decision module. The knowledge graph of the target domain is mapped to the word vector space and the signal vector space through the Embedding layer, and then collaboratively encoded in the collaborative encoding module. The collaborative encoding results are fused in the multimodal feature module to obtain a fusion vector. The Masking layer generates anchor samples based on the fusion vector, the Dropout layer generates positive samples based on the fusion vector, and the Perturb layer generates negative samples based on the fusion vector. After further feature mining of each sample in the cross-modal fusion communication encoding module, the Infonce loss function is calculated in the decision module, and then the loss function that can maximize the consistency between the anchor sample and the positive sample and the difference between the anchor sample and the negative sample is determined as the decision result.
[0147] The problem solved by the decision model provided in the embodiment of the present application is similar to the TOP-K recommendation task, which is to recommend the top K items that the user is most likely to buy based on the set of all items clicked by the user in one day. Since the technical solution provided in the embodiment of the present application only requires the first-ranked recommendation result, K should be set to 1. In order to evaluate the accuracy and reliability of the decision model, the effectiveness of the model proposed in this application will be verified by comparing the four indicators of Precision@K (precision), Recall@K (recall rate), F1@K (F1 score) and NDCG@K (normalized discounted cumulative gain) of other models under the same K value.
[0148] In order to verify that the decision model provided in the embodiment of the present application has a good effect under most production line production conditions, the K value is set to 1, and the decision model provided in the embodiment of the present application is compared with the above four indicators of the collaborative filtering recommendation algorithm BPRMF, NFM deep recommendation model, knowledge graph recommendation model KGAT, graph convolutional neural network recommendation model KGCN and knowledge graph recommendation model CKE. The experiment is repeated 4 times, the experimental results are recorded, and the average value is statistically calculated to eliminate random errors.
[0149] As shown in Table 1, the traditional collaborative filtering-based recommendation algorithm BPRMF outperforms the two knowledge graph-based recommendation algorithms KGAT and KGCN in terms of precision, recall, F1 score, and normalized cumulative loss gain. This shows that not all algorithms based on knowledge graphs are better than those not based on knowledge graphs. This also shows that simply incorporating knowledge graphs into intelligent decision-making algorithms does not guarantee improved decision-making performance, because this approach makes the algorithm fully trust the information in the knowledge graph, and does not reasonably filter information for decision-making tasks. In response to this problem, the decision model provided in the embodiment of the present application considers the importance of different modes and different nodes through comparative learning, and effectively screens information useful for decision results in the knowledge graph. At the same time, the decision model provided in the embodiment of the present application also uses the cross-modal fusion module to integrate the characteristics of human-machine-object knowledge, alleviate the noise impact between different modes, and enhance the generalization of the model. Therefore, the decision model provided in the embodiment of the present application is improved by 9.2%, 4.1%, 6.6% and 3.1% respectively in terms of precision, recall, F1 score, and normalized cumulative loss gain compared to the best results of the other five models, which proves that the model has excellent performance. In addition, the standard deviation of the decision model provided in the embodiment of the present application on the four indicators is small, which also proves that the model has good stability.
[0150] Table 1 Experimental results of TOP-1
[0151]
[0152] like Figure 8 As shown, the present application compares the accuracy and loss function curves of the decision model provided by the embodiment of the present application and the KGAT algorithm during the training process, wherein the upper left is the accuracy curve of the decision model provided by the embodiment of the present application, the upper right is the loss function curve of the decision model provided by the embodiment of the present application, the lower left is the accuracy curve of the KGAT algorithm, and the lower right is the loss function curve of the KGAT algorithm.
[0153] The experimental results show that the loss function convergence speed of the decision model algorithm provided by the embodiment of the present application is significantly faster than that of the KGAT algorithm. After 200 iterations, the loss function of the decision model algorithm provided by the embodiment of the present application has dropped to about 0.7, and the accuracy fluctuates around 90%, while the loss function of the KGAT algorithm is still above 1, and the accuracy is only about 80%, and it is unstable and fluctuates greatly, which shows that the decision model algorithm provided by the embodiment of the present application has better fitting ability. This is because the model proposed in this application enhances the interaction ability between signal nodes and cause and solution nodes in the knowledge graph through a collaborative coding module, considers the importance of different nodes through comparative learning, enhances the generalization of the model through cross-modal fusion communication encoders, and realizes multimodal knowledge fusion, thereby improving decision-making accuracy. According to the smaller the loss function, the less information lost by the model, it can be seen that the model proposed in this application has a stronger learning ability.
[0154] In order to further verify the role of each module of this model, this application conducted an ablation experiment, and the results are shown in Table 2. First, this application replaced the cross-modal fusion communication encoder with a Transformer structure, and found that the four indicators all decreased significantly, which shows that the cross-modal fusion communication encoder can reduce the heterogeneity of different modal information, enhance the communication of different modal information, eliminate redundant information between different modalities, and fuse them, thereby improving the accuracy of decision-making. Then this application removed the collaborative coding module for experiments and found that all four indicators decreased, which shows that the collaborative coding module can enhance the information exchange between different entities in the knowledge graph, while ignoring the errors caused by basically ineffective nodes, which is conducive to fully exploring the relationship between decision results and knowledge graphs. Finally, this application removed the Masking, Perturb, and Dropout layers for experiments, and found that the four indicators all decreased, and the four indicators of the model decreased the most after the Perturb layer was removed, which shows that contrastive learning can consider the importance of different modalities and different nodes, effectively filter out information useful for decision results in the knowledge graph, and improve model performance. At the same time, it also shows that the negative samples generated by the Perturb layer can better reflect the relationship between different modalities and have the greatest impact on the effect of contrastive learning.
[0155] Table 2.3 Ablation experiments of various parts of the KGCL model
[0156]
[0157]
[0158] This application first analyzes the existing problems in welding quality control, and then constructs an intelligent decision-making model for body-in-white welding quality problems based on knowledge fusion comparative learning. Its structure mainly includes three parts: collaborative coding module, comparative learning, and cross-modal fusion AC encoder. Then analyze the reasons and functions of each module design, analyze the information propagation process in the model, and finally use the welding workshop molten core quality control case experiment to show that the method proposed in this chapter has reached 90.14% in the accuracy of welding quality control, which has a great advantage over existing models.
[0159] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0160] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0161] Fig. 9 Schematic diagram of a target operation execution device provided in an embodiment of the present application. Fig. 9 As shown, the target operation execution device includes:
[0162] The acquisition module 901 is configured to acquire the knowledge graph of the target domain.
[0163] The training module 902 is configured to use the knowledge graph of the target domain as training data to train a decision model, and the decision model is used to determine the operating conditions corresponding to the operation in the target domain based on the knowledge graph.
[0164] The conversion module 903 is configured to obtain the target operation in the target domain and convert the target operation into an entity corresponding to the knowledge graph.
[0165] The prediction module 904 is configured to input the entity into the decision model and predict the target operating condition.
[0166] The execution module 905 is configured to execute the target operation using the target operation condition.
[0167] According to the technical solution provided in the embodiments of the present application, a decision model is trained based on a knowledge graph of the target domain. The decision model is used to determine the operating conditions corresponding to the operation in the target domain based on the knowledge graph. Then, for the target operation that needs to be performed in the target domain, the target operation is first converted into an entity corresponding to the knowledge graph, and the converted entity is input into the trained decision model to predict the template operating conditions corresponding to the target operation. Finally, the target operation is performed using the target operating conditions, thereby improving the operation quality and achieving real-time, accurate and efficient guidance of production operations based on the knowledge graph of the target domain, without relying on the individual experience of technical personnel, thereby increasing the probability of successful operation execution and improving production efficiency.
[0168] In an embodiment of the present application, the decision model includes an embedding expression layer, a collaborative encoding module, a multimodal feature module, and a contrastive learning module; the knowledge graph of the target domain is used as training data to train a decision model, including: obtaining entities and relationships in the knowledge graph; mapping the entities in the knowledge graph to the word vector space and the signal vector space in the embedding expression layer, respectively, to obtain a first feature vector set and a second feature vector set, each first feature vector in the first feature vector set corresponds to an entity, and each second feature vector in the second feature vector set corresponds to an entity; obtaining entity pairs with relationships, and mapping the first feature vector of the entity pair in the collaborative encoding module to the first feature vector of the entity pair; Perform collaborative encoding to obtain a third feature vector, and perform collaborative encoding on the second feature vector of the entity pair to obtain a fourth feature vector; fuse the third feature vector and the fourth feature vector in the multimodal feature module to obtain a fused feature vector; perform contrastive learning on the fused feature vector in the contrastive learning module to obtain a contrastive learning loss function; in response to the contrastive learning loss function not satisfying a preset condition, update the network parameters of the collaborative encoding module, the multimodal feature module, and the contrastive learning module, and re-execute the steps of collaborative encoding, feature fusion, and contrastive learning of the entity pair until the contrastive learning loss function satisfies the preset condition to obtain a trained decision model.
[0169] In an embodiment of the present application, the first feature vector of the entity pair is collaboratively encoded to obtain a third feature vector, including: obtaining other related entities of the target entity in the knowledge graph of the entity pair in the collaborative encoding module, and the other related entities of the target entity in the knowledge graph are entities that have a relationship with the target entity in the knowledge graph; calculating a first attention weight based on the first feature vector of the target entity and the first feature vectors of other related entities; regularizing the first attention weight to obtain a second attention weight; determining a first potential mapping network of the target entity based on the second attention weight and the first feature vectors of other related entities; using a multi-head attention algorithm to update the first potential mapping network of the target entity to obtain a second potential mapping network of the target entity; and updating the first feature vector of the target entity based on the second potential mapping network to obtain a third feature vector.
[0170] In an embodiment of the present application, the second eigenvector of the entity pair is collaboratively encoded to obtain a fourth eigenvector, including: obtaining other related entities of the target entity in the knowledge graph of the entity pair in the collaborative encoding module, and the other related entities of the target entity in the knowledge graph are entities that have a relationship with the target entity in the knowledge graph; calculating a third attention weight based on the second eigenvector of the target entity and the second eigenvectors of other related entities; regularizing the third attention weight to obtain a fourth attention weight; determining a third potential mapping network of the target entity based on the fourth attention weight and the second eigenvectors of other related entities; using a multi-head attention algorithm to update the third potential mapping network of the target entity to obtain a fourth potential mapping network of the target entity; and updating the second eigenvector of the target entity based on the fourth potential mapping network to obtain a fourth eigenvector.
[0171] In an embodiment of the present application, the third feature vector and the fourth feature vector are fused in the multimodal feature module to obtain a fused feature vector, including: splicing the third feature vector and the fourth feature vector in the multimodal feature module to obtain a fifth feature vector; and performing feature mining on the fifth feature vector to obtain a fused feature vector.
[0172] In an embodiment of the present application, a contrastive learning module performs contrastive learning on the fused feature vector to obtain a contrastive learning loss function, including: obtaining an anchor sample from the fused feature vector through a masking operation; obtaining a positive sample from the fused feature vector through a dropout operation; obtaining a negative sample from the fused feature vector through a perturbation operation; performing cross-modal fusion and exchange coding operations on the anchor sample, the positive sample, and the negative sample to obtain a coding vector; and calculating the contrastive learning loss function based on the coding vector.
[0173] In an embodiment of the present application, cross-modal fusion communication coding operations are performed on anchor samples, positive samples and negative samples respectively to obtain coding vectors, including: using a bidirectional encoder representation method BERT pre-training model to perform feature mining on anchor samples, positive samples and negative samples respectively to obtain respective mining feature vectors; using a guided communication module to process the mining feature vectors to obtain interactive information of mining feature vectors of different modalities; using a cross-modal fusion module to fuse the interactive information to obtain a coding vector.
[0174] In an embodiment of the present application, the contrastive learning loss function satisfies preset conditions, including: the contrastive learning loss function satisfies the maximization of the consistency between the anchor sample and the positive sample, and the maximization of the difference between the anchor sample and the negative sample.
[0175] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0176] Fig.10 Schematic diagram of an electronic device provided in an embodiment of the present application. Fig.10 As shown, the electronic device 10 of this embodiment includes: a processor 1001, a memory 1002, and a computer program 1003 stored in the memory 1002 and executable on the processor 1001. When the processor 1001 executes the computer program 1003, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 1001 executes the computer program 1003, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0177] The electronic device 10 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 10 may include, but is not limited to, a processor 1001 and a memory 1002. Those skilled in the art will appreciate that Fig.10 The electronic device 10 is merely an example and does not limit the electronic device 10 . The electronic device 10 may include more or fewer components than shown in the figure, or different components.
[0178] Processor 1001 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0179] The memory 1002 may be an internal storage unit of the electronic device 10, for example, a hard disk or memory of the electronic device 10. The memory 1002 may also be an external storage device of the electronic device 10, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the electronic device 10. The memory 1002 may also include both an internal storage unit of the electronic device 10 and an external storage device. The memory 1002 is used to store computer programs and other programs and data required by the electronic device.
[0180] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0181] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0182] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for executing a target operation, characterized in that: include: Obtain the knowledge graph of the target domain; The knowledge graph of the target domain is used as training data to train a decision model, the decision model uses the knowledge graph of the target domain as model input, obtains the relationship between the nodes corresponding to the operation result entity and the nodes corresponding to each operation condition entity in the knowledge graph through collaborative coding mining, and mines the relationship between different modes of each node through comparative learning and cross-modal fusion communication, so that the decision model is used to determine the operation conditions corresponding to the operation in the target domain based on the knowledge graph; Obtaining a target operation in the target domain, and converting the target operation into an entity corresponding to the knowledge graph; Inputting the entity into the decision model to predict the target operating condition; The target operation is performed using the target operation condition.
2. The method according to claim 1, characterized in that The decision model includes an embedding expression layer, a collaborative encoding module, a multimodal feature module and a contrastive learning module; The decision model is obtained by training the knowledge graph of the target domain as training data, including: Obtain entities and relationships in the knowledge graph; In the embedding expression layer, the entities in the knowledge graph are mapped to the word vector space and the signal vector space respectively to obtain a first feature vector set and a second feature vector set, wherein each first feature vector in the first feature vector set corresponds to an entity, and each second feature vector in the second feature vector set corresponds to an entity; Acquire a pair of entities having a relationship, collaboratively encode a first feature vector of the entity pair in the collaborative encoding module to obtain a third feature vector, and collaboratively encode a second feature vector of the entity pair to obtain a fourth feature vector; The third feature vector and the fourth feature vector are fused in the multimodal feature module to obtain a fused feature vector; Performing contrastive learning on the fused feature vector in the contrastive learning module to obtain a contrastive learning loss function; In response to the contrastive learning loss function not satisfying the preset conditions, the network parameters of the collaborative encoding module, the multimodal feature module and the contrastive learning module are updated, and the steps of collaborative encoding, feature fusion and contrastive learning of the entity pairs are re-executed until the contrastive learning loss function satisfies the preset conditions, thereby obtaining a trained decision model.
3. The method according to claim 2, characterized in that The collaboratively encoding the first feature vector of the entity pair to obtain a third feature vector includes: In the collaborative encoding module, other associated entities of the target entity in the entity pair in the knowledge graph are obtained, where the other associated entities of the target entity in the knowledge graph are entities that have a relationship with the target entity in the knowledge graph; A first attention weight is calculated based on the first feature vector of the target entity and the first feature vectors of other associated entities; Regularizing the first attention weight to obtain a second attention weight; Determine a first potential mapping network of the target entity based on the second attention weight and first feature vectors of other associated entities; Using a multi-head attention algorithm to update the first potential mapping network of the target entity to obtain a second potential mapping network of the target entity; The first feature vector of the target entity is updated based on the second potential mapping network to obtain the third feature vector.
4. The method according to claim 2, characterized in that: The collaborative encoding of the second feature vector of the entity pair to obtain a fourth feature vector includes: In the collaborative encoding module, other associated entities of the target entity in the entity pair in the knowledge graph are obtained, where the other associated entities of the target entity in the knowledge graph are entities that have a relationship with the target entity in the knowledge graph; A third attention weight is calculated based on the second feature vector of the target entity and the second feature vectors of other associated entities; Regularizing the third attention weight to obtain a fourth attention weight; Determine a third potential mapping network of the target entity based on the fourth attention weight and second feature vectors of other associated entities; Using a multi-head attention algorithm to update the third potential mapping network of the target entity to obtain a fourth potential mapping network of the target entity; The second feature vector of the target entity is updated based on the fourth potential mapping network to obtain the fourth feature vector.
5. The method according to claim 2, characterized in that: The step of fusing the third feature vector and the fourth feature vector in the multimodal feature module to obtain a fused feature vector includes: In the multimodal feature module, the third feature vector and the fourth feature vector are concatenated to obtain a fifth feature vector; Feature mining is performed on the fifth feature vector to obtain the fused feature vector.
6. The method according to claim 2, characterized in that The contrastive learning module performs contrastive learning on the fused feature vector to obtain a contrastive learning loss function, including: Obtaining anchor samples from the fused feature vector through a masking operation; By discarding the Dropout operation, a positive sample is obtained from the fused feature vector; Obtaining negative samples from the fused feature vector by performing a perturbation operation; Performing cross-modal fusion communication encoding operations on the anchor samples, positive samples, and negative samples respectively to obtain encoding vectors; A contrastive learning loss function is calculated based on the encoding vector.
7. The method according to claim 6, characterized in that The cross-modal fusion communication encoding operation is performed on the anchor sample, the positive sample and the negative sample to obtain the encoding vector, including: Using a bidirectional encoder representation method BERT pre-trained model to perform feature mining on the anchor samples, positive samples, and negative samples, respectively, to obtain respective mining feature vectors; Processing the mined feature vectors using a guided communication module to obtain interactive information of mined feature vectors of different modes; The interactive information is fused using a cross-modal fusion module to obtain the encoding vector.
8. The method according to any one of claims 6 or 7, characterized in that: The contrastive learning loss function satisfies preset conditions, including: The contrastive learning loss function satisfies the maximization of the consistency between the anchor sample and the positive sample, and the maximization of the difference between the anchor sample and the negative sample.
9. A target operation execution device, characterized in that: include: An acquisition module, configured to acquire a knowledge graph of a target domain; A training module is configured to use the knowledge graph of the target domain as training data to train a decision model, wherein the decision model uses the knowledge graph of the target domain as model input, obtains the relationship between the nodes corresponding to the operation result entity and the nodes corresponding to each operation condition entity in the knowledge graph through collaborative coding mining, and mines the relationship between different modes of each node through comparative learning and cross-modal fusion communication, so that the decision model is used to determine the operation condition corresponding to the operation in the target domain based on the knowledge graph; A conversion module is configured to obtain a target operation in the target domain and convert the target operation into an entity corresponding to the knowledge graph; A prediction module, configured to input the entity into the decision model and predict a target operating condition; The execution module is configured to execute the target operation using the target operation condition.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
