Text dialogue coherence recognition system and method based on multi-feature fusion
Patent Information
- Application Number
- CN202410816474.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN118734860A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of natural language processing, and more specifically, to a text dialogue coherence recognition system and method based on multi-feature fusion. Background Art
[0002] In the field of natural language processing, text dialogue coherence recognition is an important task. It aims to determine whether there is a coherent relationship between two texts, that is, whether they are semantically related to each other.
[0003] Traditional methods usually perform coherence identification based on single features such as bag-of-words models or syntactic analysis, but these methods often have limitations and cannot fully capture the semantic information of the text. Summary of the invention
[0004] The purpose of the present invention is to solve the shortcomings existing in the prior art and to propose a text dialogue coherence recognition system and method based on multi-feature fusion.
[0005] To solve the above problems, the present invention adopts the following technical solutions:
[0006] The text dialogue coherence recognition system based on multi-feature fusion includes:
[0007] The data collection module is used to collect text conversation data and pre-process the collected data, including cleaning, word segmentation, and part-of-speech tagging operations;
[0008] A feature extraction module, configured to extract at least one language feature and at least one context feature from the input text conversation;
[0009] A feature fusion module, used for fusing the language feature and the context feature into a comprehensive feature representation;
[0010] The coherence recognition module is used to recognize the coherence of text dialogue based on the fused features;
[0011] A coherence evaluation module is used to evaluate the coherence recognition results;
[0012] The result output module is used to output the evaluation result of the consistency evaluation module to the user.
[0013] As a further description of the above technical solution: the language feature includes at least one of a bag-of-words model feature, a TF-IDF feature, a part-of-speech tagging feature, a named entity recognition feature, and a dependency syntactic analysis feature.
[0014] As a further description of the above technical solution: the context features include at least one of conversation history, topic information, emotional tendency and time series information.
[0015] As a further description of the above technical solution: the feature extraction module is implemented using a deep learning model, and the deep learning model includes at least one of a convolutional neural network, a recurrent neural network, and a long short-term memory network.
[0016] As a further description of the above technical solution: the feature fusion module uses at least one of weighted averaging, splicing, and attention mechanism to perform feature fusion.
[0017] As a further description of the above technical solution: the coherence identification module is implemented by a classifier or a regression model.
[0018] As a further description of the above technical solution: the classifier includes at least one of a support vector machine, a decision tree, and a random forest, and the regression model includes at least one of a linear regression, a logistic regression, and a polynomial regression.
[0019] As a further description of the above technical solution: the system also includes an optimization module for optimizing the feature extraction module, the feature fusion module and the coherence identification module, and the optimization module adopts at least one algorithm of stochastic gradient descent, Adagrad, and Adadelta for optimization.
[0020] As a further description of the above technical solution: the result output module displays the evaluation results to the user in a visual manner, and the visual manner includes at least one of a chart, a curve, and a text description.
[0021] The text dialogue coherence recognition method based on multi-feature fusion includes the following steps:
[0022] Input text conversation data and preprocess the input text conversation, including cleaning, word segmentation, and part-of-speech tagging operations;
[0023] extracting at least one linguistic feature and at least one contextual feature from the input text conversation;
[0024] Fuse language features and context features into a comprehensive feature representation;
[0025] Based on the comprehensive feature representation, the coherence of text dialogue is identified and evaluated, and the evaluation results are output to the user.
[0026] Compared with the prior art, the advantages of the present invention are:
[0027] 1. Improve recognition accuracy: By integrating multiple language features and contextual features, the semantic information of the text can be captured more comprehensively, thereby improving the accuracy of coherence recognition.
[0028] 2. Enhance the robustness of the system: Multi-feature fusion can reduce the noise and uncertainty of a single feature, making the system more adaptable and robust to different types of text conversations. By fusing multiple features, the system can learn more general patterns and rules, thereby improving its generalization ability to new data.
[0029] 3. Provide richer evaluation results: The coherence evaluation module can evaluate the recognition results and provide users with more detailed and accurate feedback, which helps users better understand and improve the coherence of text conversations.
[0030] 4. Visual output: The result output module uses a visual method to display the evaluation results to users, allowing users to more intuitively understand the coherence of text conversations and facilitate analysis and decision-making.
[0031] 5. Scalability: The system has good scalability and can add new features or improve the extraction and fusion methods of existing features according to actual needs to adapt to changing application scenarios and needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a system diagram of the present invention;
[0033] Figure 2 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention; it is obvious that the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments, and all other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making creative work are within the scope of protection of the present invention.
[0035] Example 1
[0036] See also Figure 1 , a text dialogue coherence recognition system based on multi-feature fusion, including the following modules:
[0037] The data collection module is used to collect text conversation data and preprocess the collected data. The preprocessing includes cleaning, word segmentation, part-of-speech tagging and other operations. The cleaning operation is to remove noise and invalid information in the data, such as special characters, spaces, etc. Word segmentation is the process of dividing text into words or phrases for subsequent processing and analysis. Part-of-speech tagging is to mark the part of speech of each word, such as noun, verb, adjective, etc.
[0038] The feature extraction module is used to extract at least one language feature and at least one context feature from the input text conversation; the language feature includes at least one of the bag-of-words model feature, TF-IDF feature, part-of-speech tagging feature, named entity recognition feature, and dependency syntax analysis feature; the context feature includes at least one of the conversation history, topic information, sentiment tendency, and time series information. The feature extraction module is implemented using a deep learning model, which includes at least one of a convolutional neural network (CNN), a recurrent neural network (RNN), and a long short-term memory network (LSTM).
[0039] The feature fusion module is used to fuse language features and context features into a comprehensive feature representation; the feature fusion module uses at least one of weighted averaging, concatenation, and attention mechanism to perform feature fusion.
[0040] The coherence recognition module is used to recognize the coherence of the text dialogue based on the fused features; the coherence recognition module is implemented by a classifier or a regression model, the classifier includes at least one of a support vector machine (SVM), a decision tree, and a random forest, and the regression model includes at least one of a linear regression, a logistic regression, and a polynomial regression.
[0041] The coherence evaluation module is used to evaluate the coherence recognition results and use some indicators to measure the accuracy and reliability of the recognition results. These indicators may include accuracy, recall, F1 value, etc. By calculating and analyzing these indicators, we can understand the performance of the coherence recognition system and provide a basis for the improvement and optimization of the system.
[0042] The result output module is used to output the evaluation result of the coherence evaluation module to the user. The result output module displays the evaluation result to the user in a visual manner, and the visual manner includes at least one of a chart, a curve, and a text description.
[0043] In addition, the system also includes an optimization module for optimizing the feature extraction module, the feature fusion module and the coherence recognition module. The optimization module uses at least one algorithm of stochastic gradient descent, Adagrad and Adadelta for optimization.
[0044] Example 2
[0045] See also Figure 2 ,The text dialogue coherence recognition method based on multi-feature fusion includes the following steps:
[0046] 1. Input text conversation data and preprocess the input text conversation. The preprocessing includes operations such as cleaning, word segmentation, and part-of-speech tagging to remove noise and invalid information and improve data quality.
[0047] 2. Extract at least one language feature and at least one context feature from the input text conversation. For example, use a convolutional neural network (CNN) to extract bag-of-words model features and part-of-speech tagging features from the text conversation, and use a recurrent neural network (RNN) to extract conversation history features. The steps are as follows:
[0048] S1. Data preprocessing: Perform preprocessing operations such as cleaning, word segmentation, and part-of-speech tagging on the input text dialogue;
[0049] S2, CNN feature extraction:
[0050] aConvert the preprocessed text into word vector representation;
[0051] b Bag-of-words model feature extraction: Use the convolution layer to perform convolution operations on the word vectors. The size of the convolution kernel is k, the step size is $1$, and the output feature map size is n-k+1, where n is the length of the language feature. The formula for the convolution operation is:
[0052] Among them, f i BOW represents the bag-of-words model feature at the i-th position, w j represents the jth element of the convolution kernel, χ i+j-1 The i+j-1th element representing the language feature;
[0053] c Part-of-speech tagging feature extraction: Use a convolution layer to perform a convolution operation on the part-of-speech tag vector. The size of the convolution kernel is k, the step size is $1$, and the output feature map size is n-k+1. The formula for the convolution operation is the same as the bag-of-words model feature extraction.
[0054] S3, RNN feature extraction:
[0055] a Input the preprocessed text into RNN in chronological order;
[0056] b RNN extracts the historical features of the conversation by memorizing and updating the historical information. The calculation formula of RNN is h i =f(w h h t-1 +w xi x i +b h ),
[0057] Among them, h i represents the hidden state at time t, f represents the activation function, and w h and w x Represents the weight matrices of hidden state and input, b h Represents the bias vector.
[0058] 3. Fusion of language features and context features into a comprehensive feature representation;
[0059] 4. Based on the comprehensive feature representation, identify and evaluate the coherence of the text conversation, and output the evaluation results to the user to facilitate the user to understand the coherence of the text conversation.
[0060] In summary, the text dialogue coherence recognition system and method based on multi-feature fusion can make full use of the complementarity between different features through multi-feature fusion to improve the model's recognition ability for text dialogue coherence. In addition, combined with deep learning technologies such as convolutional neural networks and recurrent neural networks, the system's performance and generalization ability can be further improved.
[0061] The text conversation coherence recognition system and method based on multi-feature fusion has broad application prospects. For example, in the fields of intelligent customer service, online education, social media, etc., it can help improve user experience and interaction effects.
[0062] The above is only a preferred specific implementation of the present invention; however, the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solution and its improved conception within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A text dialogue coherence recognition system based on multi-feature fusion, characterized by: include: The data collection module is used to collect text conversation data and pre-process the collected data, including cleaning, word segmentation, and part-of-speech tagging operations; A feature extraction module, configured to extract at least one language feature and at least one context feature from the input text conversation; A feature fusion module, used for fusing the language feature and the context feature into a comprehensive feature representation; The coherence recognition module is used to recognize the coherence of text dialogue based on the fused features; A coherence evaluation module is used to evaluate the coherence recognition results; The result output module is used to output the evaluation result of the consistency evaluation module to the user.
2. The text dialogue coherence recognition system based on multi-feature fusion according to claim 1, characterized in that: The language features include at least one of bag-of-words model features, TF-IDF features, part-of-speech tagging features, named entity recognition features, and dependency syntax analysis features.
3. The text dialogue coherence recognition system based on multi-feature fusion according to claim 1, characterized in that: The context features include at least one of conversation history, topic information, sentiment tendency and time series information.
4. The text dialogue coherence recognition system based on multi-feature fusion according to claim 1, characterized in that: The feature extraction module is implemented using a deep learning model, and the deep learning model includes at least one of a convolutional neural network, a recurrent neural network, and a long short-term memory network.
5. The text dialogue coherence recognition system based on multi-feature fusion according to claim 1, characterized in that: The feature fusion module uses at least one of weighted averaging, concatenation, and attention mechanism to perform feature fusion.
6. The text dialogue coherence recognition system based on multi-feature fusion according to claim 1, characterized in that: The coherence identification module is implemented by using a classifier or a regression model.
7. The method for identifying text dialogue coherence based on multi-feature fusion according to claim 6, characterized in that: The classifier includes at least one of a support vector machine, a decision tree, and a random forest, and the regression model includes at least one of a linear regression, a logistic regression, and a polynomial regression.
8. The text dialogue coherence recognition system based on multi-feature fusion according to claim 1, characterized in that: The system also includes an optimization module for optimizing the feature extraction module, the feature fusion module and the coherence identification module, and the optimization module uses at least one algorithm of stochastic gradient descent, Adagrad and Adadelta for optimization.
9. The text dialogue coherence recognition system based on multi-feature fusion according to claim 1, characterized in that: The result output module displays the evaluation result to the user in a visual manner, and the visual manner includes at least one of a chart, a curve, and a text description.
10. The text dialogue coherence recognition method based on multi-feature fusion according to any one of claims 1 to 9, characterized in that: The following steps are involved: Input text conversation data and preprocess the input text conversation, including cleaning, word segmentation, and part-of-speech tagging operations; extracting at least one linguistic feature and at least one contextual feature from the input text conversation; Fuse language features and context features into a comprehensive feature representation; Based on the comprehensive feature representation, the coherence of text dialogue is identified and evaluated, and the evaluation results are output to the user.
