A multimodal event representation learning method based on event ontology
By constructing an event ontology model and a graph convolutional neural network, the problem of lack of time and place elements in event representation in the existing technology is solved, the semantics of event embedding representation is enhanced, the distance between similar events is ensured, and the relationship between events is solved. embodied problems.
Patent Information
- Application Number
- CN202111541301.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-12-16
AI Technical Summary
Existing event representation learning methods ignore factors such as time and location of events, resulting in weak semantics of event embedded representations and failure to effectively reflect the relationship and sequence between events.
A multi-modal event representation learning method based on event ontology is adopted. By constructing an event ontology model, the event information is preprocessed and multi-modal data is embedded to represent, and combined with the graph convolutional neural network to learn the graph structure of events and event relationships to ensure Event embedding representation considers all elements and enhances semantics.
The semantics of event embedding representation are improved. The semantic distance between similar events is close and the distance between unrelated events is far. It solves the limitations of single-modal information and the problem that the relationship between events is not reflected.
Smart Images

Figure CN114201965B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of representation learning of multimodal data, and in particular to a multimodal event representation learning method based on event ontology. Background Art
[0002] With the rapid development and popularization of the Internet and artificial intelligence, information on the Internet is showing a diversified trend and is no longer just a single modality. How to make full use of multimodal information to achieve more intelligent analysis is an urgent problem that artificial intelligence needs to solve. In the traditional field of natural language processing, a series of methods such as representation learning are used to convert text data into machine-recognizable and semantically embedded representations. At present, most of this technology remains at the level of words or sentences and only has one modality, which is pure text, and has limitations.
[0003] Most of the existing event representation learning methods are based on event triples (subject, predicate, object), and some methods add multimodal data on this basis so that there are differences in the embedded representations learned for events with the same words but different meanings. However, these methods ignore factors such as the time and place of the events, and the independence of events. They fail to reflect the temporal sequence of events and the possible relationship between events, making the semantics of the obtained event embedding representation weaker. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention provides a multimodal event representation learning method based on event ontology, which provides an embedded representation method for lower-level applications such as event reasoning and decision-making, and can solve the problems of insufficient expression ability of single-modal events and lack of semantic information between events. At the same time, it can ensure that the closer the semantic distance between similar or related events, the farther the semantic distance between unrelated or dissimilar events.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0006] The present invention discloses a multimodal event representation learning method based on event ontology, which is characterized by comprising:
[0007] Construct the event ontology of related fields and form the event ontology model;
[0008] Preprocessing of the initial multimodal event information data, merging different events into different event classes according to the language representation defined in the event ontology;
[0009] Adopt ontology model and multimodal pre-training model to embed multimodal event data;
[0010] A graph convolutional neural network model is used to learn the graph structure composed of events and events, as well as events and relationships in the ontology.
[0011] Preferably, the construction of the event ontology in the relevant field and the formation of the event ontology model specifically include:
[0012] (1) Construction of text corpus in related fields;
[0013] (2) extracting the events and event elements from the domain text content in the multimodal event information to be represented by learning the corpus;
[0014] (3) Event classification and extraction of non-classification relations;
[0015] (4) Based on the inductively obtained event classes, event class elements, and event class relationships, a formalized language description is obtained;
[0016] (5) The word vector pre-training model is used to embed the obtained language description, and the word embeddings of all language expressions are weighted summed to form an event ontology model.
[0017] Preferably, the event classes, event class elements, and event class relationships obtained by induction are abstracted to obtain their formalized language descriptions, which specifically meet the following definitions:
[0018] EO∶:=<ECs,Rs,Rules>
[0019] Rs∶:={R is_a ,R follow ,R choice ,R cause ,R compose ,R concur}
[0020] ECs is the set of all event classes, Rs includes the classification and non-classification relationships between event classes, and Rules represents the rules for event reasoning.
[0021] Preferably, the word vector pre-training model is used to embed the obtained language description, and the word embeddings of all language expressions are weighted summed to form an event ontology model, which specifically satisfies the following formula:
[0022]
[0023] Among them, t represents the parameter vector of the event, v represents the embedding generated by the word vector pre-training model, and w i Represents the weight corresponding to the i-th event element.
[0024] 5. According to claim 1, a multimodal event representation learning method based on event ontology is characterized in that: the preprocessing of the initial multimodal event information data, according to the language expression defined in the event ontology, different events are merged into different event classes, specifically including:
[0025] Use target detection algorithm to extract the object area and feature representation of the area in the image information;
[0026] The core keywords of an event in the text information are extracted and the cosine similarity is calculated and classified according to the language expression defined in the ontology.
[0027] Preferably, the extraction of core keywords of an event in the text information and calculation of cosine similarity and classification based on the language expression defined in the ontology specifically satisfies the following formula:
[0028]
[0029] Among them, e c represents the n-dimensional embedding representation of a certain event class, α represents the embedding representation obtained by averaging the event text keywords, Sim(e c ,α) represents the similarity between the event and the event class.
[0030] Preferably, the embedding representation of multimodal event data using the ontology model and the multimodal pre-training model specifically includes:
[0031] Collect a large number of event text-image data pairs;
[0032] According to the model framework, these text-image pairs are learned to obtain their semantic space;
[0033] Take the text-image data to be represented as the input of the model and obtain its embedded representation;
[0034] The embedding representation corresponding to the event class to which it belongs is concatenated and fused with the output of the model.
[0035] Preferably, learning these text-image pairs according to the framework of the model to obtain their semantic space specifically includes:
[0036] The pre-training task of predicting the masked area based on the unmasked area uses the KL distance minimization method to measure the relationship between the predicted distribution and the true distribution;
[0037] A binary classification pre-training task to determine whether event images and event texts match each other. The cosine distance is calculated using dot product, and a linear layer is learned to determine whether the two are ultimately matched.
[0038] Preferably, the graph neural network model is used to learn the graph structure composed of events and events and events and relationships in the ontology, specifically including:
[0039] Using the event embedding representation obtained according to the method of claim 6 as the initial embedding of the graph neural network;
[0040] Construct an event graph structure based on the relationship between events;
[0041] Use graph neural network model to learn the features of neighboring nodes associated with the current node;
[0042] The embedding representation is learned based on the set event prediction and event word prediction tasks.
[0043] Preferably, the embedding representation is learned according to the set event prediction task, specifically satisfying the following formula:
[0044]
[0045] Among them, t ei Embedding representations for multimodal events, Indicates and t ei Belong to the same event class or similar events, Indicates and t ei Dissimilar events;
[0046] The embedding representation is learned according to the set event word prediction task, specifically satisfying the following formula:
[0047]
[0048] Where N is the number of events, n ei The number of words in the text data representing event ei, w ij Represents the jth word to be predicted in event ei.
[0049] The present invention has the following beneficial effects:
[0050] 1. The embedded representation of an event is the result of considering all event elements (object, action, time, environment, state, assertion).
[0051] 2. The present invention proposes to classify events by constructing an event ontology model and introduce multimodal information to ensure that the semantic distance between similar or related events is closer, and the semantic distance between unrelated or dissimilar events is farther, so as to solve the limitations of single modal information.
[0052] 3. The present invention proposes to use graph neural networks to learn the situational model and event relations of event ontology to enhance the semantics of embedded representation. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 A flow chart of a multimodal event representation learning method based on event ontology is proposed for the present invention;
[0054] Figure 2 This is the event ontology structure diagram described in the present invention. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] Unless otherwise specified, the technical means used in the embodiments are conventional means well known to those skilled in the art.
[0057] refer to Figure 1-Figure 2 As shown, the present invention discloses a multimodal event representation learning method based on event ontology, comprising:
[0058] (1) Constructing the event ontology of related fields and forming an event ontology model;
[0059] (2) Preprocessing of the initial multimodal event information data, merging different events into different event classes according to the language representation defined in the event ontology;
[0060] (3) Using ontology models and multimodal pre-trained models such as VilBERT to embed multimodal event data;
[0061] (4) Use graph convolutional neural network models such as GCN and GAT to learn the graph structure composed of events and events, and events and relationships in the ontology.
[0062] Specifically: Step (1) constructs the event ontology of the relevant field and forms an event ontology model, specifically including:
[0063] 1.1 Construction of text corpus in related fields;
[0064] 1.2 Extract the events and event elements from the domain text content in the multimodal event information to be represented by learning the corpus;
[0065] 1.3 Event classification and extraction of non-classification relations;
[0066] 1.4 Based on the inductively obtained event classes, event class elements, and event class relationships, a formalized language description is obtained;
[0067] 1.5 Use the word vector pre-training model to embed the obtained language description, and perform weighted summation on the word embeddings of all language expressions to form an event ontology model.
[0068] Step 1.1: Construction of a text corpus in the relevant field, including the annotation of event elements (object, time, place); annotation of the relationship between events.
[0069] Step 1.3: Event class classification and non-classification relationship extraction, specifically including formulating event relationship extraction rules based on the definition of classification and non-classification relationships between event classes.
[0070] In step 1.4, the event classes, event class elements, and event class relationships obtained by induction are abstracted to obtain their formal language descriptions, which specifically meet the following definitions:
[0071] EO∶:=<ECs,Rs,Rules>
[0072] Rs∶:={R is_a ,R follow ,R choice ,R cause ,R compose ,R concur}
[0073] ECs is the set of all event classes, Rs includes the classification relationship and non-classification relationship (follow-up, selection, causality, composition, and concurrency) between event classes, and Rules represents the rules of event reasoning.
[0074] In step 1.5, the word vector pre-training model is used to embed the obtained language description, and the word embeddings of all language expressions are weighted summed to form an event ontology model, which specifically satisfies the following formula:
[0075]
[0076] Among them, t represents the parameter vector of the event, v represents the embedding generated by the word vector pre-training model, and w i Indicates the weight corresponding to the i-th event element. Specifically: In the first step, the TF-IDF algorithm is used to select the TOP-N candidate words for the language expression of the event element and embed them. In the second step, the embedding representation of each event element is summed and averaged, and then weighted to form the embedding representation of the event class. In the third step, the first and second steps are repeated for each event class in the ontology to form an event ontology model.
[0077] The preprocessing of the initial multimodal event information data in step (2) is to classify different events into different event classes according to the language expression defined in the event ontology, which specifically includes:
[0078] 2.1 Use target detection algorithms such as Faster-RCNN to extract the object area in the image information and the feature representation of the area;
[0079] 2.2 Extract the core keywords of an event in the text information and calculate and classify them according to the cosine similarity of the language expression defined in the ontology.
[0080] Step 2.2 extracts the core keywords of an event in the text information and calculates and classifies the cosine similarity according to the language expression defined in the ontology, specifically satisfying the following formula:
[0081]
[0082] Among them, e c represents the n-dimensional embedding representation of a certain event class, α represents the embedding representation obtained by averaging the event text keywords, Sim(e c ,α) represents the similarity between the event and the event class. Specifically: In the first step, the core keywords in the event are extracted and embedded using the word vector pre-training model. In the second step, the embedding representation of all event classes in the event ontology model is cyclically calculated to calculate the similarity with the event keyword embedding representation. In the third step, the event is merged into the event class with the highest similarity.
[0083] Step (3) uses an ontology model and a multimodal pre-trained model such as VilBERT to embed the multimodal event data, specifically including:
[0084] 3.1 Collect a large number of event text-image data pairs;
[0085] 3.2 According to the framework of the VilBERT model, these text-image pairs are learned to obtain their semantic space;
[0086] 3.3 Take the text-image data to be represented as the input of VilBERT and obtain its embedded representation;
[0087] 3.4 Concatenate and fuse the embedding representation corresponding to the event class to which it belongs with the output of VilBERT.
[0088] Step 3.2 describes learning these text-image pairs based on the framework of the VilBERT model to obtain their semantic space, specifically including:
[0089] 3.2.1 Pre-training task of predicting masked areas based on unmasked areas, using the KL distance minimization method to measure the relationship between the predicted distribution and the true distribution;
[0090] 3.2.2 The binary classification pre-training task of whether the event image and event text match each other uses dot product to calculate the cosine distance, and learns a linear layer to determine whether the two are finally matched.
[0091] Step (4) uses a graph neural network model such as GCN or GAT to learn the graph structure composed of events and events and events and relationships in the ontology, specifically including:
[0092] 4.1 Use the event embedding representation obtained in step 2.2 as the initial embedding of the graph neural network;
[0093] 4.2 Construct an event graph structure based on the relationship between events;
[0094] 4.3 Use the graph neural network model to learn the features of neighboring nodes associated with the current node;
[0095] 4.4 Learn the embedded representation based on the set event prediction and event word prediction tasks.
[0096] Step 4.4 describes learning the embedding representation based on the set event prediction task, specifically satisfying the following formula:
[0097]
[0098] Among them, t ei Embedding representations for multimodal events, Indicates and t ei Belong to the same event class or similar events, Indicates and t ei Dissimilar events; through the constraints of the above loss function, the Euclidean distance between similar events is shortened as much as possible while dissimilar events are alienated.
[0099] Step 4.4 describes learning the embedding representation based on the set event word prediction task, specifically satisfying the following formula:
[0100]
[0101] Where N is the number of events, n ei The number of words in the text data representing event ei, w ij Represents the jth word to be predicted in event ei; through the constraints of the above loss function, the obtained event embedding representation contains better semantic information.
[0102] The present invention will be further described below in conjunction with specific embodiments.
[0103] Example 1
[0104] like Figure 1As shown, the multimodal event representation learning based on event ontology of the present invention may include the following steps:
[0105] Step S101: constructing the event ontology of related fields and forming an event ontology model;
[0106] Step S102: Preprocessing of the initial multimodal event information data, merging different events into different event classes according to the language expression defined in the event ontology.
[0107] Step S103: using ontology model and multimodal pre-trained models such as VilBERT to embed and represent multimodal event data;
[0108] Step S104: Use graph convolutional neural network models such as GCN and GAT to learn the graph structure composed of events and events and events and relationships in the ontology.
[0109] In step S101, firstly, relevant domain texts are collected and a corpus is constructed; by learning the corpus, the events and event elements to be represented are extracted from the domain text content in the multimodal event information to be represented; event class classification and non-classification relationship extraction; then, the event classes, event class elements, and event class relationships that are manually screened and summarized are abstracted to obtain a formalized language description; a word vector pre-training model is used to embed the obtained language description, and the word embeddings of all language expressions are weighted summed to form an event ontology hierarchical model.
[0110] For example, the news "On August 12, local time, the official website of the International Doping Control Agency stated that track and field athletes violated anti-doping rules at the Olympics, and the relay team is expected to receive a medal" belongs to the event category - "anti-doping violation", from which the event categories as shown in Table 1 are summarized, and the six elements of the event, the cause and effect between the event "athlete violation" and the event "relay team receiving a medal" (R cause ) relationship, and then the language representation of the event class is represented by word embedding and satisfies the following formula:
[0111]
[0112] Among them, t represents the parameter vector of the event, v represents the embedding generated by the word vector pre-training model, and w i Represents the weight corresponding to the i-th event element.
[0113] In the first step, the TF-IDF algorithm is used to filter out the TOP-N candidate words for the language expression of event elements and embed them. In the second step, the embedding representation of each event element is summed up, the average is taken, and then weighted to form the embedding representation of the event class. In the third step, the first and second steps are executed repeatedly for each event class in the ontology to form an event ontology model.
[0114] Table 1 Event Class
[0115]
[0116] Example 2
[0117] On the basis of Example 1, the preprocessing of the initial multimodal event information data in step S102, according to the language expression defined in the event ontology, merges different events into different event classes, specifically includes the following steps:
[0118] 1. Use target detection algorithms such as Faster-RCNN to extract the object area in the image information and the feature representation of the area as the image input part of VilBERT;
[0119] 2. Extract the core keywords of an event in the text information and calculate and classify them according to the cosine similarity of the language expression defined in the ontology, specifically satisfying the following formula:
[0120]
[0121] Among them, e c represents the n-dimensional embedding representation of a certain event class, α represents the embedding representation obtained by averaging the event text keywords, Sim(e c ,α) represents the similarity between the event and the event class.
[0122] The first step is to extract the core keywords in the event and use the word vector pre-training model for embedding representation. The second step is to cyclically calculate the similarity between the embedding representation of all event classes in the event ontology model and the event keyword embedding representation. The third step is to merge the event into the event class with the highest similarity.
[0123] Example 3
[0124] Based on the example 2, the embedding representation of multimodal event data using the ontology model and multimodal pre-trained models such as VilBERT in step S103 may include the following steps:
[0125] 1. Obtain the trained VilBERT model, and use the regional image feature representation and text information extracted in Example 2 as the input of the model.
[0126] 2. The VilBERT model concatenates and fuses the embedding representation generated by the input data with the embedding representation corresponding to the event class to which it belongs to obtain a new embedding representation.
[0127] Example 4
[0128] On the basis of the embodiments 1 and 3, the graph structure composed of events and events and events and relationships in the ontology in step S104 can be learned by using a graph convolutional neural network model such as GCN and GAT, which can be implemented as follows:
[0129] 1. Construct a graph network based on the event relationships extracted in Example 1.
[0130] 2. The event embedding representation obtained in Example 3 is used as the initial embedding of the graph neural network for learning.
[0131] This method sets the loss function based on the two training tasks of event prediction and event word prediction, which specifically satisfies the following formula:
[0132]
[0133] Among them, t ei Embedding representations for multimodal events, Indicates and t ei Belong to the same event class or similar events, Indicates and t ei Dissimilar events, through the constraints of the above loss function, shorten the Euclidean distance between similar events as much as possible and alienate dissimilar events.
[0134]
[0135] Where N is the number of events, n ei The number of words in the text data representing event ei, w ij Represents the jth word to be predicted in event ei. Through the constraints of the above loss function, the obtained event embedding representation contains better semantic information.
[0136] In summary, the present invention mainly proposes a multimodal event representation learning method based on event ontology to solve the problems of incomplete event elements, single data modality, and weak semantics contained in event embedding representation. Starting from the introduction of event ontology, its position in the hierarchical model and the environment in the scenario model are considered, and image information is added to achieve the purpose of enhancing semantics.
[0137] The embodiments described above are only descriptions of the preferred modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A multimodal event representation learning method based on event ontology, characterized by: include: Construct the event ontology of related fields and form the event ontology model; Preprocessing of the initial multimodal event information data, merging different events into different event classes according to the language representation defined in the event ontology; Adopt ontology model and multimodal pre-training model to embed multimodal event data; A graph convolutional neural network model is used to learn the graph structure composed of events and events, and events and relationships in the ontology; The construction of the event ontology in the relevant field and the formation of the event ontology model specifically include: (1) Construction of text corpus in related fields; (2) extracting the events and event elements from the domain text content in the multimodal event information to be represented by learning the corpus; (3) Event classification and extraction of non-classification relations; (4) Based on the inductively obtained event classes, event class elements, and event class relationships, a formalized language description is obtained; (5) Using a word vector pre-training model to embed the obtained language description, and performing weighted summation on the word embeddings of all language expressions to form an event ontology model; The method of embedding the multimodal event data using the ontology model and the multimodal pre-training model specifically includes: Collect a large number of event text-image data pairs; According to the model framework, these text-image pairs are learned to obtain their semantic space; Take the text-image data to be represented as the input of the model and obtain its embedded representation; The embedding representation corresponding to the event class to which it belongs is concatenated and fused with the output of the model; The semantic space of these text-image pairs is obtained by learning them according to the framework of the model, specifically including: The pre-training task of predicting the masked area based on the unmasked area uses the KL distance minimization method to measure the relationship between the predicted distribution and the true distribution; A binary classification pre-training task to determine whether event images and event texts match each other. The cosine distance is calculated using dot product, and a linear layer is learned to determine whether the two are ultimately matched.
2. According to claim 1, a multimodal event representation learning method based on event ontology is characterized in that: The event classes, event class elements, and event class relationships obtained by induction are abstracted to obtain their formalized language descriptions, which specifically meet the following definitions: EO∶:=<ECs,Rs,Rules> Rs∶:={R is_a ,R follow ,R choice ,R cause ,R compose ,R concur } ECs is the set of all event classes, Rs includes the classification and non-classification relationships between event classes, and Rules represents the rules for event reasoning.
3. The method for learning multimodal event representation based on event ontology according to claim 1, characterized in that: The word vector pre-training model is used to embed the obtained language description, and the word embeddings of all language expressions are weighted summed to form an event ontology model, which specifically satisfies the following formula: Among them, t represents the parameter vector of the event, v represents the embedding generated by the word vector pre-training model, and w i Represents the weight corresponding to the i-th event element.
4. The method for learning multimodal event representation based on event ontology according to claim 1, characterized in that: The preprocessing of the initial multimodal event information data, according to the language expression defined in the event ontology, merging different events into different event classes, specifically includes: Use target detection algorithm to extract the object area and feature representation of the area in the image information; The core keywords of an event in the text information are extracted and the cosine similarity is calculated and classified according to the language expression defined in the ontology.
5. The method for learning multimodal event representation based on event ontology according to claim 4, characterized in that: The core keywords of an event in the text information are extracted and the cosine similarity is calculated and classified according to the language expression defined in the ontology, specifically satisfying the following formula: Among them, e c represents the n-dimensional embedding representation of a certain event class, α represents the embedding representation obtained by averaging the event text keywords, Sim(e c ,α) represents the similarity between the event and the event class.
6. The method for learning multimodal event representation based on event ontology according to claim 5, characterized in that: The graph neural network model is used to learn the graph structure composed of events and events and events and relationships in the ontology, specifically including: Using the event embedding representation obtained according to the method of claim 5 as the initial embedding of the graph neural network; Construct an event graph structure based on the relationship between events; Use graph neural network model to learn the features of neighboring nodes associated with the current node; The embedding representation is learned based on the set event prediction and event word prediction tasks.
7. The method for learning multimodal event representation based on event ontology according to claim 1, characterized in that: The embedding representation is learned according to the set event prediction task, and specifically satisfies the following formula: Among them, t ei Embedding representations for multimodal events, Indicates and t ei Belong to the same event class or similar events, Indicates and t ei Dissimilar events; The embedding representation is learned according to the set event word prediction task, specifically satisfying the following formula: Where N is the number of events, n ei The number of words in the text data representing event ei, w ij Represents the jth word to be predicted in event ei.
Citation Information
Patent Citations
Event ontology construction method
CN106445990A
Social-network-oriented extraction method of specific events
CN107766585A
Cross-modal news event classification method and system based on graph neural network
CN112241481A
Identifying complex events from hierarchical representation of data set features
US20200394499A1
