A news event detection method and system integrating multiple text semantic structure graph representations

By integrating multiple methods of text semantic structure graphs and using graph neural networks to enhance event detection, the problem of ignored semantic structure information in the existing technology is solved, and the accuracy and robustness of event detection are improved.

CN115034224BActive Publication Date: 2024-10-25EAST CHINA NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210091368.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-26
Publication Date
2024-10-25
Estimated Expiration
2042-01-26

AI Technical Summary

Technical Problem

Existing event detection technology ignores semantic structure information when identifying trigger words and event types in text, resulting in poor recognition results. Moreover, the mapping method that relies solely on dependency syntax trees is insufficient for in-depth integration of text semantics and structure.

Method used

It uses a variety of text semantic structure graph fusion methods, including vocabulary sequence graphs, dependency syntax graphs, component syntax graphs, semantic dependency analysis graphs and abstract semantic representation graphs, and iteratively updates node and edge representations through graph neural networks to enrich text representation forms. Improve event detection accuracy.

Benefits of technology

Through the fusion of multiple semantic and structural information, the accuracy and robustness of event detection are improved, the problem of insufficient information caused by relying on sequence information or a single structure mapping method is alleviated, and the ability to understand complex texts is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115034224B_ABST
    Figure CN115034224B_ABST
Patent Text Reader

Abstract

The present invention discloses an event detection method and system that integrates multiple text semantic structure graph representations. The corresponding method includes: 1) constructing and initializing multiple semantic structure graphs based on existing syntax and semantic parsing tools; 2) using a bidirectional long short-term memory network to encode text to obtain context-dependent vocabulary node representations; 3) using a graph neural network to update the node and edge representations in the graph to obtain a structural semantic vector representation of the text; 4) performing multiple event label classification after linear transformation of the node representation, and updating the model parameters through back propagation. The corresponding system includes a text preprocessing module, a graph structure construction module, and an event detection module to identify potential event information in massive news texts. The present invention structures the text graph, enriches the natural language text representation through the mutual complementation of sequence, syntax, semantics, and structural information, helps to improve the accuracy and robustness of event recognition, and also provides more event elements for the construction of downstream knowledge graphs and reason graphs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to event detection technology in text information extraction, and to a method and system for fusing semantic structure graphs of multiple texts to enhance text encoding and improve the accuracy of event recognition. Background Art

[0002] At present, Internet information platforms have become the main channel for people to obtain information. Massive news information contains rich and valuable event information. Mining and screening interesting news events from complex news is an important research direction in the field of natural language processing (NLP), which has attracted widespread attention from academia and industry. News often revolves around the event behavior of people at a specific time and place, and people, time, place, etc. are considered to be the arguments of events. The type of event is often defined according to different field applications. For example, in the financial field, it often involves acquisition, investment, pledge and other events, while in the e-commerce field, it focuses on consultation, order placement, warranty, return and exchange and other events. As a subtask of information extraction, event detection (ED) detects the type of event based on the event trigger words in the natural language text, which is of great significance for downstream knowledge graph construction, question-answering system, information retrieval, public opinion analysis, etc.

[0003] Given a natural language text S and a given set of event types E, the ED task detects the event types in the text. Usually, the ED task is divided into two steps: (1) Trigger word detection: first identify the words in the text that trigger the event, such as "sue" and "litigation"; (2) Event classification: Considering that trigger words have multiple meanings, it is necessary to classify the trigger words according to their semantics and context, such as identifying the text as "sue" and "litigation". litigationEvent type. With the development of deep learning, most current studies use a unified decoding method (such as sequence annotation of joint event labels) to extract event trigger words and event types in one step. According to different text encoding methods, ED tasks can be divided into two categories: (1) Sequence encoding-based methods generally use BiLSTM or Transformer architecture to represent the input text in sequence. Sequence representation methods can capture contextual information in text sequences, but ignore the syntactic structure, long-distance dependency and global information of the text, and cannot fully explore the situation where complex text contains multiple events; (2) Graph representation-based methods usually construct text sequences into graph structures, and then use graph neural network algorithms for graph encoding, perform node and edge information transmission, aggregation and other operations, and can usually better model complex structure text data and global features. For homogeneous graphs with a single node and edge type, graph neural network algorithms can use graph convolutional networks (GCN), graph attention networks (GAT), etc.; for heterogeneous graphs containing multiple edge types, relational dependency graph models (such as RGCN) and Transformer-based graph models (such as GTN) can be used.

[0004] In the graph representation-based methods, how to map the text is an important basic work. Early graph construction methods only captured the adjacent information of context words based on the word sequence of the text. However, syntactic structure and semantic structure, as inherent features of text, are important methods for text graph structuring. Syntactic analysis is to determine the syntactic structure of a sentence or the dependency relationship between words in a sentence. It is divided into dependency syntactic analysis and component syntactic analysis. The dependency syntactic tree describes the dependency relationship between words, and the component syntactic tree can capture the syntactic relationship based on phrases in a sentence. Existing natural language processing tools can convert text into a dependency graph by structuring the dependency relationship between words in a sentence. Semantic analysis can mine the high-level semantic relationship between abstract concepts in the text and highly abstract the text semantically. It mainly includes semantic dependency analysis (such as semantic role labeling) and abstract semantic representation AMR. As a semantic abstraction method, semantic dependency analysis can label roles such as predicate verbs, agents, and objects. Abstract semantic representation AMR is the abstraction of high-level semantics. All this information provides additional semantic knowledge for event detection and helps detect trigger words. At present, text mapping methods often use dependency syntactic trees to convert the trees into connected graphs, and then use graph neural networks to iteratively update the nodes in the graph to obtain text vector representations that contain syntactic structure and global graph information. However, this mapping method ignores semantic structure information. Therefore, some studies have built maps based on AMR and integrated text and structural information to enrich text representation. Compared with sequence mapping methods, mapping methods based on syntactic structure and semantic structure contain structured knowledge of dependencies between words, shorten the distance between related words, and can capture long-distance dependencies. However, there are still the following shortcomings: (1) Nodes in the graph structure are connected by dependency relationships, ignoring the word order information of the text; (2) The type of edges and the type of relationships between words in the graph structure are often ignored, while the relationship type is precisely an important feature for identifying trigger words, resulting in poor event detection results of the current simple use of connection relationship mapping; (3) The text semantics and structure of natural language are important sources of information for event detection. Mapping methods that rely solely on dependency syntactic trees or text structures are insufficient in the deep integration of text semantics and structure.

[0005] Table 1 gives a Chinese and English example of a news text "A arrived in Seoul from Beijing on Friday and reported to B." and the event trigger words and event type annotations in the text. The words in brackets are event trigger words, and the corresponding event type is in the lower right corner. This example contains trigger words for two different events, transfer and meeting. The trigger word brief appears less frequently in the training data, making it difficult to identify as a meeting event. However, the word order features and the vocabulary relative distance matrix, dependency syntax tree, component syntax tree, semantic dependency analysis tree, and abstract semantic representation graph obtained by parsing existing natural language tools can assist in the identification of trigger words. For this English example, the attached Figure 1It is a vocabulary sequence diagram represented by a relative distance matrix between words with a window of 5; Figure 2 There are two syntactic structure diagrams, where diagram a is the dependency syntactic tree and diagram b is the component syntactic tree; Figure 3 There are two semantic structure graphs, where graph a is a semantic dependency analysis graph converted from the semantic role labeling results, and graph b is an abstract semantic representation graph converted from the AMR results. Previous methods based on sequence coding can only identify transfer events due to the lack of semantic structure information. The graph representation method based on the dependency syntactic tree relies on dependency syntactic relations, shortens the distance between related words, but ignores the dependency relationship type and lacks information fusion and supplementation of multiple semantic structure graphs.

[0006] Table 1 An example of a news text and event annotation

[0007] Summary of the invention

[0008] The purpose of the present invention is to provide an event detection method and system that integrates multiple text semantic structure graph representations to address the deficiencies in the prior art. The method constructs multiple graph structures containing text sequence information, syntactic information and semantic information, and uses graph neural networks to model text graphs with multiple edge types, enriching the text representation and improving the accuracy of event detection.

[0009] The specific technical solution for achieving the purpose of the present invention is:

[0010] A news event detection method integrating multiple text semantic structure graph representations, the method comprising the following steps:

[0011] Step 1: Construct multiple text semantic structure graphs for news texts, including vocabulary sequence graph, dependency syntax graph, component syntax graph, semantic dependency analysis graph, and abstract semantic representation graph, and initialize the node and edge representations in the graphs;

[0012] Step 2: Use the bidirectional long short-term memory network to encode the initialized news text, obtain the context-based vocabulary node representation in the text sequence, and update the vector representation of the vocabulary node in the graph;

[0013] Step 3: Use a graph neural network to iteratively update the representation of nodes and edges in each graph to obtain a structural semantic vector representation of the input text; the graph neural network is a GCN, GAT or RGCN network;

[0014] Step 4: After linear transformation of the node representation obtained in step 3, perform multi-classification of event labels, use the cross entropy loss function, and update the model parameters through back propagation.

[0015] The step 1 of constructing multiple semantic structure graphs for news texts and initializing the node and edge representations in the graphs includes the following steps:

[0016] Step a1: Construct a vocabulary sequence diagram; for each word in the text, calculate the relative distance of other words in the context relative to the current word, set the window value window, assuming window = 5, the relative distance value is represented by an integer between -5 and +5; if a word is located in the previous context of the current word, use a negative integer to represent it: when the distance between the two words is less than 5, the absolute value is the distance between the two words; when the distance exceeds 5, it is represented by -5; if a word is located in the following context of the current word, use a positive integer to represent it: when the distance between the two words is less than 5, the value is the distance between the two words; when the distance exceeds 5, it is represented by +5; in order to represent the relative distance between words, use matrix A dis ∈N×N to represent the vocabulary sequence graph G dis , where N is the number of words, Word wd j Relative to the word wd i The relative distance

[0017] Step a2: Construct a syntactic structure graph; according to the division criteria of dependency syntactic analysis and component syntactic analysis in syntactic structure analysis, the dependency syntactic tree and component syntactic tree are obtained based on the existing syntactic parsing tools Spacy, StanfordNLP and LTP, and then converted into a dependency syntactic graph G. dsp and component syntactic graph G cop ; For the dependency syntactic graph, the nodes are words, the edges are the dependency syntactic relationships between words, and the N×N matrix A is used dsp To represent the dependency graph G dsp , Word wd i To word wd j For the component syntactic graph, the nodes also contain component syntactic blocks, and the edges contain three types of connections, namely, the connection between words, the connection between words and component syntactic blocks, and the connection between component blocks. The matrix A of (N+M)×(N+M) is used. cop To represent the constituent syntactic graph G cop , M is the number of component blocks, Indicates the connection relationship between node i and node j. If there is a connection, the value is 1, otherwise the value is 0;

[0018] Step a3: Construct a semantic structure graph that integrates semantics and structure; according to different semantic abstract representation methods, use the existing tools AllenNLP and FrameNet to construct a semantic dependency analysis graph G sdp , and the existing model CAMR to construct an abstract semantic representation graph G amr; For the semantic dependency analysis graph, the nodes are words and the edges are the semantic dependency relationships between words. The graph is converted into an N×N matrix A sdp , Word wd i and word wd j For the abstract semantic representation graph, the trained model CAMR is used to predict the abstract semantic representation graph, where the nodes are words and the edges are the abstract semantic relationships between words. The N×N matrix A is also used. amr To express, Word wd i and word wd j Abstract semantic relationship between

[0019] Step a4: Initialize the nodes and edges of the vocabulary sequence graph, dependency syntax graph, component syntax graph, semantic dependency analysis graph and abstract semantic representation graph constructed in steps a1, a2 and a3; for the vocabulary nodes in the graph, use the pre-trained word vector BERT or Word2Vec to initialize the text vocabulary representation; for other nodes in the graph, use random initialization representation; and randomly initialize different types of distances or dependency edges in each graph.

[0020] In the step 2, a bidirectional long short-term memory network is used to encode the text to obtain a context-based vocabulary node representation in the text sequence, including the following steps:

[0021] Step b1: Take the text sequence initialized by the pre-trained word vector BERT or Word2Vec as input, use BiLSTM to model the text, obtain the context-based vocabulary node representation in the text sequence, and update the vector representation of the vocabulary node in the graph.

[0022] In step 3, a graph neural network is used to iteratively update the node and edge representations in each graph to obtain a structural semantic vector representation of the input text, including the following steps:

[0023] Step c1: When the edge type is not considered, the nodes in each graph only have connection relationships. The graph neural network GCN or GAT is used to propagate and aggregate each node in the graph, and the representation of each node in the graph is updated;

[0024] Step c2: When considering multiple edge types, the relational graph neural network RGCN is used to iteratively update the node and edge representations in the dependency syntax graph, component syntax graph, semantic dependency analysis graph, and abstract semantic representation graph; specifically, the edge representation and adjacent nodes are used to update the node, and the adjacent node representation is used to update the edge representation;

[0025] Step c3: linearly transform the node representations in the various graph representations obtained in step c1 and step c2 using a linear mapping layer, and map them to a high-dimensional space to obtain a high-dimensional node representation;

[0026] Step c4: Use concatenation operation to aggregate the high-dimensional node representations in each graph in step c3 as the final node representation.

[0027] In the step 4, the node representation is linearly transformed and then the event label is multi-classified, and the model parameters are updated using the cross entropy loss, which includes the following steps:

[0028] Step d1: Use a multi-layer perceptron to perform a linear transformation on the final node representation after aggregation in step c4, and output the probability value of each node in multiple label categories;

[0029] Step d2: Select the label category corresponding to the maximum probability value as the event label of the node;

[0030] Step d3: Calculate the loss using the cross entropy loss function and update the model parameters through back propagation to optimize model training.

[0031] The present invention is different from the prior art in the following aspects: (1) Unlike sequence-based text encoding and sequence-based graph neural network methods, the present invention uses existing natural language processing technology to convert text sequences into graph structures that integrate multiple semantic structures, enriching the text representation capability from multiple perspectives such as word order, syntax, semantics and structure, and improving the accuracy of event detection; (2) Compared with the graph construction method using dependency syntax tree, the present invention not only models the adjacent relationship between words, but also distinguishes the types of dependency relationships between words, and dynamically encodes the semantic and syntactic relationships between words according to the context, thereby alleviating the ambiguity problem of event trigger words to a certain extent; (3) Compared with the graph construction method using text semantics and structure, the present method does not use a single graph, but converts the text sequence into multiple semantic and structural graphs to integrate multiple structural information, supplements the deficiencies of single structural information through graph structures from multiple perspectives, and improves the accuracy and robustness of event detection; (4) The event detection system based on the method described in the present invention provides an effective way to construct knowledge graphs and matter graphs in the downstream financial and e-commerce fields, accelerating the rapid development of informatization in the field.

[0032] The beneficial effects of the present invention include: the present invention proposes a news event detection method and system of graph deep learning with text semantic structure fusion, adopts a variety of natural language processing semantic and structural analysis tools to perform graph structured representation of news text, and models nodes and edges through graph neural networks, enriching text information from multiple perspectives such as sequence, semantics, and structure, alleviating the problem of insufficient information caused by relying on sequence information or only using dependency syntactic structure to build graphs; the conversion of text to graph structure is realized based on existing natural language processing tools, and has good generalization and migration between different languages ​​and different fields, such as transfer learning of event detection between various fields of finance and e-commerce, and transfer learning between different languages ​​of English and Chinese; event detection, as the primary issue of news text mining, provides more event elements for the construction of downstream knowledge graphs and causal graphs, which helps to promote the rapid development of knowledge graphs, causal graphs and various applications based on them. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is a vocabulary sequence diagram in the background technology of the present invention;

[0034] Figure 2 It is a syntactic structure diagram in the background technology of the present invention;

[0035] Figure 3 It is a semantic structure diagram in the background technology of the present invention;

[0036] Figure 4 It is an algorithm flow chart of the method described in the present invention;

[0037] Figure 5 This is a schematic diagram of the system modules of the present invention. DETAILED DESCRIPTION

[0038] The present invention is further described in detail with reference to the following specific examples and drawings. The process, conditions, experimental methods, etc. for implementing the present invention, except for the contents specifically mentioned below, are all common knowledge and common common sense in the art and are not particularly limited by the present invention.

[0039] The definitions of the professional terms involved in this invention are as follows:

[0040] Event: refers to a change in state, often involving multiple participants and having common attributes such as time and place. Current research on natural language processing focuses on dynamic events that occur continuously.

[0041] Event Trigger (ET): A word that marks the occurrence of an event, which can be a verb, noun, adjective, etc.

[0042] Event Detection (ED): Event trigger words mark the occurrence of events, so the event detection task is converted into trigger word recognition and event classification, that is, determining whether each word in the text is a trigger word and the corresponding event category.

[0043] Graph: A graph consists of nodes and edges. Each node in the graph has a different number of adjacent nodes to capture the interdependencies between nodes. Graphs are often represented by adjacency matrices A. If edge types and weights are not considered, for a graph with N nodes, A is an N×N matrix. If there is an edge between node i and node j, then A ij =1, otherwise A ij =0.

[0044] Graph Neural Network (GNN): Graph Neural Network learns the representation of target nodes by propagating neighboring information through the neural network architecture in an iterative manner until a stable fixed point is reached. Graph Neural Networks can be classified into graph convolutional networks, graph attention networks, graph autoencoders, graph generation networks, and graph spatiotemporal networks.

[0045] Natural language text consists of a continuous sequence of words, and the word order expresses semantic coherence and rich information. Therefore, there must be semantic or structural correlations between text words. In order to represent the correlation between words, enrich the word vector representation, and then accurately identify event trigger words and event types, the first step of the present invention uses pre-trained word vectors, existing natural language processing tools and models to calculate the relationship between words, and represent them with a graph structure.

[0046] See also Figure 4 , the model training process is described as follows:

[0047] Input: Natural language text S containing N words = {wd1, wd2, ..., wd N}, pre-trained word vectors (such as Word2Vec, GloVe, BERT), StanfordNLP dependency syntax and component syntax parsers, AllenNLP semantic role labeling tool, trained CAMR model.

[0048] Output: Initialized syntactic and semantic structure diagrams, including vocabulary sequence, syntactic structure, and semantic structure diagram. Specifically, they are: 1) Lexical sequence diagram G that records lexical sequence information dis ; 2) Dependency syntactic graph G containing syntactic structure information dep and component syntactic graph G cop ; 3) Semantic dependency analysis graph G containing semantic dependency information sdp and the abstract semantic representation graph G amrEach word or constituent syntactic block in the text is a node in the graph; the distances or relationship types between nodes are edges.

[0049] process:

[0050] Step a1: Lexical sequence information is an important feature of the text. This step constructs a lexical sequence graph to record the adjacent relationship between words. The nodes in the graph are words and the edges are the distances between words. i , calculate the distance of surrounding words relative to the word. In this step, the surrounding window size is set to 5, and the relative distance value is expressed as an integer between -5 and +5. i If a word is located below the current word, a positive integer is used to represent it: when the distance between the two words is less than 5, the absolute value is the distance between the two words; when the distance exceeds 5, it is represented by -5. If a word is located below the current word, a positive integer is used to represent it: when the distance between the two words is less than 5, the value is the distance between the two words; when the distance exceeds 5, it is represented by +5. After pairwise calculation, we get the N×N relative distance matrix A dis Represents the vocabulary sequence graph G dis , Word wd j Relative to the word wd i The relative distance between words, that is, the word proximity relationship in the text sequence.

[0051] Step a2: Syntactic structure is a type of feature inherent in text. By structuring the syntactic dependency relationship between sentence words, the text can be converted into a graph dependency graph. Syntactic analysis can be divided into dependency syntactic analysis and component syntactic analysis. The dependency syntactic tree describes the dependency syntactic relationship between words, and the component syntactic tree can capture the component syntactic relationship based on phrases in a sentence. This step constructs the dependency syntactic graph G from the perspective of syntactic structure. dep and component syntactic graph G cop For the construction of dependency syntax graph, we first get the dependency syntax tree based on StanfordNLP dependency syntax parser. Taking the text "A arrived in Seoul from Beijing Friday to brief B." as an example, we get the attached Figure 2 The dependency syntax tree is shown in Figure a. The dependency syntax tree is constructed into a dependency syntax graph G dsp , where nodes are words in the text and edges are dependencies between words, such as ROOT, nsubj, amod, etc., identified by corresponding ids. Using an N×N matrix A dsp To represent the graph, Word wd i To word wd j Similarly, this step also obtains the additional syntactic dependency relationship type through StanfordNLP analysis. Figure 2The component syntactic tree is shown in Figure b in the figure. Unlike the dependency syntactic tree, the leaf nodes in the component syntactic tree are usually single words, while the internal nodes are the corresponding component syntactic blocks, such as noun phrases NP and verb phrases VP. Therefore, the nodes in this step include lexical nodes and component blocks. There are three types of relationships between nodes, namely, the connection relationship between words, the connection relationship between words and component syntactic blocks, and the connection relationship between component blocks. A matrix A of (N+M)×(N+M) is used. cop To represent the constituent syntactic graph G cop , M is the number of component blocks, Indicates the connection relationship between node i and node j. If there is a connection, the value is 1, otherwise the value is 0.

[0052] Step a3: Many natural language processing tools or existing models can mine high-level semantic relationships between abstract concepts in texts. This step uses these tools or models to semantically abstract the text and then convert it into a graph structure for processing. Semantic dependency analysis, as a way of semantic abstraction, can label roles such as predicate verbs, agents, and objects (as shown in the example below). Abstract semantic representation AMR is an abstraction of high-level semantics. All of this information provides additional semantic knowledge for event detection and helps detect trigger words. The purpose of this step is to construct a semantic dependency analysis graph G that fuses semantic and structural information. sdp and the abstract semantic representation graph G amr For the semantic dependency analysis graph, this step uses the semantic role labeling results parsed by AllenNLP's semantic role labeling tool to construct the following Figure 3 The semantic dependency analysis tree of a in the above example is constructed, and then the semantic dependency analysis graph G is constructed based on it. sdp , the nodes remain the same as in step a1, the first words of other roles establish semantic role edges with the predicate V, such as ARG0, ARG1, etc.; all words except the first word in the role establish self edges with the first word, indicating that they belong to the entire role. For subsequent calculations, the graph is converted into an N×N matrix A sdp , Word wd i and word wd j For the abstract semantic representation graph, this step uses the trained model CAMR to predict the abstract semantic representation graph, see Appendix Figure 3 It can be seen that there are abstract relationships between some word nodes, such as purpose, time, etc. Nodes that are not in the prediction results are isolated points. Similar to the previous step, this step constructs the abstract semantic representation graph G. amr , represented as an N×N matrix A amr , Word wd i and word wdj The abstract semantic relationship type between two entities. Input text: A arrived in Seoul from Beijing Friday to briefB.

[0053] Output text:

[0054] The semantic role labeling results parsed by the AllenNLP tool are as follows:

[0055] [ARG1:A][V:arrived][ARG4:in Seoul][ARG3:from Beijing][ARGM-TMP:Friday][ARGM-PRP:to brief B].

[0056] [ARG0:A]arrived in Seoul from Beijing Friday to[V:brief][ARG1:B].

[0057] The semantic role V (predicate) includes arrived and brief, and the corresponding role types are marked with square brackets. The semantic dependency analysis tree obtained based on the semantic role labeling result is shown in the attached figure. Figure 3 As shown in Figure a.

[0058] The abstract semantic representation results obtained using the CAMR algorithm are as follows:

[0059] (x2 / arrive-01

[0060] :ARG1(x1 / person :name(n / name :op1"A"))

[0061] :location(x4 / city :name(n1 / name :op1"Seoul"))

[0062] :ARG4(x6 / city :name(n2 / name :op1"Beijing"))

[0063] :purpose(x9 / brief-01

[0064] :ARG0 x1

[0065] :ARG2(x10 / person:name(n3 / name :op1"B")))

[0066] :time(xap0 / date-entity :weekday(x7 / friday)))

[0067] The semantic abstract representation diagram obtained based on this abstract semantic representation is shown in the attached figure Figure 3 As shown in Figure b.

[0068] Step a4: Initialize the node and edge representations of the vocabulary sequence graph, dependency syntax graph, component syntax graph, semantic dependency analysis graph, and abstract semantic representation graph constructed in steps a1, a2, and a3. Except for the component syntax graph, which contains word nodes and additional component block nodes, the other graphs have exactly the same word nodes. The Word2Vec pre-trained word vector is used to initialize the text sequence representation X = {x1, x2, ..., x N}, that is, the node representation in the graph. For the component block nodes in the component syntax graph, random initialization is used for representation. For the vocabulary sequence graph, syntactic structure graph, and semantic structure graph with multiple dependencies, the edges have type information and are represented by random initialization.

[0069] The second step of the present invention uses a bidirectional long short-term memory network to encode the text sequence to obtain a context-based vocabulary node representation in the text sequence. The process is described as follows:

[0070] Step b1: Take the initialized text sequence representation X as input, use BiLSTM to perform semantic modeling on it, and obtain the context-dependent text sequence representation H.

[0071] Input: Initialized text sequence representation X = {x1, x2, ..., x N};

[0072] Output: After the forward LSTM and backward LSTM encode the sequence respectively, for the t-th word, its forward and backward representations are concatenated as the context-dependent sequence representation.

[0073]

[0074]

[0075]

[0076] Among them, x t is the vector representation of the t-th word, t∈[1,N], which is the input vector at t time steps; is the hidden layer state of the forward LSTM at time step t; is the hidden layer state of the backward LSTM at time step t. Finally, the forward representation and the backward representation are concatenated to obtain the context-based vocabulary node representation H = {h1,h2,…,h N}.

[0077] The third step of the present invention uses a graph neural network to update the node and edge representations in the graph. The model training process is described as follows:

[0078] Step c1: When the edge type is not considered, the nodes in each graph only have connection relationships. GCN or GAT is used to transfer information on the node representation obtained in the previous step, and the aggregation operation is used to update the node representation in the graph. Taking GCN as an example, the specific calculation formula is as follows:

[0079]

[0080] Where N(u) represents the set of neighbor nodes of the current node u. It represents the vector representation of node v in the lth layer of GCN. W and b are both trainable model parameters.

[0081] Step c2: When considering multiple edge types in the vocabulary sequence, syntactic structure, and semantic structure graphs, a graph neural network containing relational types (such as GTN and RGCN) is used to update the node and edge representations in each graph. Taking RGCN as an example, the calculation formula is shown in (6).

[0082]

[0083] Among them, f n The regularization function depends on the number of adjacent nodes between the current node u and the neighbor node v. R is the set of edge types in the graph, and N τ (u) represents the set of neighbor nodes of node u under the τ relationship, It is the trainable model parameter of the lth layer under the τ relationship.

[0084] Step c3: using different linear mapping layers to map the node representations in the above-mentioned multiple graphs to a high-dimensional space to obtain a high-dimensional node representation;

[0085] Step c4: Use concatenation to aggregate high-dimensional node representations in multiple graphs as the final node representation for subsequent label classification. Since the syntactic structure graph is divided into dependency syntactic graph and component syntactic graph, the specific implementation is basically the same. The following steps are based on the dependency syntactic graph G dep As an example, the semantic structure diagram is introduced in detail; similarly, the semantic dependency analysis diagram G sdp Take the vocabulary node wd as an example. u Take as an example, the calculation is shown in formula (7), where, They respectively represent the node representations of the vocabulary sequence graph, the dependency syntax graph, and the semantic dependency analysis graph in the present invention, and concat represents a concatenation operation.

[0086]

[0087] It should be noted that for the fusion of multiple graphs, in addition to the method of learning each semantic and structural graph separately and then fusing them later in the above steps, you can also use an early fusion method, that is, first convert multiple semantic and structural graphs into heterogeneous graphs with multiple types of edges between nodes, and then use relational graph neural network training and learning.

[0088] The fourth step of the present invention performs a linear transformation on the finally aggregated node representation, outputs the probability value of each node on multiple event labels, and selects the label category corresponding to the maximum probability value as the event label of the node.

[0089] Step d1: Use a multilayer perceptron to perform a linear transformation on the final node representation after aggregation in step c4, and output the probability value of each node in multiple label categories. Taking node u as an example, output the probability value in category t. The calculation is shown in formula (8).

[0090]

[0091] Among them, W t and b t is the training parameter for t categories.

[0092] Step d2: Select the label category corresponding to the maximum probability value as the event label of the node. The output result is shown in Table 2. For each word and the corresponding classification label, the event trigger word and event type shown in the output text are obtained after processing.

[0093] Table 2 Examples of predicted event labels

[0094]

[0095]

[0096] Input text: A arrived in Seoul from Beijing Friday to brief B.

[0097] Output text: A[arrived] Movement:Transport in Seoul from Beijing Friday to[brief] Contact:Meet B.

[0098] Step d3: Use the cross entropy loss function (CrossEntropyLoss) to calculate the loss, and update the model parameters through back propagation to optimize the model training.

[0099] See also Figure 5The present invention also provides a news event detection system integrating multiple text semantic structure graph representations, including a text preprocessing module, a graph structure building module and an event detection module:

[0100] The text preprocessing module performs operations such as deduplication, sentence segmentation, word segmentation, and parsing on news texts in real scenarios based on existing natural language processing tools Spacy, StanfordNLP, and LTP to obtain cleaned news sentences;

[0101] The graph structure building module is used to parse a single news sentence into a variety of semantic and syntactic structure graphs, and initialize the nodes and edges in the graph to obtain the original graph vector representation containing only semantic information;

[0102] The event detection module iteratively updates the node and edge representations in the graph through information transmission and aggregation operations in the graph neural network, obtains the graph node representation containing semantic and structural information, and performs multi-label event recognition after linear transformation; and converts the prediction results into user-readable event trigger words and event types for public opinion monitoring, early warning, and analysis in the fields of finance, e-commerce, and government affairs.

Claims

1. A news event detection method integrating multiple text semantic structure graph representations, characterized in that: The method comprises the following steps: Step 1: Construct multiple text semantic structure graphs for news texts, including vocabulary sequence graph, dependency syntax graph, component syntax graph, semantic dependency analysis graph, and abstract semantic representation graph, and initialize the node and edge representations in the graphs; Step 2: Use the bidirectional long short-term memory network to encode the initialized news text, obtain the context-based vocabulary node representation in the text sequence, and update the vector representation of the vocabulary node in the graph; Step 3: Use a graph neural network to iteratively update the representation of nodes and edges in each graph to obtain a structural semantic vector representation of the input text; the graph neural network is a GCN, GAT or RGCN network; Step 4: After linear transformation of the node representation obtained in step 3, multi-classify the event labels, use the cross entropy loss function, and update the model parameters through back propagation; where: The step 1 specifically includes the following steps: Step a1: Construct a vocabulary sequence diagram; for each word in the text, calculate the relative distance of other words in the context relative to the current word, set the window value window, assuming window = 5, the relative distance value is represented by an integer between -5 and +5; if a word is located in the previous context of the current word, use a negative integer to represent it: when the distance between the two words is less than 5, the absolute value is the distance between the two words; when the distance exceeds 5, it is represented by -5; if a word is located in the following context of the current word, use a positive integer to represent it: when the distance between the two words is less than 5, the value is the distance between the two words; when the distance exceeds 5, it is represented by +5; in order to represent the relative distance between words, use matrix A dis ∈N×N to represent the vocabulary sequence graph G dis , where N is the number of words, Word wd j Relative to the word wd i The relative distance Step a2: Construct a syntactic structure graph; according to the division criteria of dependency syntactic analysis and component syntactic analysis in syntactic structure analysis, the dependency syntactic tree and component syntactic tree are obtained based on the existing syntactic parsing tools Spacy, StanfordNLP and LTP, and then converted into a dependency syntactic graph G. dsp and component syntactic graph G cop ; For the dependency syntactic graph, the nodes are words, the edges are the dependency syntactic relationships between words, and the N×N matrix A is used dsp To represent the dependency graph G dsp , Word wd i To word wd j For the component syntactic graph, the nodes also contain component syntactic blocks, and the edges contain three types of connections, namely, the connection between words, the connection between words and component syntactic blocks, and the connection between component blocks. The matrix A of (N+M)×(N+M) is used. cop To represent the constituent syntactic graph G cop , M is the number of component blocks, Indicates the connection relationship between node i and node j. If there is a connection, the value is 1, otherwise the value is 0; Step a3: Construct a semantic structure graph that integrates semantics and structure; according to different semantic abstract representation methods, use the existing tools AllenNLP and FrameNet to construct a semantic dependency analysis graph G sdp , and the existing model CAMR to construct an abstract semantic representation graph G amr ; For the semantic dependency analysis graph, the nodes are words and the edges are the semantic dependency relationships between words. The graph is converted into an N×N matrix A sdp , Word wd i and word wd j For the abstract semantic representation graph, the trained model CAMR is used to construct an abstract semantic representation tree, where the nodes are words and the edges are the abstract semantic relationships between words. The N×N matrix A is also used. amr To express, Word wd i and word wd j Abstract semantic relationship between Step a4: Initialize the nodes and edges of the vocabulary sequence graph, dependency syntax graph, component syntax graph, semantic dependency analysis graph, and abstract semantic representation graph constructed in steps a1, a2, and a3; use the pre-trained word vector BERT or Word2Vec to initialize the representation of the vocabulary nodes in the graph; use random initialization to represent other nodes in the graph; and randomly initialize different types of distances or dependency edges in each graph; The step three specifically includes the following steps: Step c1: When the edge type is not considered, the nodes in each graph only have connection relationships. The graph neural network GCN or GAT is used to propagate and aggregate each node in the graph, and the representation of each node in the graph is updated; Step c2: When considering multiple edge types, the relational graph neural network RGCN is used to iteratively update the node and edge representations in the dependency syntax graph, component syntax graph, semantic dependency analysis graph, and abstract semantic representation graph; the edge representation and adjacent nodes are used to update the node, and the adjacent node representation is used to update the edge representation; Step c3: linearly transform the node representations in the various graph representations obtained in step c1 and step c2 using a linear mapping layer, and map them to a high-dimensional space to obtain a high-dimensional node representation; Step c4: Use concatenation operation to aggregate the high-dimensional node representations of each graph in step c3 as the final node representation.

2. The news event detection method according to claim 1, characterized in that: The step 2 specifically includes the following steps: Step b1: Take the text sequence initialized by the pre-trained word vector BERT or Word2Vec as input, use BiLSTM to model the text, obtain the context-based vocabulary node representation in the text sequence, and update the vector representation of the vocabulary node in the graph.

3. The news event detection method as claimed in claim 1, characterized in that: The step 4 specifically includes the following steps: Step d1: Use a multi-layer perceptron to perform a linear transformation on the final node representation after aggregation in step c4, and output the probability value of each node in multiple label categories; Step d2: Select the label category corresponding to the maximum probability value as the event label of the node; Step d3: Calculate the loss using the cross entropy loss function and update the model parameters through back propagation to optimize model training.

4. A news event detection system integrating multiple text semantic structure graph representations based on the method of claim 1, characterized in that: Including text preprocessing module, graph structure building module and event detection module: The text preprocessing module performs deduplication, sentence segmentation, word segmentation, and parsing operations on news texts in real scenarios based on existing natural language processing tools Spacy, StanfordNLP, and LTP to obtain cleaned news sentences; The graph structure building module is used to parse a single news sentence into a variety of semantic structure graphs, and initialize the nodes and edges in the graphs to obtain the original graph vector representation containing only semantic information; The event detection module iteratively updates the node and edge representations in the graph through information transmission and aggregation operations in the graph neural network, obtains the graph node representation containing semantic and structural information, and performs multi-label event recognition after linear transformation; and converts the prediction results into user-readable event trigger words and event types for public opinion monitoring, early warning, and analysis in the fields of finance, e-commerce, and government affairs.