Human-computer interaction method and system based on deep semantic analysis

The human-computer interaction method of deep semantic analysis solves the problem of insufficient semantic correlation caused by word matching in the existing technology, achieves more efficient and accurate document search and analysis, and improves user experience and system performance.

CN118535700APending Publication Date: 2024-08-23STATE GRID SHANGHAI MUNICIPAL ELECTRIC POWER CO +1

Patent Information

Application Number
CN202410684533.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing technology, semantic correlation is insufficient due to word matching during document search and analysis, resulting in large deviations in matching results, making it difficult to meet the needs of users of scientific documents.

Method used

Using a human-computer interaction method based on deep semantic analysis, through natural language preprocessing and semantic understanding, the key features of user questions are obtained, and scene matching is performed in designated question Q&A, task-based Q&A and conversation-based Q&A scenarios, combined with word meaning disambiguation , Long and difficult sentence compression, sentiment analysis and intent recognition, using keyword retrieval and semantic matching methods to generate answers.

Benefits of technology

It improves the processing efficiency and accuracy of answers, can obtain answers more efficiently and accurately, meets user needs, improves user-friendliness, and enhances the flexibility and scalability of the system through semantic matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535700A
    Figure CN118535700A
Patent Text Reader

Abstract

The invention relates to a human-computer interaction method based on deep semantic analysis, which is used for the management and utilization of scientific and technical literature resources, and comprises the following steps: obtaining user question data, sequentially carrying out natural language preprocessing and semantic understanding, and obtaining user question key features; scene matching is carried out according to the question key features of the user, wherein scenes comprise a specified question question-answering scene, a task type question-answering scene and a dialogue type question-answering scene; if the question answering scene is the specified question answering scene, obtaining a reply result from a corresponding answer library according to the question selected by the user; if the scene is a task type question and answer scene, determining a user intention according to user question key features, and completing a task by replying or calling an API; and if the scene is a dialogue type question and answer scene, obtaining an answer from the knowledge base for replying according to the key characteristics of the questions of the user. Compared with the prior art, different answer generation strategies are adopted for different scenes, answers can be obtained more efficiently and accurately, user requirements are matched, and user friendliness is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a human-computer interaction method and system based on deep semantic analysis. Background Art

[0002] Scientific and technological literature is an important foundation for carrying out scientific and technological innovation. With the widespread application of computer technology, network technology and digital technology in the information industry, various document databases such as papers, patents, and standards have been established one after another. The number of electronic documents faced by scientific researchers is vast. Accurately finding documents and quickly understanding the key points of documents have become necessary prerequisites for scientific research.

[0003] At present, the search and analysis of literature is mainly based on vocabulary, that is, matching the query subject terms with the vocabulary contained in the title, keywords, etc. What is matched is the keyword itself, not the meaning or concept expressed by the vocabulary. This method severs the semantic relationship between characters and words, and lacks understanding of syntax, paragraphs and chapters. In addition, the phenomenon of polysemy and multiple words for the same meaning is widespread in natural language. This many-to-many mapping relationship between form and meaning has brought huge obstacles to computer processing, resulting in large deviations in matching results, too little returned information or irrelevant returned information, and it is difficult to meet the needs of users of scientific and technological literature. Summary of the invention

[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a human-computer interaction method and system based on deep semantic analysis, so as to obtain the answers to human-computer interaction more efficiently and accurately.

[0005] The purpose of the present invention can be achieved by the following technical solutions:

[0006] A human-computer interaction method based on deep semantic analysis is used for the management and utilization of scientific and technological literature resources, and the method comprises the following steps:

[0007] Get user question data;

[0008] Perform natural language preprocessing and semantic understanding on the acquired user question data to obtain the key features of the user questions;

[0009] According to the key features of the user's question obtained, scene matching is performed from multiple preset scenes, and the multiple preset scenes include a designated question and answer scene, a task-based question and answer scene, and a dialogue-based question and answer scene. The designated question and answer scene provides users with preset questions to choose from; the task-based question and answer scene is used to process corresponding tasks according to the user's question data; and the dialogue-based question and answer scene is used to give relevant answers according to the user's question data;

[0010] If it is a specified question and answer scenario, the response result will be obtained from the corresponding answer library based on the question selected by the user; if it is a task-based question and answer scenario, the user's intention will be determined based on the key features of the user's question, and the task will be completed by replying or calling the API; if it is a conversational question and answer scenario, the answer will be obtained from the preset knowledge base based on the key features of the user's question.

[0011] Furthermore, the natural language preprocessing includes word segmentation, part-of-speech tagging and entity recognition of the user question data;

[0012] The semantic understanding includes word sense disambiguation, long and difficult sentence compression, sentiment analysis, question rewriting and intent recognition on the natural language preprocessed data.

[0013] Further, the word segmentation process is performed by using the Jieba word segmentation tool in conjunction with a business-specific noun dictionary;

[0014] Rewriting the question by rewriting the abbreviations and full names of electrical terms;

[0015] By using syntactic analysis to determine whether the user's words have positive or negative intentions, the sentiment analysis is performed;

[0016] The intention recognition is performed through classification prediction.

[0017] Furthermore, word sense disambiguation is performed based on the Chinese WordNet library / electricity dictionary library, or disambiguation is performed based on word vectors;

[0018] The word sense disambiguation based on the Chinese WordNet library / electricity dictionary library is specifically as follows: the context of the polysemous word in the user question data is similarly calculated with the interpretation of the polysemous word in the Chinese WordNet library / electricity dictionary library, and the interpretation item with the highest similarity is given;

[0019] The word vector-based disambiguation is specifically as follows: calling the BERT pre-trained model to determine the most similar interpretation item of the polysemous word in the dictionary according to the polysemous words and context data in the user question data.

[0020] Further, the long and difficult sentences are compressed by syntax tree analysis and key dictionary, or by extractive or generative artificial intelligence algorithms;

[0021] The compression of the long and difficult sentences by using the syntax tree analysis and the key dictionary is specifically as follows:

[0022] Based on punctuation or spaces, the user's question data is divided into multiple short sentences, and each short sentence is classified to remove unnecessary sentences. Then, the sentence compression scheme based on probability and syntactic analysis is processed to retain only the core sentence components such as subject, predicate and object. Finally, the power dictionary is used to ensure that the keywords are retained to obtain the final compression result of long and difficult sentences.

[0023] The specific method of compressing the long and difficult sentences by using an extractive or generative artificial intelligence algorithm is as follows:

[0024] User question data is processed through extractive or generative artificial intelligence algorithms to generate compression results for long and difficult sentences.

[0025] Furthermore, in the task-based question-answering scenario, the process of processing the key features of the user's question is specifically as follows:

[0026] According to the key features of the user's question, the user's intention is determined by understanding and clarifying, and the task execution instructions are obtained, so as to call the corresponding interface to execute the task execution instructions and feedback the execution results.

[0027] Furthermore, in the dialogue question-and-answer scenario, the process of processing the key features of the user's question is as follows:

[0028] According to the key features of the user's question, a keyword retrieval-based method is used to perform keyword retrieval in the preset knowledge base, and the relevance of the keyword retrieval results is judged. If the relevance is greater than the preset relevance threshold, the keyword retrieval results greater than the relevance threshold are sorted for relevance, and the sorted keyword retrieval results are output; if the relevance is not greater than the relevance threshold, a semantic matching-based method is used to compare the key features of the user's question with the semantic representation in the knowledge base, so as to calculate the similarity and obtain the semantic reply results, and the semantic reply results are sorted based on the corresponding similarities, and the sorted semantic reply results are output.

[0029] Furthermore, the method further includes performing confidence evaluation, model fusion and keyword user feedback on the keyword search results obtained by the keyword search-based method, so as to obtain the best answer;

[0030] The confidence evaluation specifically includes: performing confidence evaluation on the sorted keyword search results based on semantic rules and logical rules, and re-sorting the keyword search results;

[0031] The model fusion is specifically as follows: in the process of keyword search, multiple search methods are used to obtain keyword search results, and the outputs of different search methods are merged; the multiple search methods include: a search method based on the ElasticSearch search engine, a search method based on a knowledge base, a search method based on a BRRT model, a search method based on an interaction matrix, and a search method based on a twin neural network;

[0032] The keyword user feedback specifically includes: obtaining the user's scoring result for each keyword search result, and if the scoring result is lower than a preset scoring standard, a semantic matching-based method is used to obtain a semantic reply result.

[0033] Furthermore, the method also includes performing performance evaluation and semantic user feedback on the semantic reply results obtained by the semantic matching-based method, so as to obtain the best answer;

[0034] The performance evaluation specifically includes: comparing the semantic response results generated by the semantic matching method with the corresponding true answers in advance, calculating the evaluation index, and adjusting the hyperparameters of the model for implementing the semantic matching;

[0035] The semantic user feedback specifically includes: collecting user feedback information by setting a user interface, thereby optimizing the model for implementing semantic matching.

[0036] The present invention also provides a human-computer interaction system based on deep semantic analysis, including a memory and a processor, wherein the memory stores a computer program, and the processor calls the computer program to execute the steps of the method described above.

[0037] Compared with the prior art, the present invention has the following advantages:

[0038] (1) The present invention first performs natural language preprocessing and semantic understanding on the user's question data, converts the natural language proposed by the user into a form that can be processed by the computer, and realizes the extraction of key features and analysis of user intentions, thereby improving the processing efficiency and accuracy of the answer; then, according to the characteristics of the user's question data, scene matching is performed in the specified question and answer scenarios, task-based question and answer scenarios, and dialogue-based question and answer scenarios. Different answer generation strategies are adopted for different scenarios, which can obtain answers more efficiently and accurately, match user needs, and improve user friendliness.

[0039] (2) The present invention performs natural language preprocessing and semantic understanding of user question data, including word segmentation, part-of-speech tagging, entity recognition, word sense disambiguation, long and difficult sentence compression, sentiment analysis, question rewriting and intent recognition. It can not only extract key features, but also analyze the sentiment and intent of user questions, which is conducive to improving the accuracy of subsequent answer replies.

[0040] (3) For conversational question-and-answer scenarios, the present invention not only generates keyword search results by keyword search, but also calculates the relevance of the keyword search results. If the relevance is low, a semantic matching method is used to generate semantic reply results. This solution takes into account that keyword search responses belong to the search and matching method to find suitable answers, and will not generate new replies. The types and contents of replies are determined by the knowledge base. Once the user's question goes beyond the scope of the knowledge base, the question-and-answer system will not be able to accurately answer the user. This is supplemented by the semantic matching method, which can automatically generate new reply content and better understand the context. In addition, the semantic matching method improves the flexibility and scalability of the system, but has very high requirements on the quality and quantity of data, and there is unexplainability. Therefore, as a supplementary solution, the overall reply effect of the conversational question-and-answer scenario is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of a flow chart of a human-computer interaction method based on deep semantic analysis provided in an embodiment of the present invention;

[0042] Figure 2 A schematic diagram of a process of natural language preprocessing and semantic understanding provided in an embodiment of the present invention;

[0043] Figure 3 A schematic diagram of a process for obtaining an answer after scene matching provided in an embodiment of the present invention;

[0044] Figure 4 A schematic diagram of human-computer interaction in a specified question-answering scenario using a human-computer interaction method based on deep semantic analysis provided in an embodiment of the present invention;

[0045] Figure 5 A schematic diagram of human-computer interaction in a task-based question-answering scenario using a human-computer interaction method based on deep semantic analysis provided in an embodiment of the present invention;

[0046] Figure 6 A schematic diagram of human-computer interaction in a conversational question-and-answer scenario using a human-computer interaction method based on deep semantic analysis provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, 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. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0048] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0050] Example 1

[0051] like Figure 1 As shown, this embodiment provides a human-computer interaction method based on deep semantic analysis for the management and utilization of scientific and technological literature resources, and the method includes the following steps:

[0052] S1: Obtain user question data;

[0053] S2: Perform natural language preprocessing and semantic understanding on the acquired user question data to obtain key features of the user questions;

[0054] S3: Matching scenarios from multiple preset scenarios based on the key features of the user's question. The preset scenarios include a specified question and answer scenario, a task-based question and answer scenario, and a conversational question and answer scenario. The specified question and answer scenario provides users with preset questions to choose from; the task-based question and answer scenario is used to process the corresponding tasks based on the user's question data; and the conversational question and answer scenario is used to give relevant answers based on the user's question data.

[0055] S4: If it is a specified question and answer scenario, the response result is obtained from the corresponding answer library according to the question selected by the user; if it is a task-based question and answer scenario, the user's intention is determined according to the key features of the user's question, and the task is completed by replying or calling the API; if it is a conversational question and answer scenario, the answer is obtained from the preset knowledge base according to the key features of the user's question.

[0056] In step S2, Figure 2 As shown, natural language preprocessing includes word segmentation, part-of-speech tagging and entity recognition of user question data;

[0057] Semantic understanding includes word sense disambiguation, long and difficult sentence compression, sentiment analysis, question rewriting and intent recognition on natural language preprocessed data.

[0058] Specifically, the word segmentation process is performed through the Jieba word segmentation tool in conjunction with the business-specific noun dictionary;

[0059] Rewrite the question sentences by rewriting the abbreviations and full names of electrical terms;

[0060] Through syntactic analysis, we can determine whether the user's words have positive or negative intentions and conduct sentiment analysis.

[0061] Intent recognition is performed through classification prediction.

[0062] Disambiguate word meanings based on the Chinese WordNet library / electricity dictionary library, or disambiguate based on word vectors;

[0063] The word sense disambiguation based on the Chinese WordNet library / electricity dictionary library is specifically as follows: the context of the polysemous word in the user's question data is similarly calculated with the meaning of the polysemous word in the Chinese WordNet library / electricity dictionary library, and the interpretation item with the highest similarity is given;

[0064] The specific steps of word vector-based disambiguation are as follows: calling the BERT pre-trained model to determine the most similar meaning of the polysemous word in the dictionary based on the polysemous words and context data in the user's question data.

[0065] Compress long and difficult sentences through syntax tree analysis and key dictionaries, or through extractive or generative artificial intelligence algorithms;

[0066] The specific steps of compressing long and difficult sentences through syntax tree analysis and key dictionary are as follows:

[0067] Based on punctuation or spaces, the user's question data is divided into multiple short sentences, and each short sentence is classified to remove unnecessary sentences. Then, the sentence compression scheme based on probability and syntactic analysis is processed to retain only the core sentence components such as subject, predicate and object. Finally, the power dictionary is used to ensure that the keywords are retained to obtain the final compression result of long and difficult sentences.

[0068] The specific methods of compressing long and difficult sentences through extractive or generative artificial intelligence algorithms are as follows:

[0069] User question data is processed through extractive or generative artificial intelligence algorithms to generate compression results for long and difficult sentences.

[0070] In this embodiment, the processing process of the above step S2 is specifically as follows:

[0071] Natural language preprocessing and semantic understanding are used as a whole to understand questions, convert natural language questions raised by users into a form that computers can process, and understand the questions raised by users. Question understanding includes natural language preprocessing, semantic understanding, and question classification. Natural language preprocessing includes word segmentation, part-of-speech tagging, entity recognition, etc., to help the system better handle natural language questions; semantic understanding refers to in-depth analysis of the semantics of sentences, including entity recognition, relationship extraction, intent recognition, etc., to help the system understand the content and key information that users want to ask. Question classification is to help the system determine the type and difficulty of the question, so as to select the appropriate answer strategy. The content of question understanding for deep semantic analysis of scientific and technological literature and human-computer interaction applications is as follows:

[0072] In question understanding, word segmentation, part-of-speech tagging, and entity recognition are all relatively mature technologies. In conjunction with the business-specific noun dictionary, the jieba word segmentation tool can be used to do this; question rewriting mainly rewrites the abbreviations and full names of power-specific nouns; sentiment analysis mainly uses syntactic analysis to determine whether the user's words are positive or negative; multi-intent recognition is done by classification, which mainly processes the intention of the user's question and gives different answers. Among them, the solutions to word sense disambiguation and long and difficult sentence compression are as follows:

[0073] (1) Word sense disambiguation

[0074] Method 1: Disambiguation based on Chinese WordNet database / electricity dictionary database

[0075] The similarity between the context of a polysemous word and its meaning in the Chinese WordNet library / electric dictionary is calculated, and then the most similar interpretation is given. There are different algorithms for this similarity. The simplest one is to use the words in the context as set A, the words in the interpretation as set B, and then use the number of elements in the intersection of set A and set B as the similarity. This method cannot give some rare interpretations very accurately, but it does not require training models.

[0076] Method 2: Disambiguation based on word vectors

[0077] In the scenario of polysemous word disambiguation, the BERT pre-trained model can be used to calculate which of the multiple meanings of a polysemous word in a specific context is most similar to the word in the dictionary.

[0078] (2) Compression of long and difficult sentences

[0079] Method 1: Syntax tree analysis + key dictionary

[0080] First, we split long sentences into several short sentences by punctuation or spaces, and then classify the short sentences to remove unnecessary sentences. Then, we use a sentence compression scheme based on probability and syntactic analysis to retain only the core sentence components such as subject, predicate, and object. Finally, we use the power dictionary to ensure that the keywords are retained.

[0081] Method 2: Extractive & Generative

[0082] TextRank is extracted and generated by deep learning (using RNN and CNN units, and then introducing Attention and Self-Attention) machine.

[0083] In step S3, the three scenarios are specifically described as follows:

[0084] Scenario one is a designated question and answer scenario. All questions and answers are pre-set by the system, so when a user asks a designated question, the system can quickly match the pre-set answer to answer it.

[0085] Scenario 2 is a task-based question-answering scenario. The system obtains user-specified keywords by understanding user questions, such as "download / collect", "XX document" or "draw", "XX knowledge graph / co-occurrence network diagram", etc., and then calls the relevant interface to execute the command and feedback to the user after completing the command.

[0086] Scenario 3 is the conversational question-and-answer scenario. From the technical analysis and technical path design, we know that there are two main ways to acquire knowledge for conversational question-and-answer: search-based and generative. Search-based question-and-answer retrieves fragments related to the question from a large amount of text data and feeds them back to the user. Common search methods include ElasticSearch search engine search, knowledge base search, BERT model search, interaction matrix search, twin neural network search, etc. Generative question-and-answer systems understand questions and use answer generation to provide users with appropriate responses. Common models include Seq2Seq models, BERT models, and GPT models.

[0087] In step S4, Figure 3 As shown in the figure, the processing process of each scene is as follows:

[0088] In the specified question and answer scenario, such as Figure 4 As shown, the user selects questions from the FAQ library and asks them, and the interactive system gives pre-set answers.

[0089] In the task-based question-answering scenario, the process of processing the key features of user questions is as follows:

[0090] According to the key features of the user's question, the user's intention is determined by understanding and clarifying, and the task execution instructions are obtained, so as to call the corresponding interface to execute the task execution instructions and feedback the execution results.

[0091] like Figure 5 As shown, the user issues instructions through natural language, and the interactive system executes according to the instructions.

[0092] In the conversational question-and-answer scenario, the process of processing the key features of user questions is as follows:

[0093] According to the key features of the user's question, a keyword retrieval-based method is used to perform keyword retrieval in the preset knowledge base, and the relevance of the keyword retrieval results is judged. If the relevance is greater than the preset relevance threshold, the keyword retrieval results greater than the relevance threshold are sorted for relevance, and the sorted keyword retrieval results are output; if the relevance is not greater than the relevance threshold, a semantic matching-based method is used to compare the key features of the user's question with the semantic representation in the knowledge base, so as to calculate the similarity and obtain the semantic reply results, and the semantic reply results are sorted based on the corresponding similarities, and the sorted semantic reply results are output.

[0094] The method also includes performing confidence evaluation, model fusion and keyword user feedback on the keyword search results obtained by the keyword search-based method, so as to obtain the best answer;

[0095] The confidence evaluation is specifically as follows: based on semantic rules and logical rules, the confidence of the sorted keyword search results is evaluated, and the keyword search results are re-sorted;

[0096] Model fusion is specifically as follows: in the process of keyword search, multiple search methods are used to obtain keyword search results, and the outputs of different search methods are integrated; the multiple search methods include: a search method based on the ElasticSearch search engine, a search method based on the knowledge base, a search method based on the BRRT model, a search method based on the interaction matrix, and a search method based on the twin neural network;

[0097] Keyword user feedback is specifically as follows: obtaining the user's rating results for each keyword search result. If the rating result is lower than the preset rating standard, a semantic matching-based method is used to obtain a semantic response result.

[0098] Furthermore, the method also includes performing performance evaluation and semantic user feedback on the semantic reply results obtained by the semantic matching-based method, so as to obtain the best answer;

[0099] The performance evaluation is as follows: the semantic response results generated by the semantic matching method are compared with the corresponding real answers in advance, and the evaluation index is calculated, so as to adjust the hyperparameters of the model that realizes semantic matching;

[0100] Semantic user feedback specifically involves collecting user feedback information by setting up a user interface, thereby optimizing the model for implementing semantic matching.

[0101] Specifically, for the answers obtained by keyword search, the best answer is selected by sorting, confidence assessment, model fusion, user feedback, etc. Sorting refers to sorting the similarity scores of related answers, confidence assessment refers to evaluating and sorting the confidence of related answers based on semantic rules, logical rules, etc., fusing multiple models means fusing the outputs of multiple different models and then selecting the best answer, and user feedback means introducing a user feedback mechanism in the question-answering system, allowing users to rate or comment on each possible answer, and then selecting the best answer based on user feedback. If the rating result is lower than the preset rating standard, a semantic matching-based method is used to obtain a semantic reply result.

[0102] For answers obtained by semantic matching methods, performance evaluation and user feedback are used to optimize the answers. Performance evaluation refers to comparing the generated answers with the real answers, calculating evaluation indicators such as BLEU scores, and then adjusting the model's hyperparameters based on the performance evaluation results to optimize system performance. User feedback refers to designing a user-friendly interface so that users can ask questions and view the system's generated answers, collecting user feedback information for improving the system.

[0103] like Figure 6 As shown, users ask questions freely in natural language, and the interactive system provides answers by retrieval or generation.

[0104] Example 2

[0105] This embodiment provides a human-computer interaction system based on deep semantic analysis, including a memory and a processor, wherein the memory stores a computer program, and the processor calls the computer program to execute the steps of the method described in Example 1.

[0106] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A human-computer interaction method based on deep semantic analysis for the management and utilization of scientific and technological literature resources, characterized in that: The method comprises the following steps: Get user question data; Perform natural language preprocessing and semantic understanding on the acquired user question data to obtain the key features of the user questions; According to the key features of the user's question obtained, scene matching is performed from multiple preset scenes, and the multiple preset scenes include a designated question and answer scene, a task-based question and answer scene, and a dialogue-based question and answer scene. The designated question and answer scene provides users with preset questions to choose from; the task-based question and answer scene is used to process corresponding tasks according to the user's question data; and the dialogue-based question and answer scene is used to give relevant answers according to the user's question data; If it is a specified question and answer scenario, the response result will be obtained from the corresponding answer library based on the question selected by the user; if it is a task-based question and answer scenario, the user's intention will be determined based on the key features of the user's question, and the task will be completed by replying or calling the API; if it is a conversational question and answer scenario, the answer will be obtained from the preset knowledge base based on the key features of the user's question.

2. The human-computer interaction method based on deep semantic analysis according to claim 1, characterized in that: The natural language preprocessing includes word segmentation, part-of-speech tagging and entity recognition of user question data; The semantic understanding includes word sense disambiguation, long and difficult sentence compression, sentiment analysis, question rewriting and intent recognition on the natural language preprocessed data.

3. The human-computer interaction method based on deep semantic analysis according to claim 2, characterized in that: The word segmentation process is performed by using the jieba word segmentation tool in conjunction with a business-specific noun dictionary; Rewriting the question by rewriting the abbreviations and full names of electrical terms; By using syntactic analysis to determine whether the user's words have positive or negative intentions, the sentiment analysis is performed; The intention recognition is performed through classification prediction.

4. The human-computer interaction method based on deep semantic analysis according to claim 2, characterized in that: Disambiguate word meanings based on the Chinese WordNet library / electricity dictionary library, or disambiguate based on word vectors; The word sense disambiguation based on the Chinese WordNet library / electricity dictionary library is specifically as follows: the context of the polysemous word in the user question data is similarly calculated with the interpretation of the polysemous word in the Chinese WordNet library / electricity dictionary library, and the interpretation item with the highest similarity is given; The word vector-based disambiguation is specifically as follows: calling the BERT pre-trained model to determine the most similar interpretation item of the polysemous word in the dictionary according to the polysemous words and context data in the user question data.

5. The human-computer interaction method based on deep semantic analysis according to claim 2, characterized in that: Compressing the long and difficult sentences by using syntax tree analysis and key dictionaries, or compressing the long and difficult sentences by using extractive or generative artificial intelligence algorithms; The compression of the long and difficult sentences by using the syntax tree analysis and the key dictionary is specifically as follows: Based on punctuation or spaces, the user's question data is divided into multiple short sentences, and each short sentence is classified to remove unnecessary sentences. Then, the sentence compression scheme based on probability and syntactic analysis is processed to retain only the core sentence components such as subject, predicate and object. Finally, the power dictionary is used to ensure that the keywords are retained to obtain the final compression result of long and difficult sentences. The specific method of compressing the long and difficult sentences by using an extractive or generative artificial intelligence algorithm is as follows: User question data is processed through extractive or generative artificial intelligence algorithms to generate compression results for long and difficult sentences.

6. The human-computer interaction method based on deep semantic analysis according to claim 1, characterized in that: In the task-based question-answering scenario, the process of processing the key features of user questions is as follows: According to the key features of the user's question, the user's intention is determined by understanding and clarifying, and the task execution instructions are obtained, so as to call the corresponding interface to execute the task execution instructions and feedback the execution results.

7. The human-computer interaction method based on deep semantic analysis according to claim 1, characterized in that: In the conversational question-and-answer scenario, the process of processing the key features of user questions is as follows: According to the key features of the user's question, a keyword retrieval-based method is used to perform keyword retrieval in the preset knowledge base, and the relevance of the keyword retrieval results is judged. If the relevance is greater than the preset relevance threshold, the keyword retrieval results greater than the relevance threshold are sorted for relevance, and the sorted keyword retrieval results are output; if the relevance is not greater than the relevance threshold, a semantic matching-based method is used to compare the key features of the user's question with the semantic representation in the knowledge base, so as to calculate the similarity and obtain the semantic reply results, and the semantic reply results are sorted based on the corresponding similarities, and the sorted semantic reply results are output.

8. The human-computer interaction method based on deep semantic analysis according to claim 7, characterized in that: The method further includes performing confidence evaluation, model fusion and keyword user feedback on the keyword search results obtained by the keyword search method, so as to obtain the best answer; The confidence evaluation specifically includes: performing confidence evaluation on the sorted keyword search results based on semantic rules and logical rules, and re-sorting the keyword search results; The model fusion is specifically as follows: in the process of keyword search, multiple search methods are used to obtain keyword search results, and the outputs of different search methods are merged; the multiple search methods include: a search method based on the ElasticSearch search engine, a search method based on a knowledge base, a search method based on a BRRT model, a search method based on an interaction matrix, and a search method based on a twin neural network; The keyword user feedback specifically includes: obtaining the user's scoring result for each keyword search result, and if the scoring result is lower than a preset scoring standard, a semantic matching-based method is used to obtain a semantic reply result.

9. The human-computer interaction method based on deep semantic analysis according to claim 7, characterized in that: The method further includes performing performance evaluation and semantic user feedback on the semantic reply results obtained by the semantic matching method, so as to obtain the best answer; The performance evaluation specifically includes: comparing the semantic response results generated by the semantic matching method with the corresponding true answers in advance, calculating the evaluation index, and adjusting the hyperparameters of the model for implementing the semantic matching; The semantic user feedback specifically includes: collecting user feedback information by setting a user interface, thereby optimizing the model for implementing semantic matching.

10. A human-computer interaction system based on deep semantic analysis, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor calls the computer program to execute the steps of any one of the methods according to claims 1 to 9.

Citation Information

Patent Citations

  • Information output method and device, electronic equipment and storage medium

    CN111581336A

  • Intelligent robot integrating chat, knowledge and task questions and answers

    CN113515613A

  • Dialogue tracking method based on self-constructed multiple scenes

    CN114003773A

  • Intelligent question and answer method, system and device and computer readable storage medium

    CN114756663A

Cited By

  • Intelligent interaction method, system, medium and equipment

    CN119149693A

  • Voice question and answer method and device and intelligent agent

    CN119179771A

  • Information processing method and device of large language model, electronic equipment and storage medium

    CN119202182A

  • Business question answering method and system based on large language model and scene label

    CN119537553A

  • Business Q&A Method and System Based on Large Language Model and Scenario Labels

    CN119537553B