Multi-mode intelligent customer service dialogue method and system
By combining the embedding representation of the user's reply text and images and performing feature map activation, the problem of noise interference and complexity of multi-modal intelligent customer service when integrating information is solved, the accuracy and understanding of the dialogue are improved, and the computational cost is reduced. quantity.
Patent Information
- Application Number
- CN202410617312.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-03
AI Technical Summary
When multi-modal intelligent customer service integrates different modal information, it is susceptible to noise interference, resulting in low dialogue understanding and increased technical complexity. It also requires a large amount of calculation and is difficult to effectively integrate useful information.
By combining the user's reply text and reply image with embedding representation, and performing feature map activation, multi-modal features are obtained, noise interference is reduced, and the accuracy and computing efficiency of information integration are improved.
It improves the multi-modal intelligent customer service's ability to understand multi-modal input and the accuracy of dialogue, reduces the technical complexity and calculation amount, and enhances the accuracy and security of dialogue.
Smart Images

Figure CN118586498A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent customer service technology, and in particular to a multimodal intelligent customer service dialogue method and system. Background Art
[0002] Multimodal information interaction is a cutting-edge technology that has emerged in recent years. It makes the communication between people and computers richer, more natural and more efficient. In traditional information interaction, communication is mainly carried out through text or voice, but this method has certain limitations in expression and understanding. Multimodal information interaction breaks the shackles of a single medium by combining multiple information input and output methods, such as voice, images, gestures and touch, and brings new possibilities for human-computer interaction. Multimodal information allows users to use multiple perceptual channels simultaneously when interacting with computers or devices. By integrating different perceptual information, multimodal interaction can improve the accuracy of information transmission and the depth of understanding, thereby better meeting user needs.
[0003] With the popularity of intelligent voice assistants (such as Siri, Alexa, and Google Assistant), multimodal information interaction plays an important role in voice interaction. Users can not only communicate with assistants through voice commands, but also combine image and gesture input to make the interaction more intuitive and flexible; and, combining multiple information inputs can reduce misunderstandings and misoperations, and improve the accuracy and efficiency of the interaction between intelligent customer service and users.
[0004] However, multimodal information interaction also faces some challenges. The data information of each modality is not balanced. When the existing related technologies are integrated, the noise interference between different modalities will be strengthened while the important information is integrated. It will also be more difficult for multimodal intelligent customer service to obtain useful information in the conversation, which will lead to low comprehension and conversation capabilities of multimodal intelligent customer service. In addition, the computational complexity of multimodal integration will be greater, which will increase the complexity of multimodal technology integration in the intelligent customer service conversation scenario. Summary of the invention
[0005] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and provide a multimodal intelligent customer service dialogue method and system, which can reduce the technical complexity of multimodal intelligent customer service dialogue.
[0006] In a first aspect, the present invention provides a multimodal intelligent customer service dialogue method, comprising:
[0007] The user's reply text in the conversation is used as the input of the natural language processing pre-trained model, and the text embedding representation is output. The user's reply image in the conversation is used as the input of the image pre-trained model, and the image embedding representation is output.
[0008] Combining the text embedding representation and the image embedding representation to obtain a total embedding representation;
[0009] Perform feature map activation on the total embedding representation to obtain multimodal features, and communicate with the user based on the multimodal features.
[0010] The present invention combines the user's reply text and reply image and activates the feature map, which can emphasize the useful information after multimodal combination and reduce noise interference, so as to more accurately characterize the feature data of multimodal integration, reduce the calculation amount of multimodal integration, and thus reduce the complexity of multimodal technical integration. In addition, based on the reply text and reply image, the multimodal features obtained can be used to communicate with the user, thereby improving the multimodal intelligent customer service's ability to understand multimodal input, thereby improving the accuracy of multimodal intelligent customer service dialogues.
[0011] In some embodiments, performing feature map activation on the total embedding representation to obtain multimodal features includes:
[0012] A feature map activation is performed on the total embedding representation to obtain a reply image weight of the reply image, and a multimodal feature is obtained by performing a dot product operation on the reply image weight and the image embedding representation.
[0013] The present invention obtains the reply image weight in the reply image by performing convolution and feature map activation on the total embedded representation, thereby matching the same features as the reply text from the reply image, and then strengthening the same features while reducing noise interference to obtain multimodal features, thereby being able to more accurately characterize the feature data of multimodal integration and reduce the computational complexity of multimodal integration.
[0014] In some embodiments, the method of using the reply text of the user in the conversation as the input of the natural language processing pre-trained model and outputting the text embedding representation includes:
[0015] The user's reply text in the conversation is used as the input of the natural language processing pre-trained model, the focus word is learned by given adjacent words, and the text embedding representation is output;
[0016] Alternatively, by learning neighboring words for a given word, output a text embedding representation;
[0017] Alternatively, by globally counting the relationship between words in the reply text, a text embedding representation is output.
[0018] The present invention obtains text embedding representations in a variety of ways and can adapt to text embedding models in more scenarios, thereby having stronger compatibility, reducing the difficulty of integrating reply texts and reply images from different sources, and further reducing the complexity of multimodal technical integration.
[0019] In some embodiments, the communicating with the user according to the multimodal feature includes:
[0020] The reply content corresponding to the multimodal feature is transmitted to the server for storage through encrypted transmission. When the user sends a request data packet based on multimodal encryption to the server, the corresponding reply content is retrieved according to the mapping relationship stored in the server; wherein the mapping relationship between each user and the intelligent customer service is unique.
[0021] The present invention transmits the reply content corresponding to the multimodal features through encrypted transmission, and transmits the multimodal encrypted request data packet from the user to the server. The mapping relationship between each user and the intelligent customer service is one-to-one, which can improve the security of user requests and obtaining the reply content of the intelligent customer.
[0022] In a second aspect, the present invention provides a multimodal intelligent customer service dialogue system, comprising: an embedding module, a combining module and a dialogue module; wherein:
[0023] The embedding module is used to use the reply text of the user in the conversation as the input of the natural language processing pre-training model to output the text embedding representation, and use the reply image of the user in the conversation as the input of the image pre-training model to output the image embedding representation;
[0024] The combining module is used to combine the text embedding representation and the image embedding representation to obtain a total embedding representation;
[0025] The dialogue module is used to perform feature map activation on the total embedding representation to obtain multimodal features, and communicate with the user based on the multimodal features. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a flowchart of a multimodal intelligent customer service dialogue method provided in this embodiment;
[0027] Figure 2 is a schematic diagram of a process for obtaining multimodal features provided in this embodiment;
[0028] Figure 3 is a schematic diagram of a process for obtaining a reply image weight provided in this embodiment;
[0029] Figure 4 This is a data flow diagram for obtaining the weight of a reply image provided in this embodiment;
[0030] Figure 5 It is a structural diagram of a multimodal intelligent customer service dialogue system provided in this embodiment. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0032] It is worth noting that multimodal information interaction is a technology that interacts in multiple sensory ways, aiming to provide a richer and more efficient human-computer communication experience. It covers multiple input and output methods such as voice, image, gesture, eye movement, touch, etc., allowing users to use multiple sensory channels simultaneously when interacting with computers or devices. By integrating different sensory information, multimodal interaction can improve the accuracy of information transmission and the depth of understanding, thereby better meeting user needs. Multimodal information interaction has great potential in the fields of virtual reality (VR) and augmented reality (AR). Users can interact with virtual environments or augmented reality content through voice, gestures, and controllers, making the user experience more immersive and natural. With the popularity of intelligent voice assistants (such as Siri, Alexa, and Google Assistant), multimodal information interaction plays an important role in voice interaction. Users can not only communicate with assistants through voice commands, but also combine image and gesture input to make the interaction more intuitive and flexible. Multimodal information interaction is also widely used in the fields of medicine and rehabilitation. For example, using virtual reality and gesture interaction to help rehabilitation patients conduct sports recovery training and improve rehabilitation effects. Multimodal information interaction also plays an important role in intelligent transportation. Combining voice and image recognition can achieve more accurate perception of intelligent vehicles and safer autonomous driving systems.
[0033] Multimodal information interaction also brings many advantages, including: Rich interactive experience: Users can interact with computers or devices in a variety of ways, which is closer to the way of communication in daily life. Higher accuracy and efficiency: Combining multiple information inputs can reduce misunderstandings and misoperations, and improve the accuracy and efficiency of interactions. Accessibility: Multimodal information interaction makes it easier for different groups such as people with disabilities to use computers and devices.
[0034] However, multimodal information interaction also faces some challenges, including the fact that when existing related technologies are integrated, the noise interference between different modalities will be strengthened while important information is integrated. In addition, the key information of different modalities is combined with the noise, making it more difficult for multimodal intelligent customer service to obtain useful information in the conversation, which in turn leads to low conversation and comprehension capabilities of multimodal intelligent customer service. In addition, the computational complexity of multimodal integration will be greater, which will increase the complexity of multimodal technology integration and lead to privacy and security issues.
[0035] Based on this, the present invention provides a multimodal intelligent customer service dialogue method and system, which can reduce the technical complexity of multimodal intelligent customer service dialogue. After extracting the embedded representations of the user's reply text and reply image respectively, the two embedded representations are combined, and the feature map of the total embedded representation is activated to obtain multimodal features, thereby focusing on strengthening the integration of useful information and reducing the noise interference between different modalities at the same time, thereby reducing the computational amount of multimodal integration, reducing the complexity of multimodal technical integration, and improving the feature accuracy of multimodal technical integration. The present invention also improves the security of user data by encrypting the information transmitted between the user and the intelligent customer service. In order to explain the technical solution of the present invention in detail, it will be described in detail from the following embodiments.
[0036] Example 1
[0037] See also Figure 1 , is a flow chart of a multimodal intelligent customer service dialogue method provided in this embodiment, including: steps S11 to S13.
[0038] It is worth mentioning that Natural Language Processing (NLP) technology is a very important part of artificial intelligence. It can not only improve the interactivity and intelligence between machines and humans, but also promote the continuous development and progress of artificial intelligence technology. The pre-training model of natural language processing has the following five development processes, including: basic stage, text classification stage, machine translation stage, speech processing stage and real-time processing stage.
[0039] In the basic stage, the foundation of natural language processing technology is the basic concepts and algorithms of natural language processing, such as part-of-speech tagging, grammatical analysis, entity recognition, and sentiment analysis. These algorithms and technologies are the early versions of natural language processing technology, but they can only handle some simple language processing tasks.
[0040] In the text classification stage, with the development of computer vision and machine learning technology, natural language processing technology began to be applied to text classification tasks. Text classification refers to the classification of text into different categories, such as news, emails, blog posts, and social media posts. During this period, natural language processing technology began to use deep learning algorithms, such as convolutional neural networks (CNN) and recurrent neural networks (RNN) to improve classification accuracy.
[0041] In the machine translation stage, machine translation is another important application field of natural language processing technology. Machine translation refers to translating from one language to another. During this period, natural language processing technology began to use deep learning algorithms, such as recurrent neural networks and long short-term memory networks (LSTM) to improve the accuracy and speed of machine translation.
[0042] In the speech processing stage, speech processing refers to converting speech signals into text or text format. During this period, natural language processing technology began to use deep learning algorithms, such as convolutional neural networks and recurrent neural networks, to improve the accuracy and speed of speech recognition and speech synthesis.
[0043] In the real-time processing stage, as the demand for real-time processing increases, natural language processing technology begins to use real-time processing algorithms such as real-time sentiment analysis, real-time translation, and real-time question and answer. These algorithms can process real-time voice and text data and provide users with a better interactive experience.
[0044] Powerful natural language processing technology can be applied to human work and life scenarios in many forms. In this embodiment, the main application scenario is intelligent customer service. An intelligent customer service system is established based on natural language processing, and users' questions and feedback are automatically responded to through natural language processing technology to improve customer satisfaction and service efficiency. Natural language processing technology can also be applied to sentiment analysis, information extraction, public opinion monitoring, natural language generation and speech recognition.
[0045] In the application scenario of sentiment analysis, natural language processing technology can be used to perform sentiment analysis on user comments and feedback, understand user attitudes and evaluations, and help companies better understand the market and user needs. In the application scenario of information extraction: natural language processing technology can be used to extract useful information and knowledge from large amounts of text data to provide decision support and market analysis for companies. In the application scenario of public opinion monitoring: social media and news media can be monitored and analyzed in real time through natural language processing technology to understand the attitudes and behaviors of the market and users, and provide companies with more accurate marketing strategies. In the application scenario of natural language generation: natural language processing technology can be used to convert structured data into natural language, helping companies better display and convey information and create more attractive and personalized marketing content. In the application scenario of speech recognition: natural language processing technology can be used to achieve speech recognition and speech interaction, improving user experience and service efficiency.
[0046] Natural language processing technology has the ability to process natural language data in the service field, can better understand the market and user needs, accurately capture user intentions, improve work efficiency and service efficiency, and enhance user interaction experience and service quality. Specifically, natural language processing technology can process and understand human natural language, can process massive amounts of text data and voice data, and extract useful information and knowledge from them. Accurately capture user intentions: Natural language processing technology can analyze user needs and behaviors and accurately capture user intentions. Improve efficiency: Natural language processing technology can realize intelligent customer service and natural language generation functions, can automatically process a large amount of repetitive work, and improve the work efficiency and service efficiency of enterprises. Enhance user experience: Natural language processing technology can realize voice interaction and natural language generation functions, and improve user interaction experience and service quality. In particular, in the field of intelligent customer service, natural language processing technology can enhance the function of intelligent customer service, fully understand the multimodal information of images and texts replied by users at the same time, and, in combination with this embodiment, when integrating multimodal information, it can enhance useful information, reduce noise interference, reduce the technical complexity of multimodal integration, and improve the accuracy of multimodal integration.
[0047] exist Figure 1 In step S11, the reply text of the user in the conversation is used as the input of the natural language processing pre-training model, and the text embedding representation is output; and the reply image of the user in the conversation is used as the input of the image pre-training model, and the image embedding representation is output.
[0048] In some embodiments, the reply text of the user in the conversation is used as the input of the natural language processing pre-trained model, and a text embedding representation is output, including: using the reply text of the user in the conversation as the input of the natural language processing pre-trained model, learning the focus word by given adjacent words, and outputting the text embedding representation; or, learning adjacent words by given words, and outputting the text embedding representation; or, outputting the text embedding representation by globally counting the relationship between words in the reply text.
[0049] In some cases, learning the focus word given its neighboring words can be done through word embedding using Google’s Word2vec continuous bag-of-words model.
[0050] It is worth mentioning that Word2Vec is also called Word embeddings, and its Chinese name is "Word Vector". It is one of the most popular pre-trained word embedding tools developed by Google. Word2Vec is trained on the Google News dataset (about 100 billion words). It includes several use cases such as recommendation engines, word similarity, and different text classification problems. The architecture of Word2Vec is very simple, with only one hidden layer of feedforward neural network, so it is sometimes called a shallow neural network structure.
[0051] In some embodiments, learning neighboring words for a given word can be performed through word embedding using Google's Word2vec Skip-gram model.
[0052] It is worth noting that according to the embedding learning method, Word2Vec is divided into the following two methods: (1) Continuous Bag-of-Words Model (CBOW); (2) Continuous Skip-gram Model; Among them, the Continuous Bag-of-Words Model learns the focus word given the adjacent words, while the Continuous Skip-gram Model learns the adjacent words given the word. The Continuous Bag-of-Words Model and the Continuous Skip-gram Model are inverse of each other.
[0053] Exemplarily, “I have failed at times but I never stopped trying”. Learn the embedding of the word “failed”. So, the focus word here is “failed”. The first step is to define the context window. The context window refers to the number of words that appear to the left and right of the focus word. The words that appear in the context window are called neighboring words (or context). Fix the context window to 2.
[0054] Exemplarily, the continuous bag-of-words model: Input = [I, have, at, times], Output = failed, the Skip-gram model: Input = failed, Output = [I, have, at, times], the continuous bag-of-words model accepts multiple words as input and generates a word as output, while the continuous Skip-gram accepts one word as input and generates multiple words as output.
[0055] It is worth noting that the continuous bag-of-words model learns the focus word given the neighboring words, while the continuous skip-gram model learns the neighboring words given the word.
[0056] In some embodiments, the relationship between words in the reply text can be globally counted and text embedding can be performed using Stanford's Global Vectors (GloVe) model.
[0057] In some embodiments, a focus word is learned by given adjacent words and a text embedding representation is output, including: obtaining adjacent words to the left and right of the focus word in a context window, and outputting the adjacent words as a text embedding representation.
[0058] In some embodiments, the reply image of the user in the conversation is used as the input of the image pre-training model, and the image embedding representation is output, including: using the reply image of the user in the conversation as the input of the image pre-training model, generating an embedding vector for the reply image through an encoder, and performing corresponding segmentation on the embedding vector according to pre-defined prompts to obtain the image embedding representation.
[0059] In some embodiments, an encoder is used to generate an embedding vector for the reply image, and the embedding vector is segmented accordingly according to predefined prompts to obtain an image embedding representation, including: generating a one-time embedding for the reply image through an image encoder, and converting all predefined prompts into embedding vectors in real time through a lightweight prompt encoder, combining the one-time embedding and the embedding vector, using the obtained combination result as the input of the decoder to predict the segmentation mask, and outputting the image embedding representation.
[0060] In some embodiments, the obtained combined result is used as the input of the decoder to predict the segmentation mask, and also includes: interactively marking the reply image through a deep learning-based segmentation model to obtain image annotation data, and iteratively updating the segmentation model with new labels, and re-acquiring image annotation data to obtain an image annotation data set; the image annotation data set is used to segment the reply image to obtain the image embedding representation.
[0061] In some embodiments, the segmentation model is a Segment Anything Model (SAM).
[0062] In some embodiments, there are two main methods for image segmentation: (1) interactive segmentation; (2) automatic segmentation; and when obtaining the image embedding representation, the segmentation model is used to perform image segmentation. The segmentation model combines the two methods to achieve interactive segmentation and automatic segmentation in a single model. The segmentation model allows users to use it in a flexible way. Just design the correct prompts for the model, including: clicks, boxes, and text, to complete a wide range of segmentation tasks, which improves flexibility.
[0063] In some embodiments, the learning and training method of the segmentation model is prompt training, which is derived from the optimization process of downstream tasks of natural language processing. When obtaining the embedded representation of the image, the soft segmentation model segments the image, which is conducive to optimizing the final embedded representation result of the image.
[0064] In some embodiments, a one-time embedding is generated for an image by an image encoder, while a lightweight hint encoder converts all hints into embedding vectors in real time. These two sources of information are then combined in a lightweight decoder responsible for predicting segmentation masks. After computing the image embedding, the segmentation-everything model is able to generate corresponding segmentations based on any hint in a web browser within 50 milliseconds.
[0065] It is worth mentioning that the pre-training model combining image and vision fields mainly adopts the segmentation model, which transforms and transfers knowledge between different languages through semantic alignment. The highlights of this model include:
[0066] Support for multiple languages: The Split Everything model can process multiple different natural languages at the same time, thus helping researchers to convert and transfer knowledge between different languages.
[0067] High-efficiency performance: The Split Everything model uses the codec-based Bidirectional Encoder Representations from Transformers (BERT) pre-training model technology. Its developers say that it exceeds the current mainstream cross-language models in various performance indicators.
[0068] Unsupervised Learning: The Split Everything model is an unsupervised learning model that can automatically learn the relationship between different languages from large-scale text data without manual annotation or explicit alignment.
[0069] Wide application: The split-everything model can be applied to multiple fields, such as machine translation, question-answering systems, and information retrieval, making cross-language interaction and knowledge sharing in these fields more convenient and efficient.
[0070] In general, the split everything model is a new multilingual model with broad application prospects. Its unsupervised learning method and high efficiency have attracted widespread attention, making the multimodal intelligent customer service dialogue method in this application more effective.
[0071] In some embodiments, the image annotation dataset is also the key to the segmentation model. The image annotation dataset contains more than 1.1 billion masks. The image annotation dataset is collected by the segmentation model. The annotator uses the segmentation model to interactively mark the image, and then uses the newly annotated data to update the segmentation model in turn. By repeating this cycle multiple times, the segmentation model and the image annotation dataset are iteratively improved.
[0072] It is worth noting that the collection speed and volume of the Split Everything model data set have been greatly improved. The open source of the Split Everything model will greatly enhance the capabilities of the Computer Vision (CV) industry, and the machine vision industry will benefit comprehensively from the development of the Split Everything model; at the same time, combined with the rapid development of large language models, it will help to increase the speed of development of multimodal artificial intelligence.
[0073] The image annotation dataset is also key to the Segment Everything model. The image annotation dataset contains over 1.1 billion masks. The image annotation dataset collection is completed by the Segment Everything model. The annotator uses the Segment Everything model to interactively mark images, and then uses the newly annotated data to update the Segment Everything model in turn. By repeating this cycle many times, the Segment Everything model and the image annotation dataset collection are iteratively improved. The speed of collecting segmentation masks by the Segment Everything model has been greatly improved. It only takes about 14 seconds to interactively annotate masks; compared with previous large-scale segmentation data collection work, the speed of the Segment Everything model has increased several times. The Segment Everything model dataset contains over 1.1 billion segmentation masks collected from approximately 11 million licensed and privacy-protected images. The SA-1B (Segment Anything 1-Billion) dataset of the Segment Everything model has 400 times more masks than any existing segmentation dataset; and after evaluation, the quality and diversity of these masks remain at a high level.
[0074] Step S12: combining the text embedding representation and the image embedding representation to obtain a total embedding representation.
[0075] In some embodiments, the text embedding representation and the image embedding representation are combined to obtain a total embedding representation, including: context mapping the text embedding representation and the image embedding representation respectively to obtain dimensionally aligned text dynamic vectors and image dynamic vectors, and adding the text dynamic vectors and the image dynamic vectors according to the corresponding element-level features to obtain a total embedding representation.
[0076] In some embodiments, the text embedding representation and the image embedding representation are context-mapped respectively, that is, the text embedding representation and the image embedding representation are embedded respectively.
[0077] It is worth mentioning that embedding is a mapping of discrete instances to continuity. Its function is to convert input data in a certain format, such as text, into a vector representation that can be processed by the model to describe the information contained in the original data. It is a method that can achieve dynamic vectorization based on contextual semantics. In the dynamic vector representation, the model is no longer a vector correspondence, but a trained model. When in use, the text is input into the model, and the model infers the corresponding meaning of each word based on the context, thereby obtaining the word vector of the text. When the word is represented by a vector, it can understand polysemous words in combination with the current context, and realize different contexts, and its vector will change.
[0078] Embedding is also an information-dense representation of the semantic meaning of a text. Each embedding is a floating-point number such that the distance between two embeddings in the vector space is associated with the semantic similarity between the two inputs in their original format. For example, if two texts are similar, their vector representations should also be similar. This array representation in the vector space describes the subtle feature differences between the texts.
[0079] Simply put, embedding helps computers understand the meaning of human information. Embedding can be used to obtain the "relevance" of features of text, images, videos, or other information. This relevance is often used in search, recommendation, classification, and clustering at the application level.
[0080] In some embodiments, the text dynamic vector or image dynamic vector includes three types: Embeddings from Language Models (ELMo), Generative Pre-trained Transformer (GPT) and codec-based bidirectional encoder representation pre-training model; wherein, the generative pre-trained transformer model uses the Transformer structure, the core of the Transformer structure is an encoder stack or a decoder stack, which respectively represents a group of encoders or a group of decoders, and the Transformer structure overcomes the shortcoming that the long short-term memory network cannot capture long-distance information; the generative pre-trained transformer model is mainly divided into three stages: unsupervised learning, supervised learning and self-supervised learning.
[0081] In some embodiments, the bidirectional encoder representation pre-training model based on the codec uses sentence-level negative sampling to obtain sentence representation / sentence pair relationships, uses the Transformer structure instead of the long short-term memory network to improve the model's expressiveness, and uses the Masked Language Model (Masked LM) to solve the problem of "seeing yourself". Compared with the generative pre-training transformation model, the bidirectional encoder representation pre-training model based on the codec uses a bidirectional Transformer structure, which enables the model to mine the context on both the left and right sides. In addition, the bidirectional encoder representation pre-training model based on the codec further enhances the word-oriented generalization ability, fully describing the relationship features at the character level, word level, sentence level, and even between sentences.
[0082] Step S13: Activate the feature map of the total embedded representation to obtain multimodal features, and communicate with the user based on the multimodal features.
[0083] In some embodiments, feature map activation is performed on the total embedding representation to obtain multimodal features, including: sequentially performing convolution and feature map activation on the total embedding representation to obtain a reply image weight of the reply image, and obtaining the multimodal features by performing a dot product operation on the reply image weight and the image embedding representation.
[0084] This embodiment combines the embedding of images and texts and then activates them to obtain multimodal features. The calculation process is simple and easy to operate. At the same time, the calculation cost is low and the resource space occupied is small, thereby achieving cost reduction and efficiency improvement for multimodal intelligent customer service.
[0085] In some embodiments, see Figure 2 , is a schematic diagram of a process for obtaining multimodal features provided in this embodiment, including sub-steps S131 to S133, specifically:
[0086] Sub-step S131: Matrix dimension alignment processing is performed on the embedding of text and image through mapping processing and data replication.
[0087] Sub-step S132, combining the embeddings of the text and the image by adding element-level features to obtain a total embedding representation, and obtaining a reply image weight of the reply image by sequentially performing convolution operations and feature map activation on the total embedding representation.
[0088] Sub-step S133: applying the reply image weight to the input image embedding representation by dot multiplication or addition to obtain a multimodal feature, which is used to accurately reply to the user's feedback.
[0089] In some embodiments, the total embedded representation is sequentially convolved and feature-map activated to obtain a recovery image weight of the recovery image, including: mapping the total embedded representation using a convolution kernel to obtain a mapping result, and activating the feature map using an S-curve function to obtain a recovery image weight.
[0090] It is worth noting that the total embedding representation contains multiple channels, and each channel can be convolved and activated; each channel learns features to different degrees, and some channels learn poorly, which interferes with the weight of the response image obtained after activation and needs to be removed, while some channels learn well and need to enhance their feature representation. Therefore, this embodiment will screen the features corresponding to multiple channels multiple times to improve the conversation ability of multimodal intelligent customer service. Therefore, the most important process of obtaining the response graphic image in this embodiment is as follows.
[0091] Get the response image weight
[0092] In some embodiments, the total embedded representation is mapped using a convolution kernel to obtain a mapping result, and the feature map is activated using an S-shaped curve function to obtain a restored image weight, including: sub-steps S201 to S205, see Figure 3 , is a schematic diagram of the process of obtaining the weight of the reply image provided in this embodiment, specifically:
[0093] Sub-step S201, using a convolution kernel to map the total embedded representation, activating the feature maps corresponding to the mapping results of multiple channels, and obtaining multiple mapping results, recorded as N, where N is a positive integer.
[0094] Sub-step S202: taking a feature mean for each mapping result, obtaining a plurality of feature means (actually N) and normalizing the plurality of feature means to obtain a normalized vector.
[0095] Sub-step S203: If the value in the normalized vector is greater than the threshold, the corresponding position of the candidate image vector is mapped to 1, otherwise it is 0, and the candidate image vector (denoted as ) is activated with the mapping result corresponding to the value of 1, and the obtained feature maps are fused to obtain the first candidate image weight.
[0096] Sub-step S204, sort the absolute values of the differences between the normalized vector and the threshold from small to large to obtain a reference vector, and obtain multiple candidate image vectors by comparing the reference vector and the threshold multiple times (the number needs to be preset to M-1, M is a positive integer greater than 1, and M is the same as or different from N), and fuse the feature maps corresponding to the multiple candidate image vectors in turn to obtain corresponding candidate image weights.
[0097] In some embodiments, the absolute values of the differences between the normalized vector and the threshold are sorted from small to large, which can be expressed as: |x1(t)-x th |≤|x2(t)-x th |≤…|x i (t)-x th |≤…≤|x N (t)-x th |; where x1(t), x2(t), x i (t) and x N (t) is the value of the first, second, i-th and N-th positions on the reference vector, x th is the threshold value.
[0098] In some embodiments, the M-1 candidate image vectors may be represented as:
[0099]
[0100] Where i = 1, ..., N, k = 2, ..., M, is the kth candidate image vector The value at the i-th position; x k-1 (t) is the value of the reference vector at the k-1th position at time t.
[0101] It is worth noting that one value in the candidate image vector corresponds to one mapping result, and the mapping result corresponding to the value of 1 in each candidate image vector is activated. Therefore, each candidate image vector has multiple mapping results, and each mapping result corresponds to a feature map. The obtained multiple feature maps are fused, and each candidate image vector obtains a candidate image weight after fusion of the feature maps. The candidate image vector A candidate image weight can be obtained respectively.
[0102] Sub-step S205, evaluate all candidate image weights according to preset evaluation indicators, select the position of the candidate image weight with the best preset evaluation indicator as the number of candidate image weights for the next time (update M), and use the candidate image weight with the best evaluation indicator as the final reply image weight.
[0103] It is worth noting that by screening all feature maps, removing feature maps with small contributions, and retaining feature maps with large contributions for fusion, as the algorithm converges, the number M of candidate image weights will fall to 1 or 2. Therefore, the added process of screening feature maps does not increase the complexity of the algorithm. On the contrary, it can reduce the amount of calculation of the reply image weight caused by fusing all feature maps. By screening multiple feature maps and multiple candidate image weights twice in total, the accuracy of multimodal feature extraction in intelligent customer service dialogues can be increased.
[0104] In some embodiments, communicating with a user based on the multimodal feature includes: transmitting reply content corresponding to the multimodal feature to a server for storage via encrypted transmission; when the user sends a request data packet based on multimodal encryption to the server, retrieving the corresponding reply content according to the mapping relationship stored in the server; wherein the mapping relationship between each user and the intelligent customer service is unique.
[0105] In some embodiments, an encrypted transmission method is used to transmit text or image information, and the encrypted transmission subjects include users, intelligent customer service and servers, and the specific encrypted transmission method is: each user sends a multimodal encryption request data packet to the server, and can retrieve the multimodal encryption target data packet stored in the corresponding intelligent customer service according to the mapping relationship stored in the server; the mapping relationship between each user and each intelligent customer service is unique, and the mapping relationship between each user and multiple intelligent customer services is different.
[0106] This embodiment combines the user's reply text and reply image and then activates the feature map, which can emphasize the useful information after multimodal combination and reduce noise interference, so as to more accurately characterize the feature data of multimodal integration, reduce the calculation amount of multimodal integration, and thus reduce the complexity of multimodal technical integration. In addition, based on the reply text and reply image, the multimodal features obtained can be used to communicate with the user, which can improve the multimodal intelligent customer service's ability to understand multimodal input, thereby improving the accuracy of multimodal intelligent customer service conversations.
[0107] Example 2
[0108] See also Figure 4 , is a data flow diagram for obtaining the weight of the reply image provided by the present embodiment. Based on Example 1, the embedding of the text and the image is combined by adding element-level features to obtain the total embedding representation, and then the convolution operation is performed on the total embedding representation in sequence, wherein the convolution kernel of each channel is the same to ensure fair acquisition of the features on each channel, each channel corresponds to a mapping result, and the mean of each mapping result is taken, and all the means are normalized. The obtained normalized vector is first directly compared with the threshold, and after the first candidate image vector is obtained, the mapping result corresponding to the value of 1 in the candidate image vector is activated. If there are multiple values of 1, multiple corresponding mapping results need to be activated, and a feature map is obtained after each mapping result is activated. Therefore, after multiple mapping results are activated, multiple feature maps are obtained in total, and the values of multiple feature maps are fused to obtain the first candidate image weight.
[0109] It is worth noting that the number of candidate image weights is preset to M. At this time, M-1 candidate image weights need to be obtained. The difference between the normalized vector and the threshold is taken first, and then the difference is sorted from small to large according to the absolute value of the difference to obtain a reference vector. The reference vector is compared with the threshold for multiple rounds to obtain M-1 candidate image vectors respectively, and then the mapping results corresponding to the value of 1 in each candidate image vector are activated. Similarly, after the mapping result of a candidate image vector is activated, multiple feature maps are obtained. The multiple feature maps are fused, and a total of M-1 candidate image weights corresponding to the M-1 candidate image vectors are obtained. The optimal candidate image weight is selected from all the candidate image weights as the reply image weight, and M is updated with the position of the reply image weight.
[0110] This embodiment screens the mapping results for the first time, which is actually the generated feature map, and screens the candidate image weights after the feature map fusion for the second time. This can reduce the influence of the feature weights on the channels with poor feature learning on the features of text and images, and enhance the accuracy of multimodal feature extraction of text and images, thereby improving the accuracy of multimodal intelligent customer service dialogues while reducing the amount of calculation.
[0111] Example 3
[0112] Based on Example 1 and Example 2, see Figure 5 , is a structural diagram of a multimodal intelligent customer service dialogue system provided in this embodiment, including: an embedding module 21, a combining module 22 and a dialogue module 23.
[0113] It is worth noting that the embedding module 21 is used to obtain the embedded representations of the reply text and the reply image respectively, and transmit the obtained text embedding representation and image embedding representation to the combination module 22; after receiving the text embedding representation and the image embedding representation, the combination module 22 performs multimodal combination to obtain the total embedding representation, and transmits the total embedding representation to the dialogue module 23; the dialogue module 23 strengthens the image features of the received total embedding representation to obtain multimodal features, and communicates with the user based on the multimodal features.
[0114] The embedding module 21 is used to use the reply text of the user in the conversation as the input of the natural language processing pre-training model, output the text embedding representation, and use the reply image of the user in the conversation as the input of the image pre-training model, output the image embedding representation.
[0115] In some embodiments, the reply text of the user in the conversation is used as the input of the natural language processing pre-trained model, and a text embedding representation is output, including: using the reply text of the user in the conversation as the input of the natural language processing pre-trained model, learning the focus word by given adjacent words, and outputting the text embedding representation; or, learning adjacent words by given words, and outputting the text embedding representation; or, outputting the text embedding representation by globally counting the relationship between words in the reply text.
[0116] In some embodiments, a focus word is learned by given adjacent words and a text embedding representation is output, including: obtaining adjacent words to the left and right of the focus word in a context window, and outputting the adjacent words as a text embedding representation.
[0117] In some embodiments, the reply image of the user in the conversation is used as the input of the image pre-training model, and the image embedding representation is output, including: using the reply image of the user in the conversation as the input of the image pre-training model, generating an embedding vector for the reply image through an encoder, and performing corresponding segmentation on the embedding vector according to pre-defined prompts to obtain the image embedding representation.
[0118] In some embodiments, an encoder is used to generate an embedding vector for the reply image, and the embedding vector is segmented accordingly according to predefined prompts to obtain an image embedding representation, including: generating a one-time embedding for the reply image through an image encoder, and converting all predefined prompts into embedding vectors in real time through a lightweight prompt encoder, combining the one-time embedding and the embedding vector, using the obtained combination result as the input of the decoder to predict the segmentation mask, and outputting the image embedding representation.
[0119] In some embodiments, the obtained combined result is used as the input of the decoder to predict the segmentation mask, and also includes: interactively marking the reply image through a deep learning-based segmentation model to obtain image annotation data, and iteratively updating the segmentation model with new labels, and re-acquiring image annotation data to obtain an image annotation data set; the image annotation data set is used to segment the reply image to obtain the image embedding representation.
[0120] The combining module 22 is used to combine the text embedding representation and the image embedding representation to obtain a total embedding representation.
[0121] In some embodiments, the text embedding representation and the image embedding representation are combined to obtain a total embedding representation, including: context mapping the text embedding representation and the image embedding representation respectively to obtain dimensionally aligned text dynamic vectors and image dynamic vectors, and adding the text dynamic vectors and the image dynamic vectors according to the corresponding element-level features to obtain a total embedding representation.
[0122] The dialogue module 23 is used to perform feature map activation on the total embedded representation to obtain multimodal features, and communicate with the user based on the multimodal features.
[0123] In some embodiments, feature map activation is performed on the total embedding representation to obtain multimodal features, including: sequentially performing convolution and feature map activation on the total embedding representation to obtain a reply image weight of the reply image, and obtaining the multimodal features by performing a dot product operation on the reply image weight and the image embedding representation.
[0124] In some embodiments, communicating with a user based on the multimodal feature includes: transmitting reply content corresponding to the multimodal feature to a server for storage via encrypted transmission; when the user sends a request data packet based on multimodal encryption to the server, retrieving the corresponding reply content according to the mapping relationship stored in the server; wherein the mapping relationship between each user and the intelligent customer service is unique.
[0125] This embodiment combines the user's reply text and reply image and then activates the feature map, which can emphasize the useful information after multimodal combination and reduce noise interference, so as to more accurately characterize the feature data of multimodal integration, reduce the calculation amount of multimodal integration, and thus reduce the complexity of multimodal technical integration. In addition, based on the reply text and reply image, the multimodal features obtained can be used to communicate with the user, which can improve the multimodal intelligent customer service's ability to understand multimodal input, thereby improving the accuracy of multimodal intelligent customer service conversations.
[0126] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.
[0127] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0128] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0130] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A multimodal intelligent customer service dialogue method, characterized in that: include: The user's reply text in the conversation is used as the input of the natural language processing pre-trained model, and the text embedding representation is output. The user's reply image in the conversation is used as the input of the image pre-trained model, and the image embedding representation is output. Combining the text embedding representation and the image embedding representation to obtain a total embedding representation; Perform feature map activation on the total embedding representation to obtain multimodal features, and communicate with the user based on the multimodal features.
2. The multimodal intelligent customer service dialogue method according to claim 1, characterized in that: The step of activating the feature map of the total embedding representation to obtain multimodal features includes: The total embedding representation is sequentially convolved and feature-map activated to obtain a reply image weight of the reply image, and a multimodal feature is obtained by performing a dot product operation on the reply image weight and the image embedding representation.
3. The multimodal intelligent customer service dialogue method according to claim 1, characterized in that: The method uses the user's reply text in the conversation as the input of the natural language processing pre-trained model and outputs the text embedding representation, including: The user's reply text in the conversation is used as the input of the natural language processing pre-trained model, the focus word is learned by given adjacent words, and the text embedding representation is output; Alternatively, by learning neighboring words for a given word, output a text embedding representation; Alternatively, by globally counting the relationship between words in the reply text, a text embedding representation is output.
4. The multimodal intelligent customer service dialogue method according to claim 3, characterized in that: The method of learning a focus word by given adjacent words and outputting a text embedding representation includes: Obtain the adjacent words on the left and right of the focus word in the context window, and output the adjacent words as text embedding representations.
5. The multimodal intelligent customer service dialogue method according to claim 1, characterized in that: The method of using the user's reply image in the conversation as the input of the image pre-training model and outputting the image embedding representation includes: The user's reply image in the conversation is used as the input of the image pre-training model, an encoder is used to generate an embedding vector for the reply image, and the embedding vector is correspondingly segmented according to pre-defined prompts to obtain an image embedding representation.
6. The multimodal intelligent customer service dialogue method according to claim 5, characterized in that: The step of generating an embedding vector for the reply image by an encoder and performing corresponding segmentation on the embedding vector according to a predefined prompt to obtain an image embedding representation includes: A one-time embedding is generated for the reply image through an image encoder, and all pre-defined prompts are converted into embedding vectors in real time through a lightweight prompt encoder. The one-time embedding and the embedding vector are combined, and the combined result is used as the input of the decoder to predict the segmentation mask, and the image embedding representation is output.
7. The multimodal intelligent customer service dialogue method according to claim 6, characterized in that: The method of using the obtained combined result as an input of a decoder to predict a segmentation mask further comprises: The reply image is interactively labeled by a deep learning-based segmentation model to obtain image annotation data, and the segmentation model is updated with new labels in an iterative manner to reacquire image annotation data to obtain an image annotation data set; the image annotation data set is used to segment the reply image to obtain the image embedding representation.
8. The multimodal intelligent customer service dialogue method according to claim 1, characterized in that: The communicating with the user according to the multimodal feature includes: The reply content corresponding to the multimodal feature is transmitted to the server for storage through encrypted transmission. When the user sends a request data packet based on multimodal encryption to the server, the corresponding reply content is retrieved according to the mapping relationship stored in the server; wherein the mapping relationship between each user and the intelligent customer service is unique.
9. The multimodal intelligent customer service dialogue method according to claim 1, characterized in that: The combining the text embedding representation and the image embedding representation to obtain a total embedding representation includes: The text embedding representation and the image embedding representation are context-mapped respectively to obtain dimensionally aligned text dynamic vectors and image dynamic vectors, and the text dynamic vectors and the image dynamic vectors are added correspondingly according to element-level features to obtain a total embedding representation.
10. A multimodal intelligent customer service dialogue system, characterized in that: include: Embedding module, combining module and dialogue module; among them, The embedding module is used to use the reply text of the user in the conversation as the input of the natural language processing pre-training model to output the text embedding representation, and use the reply image of the user in the conversation as the input of the image pre-training model to output the image embedding representation; The combining module is used to combine the text embedding representation and the image embedding representation to obtain a total embedding representation; The dialogue module is used to perform feature map activation on the total embedding representation to obtain multimodal features, and communicate with the user based on the multimodal features.
Citation Information
Cited By
Air-to-ground small target multi-modal detection method based on adaptive modal selection strategy
CN119229329A
Multi-modal Detection Method for Air-to-Ground Small Targets Based on Adaptive Modal Selection Strategy
CN119229329B
