A hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery

By constructing a full-text search index library and a multi-dimensional classification model, efficient screening and classification of intelligence clues are achieved, solving the problems of low efficiency of traditional manual screening and single classification perspective, and improving the efficiency and accuracy of screening and compilation of intelligence clues.

CN114328830BActive Publication Date: 2024-08-27MILITARY SCI INFORMATION RES CENT ACAD OF MILITARY SCI OF THE CHINESE PEOPLES LIBERATION ARMY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111601210.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-08-27
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

In intelligence research, traditional manual screening and classification methods are inefficient and difficult to meet the rapid response needs of the big data era, and existing text classification methods cannot adapt to the needs of classifying and organizing multi-dimensional intelligence clues.

Method used

Propose a hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery. By constructing a full-text search index library, combined with full-text retrieval and pre-trained language models, multi-granularity intelligence clue screening from the chapter level to the sentence level is achieved, and through topics Classification, segment classification, and opinion classification models perform multi-dimensional automatic classification.

Benefits of technology

It significantly improves the efficiency and accuracy of intelligence clue screening and compilation, improves the recall rate and classification accuracy of intelligence clues, and can efficiently extract multi-granularity intelligence clues from big data and perform multi-dimensional classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328830B
    Figure CN114328830B
Patent Text Reader

Abstract

The present invention discloses a hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery, the method comprising: collecting relevant Internet open source data according to intelligence research topics, building a full-text search index library of the research topic; performing hierarchical retrieval based on the full-text search index library according to the search keyword list to obtain a multi-granularity intelligence clue screening set; according to the multi-granularity intelligence clue screening set, multi-dimensional automatic classification of intelligence clues of different granularities is performed to obtain a multi-dimensional intelligence clue compilation set. The method of the present invention not only significantly improves the efficiency of intelligence clue screening, but also can ensure a high recall rate and accuracy rate; and effectively improves the efficiency and accuracy of classification and compilation of intelligence clues.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information retrieval and natural language processing, and in particular to a hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery. Background Art

[0002] In the intelligence research business model in the field of science and technology information, the traditional approach to conducting open source intelligence research projects is to rely on the professional knowledge of experts in the field, first discover intelligence clues related to the topic from Internet open source information sources such as dynamic news, report documents, and social media, and then screen, filter, classify, compile, analyze and judge the collected clues, and finally produce intelligence products such as research reports, news interpretations, and news briefs. However, the massive information resources emerging in the era of big data have brought severe challenges to the above research model, which are mainly reflected in two aspects: 1. The traditional method of relying on manual screening and filtering of intelligence clues is inefficient and prone to screening errors and information omissions; 2. The traditional clue classification and compilation work that relies on manual work has a lot of repetitive work, which requires a lot of manpower and time costs and cannot meet the business needs of rapid response. Therefore, it is urgent to carry out research on a new work paradigm that uses big data and artificial intelligence technologies to enable intelligence clue discovery.

[0003] In response to the challenges of intelligence clue screening, the current common practice is to use search engines such as Elasticsearch to index the collected intelligence clues and perform full-text retrieval to achieve the purpose of screening and filtering. However, this type of retrieval method can generally only return chapter-level retrieval results such as a news article or a report, and it is necessary to rely on experts to further read these retrieval results to filter out sentence-level or even phrase-level intelligence clues. Therefore, there are many problems such as low efficiency and easy screening omissions.

[0004] In response to the challenges of intelligence clue compilation, the traditional approach is to use text classification or clustering models to classify and compile intelligence clues. However, in methods represented by text classification, the classification label system is generally constructed in advance, resulting in the model often only being able to classify the input text from a single dimension. For example, the civilian news classification task only includes a few fixed categories such as sports, finance, and society. The professionalism of the intelligence research field requires the classification model to classify and compile intelligence clues of different granularities from multiple dimensions. For example, a news report belongs to the "artificial intelligence" category, while a certain sentence in it belongs to the "technology research and development" category, and another sentence belongs to the "viewpoint" category. Therefore, the existing text classification methods cannot meet the business needs of intelligence clue classification and compilation. Summary of the invention

[0005] In view of the problems of low efficiency and incomplete single-dimensional classification perspective in the screening and compilation of intelligence clues in the existing intelligence research process, the purpose of the present invention is to overcome the above-mentioned defects of the prior art and propose a hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery.

[0006] In order to achieve the above object, the present invention proposes a hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery, the method comprising:

[0007] Step 1) Collect relevant Internet open source data according to the intelligence research topic and build a full-text search index library for the research topic;

[0008] Step 2) Perform hierarchical search based on the full-text search index library according to the search keyword list to obtain a multi-granularity intelligence clue screening set;

[0009] Step 3) Based on the multi-granularity intelligence clue screening set, intelligence clues of different granularities are automatically classified in multiple dimensions to obtain a multi-dimensional intelligence clue compilation set.

[0010] As an improvement of the above method, the step 1) specifically includes:

[0011] Step 1-1) According to the intelligence research topic, relevant data is collected from the public information sources on the Internet through data mining technology to obtain a document set D = {d1,...,d i ,...,d n}, i∈[1,n], n is the total number of documents, and an index is created for the document collection based on the full-text search engine Elasticsearch and the index fields are specified;

[0012] Step 1-2) Traverse the document set D, for each document d i Perform data mapping and import the mapped fields into the index to obtain a full-text search index library G related to the intelligence research topic.

[0013] As an improvement of the above method, the index fields of step 1-1) include: document index name, document index type, document index ID number, document publication year, document brief description, language used in the document, document data source, document title, document content, document crawling time and document hyperlink.

[0014] As an improvement of the above method, the step 2) specifically includes:

[0015] Step 2-1) Based on the search keyword list W = {w1, ..., w m}, where m is the number of keywords and the search time range T s and T e, based on Elasticsearch, generate a search query statement q = Fquery (W, Ts, Te), where F query () Generates a function for the query statement;

[0016] Step 2-2) Perform a full-text search on the index library G according to the search query statement q Get chapter-level intelligence clue screening collection Among them, n * is the number of documents in the collection, n * ≤n,F retri () is the full-text search function;

[0017] Step 2-3) Traverse the collection Each document in , performs the following processing:

[0018] For a document Perform segmentation and sentence processing to obtain documents A collection of sentences Where k is According to the search keyword list W, the sentence set S is searched by combining heuristic rules and hard matching. i Filter Get Documentation A collection of sentence-level intelligence clues Among them, k * is the number of sentences after screening, k * ≤k,F filter () is the sentence-level filtering function;

[0019] Step 2-4) Summarize the intelligence clues of each article to get the set A collection of sentence-level intelligence clues

[0020] As an improvement of the above method, the step 3) specifically includes:

[0021] Step 3-1) traverse the chapter-level intelligence clue screening set, input the document body and title into the pre-established and trained topic classification model for classification, and obtain the chapter-level intelligence clue compilation set;

[0022] Step 3-2) traverse the sentence-level intelligence clue screening set, input the clue sentence into the pre-established and trained fragment classification model for classification, and obtain the sentence-level intelligence clue compilation set;

[0023] Step 3-3) Input the "opinion" type sentences in the sentence-level intelligence clue compilation set into a pre-established and trained opinion classification model for classification to obtain an opinion type intelligence clue compilation subset.

[0024] As an improvement of the above method, the step 3-1) specifically includes:

[0025] Step 3-1-1) Traverse the collection Each article in is processed as follows:

[0026] For a document Among them, t i is the title of the document, c i The main body of the document is separated by special characters [CLS] and [SEP]. i and c i The input sequence is obtained by concatenation, and the word embedding representation H0 is obtained according to the input sequence. The word embedding representation H0 is the sum of character embedding, position embedding and segment embedding;

[0027] H0 is encoded using a pre-trained language model, which includes L pre-trained Transformer blocks. H0 is encoded in sequence to obtain the following formula:

[0028]

[0029] Among them, H l and H l-1 are the hidden state representations of the outputs of the lth and l-1th Transformer blocks respectively, and TransformerBlock() represents the Transformer function;

[0030] Take the hidden state representation H of the output of the Lth Transformer block L The [CLS] bit vector H L [0] Input the multi-layer perceptron layer to obtain the probability distribution Y of topic classification topic :

[0031] Y topic =softmax(W topic H L [0])

[0032] Among them, softmax() represents the normalized exponential function, W topic is the parameter matrix of the topic classification model;

[0033] Y topic Decode and get the input document The topic classification results of topic i ;

[0034] Step 3-1-2) Summarize the collection The topic classification results of each document in the article are used to obtain a collection of chapter-level intelligence clues.

[0035] As an improvement of the above method, the step 3-2) specifically includes:

[0036] Step 3-2-1) Traverse the sentence-level intelligence clues filter set For each document The corresponding sentence-level intelligence clue set The following processing is performed:

[0037] Traversal Insider information clue sentence Use special symbols [CLS] and [SEP] as separators to concatenate the sentence to get the input sequence, and get the corresponding word embedding representation based on the input sequence Word Embedding Representation It is the sum of character embedding, position embedding and segment embedding;

[0038] Use a pre-trained language model to embed the word Encode, the pre-trained language model includes L pre-trained Transformer blocks, Encode them one by one and get the following formula:

[0039]

[0040] Take the hidden state representation of the output of the Lth Transformer block [CLS] bit vector Input the multi-layer perceptron layer to obtain the probability distribution Y of the segment classification segment :

[0041]

[0042] Among them, softmax() represents the normalized exponential function, W segment is the parameter matrix of the fragment classification model;

[0043] Y segment Decode and get the input sentence The results of the segment classification

[0044] Step 3-2-2) Summarize the collection The sentence fragment classification results of each document in the , and the collection of sentence-level intelligence clues are obtained.

[0045] As an improvement of the above method, the step 3-3) specifically includes:

[0046] Step 3-3-1) Traverse the sentence-level intelligence clues filter set The following processing is performed on all the “viewpoint” sentences in the sentence-level intelligence clue compilation set:

[0047] Use special symbols [CLS] and [SEP] as separators to concatenate the "opinion" sentences to get the input sequence, and get the corresponding word embedding representation based on the input sequence

[0048] Use a pre-trained language model to embed the word Encode, the pre-trained language model includes L pre-trained Transformer blocks, Encode them one by one and get the following formula:

[0049]

[0050] Take the hidden state representation of the output of the Lth Transformer block [CLS] bit vector Input the multi-layer perceptron layer to obtain the probability distribution Y of opinion classification opinion :

[0051]

[0052] Among them, softmax() represents the normalized exponential function, W opinion is the parameter matrix of the opinion classification model;

[0053] Y opinion Decode and obtain the fine-grained opinion classification result of the sentence;

[0054] Step 3-3-2) Summarize the collection The fine-grained opinion classification results of the "opinion" type sentences in each document are obtained to obtain the compiled subset of opinion type intelligence clues.

[0055] As an improvement of the above method, the opinion classification model and the fragment classification model have the same input data, the same network structure, and different prediction dimensions.

[0056] As an improvement of the above method, the method further includes the steps of training a topic classification model, a segment classification model and a viewpoint classification model; specifically including:

[0057] The data source is selected as news data in the field of science and technology information. After collecting texts in the field, each document is manually annotated according to the predefined subject classification categories. For a document with an annotated subject, the sentences in the document are annotated according to the predefined fragment classification categories. For "opinion" sentences, fine-grained annotation is performed according to the predefined opinion classification categories.

[0058] For the annotated documents, the document title and body are concatenated with special symbols as separators to obtain the input sequence, and the corresponding word embedding representation is obtained. The word embedding representation is then encoded using the pre-trained language model to obtain the hidden state representation of the input sequence. Based on the [CLS] bit vector of the representation, the classification probability distribution predicted by the multi-layer perceptron layer output is used to calculate the cross entropy loss function with the true classification label. The topic classification model is trained based on the loss function to obtain a topic classification model that meets the training requirements.

[0059] For the annotated sentences, special symbols are used as separators to concatenate the sentences to obtain the input sequence, and the corresponding word embedding representation is obtained. The word embedding representation is encoded using the pre-trained language model to obtain the hidden state representation of the input sequence. Based on the [CLS] bit vector of the representation, the classification probability distribution predicted by the multi-layer perceptron layer output is used to calculate the cross entropy loss function with the true classification label. The fragment classification model is trained based on the loss function to obtain a topic classification model that meets the training requirements;

[0060] For the marked "opinion" sentences, special symbols are used as separators to concatenate the sentences to get the input sequence, and the corresponding word embedding representation is obtained. The pre-trained language model is used to encode the word embedding representation to obtain the latent state representation of the input sequence. Based on the [CLS] bit vector of the representation, the classification probability distribution predicted by the multi-layer perceptron layer output is used to calculate the cross entropy loss function with the true classification label. The opinion classification model is trained based on the loss function to obtain an opinion classification model that meets the training requirements.

[0061] Compared with the prior art, the advantages of the present invention are:

[0062] 1. The present invention proposes a hierarchical retrieval method, which uses full-text search, keyword matching and other technical means in a human-computer combination manner to simply and efficiently implement a retrieval method from coarse-grained to fine-grained, so as to achieve the purpose of recalling a multi-granularity intelligence clue screening set at the chapter level / sentence level. Compared with expert reading and selecting intelligence clues, this method not only significantly improves the intelligence clue screening efficiency, but also can simultaneously ensure a high recall rate and accuracy rate;

[0063] 2. The present invention designs a multi-dimensional automatic classification method. To address the problem of incomplete single-dimensional classification perspective of traditional classification models, the present invention combines topic classification, fragment classification, and viewpoint classification models to automatically classify multi-granularity intelligence clues from multiple dimensions, thereby effectively improving the efficiency and accuracy of the classification and compilation of intelligence clues. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 It is a hierarchical information retrieval and multi-dimensional classification flow chart for intelligence clue screening and compilation of the present invention;

[0065] Figure 2 It is a schematic diagram of hierarchical information retrieval;

[0066] Figure 3 It is a schematic diagram of the structure of the topic classification model;

[0067] Figure 4 It is a schematic diagram of the structure of the fragment classification model and the opinion classification model. DETAILED DESCRIPTION

[0068] The present invention proposes a hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery, including a hierarchical information retrieval module and a multi-dimensional classification module. The method includes:

[0069] Step 1) Given the collected Internet open source data related to the intelligence research topic, a full-text search index library for the research topic is constructed;

[0070] Step 2) Given a list of search keywords, perform hierarchical information retrieval based on the above index library, including chapter-level coarse-grained retrieval and sentence-level fine-grained retrieval steps to obtain a multi-granularity intelligence clue screening set;

[0071] Step 3) Given a screening set of multi-granular intelligence clues retrieved and recalled, perform multi-dimensional automatic classification on intelligence clues of different granularities, including three dimensions of subject classification, fragment classification, and opinion classification, to obtain a compilation set of multi-dimensional intelligence clues.

[0072] In the above technical solution, the step 1) specifically includes:

[0073] Step 1-1) Given an intelligence research topic and relevant Internet open source data collected, create a document index and formulate a data mapping based on the full-text search engine Elasticsearch;

[0074] Step 1-2) Import the collected data into the index according to the data mapping format to obtain a full-text search index library related to the intelligence topic.

[0075] In the above technical solution, the step 2) specifically includes:

[0076] Step 2-1) Given a search keyword list and a search time range, generate a search query statement;

[0077] Step 2-2) Performing a coarse-grained search at the chapter level, performing a full-text search on the index library based on the search query statement, and obtaining a chapter-level intelligence clue screening set;

[0078] Step 2-3) Perform sentence-level fine-grained retrieval, segment and sentence-by-sentence processing of the chapter-level intelligence clues, filter the sentence set based on the search keyword list, combining heuristic rules and hard matching to obtain a sentence-level intelligence clue screening set.

[0079] In the above technical solution, the step 3) specifically includes:

[0080] Step 3-1) traverse the chapter-level intelligence clue screening set, input the document body and title into the subject classification model for classification, and obtain the chapter-level intelligence clue compilation set;

[0081] Step 3-2) traverse the sentence-level intelligence clue screening set, input the clue sentence into the fragment classification model for classification, and obtain the sentence-level intelligence clue compilation set;

[0082] Step 3-3) Input the "opinion" type sentences in the sentence-level intelligence clue compilation set into the opinion classification model for classification to obtain the opinion type intelligence clue compilation subset.

[0083] In view of the multi-dimensional automatic classification requirements involved in the above method, the main steps of training the topic classification, segment classification, and opinion classification models in the present invention include:

[0084] Step S1) collecting news data in the field of scientific and technological information, and annotating the data according to the label system of subject classification, segment classification, and viewpoint classification to obtain an annotated data set;

[0085] Step S2) training a topic classification model based on the annotated data to output topic categories of chapter-level intelligence clues;

[0086] Step S3) training a segment classification model based on the annotated data to output the segment categories of sentence-level intelligence clues;

[0087] Step S4) Train an opinion classification model based on the annotated data to output fine-grained opinion categories of sentence-level intelligence clues of the “opinion” type.

[0088] The technical solution of the present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0089] Example 1

[0090] like Figure 1 As shown, the present invention proposes a hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery, which mainly includes the following steps:

[0091] Step 1) Given the collected open source Internet data related to the intelligence research topic, a full-text search index library for the research topic is constructed, which specifically includes the following steps: Given an intelligence research topic, firstly collect relevant data from the Internet public information source through data mining technology to obtain a document set D = {d1,...,d n}, n is the total number of documents; then, based on the full-text search engine Elasticsearch, create an index for the document collection and specify the index fields. A typical document index is shown in Table 1. Then, traverse the document collection D, for each document d i Perform data mapping, for example, map the title of the document to the title field, and import the mapped field into the index to obtain a full-text search index library G related to the intelligence topic.

[0092] Table 1 Document index example

[0093] Index fields Field Explanation index Document index name type Document index type id Document index ID year Document publication year description A brief description of the document language Language of this document source The data source for this document title Document Title content Document Content crawled Document crawling time url Hyperlink to this document

[0094] Step 2) Given a list of search keywords, perform hierarchical information retrieval based on the above index library, including coarse-grained retrieval at the chapter level and fine-grained retrieval at the sentence level, and obtain a multi-granularity intelligence clue screening set. The flowchart is as follows: Figure 2 As shown, the specific steps include: first

[0095] Perform a coarse-grained search at the chapter level, given a search keyword list W = {w1,...,w m}, where m is the number of keywords and the search time range T s and T e , based on Elasticsearch, generate the search query q=F query (W,T s ,T e ), where F query Generate a function for the query statement. Next, perform a full-text search on the index library G based on the search query statement q. Return to the chapter-level intelligence clues filter collection where n * ≤n is the number of documents in the collection, F retri It is a full-text search function.

[0096] After conducting a coarse-grained search at the chapter level, the collection is filtered based on intelligence clues. Perform sentence-level fine-grained retrieval. Specifically, for the collection A document in First, perform segmentation and sentence processing to obtain the sentence set of the document Where k is the number of sentences. Next, given a list of search keywords W, we combine heuristic rules with hard matching to search for the sentence set S. i Filter Get Documentation A collection of sentence-level intelligence clues where k * ≤k is the number of sentences after screening, F filter is a sentence-level filtering function. On this basis, Perform the above filtering operation on all documents in the collection, and finally summarize the results to get the collection A collection of sentence-level intelligence clues

[0097] Step 3) Given the multi-granularity intelligence clue screening set for retrieval recall The intelligence clues of different granularities are classified in multiple dimensions, including thematic classification, fragment classification, and viewpoint classification, to obtain a collection of multi-dimensional intelligence clues. The specific steps include the following:

[0098] First, the intelligence clues at the chapter level are classified by subject. The subject classification includes 23 categories, including 22 topics such as artificial intelligence and 5G technology, and 1 "none" category, which means that the document does not belong to any of the above topics. Some of the public subject classification categories are shown in Table 2.

[0099] Table 2 Classification of some public topics

[0100] AI Unmanned Systems 5G Technology Quantum Technology Electronic Information Biotechnology Advanced Materials and Manufacturing Basic Science …

[0101] The specific steps for performing topic classification are as follows: First, traverse the chapter-level intelligence clue screening collection For collection A document in where t i is the title of the document, c i For the body of the document, i and c i After concatenation, the input sequence is as follows <[CLS], Tok1,…, Tok |t| ,[SEP],Tok1,…,Tok |c| ,[SEP]>, where the title contains |t| characters: Tok1,…,Tok |t| , the text contains |c| characters: Tok1,…,Tok |c| , [CLS] and [SEP] are special separators. Next, the sequence is input into the topic classification model for classification. The topic classification model structure diagram is shown in Figure 3Specifically, we first obtain the word embedding representation H0 of the sequence, which is the sum of character embedding, position embedding and segment embedding, and its dimension is (|t|+|c|+2)×|h|, where |h| represents the hidden state dimension. Then, we use a pre-trained language model such as BERT to encode the word embedding representation, which uses L pre-trained Transformer blocks to encode the embedding representation H0 of the input sequence in sequence:

[0102]

[0103] Among them, H l is the hidden state representation of the output of the lth Transformer block, and TransformerBlock() represents the Transformer function;

[0104] Take the hidden state representation H of the output of the Lth Transformer block L The [CLS] bit vector H L [0] Input the multi-layer perceptron layer to obtain the probability distribution Y of topic classification topic :

[0105] Y topic =softmax(W topic H L [0])

[0106] Where W topic is the parameter matrix of the topic classification model with dimension 23×|h|, Y topic is a probability distribution with a dimension of 23. By decoding this probability distribution, we can get the input document The topic classification results of topic i .

[0107] Secondly, we perform segment classification on sentence-level intelligence clues. The segment classification includes 19 categories, including 18 categories such as R&D, deployment, and opinions, as well as 1 "none" category, which means that the sentence does not belong to any of the above categories. Some of the publicly available segment classification categories are shown in Table 3.

[0108] Table 3 Classification of some publicly available fragments

[0109] Research and Development Production deploy test deliver Announcement Viewpoint Influence …

[0110] The specific steps for performing segment classification are as follows: First, traverse the sentence-level intelligence clue screening set For each document The corresponding sentence-level intelligence clue set Traverse the intelligence clue sentences in the collection The sentence is concatenated using the special symbols [CLS] and [SEP] as separators, and the input sequence is as follows: <[CLS], Tok1,…, Tok |s| ,[SEP]>, where |s| represents the number of characters in the sentence. Next, the sequence is input into the segment classification model for classification. The structure diagram of the segment classification model is shown in Figure 4 Specifically, we first obtain the word embedding representation of the sequence The word embedding is represented as the sum of character embedding, position embedding and segment embedding, and its dimension is (|s|+2)×|h|. The word embedding representation is then encoded using a pre-trained language model such as BERT, which uses L pre-trained Transformer blocks to embed the input sequence. Encode in sequence:

[0111]

[0112] Take the hidden state representation of the output of the Lth Transformer block [CLS] bit vector Input the multi-layer perceptron layer to obtain the probability distribution Y of the segment classification segment :

[0113]

[0114] Where W segment is the parameter matrix of the fragment classification model with dimension 19×|h|, Y segment is a probability distribution with a dimension of 19. By decoding this probability distribution, we can get the input sentence The results of the segment classification

[0115] Finally, opinion classification is performed on the sentence-level intelligence clues of the "opinion" category. The specific steps for performing opinion classification are basically the same as the fragment classification steps. Specifically, first, for the "opinion" sentence, the special symbols [CLS] and [SEP] are used as delimiters to concatenate the sentence to obtain the input sequence <[CLS], input sentence, [SEP]>. On this basis, the word embedding representation of the input sequence is obtained. This word embedding representation is then encoded using a pre-trained language model:

[0116]

[0117] Take the hidden state representation of the output of the Lth Transformer block [CLS] bit vector Input the multi-layer perceptron layer to obtain the probability distribution Y of opinion classification opinion :

[0118]

[0119] Where W opinion is the parameter matrix of the opinion classification model with dimension 5×|h|, Y opinion is a probability distribution with a dimension of 5. By decoding this probability distribution, we can get the fine-grained opinion classification result of the input "opinion" sentence.

[0120] In view of the multi-dimensional automatic classification requirements involved in the above method, the main steps of training the topic classification, segment classification, and opinion classification models in the present invention include:

[0121] Step S1) annotating classified data, specifically including the following steps: first, determining that the data source is news data in the field of science and technology information, and after collecting texts in the field, manually annotating each document according to the predefined subject classification category. Then, for a document with an annotated subject, annotate the sentences in the document according to the predefined fragment classification category. In particular, for sentences of the "viewpoint" category, fine-grained annotation is performed according to the predefined viewpoint classification category.

[0122] Step S2) training a topic classification model based on the annotated data, specifically comprising the following steps: for the annotated document, concatenate the document title and text using special symbols [CLS] and [SEP] as separators to obtain an input sequence <[CLS], title, [SEP], text, [SEP]>, and obtain a word embedding representation of the input sequence, and then use a pre-trained language model to encode the word embedding representation to obtain a hidden state representation of the input sequence. Based on the [CLS] bit vector of the representation, the classification probability distribution predicted by the multi-layer perceptron layer output is used to calculate the cross entropy loss function with the true classification label, and finally the topic classification model is trained based on the loss function.

[0123] Step S3) training a segment classification model based on the annotated data, specifically comprising the following steps: for the annotated sentences, concatenate the sentences using special symbols [CLS] and [SEP] as separators to obtain an input sequence <[CLS], sentence, [SEP]>, and obtain a word embedding representation of the input sequence, and then use a pre-trained language model to encode the word embedding representation to obtain a hidden state representation of the input sequence. Based on the [CLS] bit vector of the representation, the classification probability distribution predicted by the multi-layer perceptron layer output is used to calculate the cross entropy loss function with the true classification label, and finally the segment classification model is trained based on the loss function.

[0124] Step S4) trains the opinion classification model based on the labeled data. Since the opinion classification model has the same input data and network structure as the above-mentioned fragment classification model and only the prediction dimension is different, the training steps are the same as step S3) and will not be repeated here.

[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that any modification or equivalent replacement of the technical solutions of the present invention does not depart from the spirit and scope of the technical solutions of the present invention and should be included in the scope of the claims of the present invention.

Claims

1. A hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery, the method comprising: Step 1) Collect relevant Internet open source data according to the intelligence research topic and build a full-text search index library for the research topic; Step 2) Perform hierarchical search based on the full-text search index library according to the search keyword list to obtain a multi-granularity intelligence clue screening set; Step 3) According to the multi-granularity intelligence clue screening set, the intelligence clues of different granularities are automatically classified in multiple dimensions to obtain a multi-dimensional intelligence clue compilation set; The step 1) specifically includes: Step 1-1) According to the intelligence research topic, relevant data is collected from the public information sources on the Internet through data mining technology to obtain a document set D = {d1,...,d i ,...,d n }, i∈[1,n], n is the total number of documents, and an index is created for the document collection based on the full-text search engine Elasticsearch and the index fields are specified; Step 1-2) Traverse the document set D, for each document d i Perform data mapping and import the mapped fields into the index of the document to obtain a full-text search index library G related to the intelligence research topic; The index fields of step 1-1) include: document index name, document index type, document index ID number, document publication year, document brief description, document language, document data source, document title, document content, document crawling time and document hyperlink; The step 2) specifically includes: Step 2-1) Based on the search keyword list W = {w1, ..., w m }, where m is the number of keywords and the search time range T s and T e , based on Elasticsearch, generate a search query statement q = Fquery (W, Ts, Te), where F query () Generates a function for the query statement; Step 2-2) Perform a full-text search on the full-text search index library G according to the search query statement q Get chapter-level intelligence clue screening collection Among them, n * is the number of documents in the collection, n * ≤n,F retri () is the full-text search function; Step 2-3) Traverse the collection Each document in , performs the following processing: For a document Perform segmentation and sentence processing to obtain documents A collection of sentences Where k is According to the search keyword list W, the sentence set S is searched by combining heuristic rules and hard matching. i Filter Get Documentation A collection of sentence-level intelligence clues Among them, k * is the number of sentences after screening, k * ≤k,F filter () is the sentence-level filtering function; Step 2-4) Summarize the intelligence clues of each article to get the set A collection of sentence-level intelligence clues The step 3) specifically includes: Step 3-1) traverse the chapter-level intelligence clue screening set, input the document body and title into the pre-established and trained topic classification model for classification, and obtain the chapter-level intelligence clue compilation set; Step 3-2) traverse the sentence-level intelligence clue screening set, input the clue sentence into the pre-established and trained fragment classification model for classification, and obtain the sentence-level intelligence clue compilation set; Step 3-3) inputting the opinion-type sentences in the sentence-level intelligence clue compilation set into a pre-established and trained opinion classification model for classification, thereby obtaining an opinion-type intelligence clue compilation subset; The step 3-1) specifically includes: Step 3-1-1) Traverse the collection Each article in is processed as follows: For a document Among them, t i is the title of the document, c i The main body of the document is separated by special characters [CLS] and [SEP]. i and c i The input sequence is obtained by concatenation, and the word embedding representation H0 is obtained according to the input sequence. The word embedding representation H0 is the sum of character embedding, position embedding and segment embedding; H0 is encoded using a pre-trained language model, which includes L pre-trained Transformer blocks. H0 is encoded in sequence to obtain the following formula: Among them, H l and H l-1 are the hidden state representations of the outputs of the lth and l-1th Transformer blocks, respectively. TransformerBlock() represents the Transformer function; Take the hidden state representation H of the output of the Lth Transformer block L The [CLS] bit vector H L [0] Input the multi-layer perceptron layer to obtain the probability distribution Y of topic classification topic : Y topic =softmax(W topic H L [0]) Among them, softmax() represents the normalized exponential function, W topic is the parameter matrix of the topic classification model; Y topic Decode and get the input document The topic classification results of topic i ; Step 3-1-2) Summarize the collection The topic classification results of each document in the article are used to obtain a collection of chapter-level intelligence clues; The step 3-2) specifically includes: Step 3-2-1) Traverse the sentence-level intelligence clues filter set For each document The corresponding sentence-level intelligence clue set The following processing is performed: Traversal Insider information clue sentence The sentence is concatenated using special symbols [CLS] and [SEP] as separators to obtain the input sequence, and the corresponding word embedding representation is obtained based on the input sequence Word Embedding Representation It is the sum of character embedding, position embedding and segment embedding; Use a pre-trained language model to embed the word Encode, the pre-trained language model includes L pre-trained Transformer blocks, Encode them one by one and get the following formula: Take the hidden state representation of the output of the Lth Transformer block [CLS] bit vector Input the multi-layer perceptron layer to obtain the probability distribution Y of the segment classification segment : Among them, softmax() represents the normalized exponential function, W segment is the parameter matrix of the fragment classification model; Y segment Decode and get the input sentence The results of the segment classification Step 3-2-2) Summarize the collection The sentence fragment classification results of each document in the text are used to obtain a collection of sentence-level intelligence clues; The step 3-3) specifically includes: Step 3-3-1) Traverse the sentence-level intelligence clues filter set The opinion sentences in the sentence-level intelligence clue compilation set are all processed as follows: Use special symbols [CLS] and [SEP] as separators to concatenate opinion sentences to obtain the input sequence, and then get the corresponding word embedding representation based on the input sequence Use a pre-trained language model to embed the word Encode, the pre-trained language model includes L pre-trained Transformer blocks, Encode them one by one and get the following formula: Take the hidden state representation of the output of the Lth Transformer block [CLS] bit vector Input the multi-layer perceptron layer to obtain the probability distribution Y of opinion classification opinion : Among them, softmax() represents the normalized exponential function, W opinion is the parameter matrix of the opinion classification model; Y opinion Decode and obtain the fine-grained opinion classification result of the sentence; Step 3-3-2) Summarize the collection The fine-grained opinion classification results of opinion-related sentences in each document are obtained to obtain a compiled subset of opinion-related intelligence clues.

2. The hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery according to claim 1 is characterized in that: The opinion classification model and the fragment classification model have the same input data and the same network structure, but different prediction dimensions.

3. The hierarchical retrieval and multi-dimensional classification method for intelligence clue discovery according to claim 2 is characterized in that: The method also includes the steps of training a topic classification model, a segment classification model and a viewpoint classification model; specifically including: The data source is selected as news data in the field of science and technology information. After collecting texts in the field, each document is manually annotated according to the predefined subject classification categories. For a document with an annotated subject, the sentences in the document are annotated according to the predefined fragment classification categories. For opinion sentences, fine-grained annotation is performed according to the predefined opinion classification categories. For the annotated documents, the document title and body are concatenated with special symbols as separators to obtain the input sequence, and the corresponding word embedding representation is obtained. The word embedding representation is then encoded using the pre-trained language model to obtain the hidden state representation of the input sequence. Based on the [CLS] bit vector of the representation, the classification probability distribution predicted by the multi-layer perceptron layer output is used to calculate the cross entropy loss function with the true classification label. The topic classification model is trained based on the loss function to obtain a topic classification model that meets the training requirements. For the annotated sentences, special symbols are used as separators to concatenate the sentences to obtain the input sequence, and the corresponding word embedding representation is obtained. The word embedding representation is encoded using the pre-trained language model to obtain the hidden state representation of the input sequence. Based on the [CLS] bit vector of the representation, the classification probability distribution predicted by the multi-layer perceptron layer output is used to calculate the cross entropy loss function with the true classification label. The fragment classification model is trained based on the loss function to obtain a topic classification model that meets the training requirements; For the marked opinion sentences, special symbols are used as separators to concatenate the sentences to obtain the input sequence, and the corresponding word embedding representation is obtained. The word embedding representation is encoded using a pre-trained language model to obtain the latent state representation of the input sequence. Based on the [CLS] bit vector of the representation, the classification probability distribution predicted by the multi-layer perceptron layer output is used to calculate the cross entropy loss function with the true classification label. The opinion classification model is trained based on the loss function to obtain an opinion classification model that meets the training requirements.