Intelligent extraction method and system of text topics based on NLP technology

By identifying document modal types, extracting text, image and audio features, and calculating topic similarity, the problem of insufficient pure text extraction in the existing technology is solved, and the comprehensiveness and accuracy of topic extraction for documents in multiple modalities are achieved. .

CN118484665BActive Publication Date: 2024-09-27CIVIL AVIATION FLIGHT UNIV OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410946482.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-27
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

Existing technology can only perform topic extraction on plain text documents and cannot identify documents containing images, audio and video data, resulting in inaccurate topic extraction.

Method used

By receiving the modal type of the document to be extracted, determine the appropriate NLP feature extraction method, extract text, image and audio feature information, and input it into the topic extraction model, calculate the similarity and weight of alternative topics, and fuse topic distribution to obtain target topic.

Benefits of technology

It achieves the comprehensiveness and accuracy of feature extraction for different types of documents, obtains more comprehensive topics through topic fusion, and improves the accuracy and quality of extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118484665B
    Figure CN118484665B
Patent Text Reader

Abstract

The present application discloses an intelligent extraction method and system for text topics based on NLP technology, which belongs to the field of NLP. The method includes: receiving an input document to be extracted, determining the modal type of the document to be extracted; determining a target NLP feature extraction method, and using this method to determine the feature information corresponding to the document to be extracted; inputting the feature information into a preset topic extraction model, and determining at least two candidate topics; obtaining the topic distribution vector of each candidate topic, and calculating the similarity between each candidate topic; determining the weight information of the candidate topic that reaches a preset similarity threshold, calculating the topic distribution of the target topic, normalizing the topic distribution and topic mapping, and obtaining the target topic. The present application can adopt appropriate feature extraction methods for different types of documents, thereby ensuring the comprehensiveness and accuracy of the features. By calculating the similarity of the candidate topics and performing topic fusion, a more comprehensive topic can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of NLP technology, and in particular to an intelligent extraction method and system for text topics based on NLP technology. Background Art

[0002] With the advent of the big data era, the processing and analysis of text data has become increasingly important. Nowadays, we are exposed to massive amounts of text information every day, and manual processing and analysis of these text data is not only inefficient but also prone to errors. In this context, there is research on intelligent extraction of text topics.

[0003] Nowadays, intelligent extraction of text topics is achieved through natural language processing technology, which can be used to extract key information from texts. Then, by building a deep learning model, intelligent extraction of text topics is achieved for the input text.

[0004] However, current technology can only extract topics from plain text documents, but cannot identify documents containing images and audio and video data. However, images and audio and video data may be closely related to the topic. Extracting topics based only on text may result in inaccurate final extracted topics. Summary of the invention

[0005] The present application provides a method and system for intelligently extracting text topics based on NLP technology, which solves the problem that topics can only be extracted from plain text documents, but documents containing images and audio and video data cannot be identified. However, images and audio and video data may be closely related to the topics, and topic extraction based only on text may result in inaccurate topics.

[0006] According to a first aspect of the present application, a method for intelligently extracting text topics based on NLP technology is provided, the method comprising:

[0007] Receiving an input document to be extracted, and determining a modality type of the document to be extracted;

[0008] Determine a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme, and use the target NLP feature extraction method to determine first feature information corresponding to the document to be extracted in this modality;

[0009] Inputting the first feature information into a preset topic extraction model to determine at least two candidate topics;

[0010] Obtaining a topic distribution vector of each candidate topic, and calculating the similarity between the candidate topics according to the topic distribution vector and a preset candidate topic similarity calculation formula;

[0011] Among them, the preset candidate topic similarity calculation formula is:

[0012] ;

[0013] Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic;

[0014] Determine the weight information of the candidate topics that reach the preset similarity threshold according to the similarity and the preset weight distribution scheme, obtain the topic distribution vector of the candidate topics that reach the preset similarity threshold, calculate the topic distribution of the target topic according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, normalize and topic map the topic distribution, and obtain the target topic;

[0015] Among them, the preset topic distribution calculation formula is:

[0016] ;

[0017] in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold.

[0018] Further, determining a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme includes:

[0019] If the modality type is a plain text modality, determining the target NLP feature extraction method as a first NLP feature extraction method according to a preset NLP feature extraction scheme;

[0020] Accordingly, the target NLP feature extraction method is used to determine the first feature information corresponding to the document to be extracted in this modality, including:

[0021] Performing word segmentation processing on the document to be extracted to obtain word segmentation information of the document to be extracted;

[0022] Determine the syntactic structure of the document to be extracted and the high-dimensional vector of each word corresponding to the word segmentation information of the document to be extracted according to the word segmentation information;

[0023] The first feature information corresponding to the document to be extracted in the plain text mode is determined according to the word segmentation information, the syntactic structure and the high-dimensional vector.

[0024] Furthermore, the first feature information is input into a preset topic extraction model to determine at least two candidate topics, including:

[0025] If the modality type is a plain text modality, the first feature information is input into a preset topic extraction model, and the vocabulary information of the document to be extracted is determined according to the word segmentation information;

[0026] Determining semantic information of the document to be extracted according to the syntactic structure;

[0027] Determining the word relevance of the document to be extracted according to the high-dimensional vector;

[0028] At least two candidate topics are determined according to the vocabulary information, the semantic information and the word relevance.

[0029] Further, determining a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme also includes:

[0030] If the modality type is a combination of a multimedia modality and a text modality, determining the target NLP feature extraction method as a second NLP feature extraction method according to a preset NLP feature extraction scheme;

[0031] Accordingly, the target NLP feature extraction method is used to determine the first feature information corresponding to the document to be extracted in this modality, including:

[0032] Acquire text information and multimedia information of the document to be extracted;

[0033] Performing word segmentation processing on the text information to obtain word segmentation information of the text information;

[0034] Determine the syntactic structure of the text information and the high-dimensional vector of each word corresponding to the word segmentation information of the text information according to the word segmentation information;

[0035] Extracting features from the multimedia information to obtain a feature vector of the multimedia information;

[0036] The first feature information corresponding to the document to be extracted in the combination of multimedia modality and text modality is determined according to the word segmentation information, the syntactic structure, the high-dimensional vector and the feature vector.

[0037] Furthermore, the first feature information is input into a preset topic extraction model to determine at least two candidate topics, and further includes:

[0038] If the modality type is a combination of multimedia modality and text modality, inputting the first feature information into a preset topic extraction model, and determining image features and / or audio features according to the feature vector;

[0039] Determine the vocabulary information of the document to be extracted according to the word segmentation information;

[0040] Determining semantic information of the document to be extracted according to the syntactic structure;

[0041] Determining the word relevance of the document to be extracted according to the high-dimensional vector;

[0042] At least two candidate topics are determined according to the image features and / or audio features, the vocabulary information, the semantic information and the word relevance.

[0043] Furthermore, the construction process of the preset topic extraction model includes:

[0044] Acquire historical documents to be extracted, corresponding modality types, corresponding first feature information, and corresponding topic tags, and create a first data set according to the historical documents to be extracted, corresponding modality types, corresponding first feature information, and corresponding topic tags;

[0045] Build a topic extraction model;

[0046] The first data set is input into the topic extraction model for training until the network converges and the training is stopped, thereby obtaining a trained topic extraction model with network parameters.

[0047] Furthermore, after obtaining the target topic, the method further includes:

[0048] Obtaining user feedback information, and determining model optimization suggestions based on the user feedback information;

[0049] Incremental learning is performed on the topic extraction model according to the model optimization suggestion to obtain an updated topic extraction model.

[0050] Furthermore, after obtaining the target topic, the method further includes:

[0051] Evaluate the performance of the topic extraction model according to a preset monitoring period and a preset model evaluation criterion;

[0052] If the topic extraction model does not meet the preset model evaluation standard, obtaining an existing document to be extracted, a corresponding modality type, a corresponding first feature information, and a corresponding topic label, and creating a second data set according to the existing document to be extracted, the corresponding modality type, the corresponding first feature information, and the corresponding topic label;

[0053] The topic extraction model is retrained according to the second data set until a preset model evaluation standard is reached.

[0054] Further, after determining a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme, and using the target NLP feature extraction method to determine first feature information corresponding to the document to be extracted in this modality, the method further includes:

[0055] Generate an encryption key and a decryption key according to a preset key generation algorithm, and encrypt the first feature information according to the encryption key to obtain the encrypted first feature information;

[0056] Transmitting the decryption key and the encrypted first feature information to a preset topic extraction model;

[0057] Accordingly, the first feature information is input into a preset topic extraction model to determine at least two candidate topics, including:

[0058] The first feature information is input into a preset topic extraction model, the encrypted first feature information is decrypted using the decryption key through the preset topic extraction model, and at least two candidate topics are determined based on the decrypted first feature information.

[0059] According to a second aspect of the present application, there is provided an intelligent extraction system for text topics based on NLP technology, the system comprising:

[0060] A modality type determination module, used to receive an input document to be extracted and determine the modality type of the document to be extracted;

[0061] A feature information determination module, used to determine a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme, and use the target NLP feature extraction method to determine the first feature information corresponding to the document to be extracted in this modality;

[0062] A candidate topic determination module, used for inputting the first feature information into a preset topic extraction model to determine at least two candidate topics;

[0063] A candidate topic similarity determination module is used to obtain a topic distribution vector of each candidate topic, and calculate the similarity between the candidate topics according to the topic distribution vector and a preset candidate topic similarity calculation formula;

[0064] Among them, the preset candidate topic similarity calculation formula is:

[0065] ;

[0066] Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic;

[0067] The target topic determination module is used to determine the weight information of the candidate topics that reach the preset similarity threshold according to the similarity and the preset weight distribution scheme, obtain the topic distribution vector of the candidate topics that reach the preset similarity threshold, calculate the topic distribution of the target topic according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, normalize and topic map the topic distribution, and obtain the target topic; wherein the preset topic distribution calculation formula is:

[0068] ;

[0069] in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold.

[0070] In an embodiment of the present application, an input document to be extracted is received, and the modal type of the document to be extracted is determined; a target NLP feature extraction method is determined according to the modal type and a preset NLP feature extraction scheme, and the target NLP feature extraction method is used to determine the first feature information corresponding to the document to be extracted under this modality; the first feature information is input into a preset topic extraction model to determine at least two candidate topics; a topic distribution vector of each candidate topic is obtained, and the similarity between each candidate topic is calculated according to the topic distribution vector and a preset candidate topic similarity calculation formula; wherein the preset candidate topic similarity calculation formula is:

[0071] ;

[0072] Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic; according to the similarity and the preset weight distribution scheme, the weight information of the candidate topic that reaches the preset similarity threshold is determined, the topic distribution vector of the candidate topic that reaches the preset similarity threshold is obtained, the topic distribution of the target topic is calculated according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, the topic distribution is normalized and topic-mapped to obtain the target topic; wherein the preset topic distribution calculation formula is:

[0073] ;

[0074] in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold. Through the above-mentioned intelligent extraction method of text topics based on NLP technology, appropriate feature extraction methods can be used for different types of documents, thereby ensuring the comprehensiveness and accuracy of the features. By calculating the similarity of candidate topics and performing topic fusion, more comprehensive topics can be obtained.

[0075] It should be understood that the contents described in the Summary of the Invention are not intended to limit the key or important features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, among which:

[0077] Figure 1 It is a flowchart of a method for intelligently extracting text topics based on NLP technology provided in Example 1 of the present application;

[0078] Figure 2 This is a flow chart of a method for intelligently extracting text topics based on NLP technology provided in Example 2 of the present application;

[0079] Figure 3 It is a flowchart of a method for intelligently extracting text topics based on NLP technology provided in Example 3 of the present application;

[0080] Figure 4 It is a structural diagram of an intelligent extraction system for text topics based on NLP technology provided in Example 4 of the present application. DETAILED DESCRIPTION

[0081] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0082] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0083] The following, in conjunction with the accompanying drawings, describes in detail the method for intelligently extracting text topics based on NLP technology provided in the embodiment of the present application through specific embodiments and their application scenarios.

[0084] Embodiment 1

[0085] Figure 1 1 is a flow chart of an intelligent method for extracting text topics based on NLP technology provided in the first embodiment of the present application. Figure 1 As shown, the specific steps include:

[0086] S101, receiving an input document to be extracted, and determining the modality type of the document to be extracted.

[0087] First of all, the usage scenario of this solution can be to obtain documents and extract modal types, use the corresponding NLP feature extraction method to extract features from the extracted documents according to the modal type of the document, and input the obtained feature information into the preset topic extraction model to obtain at least two alternative topics, and determine the target topic scenario based on the similarity of each alternative topic.

[0088] Based on the above usage scenarios, it can be understood that the executor of the present application can be an intelligent extraction system for text topics based on NLP technology that integrates the functions of determining document modality, determining document feature information, determining alternative topics, and determining target topics. No excessive limitations are made here.

[0089] In this solution, the document to be extracted can be a file in various forms, such as a Word document, a PDF file, a web page content, or text in an image.

[0090] The modality type may be a type corresponding to the main content contained in the document. In this solution, it can be divided into two modality types, one is a pure text modality, and the other is a combination of a multimedia modality and a text modality.

[0091] The input document to be extracted can be received through wireless communication technology, and text analysis, computer vision and audio processing technology can be performed on the document to be extracted. Specifically, text analysis can include language detection, topic recognition and keyword extraction, etc., to further determine whether it contains only pure text information. Computer vision and audio processing technology can detect whether it contains multimedia content, such as images, videos or audio clips. Finally, the text content analysis results and the multimedia information detection results are comprehensively considered to determine the final modal type of the document.

[0092] S102, determining a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme, and using the target NLP feature extraction method to determine first feature information corresponding to the document to be extracted in this modality.

[0093] The preset NLP feature extraction scheme may be a set of methods or techniques for extracting information from documents that are pre-set according to the modality type. Specifically, the NLP feature extraction methods under the two modality types may be combined to form an NLP feature extraction scheme. For extracting information from text, the methods may include a bag-of-words model, TF-IDF (Term Frequency-Inverse Document Frequency, a statistical method), and a word embedding vector. Among them, the bag-of-words model can represent text as a collection of words, ignoring their order and grammar, and only considering the frequency of word occurrence. TF-IDF can combine word frequency and inverse document frequency to measure the importance of words in a document collection. The word embedding vector can map words into a high-dimensional vector space to capture the semantic relationship between words. For the combination of multimedia modality and text modality, the multimedia information can be converted into a text description or label, and then feature extraction is performed on it together with the text content. Specifically, the multimedia information can be processed using image processing or audio processing technology, and then the method for extracting information from text, that is, the bag-of-words model, TF-IDF (Term Frequency-Inverse Document Frequency, a statistical method), and the word embedding vector are used to extract features from all text information and the processed text description or label. Among them, image processing technology may include image feature extraction, image classification or object detection and image annotation. Image feature extraction may be the use of computer vision technology to extract features from images, such as color histograms, texture features, and shape descriptors. Image classification or object detection may be the use of image classification algorithms or object detection algorithms to identify the content in an image and generate corresponding text descriptions or labels. Image annotation may be the use of image annotation technology to convert an image into a natural language description, such as using a convolutional neural network combined with a recurrent neural network to generate an image description. Audio processing technology may include audio feature extraction and speech recognition. Audio feature extraction may be the use of audio signal processing technology to extract audio features, such as Mel-frequency cepstral coefficients and spectrograms. Speech recognition may be the use of speech recognition technology to convert audio into text.

[0094] The target NLP feature extraction method may be a specific algorithm or technology for extracting text features selected according to a preset scheme. Specifically, according to the modality type of the document, a corresponding feature extraction method in the preset scheme may be selected to actually extract feature information from the document.

[0095] The first feature information may be key information extracted from the document, used to describe the content, structure and features of the document. Specifically, it may include keywords, named entities, grammatical structures, semantic information and specific modal information, etc., which can be converted into numerical form for further analysis. Among them, keywords may be words or phrases that are important or representative in the document. Named entities may refer to entities with specific meanings in the document, such as names of people, places and organizations. Grammatical structures may describe the structure and grammatical relations of sentences in the document, such as subject-verb-object relations and modification relations. Semantic information may describe the semantic relations between words or sentences in the document, specifically, it may include word meaning similarity and semantic relevance. If the document is multimodal, the feature information may also include specific modal information, i.e., image features and audio features related to the text.

[0096] The modality type of the document to be extracted can be determined, that is, pure text modality or a combination of multimedia modality and text modality. According to the modality type and the preset NLP feature extraction scheme, the corresponding target NLP feature extraction method is selected. For example, for pure text modality, the preset TF-IDF feature extraction method can be used, which can include calculating TF-IDF values ​​and extracting keywords, etc.; for the combination of multimedia modality and text modality, the multimedia information can be converted into text descriptions or labels, and then combined with the text content, and feature extraction can be performed using word embedding vectors. Specifically, the word embedding model can be used to convert the text content and the text description or label of the multimedia information into a vector representation. For each document, the word embedding vector of the text content is combined with the word embedding vector of the multimedia information to form a comprehensive document vector.

[0097] S103: Input the first feature information into a preset topic extraction model to determine at least two candidate topics.

[0098] The preset topic extraction model can be a model for extracting topics or themes from text. Specifically, it can be a technology based on topic modeling, such as LDA (Latent Dirichlet Allocation) or latent semantic analysis, or a model based on deep learning, such as a topic generation network.

[0099] The candidate topics may be at least two candidate topics or themes extracted by a preset topic extraction model, which are generated from a probability distribution according to the text content and reflect the key topics or themes in the text.

[0100] The prepared feature information can be input into the preset topic extraction model. For technologies based on topic modeling, corresponding libraries or tools can be used to train the model or load the trained model. For models based on deep learning, it may be necessary to use a neural network framework to load the model and input feature information. Using the trained topic extraction model, candidate topics can be determined from the feature information. Specifically, this can include using the inference or prediction function of the model to generate a probability distribution of topics based on the feature information, and several topics with the highest probability can be selected as candidate topics.

[0101] Based on the above technical solution, optionally, the first feature information is input into a preset topic extraction model to determine at least two candidate topics, including:

[0102] If the modality type is a plain text modality, the first feature information is input into a preset topic extraction model, and the vocabulary information of the document to be extracted is determined according to the word segmentation information;

[0103] Determining semantic information of the document to be extracted according to the syntactic structure;

[0104] Determining the word relevance of the document to be extracted according to the high-dimensional vector;

[0105] At least two candidate topics are determined according to the vocabulary information, the semantic information and the word relevance.

[0106] In this solution, the vocabulary information can be the vocabulary information contained in the text, that is, the words or phrases in the text. It is a collection of words or phrases that actually appear in the text and can be used to describe the vocabulary features of the text.

[0107] Semantic information may be the semantic relationship and meaning between words in the document to be extracted, and specifically, may include the similarity and relevance between words.

[0108] Input the prepared first feature information into the selected topic extraction model. Specifically, the feature information needs to be converted into a format acceptable to the model. The topic extraction model can be a clustering-based model, such as K-means, a probabilistic graph model-based model, such as LDA, and a neural network-based model, such as BERT. The model first extracts the word segmentation information, syntactic structure, and high-dimensional vectors. The word segmentation information is used to build the vocabulary of the document, that is, the set of words or phrases that actually appear in the document. Use a syntactic analysis tool to obtain the syntactic structure of the document. The syntactic structure provides the grammatical relationship and organizational structure between words. This information can be used to capture the semantic information of the document. Use high-dimensional vectors to calculate the similarity or relevance between words. Specifically, it can be calculated cosine similarity between words. Combining vocabulary information, semantic information, and word relevance, the topic extraction model can use different algorithms or strategies to determine candidate topics. For example, a clustering algorithm can be used to cluster words in a document into several topics, or a topic model, such as LDA, can be used to extract topics from a document. Taking this information into consideration, the topic extraction model will select at least two candidate topics that can represent the main topics or content in the document.

[0109] In this scheme, by comprehensively considering lexical information, semantic information and word relevance, the accuracy of topic extraction and the depth of text understanding can be improved.

[0110] Based on the above technical solution, optionally, the first feature information is input into a preset topic extraction model to determine at least two candidate topics, and further includes:

[0111] If the modality type is a combination of multimedia modality and text modality, inputting the first feature information into a preset topic extraction model, and determining image features and / or audio features according to the feature vector;

[0112] Determine the vocabulary information of the document to be extracted according to the word segmentation information;

[0113] Determining semantic information of the document to be extracted according to the syntactic structure;

[0114] Determining the word relevance of the document to be extracted according to the high-dimensional vector;

[0115] At least two candidate topics are determined according to the image features and / or audio features, the vocabulary information, the semantic information and the word relevance.

[0116] In this solution, image features may refer to numerical vectors extracted from image data, which are used to represent important information and features of the image. Specifically, they may include color histograms, texture features, shape features, and local features, such as SIFT, SURF, and ORB.

[0117] Audio features may refer to numerical vectors extracted from audio data, which are used to represent important information and features of the audio. Specifically, they may include Mel-frequency cepstral coefficients, spectrograms, time domain features of audio signals, such as waveforms and energy, and frequency domain features, such as spectrograms and power spectral density.

[0118] Image data can be input into a preset topic extraction model to obtain the intermediate representation of the convolution layer or the feature vector after global average pooling. These feature vectors can be regarded as abstract representations of the image, which contain various visual features of the image, such as color, texture, and shape. For audio data, acoustic feature extraction techniques can be used, such as Mel frequency cepstral coefficients, spectrograms, time domain features of audio, such as waveforms and energy, and frequency domain features, such as spectrograms and power spectral density. Extracting these feature vectors can capture the spectral information, energy distribution, and time domain features of the audio, thereby representing the key features of the audio.

[0119] Image features and / or audio features can be fused with vocabulary information, semantic information and word relevance to form a comprehensive feature representation, and then the topic extraction task is performed through a preset topic extraction model. The topic extraction model converts the feature representation into a topic distribution, where each topic distribution represents the weight of each topic in the document, and at least two alternative topics are selected from the topic distribution as candidate topics. Specifically, several topics with the highest weights can be selected as alternative topics, and they can be sorted according to the weights of each topic in the topic distribution, and then the topic with the highest weight is selected as the alternative.

[0120] In this scheme, different types of features are fused together to improve the quality and accuracy of topic extraction. Comprehensively considering the features of text, image, and audio can capture the topic and content of the document more accurately.

[0121] On the basis of the above technical solution, optionally, the construction process of the preset topic extraction model includes:

[0122] Acquire historical documents to be extracted, corresponding modality types, corresponding first feature information, and corresponding topic tags, and create a first data set according to the historical documents to be extracted, corresponding modality types, corresponding first feature information, and corresponding topic tags;

[0123] Build a topic extraction model;

[0124] The first data set is input into the topic extraction model for training until the network converges and the training is stopped, thereby obtaining a trained topic extraction model with network parameters.

[0125] In this solution, the historical documents to be extracted can be document data whose topics have been extracted or classified in the past. These documents are basic data for training or verifying the topic extraction model.

[0126] The topic label can be the topic or classification label corresponding to each historical document to be extracted. Specifically, these labels can be manually annotated or automatically generated based on the text content. The topic label is a supervisory signal for training the model, helping the model learn the relationship between text and topic.

[0127] The first data set may be a data set formed by combining historical documents to be extracted, corresponding modality types, first feature information, and topic tags. Specifically, this data set may be divided into a training set, a validation set, and a test set, which are used to train, evaluate, and verify the performance of a topic extraction model.

[0128] Collect the document data to be extracted that have been used in the past. Specifically, it can include different types of documents such as text, images, and audio. These historical documents can come from existing databases, document collections, user-provided data, or other sources. Perform feature extraction on the collected historical document data and convert the document into a numerical form that the model can understand and process. The feature extraction method is selected according to the type and requirements of the document, such as using word embedding, image feature extraction algorithm, and audio signal processing. Determine the modality type of each historical document to indicate the form or source of the document. Perform topic or category annotation on the extracted historical document data. Specifically, the topic label of the document can be obtained by manual annotation, automatic annotation, or mixed annotation as a supervisory signal for model training. Combine the historical document data, the corresponding modality type, the extracted feature information, and the annotated topic label to form a complete data set. Specifically, the first data set can be divided into a training set, a validation set, and a test set according to the requirements, and perform corresponding data preprocessing and cleaning operations.

[0129] You can select a suitable topic extraction model architecture based on the task requirements and the characteristics of the dataset. Specifically, it can include traditional feature engineering-based models, deep learning models, such as recurrent neural networks, long short-term memory networks, convolutional neural networks, and attention mechanisms. According to the selected model architecture, define the network structure of the model, which can include input layers, hidden layers, output layers, and the connection methods and activation functions between layers. Divide the first dataset created previously into a training set, a validation set, and a test set. Ensure the quality and integrity of the first dataset, and perform necessary preprocessing operations, such as text segmentation, image scaling, and audio conversion. Select a suitable loss function based on the task type, such as the cross entropy loss function for classification tasks and the mean square error loss function for regression tasks. At the same time, select a suitable optimizer to update the model parameters, such as stochastic gradient descent, Adam, and RMSProp. Input the prepared training set into the model, update the model parameters through the back-propagation algorithm, and continuously optimize the model to minimize the loss function. During the training process, you can use the validation set to monitor the performance of the model, and adjust the hyperparameters and model tuning as needed. During the training process, monitor the performance indicators of the model on the validation set, such as accuracy and loss value. When the model performance no longer improves or the loss value steadily decreases, the model is considered to have converged, and training is stopped. The trained model parameters are saved to obtain a trained topic extraction model with network parameters.

[0130] In this solution, the use of an automated training process can save a lot of time and labor costs. By building and training a topic extraction model, useful topic information can be automatically extracted from a large number of documents, improving work efficiency. In addition, using the topic extraction model for topic extraction can improve the accuracy of the extracted topics.

[0131] On the basis of the above technical solution, optionally, after determining the target NLP feature extraction method according to the modality type and the preset NLP feature extraction scheme, and using the target NLP feature extraction method to determine the first feature information corresponding to the document to be extracted in this modality, the method further includes:

[0132] Generate an encryption key and a decryption key according to a preset key generation algorithm, and encrypt the first feature information according to the encryption key to obtain the encrypted first feature information;

[0133] Transmitting the decryption key and the encrypted first feature information to a preset topic extraction model;

[0134] Accordingly, the first feature information is input into a preset topic extraction model to determine at least two candidate topics, including:

[0135] The first feature information is input into a preset topic extraction model, the encrypted first feature information is decrypted using the decryption key through the preset topic extraction model, and at least two candidate topics are determined based on the decrypted first feature information.

[0136] In this solution, the preset key generation algorithm can be a symmetric key algorithm, such as the Advanced Encryption Standard algorithm. A symmetric key algorithm uses the same key for encryption and decryption, and the encryption key and the decryption key are the same. It can also be an asymmetric key algorithm, such as the RSA (Rivest-Shamir-Adleman, asymmetric encryption algorithm) algorithm. In an asymmetric key algorithm, the key is divided into a public key and a private key. The public key is used for encryption and the private key is used for decryption. The encryption key and the decryption key are different.

[0137] The encryption key may be a key used to encrypt the first feature information, and the decryption key may be used to decrypt the encrypted first feature information.

[0138] In the case of a symmetric key algorithm, a preset key generation algorithm can be used to generate the same encryption key and decryption key. For an asymmetric key algorithm, a pair of public and private keys need to be generated. The first feature information is encrypted using the generated encryption key. Specifically, this can be achieved by encrypting the data using an encryption algorithm. The encrypted first feature information and the decryption key are transmitted to a preset topic extraction model. Specifically, the information can be transmitted to the topic extraction model through a secure communication channel to ensure the security of the transmission. After the topic extraction model receives the encrypted first feature information and the decryption key, it can use the decryption key to decrypt the encrypted first feature information. In a symmetric key algorithm, the encryption key and the decryption key are the same. Therefore, the preset topic extraction model can use the same key to decrypt the encrypted data. Specifically, the preset topic extraction model uses the received decryption key to decrypt the encrypted data. The decryption operation uses the same symmetric key algorithm and the opposite operation to reverse the encryption process, thereby restoring the original data. In an asymmetric key algorithm, a pair of keys is used: a public key and a private key. The encryption operation uses the public key to encrypt the data, while the decryption operation requires the use of the corresponding private key. The preset topic extraction model uses the private key to decrypt the encrypted data. The decryption operation uses the mathematical properties of the asymmetric key algorithm to ensure that only the recipient holding the private key can decrypt the data. Finally, the topic extraction model determines at least two candidate topics based on the decrypted first feature information.

[0139] In this solution, by encrypting the first characteristic information, the security of the first characteristic information during transmission can be ensured, the user's data privacy can be protected, and sensitive information can be prevented from being accessed by unauthorized personnel. In addition, the data can be prevented from being tampered with or damaged during transmission, ensuring the integrity and reliability of the data.

[0140] S104, obtaining a topic distribution vector of each candidate topic, and calculating the similarity between the candidate topics according to the topic distribution vector and a preset candidate topic similarity calculation formula;

[0141] Among them, the preset candidate topic similarity calculation formula is:

[0142] ;

[0143] Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic.

[0144] Similarity can refer to the degree of similarity or relevance between candidate topics.

[0145] For any two candidate topics, the similarity can be calculated using the following formula:

[0146]

[0147] Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic;

[0148] After the candidate topics are determined, it is necessary to calculate the similarity of any two of the candidate topics. The first candidate topic is one of the two candidate topics that need to be calculated, and the second candidate topic is the other of the two candidate topics that need to be calculated. The topic distribution vector of the first candidate topic and the topic distribution vector of the second candidate topic can be numerical vectors of the distribution of the candidate topics on different topics or features. Each candidate topic can be represented as a distribution, which describes the weight or probability of the topic on vocabulary, concepts or other features. These weights or probabilities form a vector, namely a distribution vector.

[0149] Features can be extracted from candidate topics. Specifically, these features can be words, phrases, and more complex text representations. The extracted features are then modeled using topic modeling techniques. This process converts text data into a topic space, where each candidate topic is represented by a topic distribution vector that describes the probability distribution of the candidate topic on different subtopics or keywords. The topic distribution vector is then substituted into the preset candidate topic similarity calculation formula to obtain the similarity between the candidate topics. For example, there are two candidate topics A and B, and their topic distribution is Topic A: [0.2, 0.3, 0.5]; Topic B: [0.1, 0.4, 0.5], then the similarity between candidate topics A and B is:

[0150] =0.953

[0151] S105, determining the weight information of the candidate topics that reach the preset similarity threshold according to the similarity and the preset weight distribution scheme, obtaining the topic distribution vector of the candidate topics that reach the preset similarity threshold, calculating the topic distribution of the target topic according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, normalizing and topic mapping the topic distribution, and obtaining the target topic; wherein the preset topic distribution calculation formula is:

[0152] ;

[0153] in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold.

[0154] The preset similarity threshold may be the minimum similarity between the candidate topics, and if the similarity exceeds this threshold, they are considered to be similar.

[0155] The preset weight allocation scheme may refer to a set of rules or methods pre-set according to similarity or other relevant indicators, which are used to determine the weights of different candidate topics when they are merged into a target topic. Specifically, it may include weight allocation based on similarity, that is, the weight is determined according to the similarity between the candidate topics. For example, a similarity threshold can be set, and only the topic pairs exceeding this threshold participate in the weight allocation. The more similar the topic is, the greater its weight may be. Weight allocation based on statistical methods, that is, statistical methods such as regression analysis and principal component analysis can be used to extract useful information from the data and assign weights to each topic accordingly. Weight allocation based on machine learning models, that is, using machine learning models to train topic data, the model can automatically assign weights to each topic according to the inherent laws and patterns of the data. This method requires a large amount of labeled data for training.

[0156] The weight information may be a weight value of each candidate topic calculated according to the preset weight allocation scheme. These weight values ​​reflect the relative importance of different candidate topics in constituting the target topic. For example, if two candidate topics have a high degree of similarity, they may be assigned a higher weight according to the weight allocation scheme.

[0157] The target topic can be a new topic obtained through topic fusion, which integrates the contents of similar alternative topics and represents a wider range of topics.

[0158] The topic distribution of the target topic may refer to the probability distribution of the new topic obtained after topic fusion. According to the preset similarity threshold, it is possible to determine which candidate topics are similar, and use the preset topic distribution calculation formula to calculate the topic distribution of the target topic. Then, the obtained topic distribution is normalized and topic mapped to ensure that the topic distribution meets the requirements of the probability distribution and is mapped to a suitable range.

[0159] If the similarity exceeds the preset similarity threshold, candidate topics A and B are considered similar. For similar candidate topics that reach the preset similarity threshold, topic fusion is performed. The method of topic fusion can be to merge topic distribution vectors, weighted average topic distribution vectors, or to fuse similar topic content into a target topic based on other rules. For example, there are two candidate topics A and B, and their topic distribution is Topic A: [0.2, 0.3, 0.5]; Topic B: [0.1, 0.4, 0.5], then the similarity between candidate topics A and B is:

[0160] =0.953

[0161] If the preset threshold is 0.9, then topic A and topic B exceed the preset similarity threshold.

[0162] Topic pairs with similarities exceeding a threshold can be found, and these topic pairs will serve as the basis for weight allocation. The weight of each candidate topic is determined based on the selected similar topic pairs and the preset weight allocation scheme. For each candidate topic, its topic distribution vector can be obtained. Specifically, it can be a probability distribution that represents the distribution of the topic on different subtopics or keywords. The weight information and topic distribution vector are substituted into the preset topic distribution calculation formula to calculate the topic distribution of the target topic, and then the merged topic distribution is normalized to ensure that the sum of all topic probabilities is 1. Specifically, this can be achieved by dividing each probability value by the sum. The normalized topic distribution is still a set of numerical values. In order to make it interpretable, topic mapping is required. Topic mapping can be the process of converting a numerical topic distribution into a specific and interpretable topic label or description. Specifically, it can be done through a trained topic model or a pre-defined topic label set. Through topic mapping, the target topic distribution can be converted into a human-understandable topic label or description. This new topic will integrate the content of the original candidate topic and represent a wider range of topics. For example, there are two candidate topics A for politics and B for economy. Their topic distribution is Topic A: [0.2, 0.3, 0.5]; Topic B: [0.1, 0.4, 0.5], with a similarity of 0.953. for:

[0163]

[0164] Finally, the merged topic distribution is normalized to ensure that the sum of all topic probabilities is 1. The target topic can be obtained after topic mapping of the normalized topic distribution. This new topic will integrate the content of the alternative topics "politics" and "economy" and represent a wider range of topics.

[0165] In an embodiment of the present application, an input document to be extracted is received, and the modal type of the document to be extracted is determined; a target NLP feature extraction method is determined according to the modal type and a preset NLP feature extraction scheme, and the target NLP feature extraction method is used to determine the first feature information corresponding to the document to be extracted under this modality; the first feature information is input into a preset topic extraction model to determine at least two candidate topics; a topic distribution vector of each candidate topic is obtained, and the similarity between each candidate topic is calculated according to the topic distribution vector and a preset candidate topic similarity calculation formula; wherein the preset candidate topic similarity calculation formula is:

[0166] ;

[0167] Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic; according to the similarity and the preset weight distribution scheme, the weight information of the candidate topic that reaches the preset similarity threshold is determined, the topic distribution vector of the candidate topic that reaches the preset similarity threshold is obtained, the topic distribution of the target topic is calculated according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, the topic distribution is normalized and topic-mapped to obtain the target topic; wherein the preset topic distribution calculation formula is:

[0168] ;

[0169] in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold. Through the above-mentioned intelligent extraction method of text topics based on NLP technology, appropriate feature extraction methods can be used for different types of documents, thereby ensuring the comprehensiveness and accuracy of the features. By calculating the similarity of candidate topics and performing topic fusion, more comprehensive topics can be obtained.

[0170] Based on the above technical solution, optionally, after obtaining the target subject, the method further includes:

[0171] Obtaining user feedback information, and determining model optimization suggestions based on the user feedback information;

[0172] Incremental learning is performed on the topic extraction model according to the model optimization suggestion to obtain an updated topic extraction model.

[0173] In this solution, user feedback information may refer to the opinions, suggestions and evaluations of users on the performance, effect or other related aspects of the topic extraction model. Specifically, the feedback information may come from the user's usage experience, data analysis results and evaluation indicators.

[0174] Model optimization suggestions can be suggestions and measures for improving and optimizing the topic extraction model based on user feedback information, such as adjusting the model architecture, modifying hyperparameters, increasing data samples, and improving feature extraction methods. By analyzing user feedback information, we can understand the performance of the model in actual applications, find problems and deficiencies in the model, and make corresponding optimization suggestions. Based on these optimization suggestions, we can perform incremental learning on the topic extraction model, that is, update and optimize the model parameters in a targeted manner based on the original model to obtain an updated topic extraction model, thereby improving the performance and effect of the model.

[0175] User feedback information can be collected, including user questionnaires, user interaction data records, user comments and suggestions, etc. These feedbacks can include aspects such as model accuracy, speed and ease of use. Analyze the collected user feedback information to find out the commonalities and key issues. Specifically, natural language processing technology or manual reading can be used to analyze and understand the user's satisfaction, dissatisfaction and improvement suggestions for the model. Extract optimization suggestions for the model based on user feedback information. Specifically, these suggestions can be improvement suggestions for model structure, parameter setting, data processing and algorithm selection. For example, if the user feedback model extracts topics inaccurately, you can consider adding more training data or improving the model's feature extraction method. According to the extracted model optimization suggestions, adjust and optimize the topic extraction model. Specifically, it can include modifying the model structure, adjusting hyperparameters, adding training data and improving feature extraction methods. Through these optimization measures, the performance and effect of the model can be gradually improved. Then, the updated dataset or model parameters are used to perform incremental learning on the original topic extraction model. Incremental learning refers to further optimizing the model's capabilities by introducing new data or adjusting model parameters on the basis of the existing model. Specifically, online learning algorithms or batch learning algorithms can be used for incremental learning until the model converges to obtain an updated topic extraction model.

[0176] In this solution, based on the model optimization suggestions from user feedback, the topic extraction model is incrementally learned and adjusted, which can continuously improve the performance and accuracy of the model, thereby better meeting user needs and improving user experience and satisfaction.

[0177] Based on the above technical solution, optionally, after obtaining the target subject, the method further includes:

[0178] Evaluate the performance of the topic extraction model according to a preset monitoring period and a preset model evaluation criterion;

[0179] If the topic extraction model does not meet the preset model evaluation standard, obtaining an existing document to be extracted, a corresponding modality type, a corresponding first feature information, and a corresponding topic label, and creating a second data set according to the existing document to be extracted, the corresponding modality type, the corresponding first feature information, and the corresponding topic label;

[0180] The topic extraction model is retrained according to the second data set until a preset model evaluation standard is reached.

[0181] In this solution, the preset monitoring period may refer to the time interval for evaluating the performance of the topic extraction model. Specifically, the evaluation may be performed once a week, once a month, or once a quarter.

[0182] The preset model evaluation criteria may refer to the criteria or indicators used when evaluating the performance of the topic extraction model, and specifically may include accuracy, recall rate, and F1 score, etc.

[0183] The existing documents to be extracted may refer to document data that has been collected and is to be used for retraining the model.

[0184] The second data set may refer to a data set for model training created based on existing documents to be extracted, corresponding modality types, corresponding feature information, and corresponding topic tags.

[0185] The performance of the topic extraction model can be evaluated within the set monitoring cycle. According to the preset model evaluation criteria, the model is evaluated using a validation set or a test set to obtain the performance of the model at the current stage. Based on the evaluation results, determine whether the current topic extraction model meets the preset model evaluation criteria. If the criteria are met, continue to the next round of monitoring cycle; if the criteria are not met, collect the existing documents to be extracted, the corresponding modal types, the corresponding feature information, and the corresponding topic tags to create a second data set for retraining the model. Specifically, these data may include recently collected document data and previously collected data. Input the prepared second data set into the topic extraction model for retraining. Specifically, an appropriate machine learning algorithm or deep learning model may be used to train the data set until the model meets the preset model evaluation criteria.

[0186] In this solution, the performance of the topic extraction model is regularly evaluated, and retraining and optimization are performed based on the evaluation results, which can continuously improve the accuracy and stability of the model. And retraining is only performed when the model does not meet the preset standards, avoiding unnecessary computing resources and time costs, and improving resource utilization efficiency.

[0187] Embodiment 2

[0188] Figure 2is a flow chart of an intelligent method for extracting text topics based on NLP technology provided in Example 2 of the present application, such as Figure 2 As shown, the specific method includes the following steps:

[0189] S201, receiving an input document to be extracted, and determining a modality type of the document to be extracted.

[0190] S202: If the modality type is a plain text modality, determine that the target NLP feature extraction method is a first NLP feature extraction method according to a preset NLP feature extraction scheme, perform word segmentation processing on the document to be extracted, and obtain word segmentation information of the document to be extracted.

[0191] The plain text mode may be a document that contains only text information and does not contain any multimedia content, such as pictures, audio or video, etc. In this mode, the document to be extracted contains only text data.

[0192] The first NLP feature extraction method may be a feature extraction method for a plain text modality in a preset scheme.

[0193] The word segmentation information can be the result of word segmentation processing of the text in the document to be extracted in a preset manner. It is a list of words or phrases obtained after the original text is processed by word segmentation. The word segmentation information reflects the composition and structure of the text at the word level.

[0194] According to the preset NLP feature extraction scheme, the first NLP feature extraction method suitable for the plain text mode can be selected to perform word segmentation processing on the document to be extracted, and the text can be divided into independent words or phrases. Specifically, it can be implemented by using existing word segmentation tools or libraries, such as the Chinese word segmentation tool jieba or NLTK, etc. After executing the word segmentation processing, the result obtained is the word segmentation information of the document to be extracted, specifically, it can be the unit of each word in the document.

[0195] S203: Determine the syntactic structure of the document to be extracted and the high-dimensional vector of each word corresponding to the word segmentation information of the document to be extracted according to the word segmentation information.

[0196] The syntactic structure can be the grammatical relationship and organizational structure between words in a sentence. Specifically, the syntactic structure can be represented by a tree structure, in which each node represents a word, and the edges represent the grammatical relationship between words, such as the subject-predicate relationship and the attributive-predicate relationship.

[0197] High-dimensional vectors can be vectors with multiple dimensions. Specifically, they can be used to represent the semantic information of words or documents. Each dimension of these vectors represents a certain semantic attribute, such as the meaning of a word and context information. By mapping words into a high-dimensional vector space, the semantic similarity and correlation between words can be captured.

[0198] You can use dependency syntactic analysis tools, such as StanfordNLP or spaCy, to perform dependency syntactic analysis on the sentences after word segmentation to determine the dependency relationship between words, which can include the central word and modification relationship of the words. Use phrase structure analysis tools, such as NLTK or CoreNLP, to perform phrase structure analysis on the sentences after word segmentation to determine the phrase structure of the sentences, which can include noun phrases and verb phrases. Use pre-trained word vector models, such as Word2Vec, GloVe, or FastText, to train on large-scale corpora to obtain high-dimensional vector representations of each word. These word vectors can capture the semantic similarity between words. Use contextual word vector models, such as BERT or ELMo, to encode the documents to be extracted and obtain high-dimensional vector representations of each word in context.

[0199] S204: Determine first feature information corresponding to the document to be extracted in a plain text mode according to the word segmentation information, the syntactic structure, and the high-dimensional vector.

[0200] The word segmentation information, syntactic structure, and high-dimensional vectors can be integrated together and merged into a vector as the final feature representation of the document to be extracted.

[0201] S205: Input the first feature information into a preset topic extraction model to determine at least two candidate topics.

[0202] S206, obtaining a topic distribution vector of each candidate topic, and calculating the similarity between the candidate topics according to the topic distribution vector and a preset candidate topic similarity calculation formula;

[0203] Among them, the preset candidate topic similarity calculation formula is:

[0204] ;

[0205] Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic.

[0206] S207, determining the weight information of the candidate topics that reach the preset similarity threshold according to the similarity and the preset weight distribution scheme, obtaining the topic distribution vector of the candidate topics that reach the preset similarity threshold, calculating the topic distribution of the target topic according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, normalizing and topic mapping the topic distribution, and obtaining the target topic; wherein the preset topic distribution calculation formula is:

[0207] ;

[0208] in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold.

[0209] In this embodiment, through word segmentation processing, syntactic structure analysis and high-dimensional vector representation, rich feature information can be obtained, so that the content and meaning of the document can be understood more effectively, and the text can be deeply analyzed and understood.

[0210] Embodiment 3

[0211] Figure 3 is a flow chart of an intelligent method for extracting text topics based on NLP technology provided in Example 3 of the present application, such as Figure 3 As shown, the specific method includes the following steps:

[0212] S301, receiving an input document to be extracted, and determining a modality type of the document to be extracted.

[0213] S302: If the modality type is a combination of multimedia modality and text modality, determine that the target NLP feature extraction method is a second NLP feature extraction method according to a preset NLP feature extraction scheme, and obtain text information and multimedia information of the document to be extracted.

[0214] The second NLP feature extraction method may be a feature extraction method for combining multimedia modality and text modality in a preset scheme.

[0215] Text information may refer to text content contained in a document, and specifically may include titles, paragraphs, sentences, and the like.

[0216] Multimedia information may refer to other multimedia contents in a document besides text, such as images, audio, and video.

[0217] Text information can be extracted from the document to be extracted, specifically, it can include titles, paragraphs, sentences, etc. This text information can be extracted using common natural language processing techniques, such as word segmentation, part-of-speech tagging, and entity recognition. Multimedia information can be extracted from the document to be extracted, specifically, it can include images, audio, and video, etc. For images, computer vision technology can be used to extract image feature vectors, such as using convolutional neural networks to extract image features. For audio, audio processing technology can be used to extract audio spectral features, such as using Fourier transform or Mel frequency cepstral coefficients to extract audio features. For video, key frames in the video can be extracted as image input, or video processing technology can be used to extract key features of the video. The acquired text information and multimedia information are combined to form a comprehensive text-multimedia data representation. Specifically, the text information and multimedia information can be represented as vectors respectively, and then they are spliced ​​together to form a richer feature representation.

[0218] S303: Perform word segmentation processing on the text information to obtain word segmentation information of the text information.

[0219] S304: Determine the syntactic structure of the text information and the high-dimensional vector of each word corresponding to the word segmentation information of the text information according to the word segmentation information.

[0220] S305: extract features from the multimedia information to obtain a feature vector of the multimedia information.

[0221] The feature vectors of multimedia information can be representations of multimedia data converted into vector form, and these feature vectors can capture the key features of the multimedia data.

[0222] For images, feature vectors can be features extracted by convolutional neural networks or other computer vision models. Specifically, these features can be high-level features such as edges, colors, and textures in the image, or intermediate layer representations in the network. For audio, feature vectors can be spectral features extracted by audio processing technology, such as Mel-frequency cepstral coefficients and spectrograms, which can capture the spectral information and energy distribution of the audio. For videos, key frames can be extracted from the video, and the feature vector of each key frame can be obtained using image feature extraction methods. Motion information and time series features can also be extracted from the video.

[0223] S306: Determine first feature information corresponding to the document to be extracted in a combination of multimedia modality and text modality according to the word segmentation information, the syntactic structure, the high-dimensional vector, and the feature vector.

[0224] The word segmentation information, syntactic structure, high-dimensional vectors, and feature vectors can be integrated together and merged into one vector as the final feature representation of the document to be extracted.

[0225] S307: Input the first feature information into a preset topic extraction model to determine at least two candidate topics.

[0226] S308, obtaining a topic distribution vector of each candidate topic, and calculating the similarity between the candidate topics according to the topic distribution vector and a preset candidate topic similarity calculation formula.

[0227] Among them, the preset candidate topic similarity calculation formula is:

[0228] ;

[0229] Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic;

[0230] S309, determining the weight information of the candidate topics that reach the preset similarity threshold according to the similarity and the preset weight distribution scheme, obtaining the topic distribution vector of the candidate topics that reach the preset similarity threshold, calculating the topic distribution of the target topic according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, normalizing and topic mapping the topic distribution, and obtaining the target topic; wherein the preset topic distribution calculation formula is:

[0231] ;

[0232] in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold.

[0233] In this embodiment, more comprehensive and integrated feature information can be obtained by combining different types of information, thereby better capturing key features and information of the document and improving the accuracy of subsequent tasks.

[0234] Embodiment 4

[0235] Figure 4 is a schematic diagram of the structure of an intelligent extraction system for text topics based on NLP technology provided in Example 4 of the present application. Figure 4 As shown, specifically including the following:

[0236] The modality type determination module 401 is used to receive an input document to be extracted and determine the modality type of the document to be extracted;

[0237] The feature information determination module 402 is used to determine a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme, and use the target NLP feature extraction method to determine the first feature information corresponding to the document to be extracted in this modality;

[0238] The candidate topic determination module 403 is used to input the first feature information into a preset topic extraction model to determine at least two candidate topics;

[0239] The candidate topic similarity determination module 404 is used to obtain the topic distribution vector of each candidate topic, and calculate the similarity between the candidate topics according to the topic distribution vector and a preset candidate topic similarity calculation formula;

[0240] Among them, the preset candidate topic similarity calculation formula is:

[0241] ;

[0242] Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic;

[0243] The target topic determination module 405 is used to determine the weight information of the candidate topics that reach the preset similarity threshold according to the similarity and the preset weight distribution scheme, obtain the topic distribution vector of the candidate topics that reach the preset similarity threshold, calculate the topic distribution of the target topic according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, normalize and topic map the topic distribution, and obtain the target topic; wherein the preset topic distribution calculation formula is:

[0244] ;

[0245] in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold.

[0246] In an embodiment of the present application, a modality type determination module is used to receive an input document to be extracted and determine the modality type of the document to be extracted; a feature information determination module is used to determine a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme, and use the target NLP feature extraction method to determine the first feature information corresponding to the document to be extracted under this modality; an alternative topic determination module is used to input the first feature information into a preset topic extraction model to determine at least two alternative topics; an alternative topic similarity determination module is used to obtain a topic distribution vector of each alternative topic, and calculate the similarity between each alternative topic according to the topic distribution vector and a preset alternative topic similarity calculation formula; wherein the preset alternative topic similarity calculation formula is:

[0247] ;

[0248] Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic; a target topic determination module, used to determine the weight information of the candidate topic that reaches the preset similarity threshold according to the similarity and the preset weight distribution scheme, obtain the topic distribution vector of the candidate topic that reaches the preset similarity threshold, calculate the topic distribution of the target topic according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, normalize and topic map the topic distribution, and obtain the target topic; wherein the preset topic distribution calculation formula is:

[0249] ;

[0250] in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold. By implementing the intelligent text topic extraction system based on NLP technology, appropriate feature extraction methods can be used for different types of documents, thereby ensuring the comprehensiveness and accuracy of the features. By calculating the similarity of candidate topics and performing topic fusion, more comprehensive topics can be obtained.

[0251] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

[0252] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

Claims

1. An intelligent text topic extraction method based on NLP technology, characterized in that: The method comprises: Receiving an input document to be extracted, and determining a modality type of the document to be extracted; Determine a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme, and use the target NLP feature extraction method to determine first feature information corresponding to the document to be extracted in this modality; Determining a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme includes: If the modality type is a plain text modality, determining the target NLP feature extraction method as a first NLP feature extraction method according to a preset NLP feature extraction scheme; Accordingly, the target NLP feature extraction method is used to determine the first feature information corresponding to the document to be extracted in this modality, including: Performing word segmentation processing on the document to be extracted to obtain word segmentation information of the document to be extracted; Determine the syntactic structure of the document to be extracted and the high-dimensional vector of each word corresponding to the word segmentation information of the document to be extracted according to the word segmentation information; Determining first feature information corresponding to the document to be extracted in plain text mode according to the word segmentation information, the syntactic structure, and the high-dimensional vector; Determining a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme also includes: If the modality type is a combination of a multimedia modality and a text modality, determining the target NLP feature extraction method as a second NLP feature extraction method according to a preset NLP feature extraction scheme; Accordingly, the target NLP feature extraction method is used to determine the first feature information corresponding to the document to be extracted in this modality, including: Acquire text information and multimedia information of the document to be extracted; Performing word segmentation processing on the text information to obtain word segmentation information of the text information; Determine the syntactic structure of the text information and the high-dimensional vector of each word corresponding to the word segmentation information of the text information according to the word segmentation information; Extracting features from the multimedia information to obtain a feature vector of the multimedia information; Determine first feature information corresponding to the document to be extracted in a combination of multimedia modality and text modality according to the word segmentation information, the syntactic structure, the high-dimensional vector, and the feature vector; Inputting the first feature information into a preset topic extraction model to determine at least two candidate topics; The first feature information is input into a preset topic extraction model to determine at least two candidate topics, including: If the modality type is a plain text modality, the first feature information is input into a preset topic extraction model, and the vocabulary information of the document to be extracted is determined according to the word segmentation information; Determining semantic information of the document to be extracted according to the syntactic structure; Determining the word relevance of the document to be extracted according to the high-dimensional vector; Determine at least two candidate topics according to the vocabulary information, the semantic information and the word relevance; Obtaining a topic distribution vector of each candidate topic, and calculating the similarity between the candidate topics according to the topic distribution vector and a preset candidate topic similarity calculation formula; Among them, the preset candidate topic similarity calculation formula is: ; Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic; Determine the weight information of the candidate topics that reach the preset similarity threshold according to the similarity and the preset weight distribution scheme, obtain the topic distribution vector of the candidate topics that reach the preset similarity threshold, calculate the topic distribution of the target topic according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, normalize and topic map the topic distribution, and obtain the target topic; Among them, the preset topic distribution calculation formula is: ; in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold.

2. The method for intelligently extracting text topics based on NLP technology according to claim 1, characterized in that: Inputting the first feature information into a preset topic extraction model to determine at least two candidate topics, further comprising: If the modality type is a combination of multimedia modality and text modality, inputting the first feature information into a preset topic extraction model, and determining image features and / or audio features according to the feature vector; Determine the vocabulary information of the document to be extracted according to the word segmentation information; Determining semantic information of the document to be extracted according to the syntactic structure; Determining the word relevance of the document to be extracted according to the high-dimensional vector; At least two candidate topics are determined according to the image features and / or audio features, the vocabulary information, the semantic information and the word relevance.

3. The method for intelligently extracting text topics based on NLP technology according to claim 1, characterized in that: The construction process of the preset topic extraction model includes: Acquire historical documents to be extracted, corresponding modality types, corresponding first feature information, and corresponding topic tags, and create a first data set according to the historical documents to be extracted, corresponding modality types, corresponding first feature information, and corresponding topic tags; Build a topic extraction model; The first data set is input into the topic extraction model for training until the network converges and the training is stopped, thereby obtaining a trained topic extraction model with network parameters.

4. The method for intelligently extracting text topics based on NLP technology according to claim 1, characterized in that: After obtaining the target topic, the method further includes: Obtaining user feedback information, and determining model optimization suggestions based on the user feedback information; Incremental learning is performed on the topic extraction model according to the model optimization suggestion to obtain an updated topic extraction model.

5. The method for intelligently extracting text topics based on NLP technology according to claim 1, characterized in that: After obtaining the target topic, the method further includes: Evaluate the performance of the topic extraction model according to a preset monitoring period and a preset model evaluation criterion; If the topic extraction model does not meet the preset model evaluation standard, obtaining an existing document to be extracted, a corresponding modality type, a corresponding first feature information, and a corresponding topic label, and creating a second data set according to the existing document to be extracted, the corresponding modality type, the corresponding first feature information, and the corresponding topic label; The topic extraction model is retrained according to the second data set until a preset model evaluation standard is reached.

6. The method for intelligently extracting text topics based on NLP technology according to claim 1, characterized in that: After determining a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme, and using the target NLP feature extraction method to determine first feature information corresponding to the document to be extracted in this modality, the method further includes: Generate an encryption key and a decryption key according to a preset key generation algorithm, and encrypt the first feature information according to the encryption key to obtain the encrypted first feature information; Transmitting the decryption key and the encrypted first feature information to a preset topic extraction model; Accordingly, the first feature information is input into a preset topic extraction model to determine at least two candidate topics, including: The first feature information is input into a preset topic extraction model, the encrypted first feature information is decrypted using the decryption key through the preset topic extraction model, and at least two candidate topics are determined based on the decrypted first feature information.

7. An intelligent text topic extraction system based on NLP technology, characterized by: The system comprises: A modality type determination module, used to receive an input document to be extracted and determine the modality type of the document to be extracted; A feature information determination module, used to determine a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme, and use the target NLP feature extraction method to determine the first feature information corresponding to the document to be extracted in this modality; Determining a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme includes: If the modality type is a plain text modality, determining the target NLP feature extraction method as a first NLP feature extraction method according to a preset NLP feature extraction scheme; Accordingly, the target NLP feature extraction method is used to determine the first feature information corresponding to the document to be extracted in this modality, including: Performing word segmentation processing on the document to be extracted to obtain word segmentation information of the document to be extracted; Determine the syntactic structure of the document to be extracted and the high-dimensional vector of each word corresponding to the word segmentation information of the document to be extracted according to the word segmentation information; Determining first feature information corresponding to the document to be extracted in plain text mode according to the word segmentation information, the syntactic structure, and the high-dimensional vector; Determining a target NLP feature extraction method according to the modality type and a preset NLP feature extraction scheme also includes: If the modality type is a combination of a multimedia modality and a text modality, determining the target NLP feature extraction method as a second NLP feature extraction method according to a preset NLP feature extraction scheme; Accordingly, the target NLP feature extraction method is used to determine the first feature information corresponding to the document to be extracted in this modality, including: Acquire text information and multimedia information of the document to be extracted; Performing word segmentation processing on the text information to obtain word segmentation information of the text information; Determine the syntactic structure of the text information and the high-dimensional vector of each word corresponding to the word segmentation information of the text information according to the word segmentation information; Extracting features from the multimedia information to obtain a feature vector of the multimedia information; Determine first feature information corresponding to the document to be extracted in a combination of multimedia modality and text modality according to the word segmentation information, the syntactic structure, the high-dimensional vector, and the feature vector; A candidate topic determination module, used for inputting the first feature information into a preset topic extraction model to determine at least two candidate topics; The first feature information is input into a preset topic extraction model to determine at least two candidate topics, including: If the modality type is a plain text modality, the first feature information is input into a preset topic extraction model, and the vocabulary information of the document to be extracted is determined according to the word segmentation information; Determining semantic information of the document to be extracted according to the syntactic structure; Determining the word relevance of the document to be extracted according to the high-dimensional vector; Determine at least two candidate topics according to the vocabulary information, the semantic information and the word relevance; A candidate topic similarity determination module is used to obtain a topic distribution vector of each candidate topic, and calculate the similarity between the candidate topics according to the topic distribution vector and a preset candidate topic similarity calculation formula; Among them, the preset candidate topic similarity calculation formula is: ; Where A is the first alternative topic of any two alternative topics; is the topic distribution vector of the first candidate topic; B is the second candidate topic of any two candidate topics among the candidate topics; is the topic distribution vector of the second candidate topic; The target topic determination module is used to determine the weight information of the candidate topics that reach the preset similarity threshold according to the similarity and the preset weight distribution scheme, obtain the topic distribution vector of the candidate topics that reach the preset similarity threshold, calculate the topic distribution of the target topic according to the weight information, the topic distribution vector and the preset topic distribution calculation formula, normalize and topic map the topic distribution, and obtain the target topic; wherein the preset topic distribution calculation formula is: ; in, is the topic distribution of the target topic; A topic distribution vector of the first candidate topic that reaches a preset similarity threshold; A topic distribution vector of a second candidate topic that reaches a preset similarity threshold; The topic distribution vector of the nth candidate topic that reaches the preset similarity threshold; The weight information of the first candidate topic that reaches the preset similarity threshold; The weight information of the second candidate topic that reaches the preset similarity threshold; The weight information of the nth candidate topic that reaches the preset similarity threshold.