A full-media interactive intelligent customer service interaction method and system

Through the all-media interactive intelligent customer service system, combined with the hierarchical dynamic activation function to evaluate the user's emotional state and adjust the reply strategy, it solves the shortcomings of the existing system in emotional judgment and multi-modal data processing, and achieves more accurate and efficient emotion. Analytics and user experience improvements.

CN118428343BActive Publication Date: 2024-09-27GUANGZHOU XUNHONG NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing intelligent customer service systems have limitations in understanding complex contexts, multiple rounds of conversations and subtle emotions, and cannot effectively integrate multi-modal data for emotion and intention analysis, resulting in inaccurate emotion judgments and a lack of real-time and adaptability.

Method used

Adopting an all-media interactive intelligent customer service interaction method, by receiving the user's text, voice, image and video input, combined with a hierarchical dynamic activation function, it evaluates the user's emotional state, and adjusts the response strategy of the adaptive learning system based on the evaluation results, using natural Language generates responses in multimedia form.

Benefits of technology

It improves the accuracy and efficiency of user emotion judgment, enhances user experience, makes full use of multi-modal data, and provides more personalized and accurate services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428343B
    Figure CN118428343B
Patent Text Reader

Abstract

The present invention relates to the field of natural language processing technology, and discloses an all-media interactive intelligent customer service interaction method and system, including the following steps: S1: receiving user input; S2: evaluating and judging the user's emotional state according to the user input; S3: adjusting the reply strategy in the adaptive learning system according to the evaluated and judged user's emotional attitude, that is, selecting the corresponding reply template based on the user's emotional state of anger, sadness, happiness, and neutrality; S4: using natural language to generate the placeholders in the fill template based on the selected reply template, and outputting the reply to the user in the form of text or voice or image or video multimedia. The present application considers the text, voice, image and user historical data when evaluating and judging the user's emotional attitude, and adopts a hierarchical dynamic activation function for emotion prediction, which greatly improves the accuracy and efficiency of user emotion judgment and greatly increases the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to an omni-media interactive intelligent customer service interaction method and system. Background Art

[0002] In the field of modern communications and customer service, all-media interactive intelligent customer service systems have gradually become an important technical means to improve user experience and enterprise efficiency. With the rapid development of information technology and artificial intelligence, these systems can provide more personalized and accurate services by integrating text, voice, image and video input to meet the needs of different users. However, with the diversification of application scenarios and the complexity of user needs, traditional intelligent customer service systems are facing new challenges and demands, and urgently need technological innovation and breakthroughs.

[0003] Natural language processing technology is the core of intelligent customer service systems, allowing machines to understand and generate human language. Currently, although NLP technology is able to support basic conversation management and intent recognition, it still has limitations in understanding complex contexts, multi-round conversations, and subtle emotions. Speech recognition technology has evolved from early rule-based systems to highly accurate systems using deep learning. Although the accuracy of speech recognition has been significantly improved, how to accurately capture emotions and intentions from the user's tone and speed remains a technical challenge. The processing of image and video input involves advanced functions such as facial recognition and sentiment analysis. These technologies require a large amount of data and high computing power support. Current challenges include how to accurately and quickly extract user emotions and intentions from images and videos, and how to handle the high resource requirements of real-time video data.

[0004] In addition, with the diversification of input types, how to effectively integrate data from text, voice, images and videos to conduct comprehensive sentiment and intent analysis is the key to improving the response quality of intelligent customer service systems. Multimodal data processing requires not only efficient data fusion strategies, but also intelligent algorithms that can understand and reason across modalities. Intelligent customer service systems need to process and respond to user input in a very short time, which requires the system to be highly real-time and adaptable. In addition, the system should be able to learn and optimize its performance based on user feedback and behavior.

[0005] Moreover, the existing intelligent customer service has a single response and cannot provide targeted replies based on the user's emotional state; the current emotional state judgment is only based on a single input text, or a single voice situation, or a single image or video; there is no method to combine the three information for comprehensive judgment, resulting in inaccurate emotional judgment; and in the existing emotional judgment process, the current user's historical data is not taken into account, resulting in inaccurate emotional judgment. For example, a user's usual voice tone is relatively high, which is normal, but the single judgment method does not compare with the historical average, resulting in inaccurate emotional judgment. In the algorithm design, multiple input data and historical data are not taken into account, resulting in a greatly reduced accuracy in predicting the user's emotional state. In view of the limitations of the existing prediction and judgment, a high-accuracy customer service emotional state judgment automated processing method urgently needs a new solution to improve the processing efficiency and accuracy. Summary of the invention

[0006] In response to the above problems mentioned in the prior art, the present invention provides an all-media interactive intelligent customer service interaction method and system, which first receives the user's input, and then evaluates and judges the user's emotional state based on the user input; then adjusts the reply strategy in the adaptive learning system based on the evaluated and judged user's emotional attitude, that is, based on the user's emotional state of anger, sadness, happiness, and neutrality, selects the corresponding reply template; finally, based on the selected reply template, natural language is used to generate the placeholders in the fill template, and the reply is output to the user in the form of text or voice or image or video multimedia. When evaluating and judging the user's emotional attitude, the present application takes into account the text, voice, image and user historical data, and uses a hierarchical dynamic activation function for emotion prediction, which greatly improves the accuracy and efficiency of user emotion judgment and greatly increases the user experience.

[0007] The present application provides an all-media interactive intelligent customer service interaction method, comprising the steps of:

[0008] S1: receiving user input, including text and / or voice and / or image and / or video;

[0009] S2: Determine the user's emotional state based on the user input evaluation;

[0010] S21: If there is text input, perform word segmentation and part-of-speech tagging on the input text. If there is voice input, convert the voice into text. Use the TF-IDF algorithm to calculate the importance of each word in the input text and the converted text, and convert the input text and the converted text into a numerical feature vector T1.

[0011] S22: If there is voice input, the pitch, intensity, speaking speed and rhythm of the voice are obtained to form a feature vector T2;

[0012] S23: If there is an image or video input, the Haar cascade classifier is used for facial recognition, and the Dlib 68-point model is used to identify facial key points, including eyebrows, eyes, nose, mouth, and chin. The position changes of facial key points, including the lifting speed and amplitude of eyebrows, the speed and amplitude of the corners of the mouth, are calculated to form a feature vector T3;

[0013] S24: Input the feature vector T1, feature vector T2, and feature vector T3 into the improved convolutional neural network to calculate the user's emotional attitude; wherein the improved convolutional neural network adopts a hierarchical dynamic activation function f(x,m):

[0014]

[0015]

[0016] Among them, x represents the input of the network layer, w m represents the initial weight of the corresponding multimedia modality m. When m=1, it means the input is text, when m=2, it means the input is speech, when m=3, it means the input is image, and when m=4, it means the input is video. m ,x) represents the user's historical data h m The similarity adjustment weight with the input x of the current network layer, D(h m ,x) represents the user's historical data h m The cosine similarity with the input x of the current network layer, α is the first learnable parameter, β is the second learnable parameter; m represents different multimedia modalities;

[0017] S3: Adjust the response strategy in the adaptive learning system according to the user's emotional attitude judged by the evaluation, that is, select the corresponding response template based on the user's emotional state of anger, sadness, happiness, and neutrality;

[0018] S4: Based on the selected reply template, natural language generation is used to fill in the placeholders in the template, and the reply is output to the user in the form of text or voice or image or video multimedia.

[0019] Preferably, the S22: if there is voice input, the pitch, intensity, speaking speed and rhythm of the voice are obtained to form a feature vector T2, including framing the voice; using cepstrum analysis to calculate the fundamental frequency of each frame to obtain the pitch of the voice; calculating the amplitude value of each frame of the voice to obtain the intensity of the voice; measuring the ratio of the number of syllables or words in the voice to the time to obtain the speaking speed; and characterizing the rhythm of the voice by counting the frequency and duration of voice pauses.

[0020] Preferably, the S21: if there is text input, the input text is segmented and POS tagged; if there is voice input, the voice is converted into text; the TF-IDF algorithm is used to calculate the importance of each word in the input text and the converted text; the higher the calculated TF-IDF value of each word, the greater the importance; the input text and the converted text are converted into a numerical feature vector T1, that is, the TF-IDF value of each word in the document is calculated using the TF-IDF algorithm, and then the calculated TF-IDF values ​​are combined into a vector, and each TF-IDF value corresponds to a unique word.

[0021] Preferably, S23: if there is an image or video input, facial recognition is performed using a Haar cascade classifier, and Dlib's 68-point model is used to identify facial key points, which include eyebrows, eyes, nose, mouth, and chin. The position changes of facial key points include the speed and amplitude of eyebrow lifting, the speed and amplitude of the corners of the mouth rising and falling, and the feature vector T3 is calculated; if it is an image input, the key point position of the current image is compared with the change amplitude of the preset neutral expression position.

[0022] Preferably, the D(h m ,x) represents user historical data The cosine similarity between the input x of the current network layer and the historical text data cluster center vector is calculated. When the input is text, the historical text data is clustered by K-means, and the cosine similarity between the input x of the current network layer and the historical text data cluster center vector is calculated. When the input is speech, the cosine similarity between the input x of the current network layer and the historical mean vector of the pitch, intensity, speaking speed, and rhythm of the historical speech data is calculated. When the input is an image or video, the input x of the current network layer is The cosine similarity is calculated with the historical mean feature vector formed by the eyebrow raising speed and amplitude, and the mouth corner raising and lowering speed and amplitude of the historical image or video data.

[0023] The present application also provides an all-media interactive intelligent customer service interaction system, including:

[0024] An input module receives user input, including text and / or voice and / or image and / or video;

[0025] An evaluation and judgment module evaluates and judges the user's emotional state based on the user input;

[0026] The text vector construction module performs word segmentation and part-of-speech tagging on the input text if there is text input. If there is voice input, the voice is converted into text. The TF-IDF algorithm is used to calculate the importance of each word in the input text and the converted text, and the input text and the converted text are converted into a numerical feature vector T1.

[0027] The speech vector construction module, if there is speech input, obtains the pitch, intensity, speaking speed, and rhythm of the speech to form a feature vector T2;

[0028] Image or video vector construction module. If there is an image or video input, the Haar cascade classifier is used for facial recognition. The 68-point model of Dlib is used to identify facial key points, including eyebrows, eyes, nose, mouth, and chin. The position changes of facial key points are calculated, including the speed and amplitude of eyebrow lifting, the speed and amplitude of mouth corners rising and falling, and the feature vector is formed. ;

[0029] The user emotion attitude calculation module converts the feature vector , eigenvector , eigenvector Input into the improved convolutional neural network to calculate the user's emotional attitude; the improved convolutional neural network adopts a hierarchical dynamic activation function f(x,m):

[0030]

[0031]

[0032] Among them, x represents the input of the network layer, w m represents the initial weight of the corresponding multimedia modality m. When m=1, it means the input is text, when m=2, it means the input is speech, when m=3, it means the input is image, and when m=4, it means the input is video. m ,x) represents the user's historical data h m The similarity adjustment weight with the input x of the current network layer, D(h m ,x) represents the user's historical data h m The cosine similarity with the input x of the current network layer, α is the first learnable parameter, β is the second learnable parameter; m represents different multimedia modalities;

[0033] The reply template calculation module adjusts the reply strategy in the adaptive learning system according to the user's emotional attitude based on the evaluation, that is, based on the user's emotional state of anger, sadness, happiness, and neutrality, selects the corresponding reply template;

[0034] The user response module uses natural language generation to fill in the placeholders in the template based on the selected response template, and outputs the response to the user in the form of text, voice, image or video multimedia.

[0035] Preferably, if there is speech input, the speech vector construction module obtains the pitch, intensity, speaking speed and rhythm of the speech to form a feature vector T2, including framing the speech; using cepstrum analysis to calculate the fundamental frequency of each frame to obtain the pitch of the speech; calculating the amplitude value of each frame of the speech to obtain the intensity of the speech; measuring the ratio of the number of syllables or words in the speech to the time to obtain the speaking speed; and characterizing the rhythm of the speech by counting the frequency and duration of speech pauses.

[0036] Preferably, the text vector construction module, if there is text input, performs word segmentation and part-of-speech tagging on the input text, if there is voice input, converts the voice into text, uses the TF-IDF algorithm to calculate the importance of each word in the input text and the converted text, the higher the calculated TF-IDF value of each word, the greater the importance, converts the input text and the converted text into a numerical feature vector T1, that is, uses the TF-IDF algorithm to calculate the TF-IDF value of each word in the document, and then combines the calculated TF-IDF values ​​into a vector, each TF-IDF value corresponds to a unique word.

[0037] Preferably, the image or video vector construction module, if there is an image or video input, uses a Haar cascade classifier for facial recognition, and adopts Dlib's 68-point model to identify facial key points, which include eyebrows, eyes, nose, mouth, and chin. The position changes of facial key points include the speed and amplitude of eyebrow lifting, the speed and amplitude of the upward and downward movement of the corners of the mouth, and form a feature vector T3; wherein, if it is an image input, the key point position of the current image is compared with the change amplitude of the preset neutral expression position.

[0038] Preferably, the D(h m ,x) represents the user's historical data h m The cosine similarity with the input x of the current network layer. When the input is text, K-means clustering is performed on the historical text data to cluster the input of the current network layer. Calculate the cosine similarity with the historical text data cluster center vector; when the input is speech, the input of the current network layer The cosine similarity is calculated with the historical mean vectors of the pitch, intensity, speaking speed, and rhythm of the historical speech data; when the input is an image or video, the cosine similarity is calculated between the input x of the current network layer and the historical mean feature vector formed by the eyebrow raising speed and amplitude, and the mouth corner raising and lowering speed and amplitude of the historical image or video data.

[0039] The present invention provides an all-media interactive intelligent customer service interaction method and system, which can achieve the following beneficial technical effects:

[0040] 1. The present invention first receives the user's input, and then evaluates and judges the user's emotional state based on the user input; then adjusts the reply strategy in the adaptive learning system based on the evaluated user's emotional attitude, that is, based on the user's emotional state of anger, sadness, happiness, and neutrality, selects the corresponding reply template; finally, based on the selected reply template, natural language is used to generate the placeholders in the fill template, and the reply is output to the user in the form of text, voice, image, or video multimedia. When evaluating and judging the user's emotional attitude, the present application considers the text, voice, image, and user historical data, and uses a hierarchical dynamic activation function for emotion prediction, which greatly improves the accuracy and efficiency of user emotion judgment and greatly increases the user experience.

[0041] 2. The user emotion attitude calculation module of the present invention inputs the text input vector, the voice input vector and the image or video input vector into the improved convolutional neural network to calculate the user's emotion attitude. The improved convolutional neural network adopts a hierarchical dynamic activation function f(x,m). Different input texts correspond to different weights. The weights of images and videos are higher than those of voice and text input. The user's historical data h is taken into consideration. m The weight is adjusted based on the similarity with the input x of the current network layer, which makes great use of historical data and multi-state data, realizes the full utilization of existing rich data and historical data, and greatly improves the accuracy of user emotion judgment.

[0042] 3. During the emotion judgment process of the present invention, if there is voice input, the voice will be converted into text, and the TF-IDF algorithm will be used to calculate the importance of each word in the input text and the converted text. The higher the calculated TF-IDF value of each word, the greater the importance. The input text and the converted text will be converted into a numerical feature vector T1, that is, the TF-IDF value of each word in the document is calculated using the TF-IDF algorithm, and then the calculated TF-IDF values ​​are combined into a vector, each TF-IDF value corresponds to a unique word, and the user's emotional attitude is judged by converting the voice into text, and the emotional judgment is further performed on parameters such as the tone of the voice, thereby making full use of the voice data dimension and greatly improving the accuracy of the user's emotional judgment. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 It is a schematic diagram of steps of an all-media interactive intelligent customer service interaction method of the present invention;

[0045] Figure 2 It is a schematic diagram of an all-media interactive intelligent customer service interaction system of the present invention. DETAILED DESCRIPTION

[0046] 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.

[0047] Embodiment 1:

[0048] In view of the above problems mentioned in the prior art, in order to solve the above technical problems, Figure 1 As shown: This application provides an all-media interactive intelligent customer service interaction method, including the steps of:

[0049] S1: Receive user input, including text and / or voice and / or image and / or video; in one embodiment, the intelligent customer service system is deployed in an online retail store system to help users solve problems such as products, purchase processes, payment methods and after-sales services. The user asks for product details through an online chat window, and the user enters in the chat window: "Excuse me, is there any size 42 of this sneaker in stock?" The system receives this information through a text input interface, performs word segmentation and part-of-speech tagging on it, and then uses a pre-trained natural language processing model to understand the query intent and key information.

[0050] In one embodiment, a user inquires about the order status through the voice recognition function of the mobile application. The user says: "What is the current status of my order A12345?" The system uses voice recognition technology to convert the voice input into text; uses an acoustic model to capture sound features, and converts them into corresponding text data through a language model.

[0051] In one embodiment, a user uploads a product picture through a customer service system and asks whether the product is in stock; the user uploads the product picture through an image upload function; the system receives the image file, uses an image recognition algorithm to identify the product in the picture, and matches it with the product information in a database to determine the inventory status of the product.

[0052] In one embodiment, a user uses a video call function to show the damaged goods he / she received to the customer service and seek help; the user uploads a video showing the damaged goods through the video upload function of the intelligent customer service system; the system receives the video file, uses video processing technology to analyze the video content, identifies the goods and damage in the video through image and video recognition technology, and automatically records evidence of damage to provide support for further after-sales service.

[0053] S2: Evaluate and judge the user's emotional state based on user input; in one embodiment, the intelligent customer service system is deployed in a telecommunications service provider system, and users can interact with the system through text, voice, image or video to query bill information, fault report or upgrade service, etc. The user inputs through the chat interface: "Your service is terrible, I have been waiting for an hour!" The system analyzes the text through natural language processing technology and identifies keywords such as "terrible" and "an hour". These words are related to negative emotions. Using sentiment analysis algorithms (such as analysis based on sentiment dictionaries or machine learning models or convolutional neural network models), the system determines that the user's emotion is "angry". The system selects an appropriate response template based on the determined emotional state, such as providing an immediate apology message and quickly transferring to manual service to further handle the problem.

[0054] In one embodiment, a user makes a voice input through a telephone service system: "Why haven't I received my refund yet?" The tone of voice is impatient, and the system converts the voice into text, while extracting voice features, such as high pitch and fast speaking speed, analyzing the voice features and the converted text content. The system uses the pitch and speaking speed data to determine the user's anxiety or dissatisfaction, and the system provides a soothing response based on the emotional state and gives a detailed description of the refund progress.

[0055] In one embodiment, a user uploads a selfie with an unhappy face through a mobile application and asks why the service is so slow. The system uses facial recognition technology to detect the expression in the image and analyzes the key points of the face to indicate that the user is unhappy. Based on the results of the facial expression analysis, the system recognizes the user's dissatisfaction and generates a reply with an apology and explanation of the delay to try to alleviate the user's dissatisfaction. Natural language processing uses pre-trained models such as BERT or GPT for text sentiment analysis. Speech processing tools such as iFlytek are used for speech-to-text conversion, acoustic feature analysis tools are used to analyze pitch and speech rate, and libraries such as OpenCV and Dlib are used for facial recognition and sentiment analysis.

[0056] S21: If there is text input, the input text is segmented and POS tagged. If there is voice input, the voice is converted into text, and the importance of each word in the input text and the converted text is calculated using the TF-IDF algorithm, and the input text and the converted text are converted into a numerical feature vector T1; In one embodiment, the user enters a question through an online chat platform: "My network connection is very slow, what's going on?"; The system first performs word segmentation on the input text, that is, decomposing the entire sentence into separate words. For example, "my", "network", "connection", "very", "slow", "this", "is", "what's going on"; the results after word segmentation are POS tagged to identify nouns, adjectives, verbs, etc. For example, "network" and "connection" are marked as nouns, and "slow" is marked as an adjective; the importance of each word is calculated using the TF-IDF algorithm for the text after word segmentation. In this example, it is found that "network" and "slow" have higher TF-IDF values ​​because they are crucial to describing the problem; the calculated TF-IDF value is converted into a numerical feature vector for use by subsequent machine learning models.

[0057] In one embodiment, a user issues a voice command through a customer service hotline: "I want to know the status of my order." The system converts the user's voice input into text. The text content "I want to know the status of my order" is extracted using a speech recognition API or a self-built model. Word segmentation and part-of-speech tagging are performed on the converted text. For example, the word segmentation results are "I", "want", "know", "my", "order", and "status". The TF-IDF values ​​are also calculated for these words to evaluate their importance in the whole sentence. In this example, "order" and "status" have higher TF-IDF values ​​because they are keywords for the query. These TF-IDF values ​​are converted into numerical feature vectors for subsequent system processing, such as querying the order database, providing responses, etc. Word segmentation and part-of-speech tagging use natural language processing libraries such as NLTK, spaCy, or jieba (for Chinese processing) to perform word segmentation and part-of-speech tagging of text, the TF-IDF algorithm uses TfidfVectorizer in Python's scikit-learn library to calculate TF-IDF, and the speech recognition technology uses iFlytek or other similar services to convert speech into text.

[0058] S22: If there is speech input, the pitch, intensity, speaking speed and rhythm of the speech are obtained to form a feature vector T2; the pitch reflects the fundamental frequency of the speech signal and is a key element in expressing emotional changes; the pitch is estimated using the auto-correlation method, the cepstrum method or the Fourier transform-based technology; these methods can effectively extract periodic components from the speech signal to determine the fundamental frequency; the speech signal is pre-processed, including frame segmentation and window function processing; Fourier transform is applied to each frame to obtain frequency domain data; auto-correlation or cepstrum analysis is applied to estimate the fundamental frequency of each frame; and the fundamental frequency changes across frames are smoothed to obtain a coherent pitch contour.

[0059] Intensity refers to the energy level of speech and is related to the intensity of the speaker's emotion. Intensity is calculated by measuring the power or energy of the sound signal. The speech signal is divided into frames. The squared amplitude value of each frame is calculated to obtain the energy. The energy value is logarithmically calculated to obtain a more perceptually relevant intensity measure.

[0060] Speech rate reflects the speed of speech and is helpful for understanding the speaker's emotional state. It is calculated by measuring the ratio of the number of syllables or words in speech to the time. Speech segments are determined using voice activity detection (VAD) technology. Within a speech segment, the number of syllables or words is calculated using automatic speech recognition (ASR) or syllable segmentation technology. Speech rate is determined based on the ratio of the total number of syllables to the total time of the speech segment.

[0061] Rhythm involves the regularity and variation of speech beats, which is related to the fluency of speech; analyze the variability of syllable duration (such as standard deviation) and the length and frequency of pauses; use syllable segmentation technology to analyze the duration of each syllable; calculate the variability and average of syllable duration; analyze the position, frequency and duration of pauses and integrate them into rhythm features. After these features are synthesized into a feature vector, they can be used to drive emotion recognition models or speech recognition systems to achieve more accurate user intent and emotion analysis.

[0062] S23: If there is an image or video input, the Haar cascade classifier is used for facial recognition, and the Dlib 68-point model is used to identify facial key points, which include eyebrows, eyes, nose, mouth, and chin. The position changes of facial key points, including the speed and amplitude of eyebrow lifting, and the speed and amplitude of the corners of the mouth rising and falling, are calculated to form a feature vector T3.

[0063] The first step in facial recognition is to locate the face in the image or video frame. Haar cascade classifiers are used for facial recognition. First, grayscale conversion and histogram equalization are performed on the input image or video frame to improve the image quality and make it suitable for facial detection. Pre-trained Haar feature classifiers are loaded. These classifiers are trained with a large number of frontal and non-frontal images and are used to quickly detect faces in images. Face detection applies classifiers to search for faces in images. Haar classifiers use window sliding technology to detect faces at multiple scales to identify faces of different sizes. Once the face is detected, the 68-point model of Dlib is used to identify facial key points. The pre-trained 68-point facial marker model provided by the Dlib library is loaded. This model can identify facial key points including eyebrows, eyes, nose, mouth and chin; the model is used to accurately locate 68 facial key points in the identified face area.

[0064] The positions of these points provide detailed information about facial expressions. Analyzing the changes in facial key points over time can reveal the user's emotional changes, such as happiness, sadness, or anger. Track the position of key points in the video sequence. If it is a single image, compare the key point position of the current image with the preset neutral expression position; calculate the change in the position of specific key points (such as eyebrows and mouth corners). This includes the speed and amplitude of the change, such as the speed and amplitude of the eyebrow raising, the speed and amplitude of the uplift or droop of the mouth corners; encode the change data of all key points into a feature vector, which will be used for subsequent emotion analysis. Pitch is the fundamental frequency of the speech signal, which is estimated using auto-correlation or cepstrum methods. Changes in pitch can reflect the height and intensity of emotions. Intensity is the loudness level of the sound, which can be determined by measuring the energy of the speech signal. High intensity indicates that the user is emotionally excited. Speech rate refers to the speed of the language unit time, which can be measured by analyzing the duration of speech and pauses in the speech paragraph. Rhythm Rhythm involves the regularity and changes in speech beats, which are evaluated by analyzing the changes in the duration of syllables.

[0065] S24: Input the feature vector T1, feature vector T2, and feature vector T3 into the improved convolutional neural network to calculate the user's emotional attitude; wherein the improved convolutional neural network adopts a hierarchical dynamic activation function f(x,m):

[0066]

[0067]

[0068] Among them, x represents the input of the network layer, w mrepresents the initial weight of the corresponding multimedia modality m. When m=1, it means the input is text, when m=2, it means the input is speech, when m=3, it means the input is image, and when m=4, it means the input is video. m ,x) represents the user's historical data h m The similarity adjustment weight with the input x of the current network layer, D(h m ,x) represents the user's historical data h m The cosine similarity with the input x of the current network layer, α is the first learnable parameter, β is the second learnable parameter; m represents different multimedia modalities.

[0069] In one embodiment, the intelligent customer service system is deployed in an online customer service center to handle customer inquiries and complaints. Users interact with the system through text, voice, images or videos. Users submit questions through the chat interface: "I am confused about my recent bill. The charges appear to be higher than expected." and express concerns through voice input: "Why can't I contact your customer service? I have an urgent issue that needs to be resolved." The user uploads a picture of a bill that shows an unknown high charge. In addition, the user expresses dissatisfaction through the video upload function. In the video, the user has a serious expression and speaks quickly. Extract keywords and phrases such as "confused" and "higher than expected" from text input and convert them into numerical feature vectors; extract features such as pitch, intensity, and speech speed from voice input and encode them into vectors. Use image recognition algorithms to analyze uploaded bill images, identify digital and text information, and convert them into feature vectors. Analyze facial expressions and voice features in videos and integrate them into a comprehensive feature vector or separate parallel feature vectors. The above feature vectors are input into a convolutional neural network. The convolutional neural network structure can handle multiple types of data inputs and can recognize and parse emotional signals from different media. The hierarchical dynamic activation function used in the network dynamically adjusts the processing weight according to the type of input data (text, voice, image, video) and the similarity with the user's historical data. This method helps the system understand the user's current emotional state more accurately. The output after CNN processing is used to judge the user's emotional attitude, such as confusion, anxiety, dissatisfaction, etc., and these emotional information is used to guide subsequent response strategies. The improved convolutional neural network (CNN) accepts feature vectors of text, voice, image, and video data, and performs effective feature integration and emotion recognition through hierarchical dynamic activation functions.

[0070] The improved convolutional neural network input layer receives feature vectors of multimodal data from different sources, including features extracted from text, speech, images, and videos. The data of each media type is preprocessed and converted into a vector of fixed length. The improved convolutional neural network convolution layer designs an independent convolution processing path for each type of input data. For example, text data uses a one-dimensional convolution layer to process sequence data, speech and image data use a two-dimensional convolution layer to process time-frequency features and spatial features, and video data uses a three-dimensional convolution to process spatiotemporal features. Each path has a specific filter size and activation function to optimize the processing of the corresponding type of data.

[0071] The dynamic weight adjustment of the hierarchical dynamic activation layer dynamically adjusts the activation weight based on the type of input data and the similarity of the user's historical data. For example, if the text information is more important in the current context, the weight of the text data processing path is increased. The dynamic adjustment of weights is achieved by introducing an attention mechanism or a gating mechanism to ensure that the network can adaptively focus on processing more critical information according to changes in the context.

[0072] Convolutional neural network pooling layer, after processing various data, uses maximum pooling or average pooling layer to merge features from different processing paths, which helps to extract and retain the most important features from various inputs.

[0073] Convolutional neural network fully connected layer, the fused features are fed into one or more fully connected layers to further integrate information and perform emotion classification. The output of the fully connected layer is the probability distribution of the user's emotional state, such as anger, happiness, sadness, etc. The final output layer of the improved convolutional neural network output layer uses a softmax activation function to convert the network's output into a probability distribution, representing the possibility of different emotional states; this network is implemented using deep learning frameworks such as TensorFlow or PyTorch, which support custom convolutional layers, dynamic activation functions, and complex data structures; the network is trained using annotated emotion datasets, and applications such as cross entropy loss functions and Adam optimizers are used to optimize model performance.

[0074] S3: Adjust the response strategy in the adaptive learning system according to the evaluated user's emotional attitude, that is, select the corresponding response template based on the user's emotional state of anger, sadness, happiness, and neutrality; In one embodiment, the intelligent customer service system is deployed on an e-commerce platform to handle customer inquiries and complaints about orders, product information, return policies, etc.

[0075] In one embodiment, a user encounters a problem during the return process and angrily types: "This is the third time I have contacted you! I request an immediate refund!"; select a response template designed with empathy and urgency, and then provide a specific response: "We are very sorry for the inconvenience. We understand your frustration and are prioritizing your refund request. Please provide your order number and we will process it for you immediately." In one embodiment, a user expresses sadness because he failed to purchase a limited edition product in time and says: "I am really disappointed that I can't buy what I want every time I come."; select a response template that provides comfort and additional help options, and then provide a specific response: "We understand your disappointment and are really sorry that you missed this purchase. We are willing to register for you and notify you as soon as the product is available again. Thank you for your understanding and patience." In one embodiment, a user gives positive feedback after a purchase: "I just received my package and I love this purchase!"; select a response template that encourages positive feedback and further interaction, and then provide a specific response: "Great, we are glad that you like your new purchase! If it is convenient, please share your shopping experience or leave a review on our website. Thank you very much for your support and feedback!". In one embodiment, a user asks: "What are your store opening hours?", selects a standard reply template that provides direct information, and then gives a specific reply "Thank you for your inquiry, our store opens at 9 am and closes at 8 pm every day. We look forward to seeing you!", and a variety of reply templates are preset in the reply template management system, each template is designed for different emotions and situations, and the automated response system integrates automation tools and CRM systems to ensure timely and accurate execution of reply strategies.

[0076] S4: Based on the selected reply template, natural language generation is used to fill in the placeholders in the template, and the reply is output to the user in the form of text or voice or image or video multimedia.

[0077] In one embodiment, the intelligent customer service system is deployed in the customer service center of an airline to help passengers solve problems related to flights, baggage, reservations, etc. The passenger inputs through text chat: "Will my flight take off on time?" The system selects a standard reply template about flight status: "Hello, your flight [flight number] is expected to take off on time at [departure time]." The system queries the latest flight information database to obtain the specific flight number. The system also extracts the expected departure time from the flight information database; the information is filled into the template using NLG technology and output in text form through the chat window: "Hello, your flight BA123 is expected to take off on time at 18:00." The user asks through voice: "How much luggage can I carry?" The system selects a reply template about luggage policy: "Hello, the free luggage allowance you are allowed to carry is [luggage limit]." Fill in the placeholder, the system queries the luggage policy according to the passenger's ticket level and route; the system uses text-to-speech conversion technology (TTS) to generate a voice reply and outputs it through a phone or mobile application voice: "Hello, the free luggage allowance you are allowed to carry is two pieces, each not exceeding 23 kilograms." The user asks about visa requirements by uploading a passport photo, and the system selects a response template that provides visa information and prepares an image containing the visa requirement information; the system generates the visa requirement information in the form of an image and sends it to the user via email or mobile app. The user asks about how to do online check-in, and the system selects a video response template that provides an online check-in tutorial. The system plays a pre-made online check-in tutorial video and displays the video tutorial through the user interface.

[0078] In some embodiments, the S22: if there is voice input, the pitch, intensity, speaking speed, and rhythm of the voice are obtained to form a feature vector T2, including framing the voice; using cepstrum analysis to calculate the fundamental frequency of each frame to obtain the pitch of the voice; calculating the amplitude value of each frame of the voice to obtain the intensity of the voice; measuring the ratio of the number of syllables or words in the voice to time to obtain the speaking speed; and characterizing the rhythm of the voice by counting the frequency and duration of voice pauses.

[0079] In some embodiments, the intelligent customer service system is deployed in a customer service center system of an insurance company. Users can ask questions about insurance policies, compensation procedures, etc. through the telephone system. The customer asks by phone: "I want to know the progress of the accident report. Can you handle it quickly?" The system first performs frame processing on the user's voice signal, which involves dividing the continuous voice signal into short time frames, each frame is about 20-30 milliseconds; using a digital signal processing window function (Hanning window or Hamming window) to divide the voice signal and keep the overlap between frames at about 50% to maintain the continuity of the data, and performing inverse spectrum analysis on the voice data of each frame to extract the tone (fundamental frequency). Changes in pitch can reveal the speaker's emotional state, such as tension or relaxation; use fast Fourier transform (FFT) to obtain the spectrum, and then apply the cepstrum method to find the fundamental frequency in the speech signal, and calculate the intensity or energy level of each frame of speech. The intensity can reflect the speaker's emotional intensity or tension level; sum the square values ​​of the signal for each frame to obtain the energy, and then perform a logarithmic transformation to obtain the intensity. The speaking rate is determined by calculating the ratio of the number of syllables or words in the speech to the time. A fast speaking rate indicates that the user is urgent or anxious; use an automatic speech recognition (ASR) system to transcribe the speech into text, and then calculate the number of words in a certain period of time. The rhythm is characterized by counting the frequency and duration of pauses in the speech. Irregular rhythm or frequent pauses indicate hesitation or uncertainty; detect silent segments in the speech signal and calculate the duration and frequency of pauses.

[0080] In some embodiments, S21: if there is text input, the input text is segmented and POS tagged; if there is voice input, the voice is converted into text; the TF-IDF algorithm is used to calculate the importance of each word in the input text and the converted text; the higher the calculated TF-IDF value of each word, the greater the importance; the input text and the converted text are converted into a numerical feature vector T1, that is, the TF-IDF value of each word in the document is calculated using the TF-IDF algorithm, and then the calculated TF-IDF values ​​are combined into a vector, and each TF-IDF value corresponds to a unique word. In some embodiments, the intelligent customer service system is deployed on an e-commerce website system, and customers can ask questions through online chat or voice calls, asking for product information, order status or return policy, etc.; the user enters "I want to know the battery life of this camera" through the chat window; the system uses spaCy or jieba to segment the input sentence and obtains words such as "I", "want", "know", "this", "camera", "of", "battery", "life", and "time"; the segmentation results are tagged with parts of speech to identify nouns, verbs, adjectives, etc., for example, "camera" and "battery" are nouns, and "know" is a verb; the TF-IDF algorithm is used to calculate the importance of each word for these words, and high importance words are more likely to be used. Words such as "battery" and "battery life" will obtain higher TF-IDF values. The calculated TF-IDF value is converted into a numerical feature vector, which can be used for subsequent query processing and information retrieval. The user also says through voice input: "My order number is 12345, can I cancel it?". Use speech recognition technology such as iFlytek to convert the user's voice into text, perform word segmentation and part-of-speech tagging on the converted text, identify keywords such as "order number", "12345", "cancel", calculate the TF-IDF value of each word in the converted text, and determine the weight of key information. For example, "order number" and "cancel" get higher weights. Create a numerical feature vector based on the TF-IDF value for further processing of the user's request.

[0081] In some embodiments, the calculation of the position change of facial key points includes the speed and amplitude of eyebrow raising, the speed and amplitude of mouth corner raising and lowering and forms a feature vector T3; wherein, if it is an image input, the change amplitude of the key point position of the current image is compared with the preset neutral expression position.

[0082] Haar cascade classifier is an effective object detection method, especially for face detection. Haar features reflect the changes in pixel intensity between different areas in an image. These features are calculated at different sizes and positions to capture structural information such as edges, lines and textures. In order to quickly calculate these features, the image is first converted into an integral image. This conversion allows the pixel sum of any image area to be calculated in a constant time, greatly speeding up the feature calculation speed. The cascade classifier Haar features are used to train multiple cascaded AdaBoost classifiers. Each classifier stage will determine whether a window contains a face, and then continue to the next classifier, otherwise it will be directly excluded, which can effectively reduce the amount of calculation. A sliding window is used on the entire image, and a cascade classifier is used at each window position to detect whether it contains a face. In the video call service, customers communicate in real time through the camera, and the system detects and recognizes the customer's facial expressions to analyze emotions.

[0083] Dlib's 68-point facial key point detection model is based on a machine learning method. It can locate 68 specific points on the detected face. These points cover the main areas of the face, such as eyes, eyebrows, nose, mouth and chin. The model is trained using a large number of labeled facial images. Each training sample includes a facial image and the location of 68 key points; the model learns how to extract features from raw pixels and use these features to predict the location of key points; when the Haar classifier detects a face, the Dlib model is used to accurately find 68 specific facial key points in this area.

[0084] In some embodiments, the D(h m ,x) represents the user's historical data h m The cosine similarity between the input x of the current network layer and the historical text data cluster center vector is calculated. When the input is text, the historical text data is clustered by K-means, and the cosine similarity between the input x of the current network layer and the historical text data cluster center vector is calculated. When the input is speech, the cosine similarity between the input x of the current network layer and the historical mean vector of the pitch, intensity, speaking speed, and rhythm of the historical speech data is calculated. When the input is an image or video, the input x of the current network layer is The cosine similarity is calculated with the historical mean feature vector formed by the eyebrow raising speed and amplitude, and the mouth corner raising and lowering speed and amplitude of the historical image or video data.

[0085] The following details how to calculate the cosine similarity between the current input and historical data based on different input types (text, voice, image or video). First, the cosine similarity calculation for text input. The customer has previously asked questions about the product return policy and now asks related questions again through the online chat platform. The historical text queries are classified using the K-means clustering algorithm. Each category has a cluster center vector, which represents the core content of the type of question. The question currently input by the user is first processed by word segmentation and TF-IDF and converted into a feature vector. The cosine similarity formula is used to calculate the similarity between the current input feature vector and each cluster center vector; based on the similarity score, the system can determine the relevance of the user's current question to the historical question and select the most appropriate response strategy.

[0086] Secondly, for the cosine similarity calculation of voice input, the user asks questions about account security over the phone. The system stores the historical mean vectors of the pitch, intensity, speaking rate and rhythm of the user's previous voice inquiries. The new voice input is converted into text, and the feature vectors of pitch, intensity, speaking rate and rhythm are extracted. The cosine similarity of the current voice input feature vector and the historical mean vector is calculated, which helps to identify whether the user expresses similar concerns or questions in similar situations, allowing the system to adjust its response to match the user's emotions and needs.

[0087] Finally, for the cosine similarity calculation of image or video input, the user uploads a video about a damaged product through the application; the system analyzes the images and videos previously uploaded by the user, extracts key facial expression features such as the speed and amplitude of eyebrow raising, the speed and amplitude of the rising or falling of the corners of the mouth, and calculates the historical mean vector of these features. The same facial expression analysis is performed on the newly uploaded video to extract the current feature vector; the cosine similarity of the facial expression feature vector of the current video is compared with the historical mean vector.

[0088] Embodiment 2:

[0089] This application also provides an all-media interactive intelligent customer service interaction system, such as Figure 2As shown, it includes servers, data storage devices, network devices, and terminal devices. Among them, the server is the backbone of the system, responsible for processing all data analysis, storage, and response generation. High-performance servers can be used, such as servers with multi-core processors and high RAM capacity, to support parallel processing and big data operations. Data storage devices store historical interaction data, user data, cluster center vectors, training models, etc., including high-speed SSDs, large-capacity hard disk drives (HDDs), and external cloud storage services. Network devices ensure high-speed data transmission and network connections for the system, including routers, switches, and load balancers, supporting LAN and WAN connections. Audio and video processing hardware is specifically used to process audio and video data input, including sound cards, video capture cards, etc., supporting high-quality audio and video input and output. Terminal devices implement interfaces for user interaction with the system, such as computers, smart phones, or dedicated client devices, including personal computers, mobile devices, microcomputers, etc.

[0090] Servers and storage devices are connected via high-speed Ethernet or more advanced network technologies (such as Fibre Channel) to ensure the speed and security of data transmission. Servers and network devices are connected via high-bandwidth network interface cards to ensure the efficiency of external communications. Servers and terminal devices are connected via the Internet or a dedicated network to support remote user access. Servers and cloud platforms are connected to cloud services via a secure VPN or direct Internet connection for additional data processing and backup. Terminal devices to audio and video processing hardware are directly connected to the server via a USB interface or PCIe slot for real-time audio and video data capture and processing. System monitoring and management, servers and network devices can be monitored via network management protocols such as SNMP to maintain system stability and performance.

[0091] The present application is an all-media interactive intelligent customer service interaction system, which specifically includes:

[0092] An input module receives user input, including text and / or voice and / or image and / or video;

[0093] An evaluation and judgment module evaluates and judges the user's emotional state based on the user input;

[0094] The text vector construction module performs word segmentation and part-of-speech tagging on the input text if there is text input. If there is voice input, the voice is converted into text. The TF-IDF algorithm is used to calculate the importance of each word in the input text and the converted text, and the input text and the converted text are converted into a numerical feature vector T1.

[0095] The speech vector construction module, if there is speech input, obtains the pitch, intensity, speaking speed, and rhythm of the speech to form a feature vector T2;

[0096] Image or video vector construction module, if there is an image or video input, the Haar cascade classifier is used for facial recognition, and the Dlib 68-point model is used to identify facial key points, including eyebrows, eyes, nose, mouth, and chin. The position changes of facial key points are calculated, including the speed and amplitude of eyebrow lifting, the speed and amplitude of mouth corners rising and falling, and the feature vector T3 is formed;

[0097] The user emotion attitude calculation module inputs the feature vector T1, feature vector T2, and feature vector T3 into the improved convolutional neural network to calculate the user's emotion attitude; wherein the improved convolutional neural network adopts a hierarchical dynamic activation function f(x,m):

[0098]

[0099]

[0100] Among them, x represents the input of the network layer, w m represents the initial weight of the corresponding multimedia modality m. When m=1, it means the input is text, when m=2, it means the input is speech, when m=3, it means the input is image, and when m=4, it means the input is video. m ,x) represents the user's historical data h m The similarity adjustment weight with the input x of the current network layer, D(h m ,x) represents the user's historical data h m The cosine similarity with the input x of the current network layer, α is the first learnable parameter, β is the second learnable parameter; m represents different multimedia modalities;

[0101] The reply template calculation module adjusts the reply strategy in the adaptive learning system according to the user's emotional attitude based on the evaluation, that is, based on the user's emotional state of anger, sadness, happiness, and neutrality, selects the corresponding reply template;

[0102] The user response module uses natural language generation to fill in the placeholders in the template based on the selected response template, and outputs the response to the user in the form of text, voice, image or video multimedia.

[0103] In some embodiments, the speech vector building module, if there is speech input, obtains the pitch, intensity, speaking speed, and rhythm of the speech to form a feature vector , including framing the speech; using cepstrum analysis to calculate the fundamental frequency of each frame to obtain the pitch of the speech; obtaining the intensity of the speech by calculating the amplitude of each frame of the speech; measuring the ratio of the number of syllables or words in the speech to the time to obtain the speaking speed; and characterizing the rhythm of the speech by counting the frequency and duration of speech pauses.

[0104] In some embodiments, the text vector construction module, if there is text input, performs word segmentation and part-of-speech tagging on the input text, if there is voice input, converts the voice into text, uses the TF-IDF algorithm to calculate the importance of each word in the input text and the converted text, the higher the calculated TF-IDF value of each word, the greater the importance, converts the input text and the converted text into a numerical feature vector T1, that is, uses the TF-IDF algorithm to calculate the TF-IDF value of each word in the document, and then combines the calculated TF-IDF values ​​into a vector, each TF-IDF value corresponds to a unique word.

[0105] In some embodiments, the image or video vector construction module, if there is an image or video input, uses a Haar cascade classifier for facial recognition, and uses Dlib's 68-point model to identify facial key points, where the facial key points include eyebrows, eyes, nose, mouth, and chin. The position changes of the facial key points include the speed and amplitude of eyebrow lifting, the speed and amplitude of the corners of the mouth rising and falling, and form a feature vector T3; if it is an image input, the key point position of the current image is compared with the change amplitude of the preset neutral expression position.

[0106] In some embodiments, the Represents user historical data The cosine similarity between the input x of the current network layer and the historical text data cluster center vector is calculated. When the input is text, the historical text data is clustered by K-means, and the cosine similarity between the input x of the current network layer and the historical text data cluster center vector is calculated. When the input is speech, the cosine similarity between the input x of the current network layer and the historical mean vector of the pitch, intensity, speaking speed, and rhythm of the historical speech data is calculated. When the input is an image or video, the input x of the current network layer is The cosine similarity is calculated with the historical mean feature vector formed by the eyebrow raising speed and amplitude, and the mouth corner raising and lowering speed and amplitude of the historical image or video data.

[0107] The present invention provides an all-media interactive intelligent customer service interaction method and system, which can achieve the following beneficial technical effects:

[0108] 1. The present invention first receives the user's input, and then evaluates and judges the user's emotional state based on the user input; then adjusts the reply strategy in the adaptive learning system based on the evaluated user's emotional attitude, that is, based on the user's emotional state of anger, sadness, happiness, and neutrality, selects the corresponding reply template; finally, based on the selected reply template, natural language is used to generate the placeholders in the fill template, and the reply is output to the user in the form of text, voice, image, or video multimedia. When evaluating and judging the user's emotional attitude, the present application considers the text, voice, image, and user historical data, and uses a hierarchical dynamic activation function for emotion prediction, which greatly improves the accuracy and efficiency of user emotion judgment and greatly increases the user experience.

[0109] 2. The user emotion attitude calculation module of the present invention comprehensively inputs the text input vector, the voice input vector and the image or video input vector into the improved convolutional neural network to calculate the user's emotion attitude, and the improved convolutional neural network adopts a hierarchical dynamic activation function :

[0110]

[0111]

[0112] When m=1, it means the input is text, when m=2, it means the input is voice, when m=3, it means the input is image, and when m=4, it means the input is video. Different input texts correspond to different weights. The weights of images and videos are higher than those of voice and text input. The user's historical data h is also taken into account. m The weight is adjusted based on the similarity with the input x of the current network layer, which makes great use of historical data and multi-state data, realizes the full utilization of existing rich data and historical data, and greatly improves the accuracy of user emotion judgment.

[0113] 3. During the emotion judgment process of the present invention, if there is voice input, the voice will be converted into text, and the TF-IDF algorithm will be used to calculate the importance of each word in the input text and the converted text. The higher the calculated TF-IDF value of each word, the greater the importance. The input text and the converted text will be converted into a numerical feature vector T1, that is, the TF-IDF value of each word in the document is calculated using the TF-IDF algorithm, and then the calculated TF-IDF values ​​are combined into a vector, each TF-IDF value corresponds to a unique word, and the user's emotional attitude is judged by converting the voice into text, and the emotional judgment is further performed on parameters such as the tone of the voice, thereby making full use of the voice data dimension and greatly improving the accuracy of the user's emotional judgment.

[0114] The above is a detailed introduction to an all-media interactive intelligent customer service interaction method and system. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the core idea of ​​the present invention; at the same time, for general technical personnel in this field, according to the ideas and methods of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An all-media interactive intelligent customer service interaction method, It is characterized in that Includes steps: S1: receiving user input, including text and / or voice and / or image and / or video; S2: Determine the user's emotional state based on the user input evaluation; S21: If there is text input, perform word segmentation and part-of-speech tagging on the input text. If there is voice input, convert the voice into text. Use the TF-IDF algorithm to calculate the importance of each word in the input text and the converted text. That is, the higher the calculated TF-IDF value of each word, the greater the importance. Convert the input text and the converted text into a numerical feature vector T 1 ; That is, the TF-IDF algorithm is used to calculate the TF-IDF value of each word in the document, and then the calculated TF-IDF values ​​are combined into a vector, where each TF-IDF value corresponds to a unique word; S22: If there is voice input, the pitch, intensity, speaking speed, and rhythm of the voice are obtained to form a feature vector T 2 ; S23: If there is an image or video input, the Haar cascade classifier is used for facial recognition, and the 68-point model of Dlib is used to identify facial key points, including eyebrows, eyes, nose, mouth, and chin. The position changes of facial key points are calculated, including the speed and amplitude of eyebrow lifting, the speed and amplitude of mouth corners rising and falling, and the feature vector T is formed. 3 ; S24: Transform the feature vector T 1 , eigenvector T 2 , eigenvector T 3 Input into the improved convolutional neural network to calculate the user's emotional attitude; the improved convolutional neural network adopts a hierarchical dynamic activation function f(x,m): f(x,m)=ReLU(x)×(w m +δ(h m ,x)) Among them, x represents the input of the network layer, w m represents the initial weight of the corresponding multimedia modality m. When m=1, it means the input is text, when m=2, it means the input is speech, when m=3, it means the input is image, and when m=4, it means the input is video. m ,x) represents the user's historical data h m The similarity adjustment weight with the input x of the current network layer, D(h m ,x) represents the user's historical data h m The cosine similarity with the input x of the current network layer, α is the first learnable parameter, β is the second learnable parameter; m represents different multimedia modalities; S3: Adjust the response strategy in the adaptive learning system according to the user's emotional attitude determined by the evaluation, that is, select the corresponding response template based on the user's emotional state of anger, sadness, happiness, and neutrality; S4: Filling the placeholders in the template using natural language generation based on the selected response template, and outputting the response to the user in the form of text or voice or image or video multimedia; The D(h m ,x) represents the user's historical data h m The cosine similarity with the input x of the current network layer. When the input is text, K-means clustering is performed on the historical text data, and the cosine similarity between the input x of the current network layer and the cluster center vector of the historical text data is calculated; when the input is speech, the cosine similarity between the input x of the current network layer and the historical mean vector of the pitch, intensity, speaking speed, and rhythm of the historical speech data is calculated; when the input is an image or video, the cosine similarity between the input x of the current network layer and the historical mean feature vector formed by the eyebrow raising speed and amplitude, and the mouth corner raising and drooping speed and amplitude of the historical image or video data is calculated.

2. An all-media interactive intelligent customer service interaction method as claimed in claim 1, It is characterized in that S22: If there is voice input, the pitch, intensity, speaking speed and rhythm of the voice are obtained to form a feature vector T 2 , including framing the speech; using cepstrum analysis to calculate the fundamental frequency of each frame to obtain the pitch of the speech; obtaining the intensity of the speech by calculating the amplitude of each frame of the speech; measuring the ratio of the number of syllables or words in the speech to the time to obtain the speaking speed; and characterizing the rhythm of the speech by counting the frequency and duration of speech pauses.

3. An all-media interactive intelligent customer service interaction method as claimed in claim 1, It is characterized in that The position changes of the facial key points are calculated, including the speed and amplitude of the eyebrows, the speed and amplitude of the mouth corners, and the feature vector T 3 , if it is an image input, compare the change range of the key point position of the current image with the preset neutral expression position.

4. An all-media interactive intelligent customer service interaction system, It is characterized in that include: An input module receives user input, including text and / or voice and / or image and / or video; An evaluation and judgment module evaluates and judges the user's emotional state based on the user input; The text vector construction module performs word segmentation and part-of-speech tagging on the input text if there is text input. If there is voice input, the voice is converted into text. The TF-IDF algorithm is used to calculate the importance of each word in the input text and the converted text. That is, the higher the TF-IDF value of each word is, the greater its importance is. The input text and the converted text are converted into numerical feature vectors T 1 , that is, using the TF-IDF algorithm to calculate the TF-IDF value of each word in the document, and then combining the calculated TF-IDF values ​​into a vector, each TF-IDF value corresponds to a unique word; The speech vector construction module, if there is speech input, obtains the pitch, intensity, speaking speed, and rhythm of the speech to form a feature vector T 2 ; Image or video vector construction module. If there is an image or video input, the Haar cascade classifier is used for facial recognition. The 68-point model of Dlib is used to identify facial key points, which include eyebrows, eyes, nose, mouth, and chin. The position changes of facial key points are calculated, including the speed and amplitude of eyebrow lifting, the speed and amplitude of mouth corners rising and falling, and the feature vector T is formed. 3 ; The user emotion attitude calculation module converts the feature vector T 1 , eigenvector T 2 , eigenvector T 3 Input into the improved convolutional neural network to calculate the user's emotional attitude; the improved convolutional neural network adopts a hierarchical dynamic activation function f(x,m): f(x,m)=ReLU(x)×(w m +δ(h m ,x)) Among them, x represents the input of the network layer, w m represents the initial weight of the corresponding multimedia modality m. When m=1, it means the input is text, when m=2, it means the input is speech, when m=3, it means the input is image, and when m=4, it means the input is video. m ,x) represents the user's historical data h m The similarity adjustment weight with the input x of the current network layer, D(h m ,x) represents the user's historical data h m The cosine similarity with the input x of the current network layer, α is the first learnable parameter, β is the second learnable parameter; m represents different multimedia modalities; The reply template calculation module adjusts the reply strategy in the adaptive learning system according to the user's emotional attitude based on the evaluation, that is, based on the user's emotional state of anger, sadness, happiness, and neutrality, selects the corresponding reply template; A user response module, which uses natural language generation to fill in the placeholders in the template based on the selected response template, and outputs the response to the user in the form of text or voice or image or video multimedia; The D(h m ,x) represents the user's historical data h m The cosine similarity with the input x of the current network layer. When the input is text, K-means clustering is performed on the historical text data, and the cosine similarity between the input x of the current network layer and the cluster center vector of the historical text data is calculated; when the input is speech, the cosine similarity between the input x of the current network layer and the historical mean vector of the pitch, intensity, speaking speed, and rhythm of the historical speech data is calculated; when the input is an image or video, the cosine similarity between the input x of the current network layer and the historical mean feature vector formed by the eyebrow raising speed and amplitude, and the mouth corner raising and drooping speed and amplitude of the historical image or video data is calculated.

5. An all-media interactive intelligent customer service interaction system as claimed in claim 4, It is characterized in that The speech vector building module, if there is speech input, obtains the pitch, intensity, speaking speed, and rhythm of the speech to form a feature vector T 2 , including framing the speech; using cepstrum analysis to calculate the fundamental frequency of each frame to obtain the pitch of the speech; obtaining the intensity of the speech by calculating the amplitude of each frame of the speech; measuring the ratio of the number of syllables or words in the speech to the time to obtain the speaking speed; and characterizing the rhythm of the speech by counting the frequency and duration of speech pauses.

6. An all-media interactive intelligent customer service interaction system as claimed in claim 4, It is characterized in that The image or video vector construction module, if there is an image or video input, uses the Haar cascade classifier for facial recognition, uses the Dlib 68-point model to identify facial key points, which include eyebrows, eyes, nose, mouth, and chin, calculates the position changes of facial key points including the speed and amplitude of eyebrow lifting, the speed and amplitude of mouth corners rising and falling, and forms a feature vector T 3 ; If it is an image input, the change range of the key point position of the current image is compared with the preset neutral expression position.