Artificial intelligence-based conversation generation method, device, equipment and storage medium
Through the artificial intelligence conversation generation method, combined with deep learning and emotional analysis, real-time adjustment of reply strategies solves the problem of insufficient understanding of user emotions and needs in e-commerce live broadcasts, and achieves personalized interactive experience and high-participation live broadcast effects.
Patent Information
- Application Number
- CN202410856302.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-28
AI Technical Summary
It is difficult for existing e-commerce platforms to fully understand users' emotional attitudes and personalized needs during real-time interactive live broadcasts, resulting in reply content that appears mechanical and unnatural, and cannot effectively improve user participation and satisfaction.
Adopting a conversation generation method based on artificial intelligence, by obtaining multi-dimensional data of the audience, using deep learning models and sentiment analysis algorithms to generate personalized reply strategies, combined with the multi-dimensional dynamic conversation generation model, the reply strategy can be adjusted in real time to adapt to the audience's emotions and Demand changes.
It achieves highly personalized conversational content generation, improves user participation and satisfaction, enhances the interactive experience and purchase conversion rate of e-commerce live broadcasts, reduces anchor response pressure, and improves the overall live broadcast quality.
Smart Images

Figure CN118396127B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to an artificial intelligence-based conversation generation method, device, equipment and storage medium. Background Art
[0002] In the field of e-commerce, real-time interactive live broadcasting has become an important way to promote goods and services. In order to increase user engagement and purchase conversion rate, it is particularly important to use artificial intelligence technology to generate personalized conversation content. This technology can simulate real human conversations, provide targeted information to viewers, and respond to questions or needs raised by viewers in a timely manner.
[0003] Currently, existing e-commerce platforms usually use automatic reply systems based on keyword matching to interact with users, such as using preset reply scripts to respond to keywords entered by users. Although this method can achieve automation to a certain extent, it lacks understanding of user emotions and personalized needs, and therefore cannot provide a truly personalized interactive experience. In addition, existing technologies often cannot adjust reply strategies in real time to adapt to the changing emotions and needs of viewers during live broadcasts.
[0004] Since existing technologies fail to fully integrate users' emotional, demand, and personality characteristics, the generated replies often appear mechanical and unnatural, and cannot effectively improve user engagement and satisfaction. In addition, the lack of deep learning and the application of emotional and personality analysis technologies limits the quality and relevance of system-generated replies. Therefore, existing technologies have obvious limitations in personalized interaction and enhancing user experience, making it difficult to achieve the optimal effect of e-commerce live streaming interaction. The proposed artificial intelligence-based data analysis method can solve this technical problem and achieve truly personalized user interaction by integrating users' multi-dimensional information and using an innovative multi-dimensional dynamic conversation generation model. Summary of the invention
[0005] The present invention provides a conversation generation method, device, equipment and storage medium based on artificial intelligence, which are used to solve the technical problems mentioned above.
[0006] A first aspect of the present invention provides a conversation generation method based on artificial intelligence, and the conversation generation method based on artificial intelligence includes:
[0007] Obtain the first viewer data and the second viewer data of the audience during the e-commerce live broadcast;
[0008] Inputting the first audience data and the second audience data into a preset personalized learning model to obtain a first response strategy; wherein the personalized learning model is a deep learning model obtained through pre-training;
[0009] Based on a preset sentiment analysis algorithm, sentiment tendency analysis is performed on the first audience data and the second audience data respectively to obtain sentiment characteristic data and demand characteristic data; based on a preset personality analysis algorithm, personality analysis is performed on the first audience data and the second audience data to obtain personality characteristic data and personalized recommendation characteristic data;
[0010] Based on a preset feature integration rule, the emotional feature data, the demand feature data, the personality feature data and the personalized recommendation feature data are feature integrated to obtain an audience portrait;
[0011] According to the audience portrait, the first response strategy is modified to obtain a second response strategy;
[0012] The first reply strategy and the second reply strategy are input into the trained multi-dimensional dynamic conversation generation model to obtain a final personalized reply strategy; wherein the final personalized reply strategy is used to automatically generate personalized conversation content for specific audiences in the live broadcast scene, and present it to the audience in text or voice form through the AI digital anchor.
[0013] Optionally, in a first implementation method of the first aspect of the present invention, the first audience data includes at least audience click behavior data, audience search behavior data, audience purchase behavior data, and audience comment data; the second audience data includes at least product preference data, brand preference data, evaluation preference data, and purchase history preference data.
[0014] Optionally, in a second implementation of the first aspect of the present invention, obtaining first audience data and second audience data of an audience during an e-commerce live broadcast includes:
[0015] Send an authorization request signal to the viewer's device. If the viewer agrees, obtain the viewer's device permissions and start the preset data collection program;
[0016] Using a data collection program to collect audience online interaction behavior data during the live broadcast process, to obtain audience online interaction behavior data;
[0017] Based on a preset traffic data analysis algorithm, the audience's online interactive behavior data is extracted to obtain first audience data;
[0018] The audience personalized data source is accessed, and the audience historical interaction behavior data is obtained, and the audience historical interaction behavior data is extracted to obtain the second audience data.
[0019] Optionally, in a third implementation of the first aspect of the present invention, the training process of the personalized learning model includes:
[0020] Obtaining first audience training data and second audience training data provided by audiences in the e-commerce live broadcast; wherein the first audience training data at least includes audience click behavior training data, audience search behavior training data, purchase behavior training data, and audience comment behavior training data, and the second audience training data at least includes product preference training data, brand preference training data, evaluation preference training data, and purchase history preference training data;
[0021] Perform feature extraction on the non-text content in the first audience training data to obtain a first high-order feature of the audience behavior pattern; perform in-depth analysis on the text content in the first audience training data to obtain a second high-order feature of the text content;
[0022] Inputting the second audience training data into a preset deep autoencoder network for encoding to learn and extract the latent structural features of the audience preference pattern and generate the third high-order features of the audience preference pattern;
[0023] Create a feature fusion network based on recurrent neural network and attention mechanism, integrate and dynamically match the first high-order features, second high-order features and third high-order features through the feature fusion network to generate a multimodal feature set;
[0024] The multimodal feature set is used as the model input, and the model parameters are adjusted through an adaptive hybrid optimization algorithm to optimize the loss function of the personalized learning model; after gradual iterative optimization, until the loss function converges, the training of the personalized learning model is completed.
[0025] Optionally, in a fourth implementation of the first aspect of the present invention, creating a feature fusion network based on a recurrent neural network and an attention mechanism, integrating and dynamically matching the first high-order feature, the second high-order feature, and the third high-order feature through the feature fusion network to generate a multimodal feature set, includes:
[0026] Acquire a feature fusion network; wherein the feature fusion network at least includes an input layer, a first integration layer, a second integration layer, a fusion layer, and an output layer;
[0027] The input layer is used to input the first high-order feature and the second high-order feature into the first integration layer and input the first high-order feature and the second high-order feature into the second integration layer;
[0028] The first integration layer is used to perform time series feature association on the first high-order feature and the second high-order feature to obtain a first associated feature set;
[0029] The second integration layer is used to perform time series feature association on the second high-order feature and the third high-order feature to obtain a second associated feature set;
[0030] The fusion layer is used to dynamically match the first associated feature set with the second associated feature set to obtain a matching feature set;
[0031] The output layer is used to jointly output the first associated feature set, the second associated feature set, and the matching feature set to obtain a multimodal feature set.
[0032] A second aspect of the present invention provides a conversation generation device based on artificial intelligence, the conversation generation device based on artificial intelligence comprising:
[0033] An acquisition module, used to acquire first audience data and second audience data of the audience during the e-commerce live broadcast;
[0034] An input module, used for inputting the first audience data and the second audience data into a preset personalized learning model to obtain a first reply strategy; wherein the personalized learning model is a deep learning model obtained through pre-training;
[0035] An analysis module, for performing sentiment analysis on the first audience data and the second audience data based on a preset sentiment analysis algorithm, respectively, to obtain sentiment characteristic data and demand characteristic data; performing personality analysis on the first audience data and the second audience data based on a preset personality analysis algorithm, to obtain personality characteristic data and personalized recommendation characteristic data;
[0036] An integration module, for integrating the emotion feature data, the demand feature data, the personality feature data and the personalized recommendation feature data based on a preset feature integration rule to obtain an audience portrait;
[0037] A correction module, used for correcting the first reply strategy according to the audience portrait to obtain a second reply strategy;
[0038] A prediction module is used to input the first reply strategy and the second reply strategy into the trained multi-dimensional dynamic conversation generation model to obtain a final personalized reply strategy; wherein the final personalized reply strategy is used to automatically generate personalized conversation content for specific audiences in the live broadcast scene, and present it to the audience in text or voice form through the AI digital anchor.
[0039] The third aspect of the present invention provides an artificial intelligence-based conversation generation device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the artificial intelligence-based conversation generation device executes the above-mentioned artificial intelligence-based conversation generation method.
[0040] A fourth aspect of the present invention provides a computer-readable storage medium, which stores instructions that, when executed on a computer, enable the computer to execute the above-mentioned artificial intelligence-based conversation generation method.
[0041] In the technical solution provided by the present invention, the beneficial effects are as follows: the present invention provides a conversation generation method, device, equipment and storage medium based on artificial intelligence, by obtaining the first audience data and the second audience data of the audience during the e-commerce live broadcast process; inputting the first audience data and the second audience data into a preset personalized learning model to obtain a first reply strategy; based on a preset sentiment analysis algorithm, respectively performing sentiment tendency analysis on the first audience data and the second audience data to obtain sentiment feature data and demand feature data; based on a preset personality analysis algorithm, performing personality analysis on the first audience data and the second audience data to obtain personality feature data and personalized recommendation feature data; based on a preset feature integration rule, performing feature integration on the sentiment feature data, the demand feature data, the personality feature data and the personalized recommendation feature data to obtain an audience portrait; according to the audience portrait, the first reply strategy is modified to obtain a second reply strategy; the first reply strategy and the second reply strategy are input into a trained multi-dimensional dynamic conversation generation model to obtain a final personalized reply strategy. The present invention uses a deep learning model to analyze the strategy generated by audience data, which can better understand the audience's personal preferences, sentiment tendencies and personality characteristics, thereby generating highly personalized conversation content. By adjusting the response strategy in real time to adapt to changes in audience emotions and needs, the audience's participation and satisfaction in e-commerce live broadcasts can be increased, thereby improving the purchase conversion rate. The data obtained by using sentiment analysis and personality analysis algorithms can make the conversation content more resonant and effectively build an emotional connection between the audience and the AI digital anchor. The comprehensive use of the audience's emotional feature data and personalized recommendation feature data can provide the audience with more accurate product recommendations and information, and increase the effectiveness of live broadcast marketing. The multi-dimensional dynamic conversation generation model can dynamically adjust the response strategy according to the audience's real-time feedback to create a more natural and intelligent interactive experience. The automatically generated personalized conversation content reduces the pressure on the anchor to respond to the audience's questions, allowing the anchor to focus more on the presentation of the live content and improve the overall live broadcast quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of an embodiment of a conversation generation method based on artificial intelligence in an embodiment of the present invention;
[0043] Figure 2 The figure is a schematic diagram of an embodiment of a conversation generation device based on artificial intelligence in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] Embodiments of the present invention provide a method, apparatus, device and storage medium for generating a conversation based on artificial intelligence. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0045] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the conversation generation method based on artificial intelligence in an embodiment of the present invention includes:
[0046] Step 101: Obtain first viewer data and second viewer data of viewers during the e-commerce live broadcast process;
[0047] It is understandable that the execution subject of the present invention may be an artificial intelligence-based conversation generation device, or a terminal or a server, which is not specifically limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.
[0048] Specifically, the first audience data and the second audience data of the audience during the e-commerce live broadcast are obtained.
[0049] 1. Determine the data source
[0050] First, audience data: including real-time interactive data, such as viewing time, number of likes, number of comments, number of shares, etc. These data can reflect the real-time behavior and participation of the audience during the live broadcast.
[0051] Second, audience data: including historical behavior data and preference data, such as historical purchase records, favorite products, browsing history, etc. These data can reflect the audience's long-term interests and shopping preferences.
[0052] 2. Data acquisition channels
[0053] Live streaming platform API: Use the API provided by the live streaming platform to obtain real-time and historical data of viewers. These API interfaces can usually provide comprehensive audience behavior data and user information.
[0054] Data integration tools: Use data integration tools (such as ETL tools) to extract, transform, and load audience data from different data sources into a unified data warehouse.
[0055] 3. Real-time data collection
[0056] Real-time monitoring system: Build a real-time monitoring system to continuously collect audience interaction data during the live broadcast. You can use WebSocket or other real-time data streaming technologies to obtain real-time behavior data of the audience.
[0057] Example: When viewers click “like”, post comments, or share a live broadcast, the system immediately records these actions and stores the data in the real-time database.
[0058] 4. Historical data collection
[0059] Batch processing system: Regularly extract historical behavior data of viewers from data sources in batches. Use scheduled tasks or batch processing scripts to regularly export historical data from the database of live broadcast platforms or e-commerce platforms.
[0060] Example: Every night the system exports the audience's historical purchase records, browsing records and other data from the e-commerce platform and imports this data into the data warehouse.
[0061] Step 102: input the first audience data and the second audience data into a preset personalized learning model to obtain a first reply strategy; wherein the personalized learning model is a deep learning model obtained through pre-training;
[0062] Specifically, model selection and training:
[0063] Select Bi-LSTM as the personalized learning model.
[0064] Use audience historical data and corresponding response strategies for training. Training data includes audience interaction behavior, purchase records, sentiment and personality analysis results.
[0065] Use Keras and TensorFlow to train the model and set training parameters (such as epochs, batch size).
[0066] Data preprocessing:
[0067] Use Pandas to extract key features from audience data, such as the number of likes, comment content, purchase history, etc.
[0068] Scikit-learn is used to normalize the extracted features.
[0069] The comment content is converted into word vector representation using Word2Vec.
[0070] Data input format preparation:
[0071] Use Numpy to convert the normalized data into tensor form.
[0072] The audience data is sorted into batches, each batch containing data of 32 audiences.
[0073] Model Reasoning:
[0074] Use the trained Bi-LSTM model for inference.
[0075] The preprocessed audience data is input into the model, the prediction function of the model is called, and the response strategy output by the model is obtained.
[0076] Generate a first-reply strategy:
[0077] Generate the first response strategy based on the results output by the model.
[0078] For example, if the model output indicates that a viewer is interested in a new product, the first response strategy is to recommend the new product and provide relevant discount information.
[0079] Step 103: Based on a preset sentiment analysis algorithm, sentiment tendency analysis is performed on the first audience data and the second audience data respectively to obtain sentiment characteristic data and demand characteristic data; based on a preset personality analysis algorithm, personality analysis is performed on the first audience data and the second audience data to obtain personality characteristic data and personalized recommendation characteristic data;
[0080] Specifically, sentiment analysis:
[0081] Sentiment analysis algorithms are used to determine the emotional state of text expressions, usually classified as positive, negative, or neutral.
[0082] Text preprocessing:
[0083] Perform text cleaning on audience data (such as comments and chat logs) to remove irrelevant noise (such as URLs, punctuation, and non-standard emoticons).
[0084] Tokenize the text, convert it to lowercase, and remove stop words.
[0085] Feature extraction:
[0086] Extract features from the processed text, such as TF-IDF, word embeddings, or other more advanced NLP features.
[0087] Model Application:
[0088] Use pre-trained sentiment analysis models, such as LSTM or Transformer-based models, to classify text.
[0089] The output is a sentiment score, or directly a sentiment category.
[0090] Result processing:
[0091] Emotional feature data (such as emotion labels and scores) are obtained based on the output.
[0092] Demand characteristic data can be extracted from specific content or demand keywords expressed in corresponding user comments.
[0093] Character analysis:
[0094] Personality analysis often involves psychological models such as the “Big Five” personality traits (openness, conscientiousness, extraversion, agreeableness, and neuroticism).
[0095] Text preprocessing:
[0096] Similar to sentiment analysis, the text data is first cleaned and segmented.
[0097] Feature extraction:
[0098] To extract key indicators for personality judgment, more advanced NLP techniques will be used to understand the personality traits implicit in the text.
[0099] Model Application:
[0100] The processed text data is fed into a pre-trained personality analysis model using algorithms such as SVM, random forest, CNN, or RNN.
[0101] The output is a score or classification of personality dimensions.
[0102] Result processing:
[0103] Derive personality trait data that can be used for personalized recommendations and content customization.
[0104] Personalized recommendation feature data is combined with personality analysis results and user interaction data to design a more targeted recommendation system.
[0105] Step 104: Based on a preset feature integration rule, the emotion feature data, the demand feature data, the personality feature data, and the personalized recommendation feature data are feature integrated to obtain an audience portrait;
[0106] Specifically, feature integration is performed based on preset feature integration rules to obtain audience portraits.
[0107] 1. Formulation of feature integration rules
[0108] Integration goal: Organically integrate emotional characteristic data, demand characteristic data, personality characteristic data and personalized recommendation characteristic data to generate a comprehensive audience portrait.
[0109] Integrated dimensions: including emotional tendencies, demand preferences, personality traits, and personalized recommendations.
[0110] Weight allocation: Different weights are set according to the influence and importance of different features. For example, emotional feature data has a higher weight in interactive replies, while historical behavior data has a higher weight in personalized recommendations.
[0111] 2. Data Standardization
[0112] Data format unification: Unify the feature data formats from different sources to ensure that each feature data can be integrated within the same framework.
[0113] Example: Convert all feature data into numerical data and use standardization methods to normalize the data to the same range (such as between 0 and 1).
[0114] 3. Data cleaning and processing
[0115] Data cleaning: Remove duplicate, invalid or missing data to ensure the quality and accuracy of feature data.
[0116] Example: Delete duplicate sentiment analysis results and complete missing behavior records.
[0117] Data processing: Preprocess the feature data to make it suitable for subsequent integrated analysis.
[0118] Examples: Smoothing time series data, classifying sentiment scores.
[0119] 4. Feature Fusion
[0120] Multi-dimensional feature fusion: Use feature integration rules to integrate emotional features, demand features, personality features, and personalized recommendation features in multiple dimensions.
[0121] Example: Take a weighted average of sentiment scores and demand preferences, and combine personality traits with personalized recommendations.
[0122] 5. Audience portrait generation
[0123] Portrait construction: Generate a portrait of each viewer based on the results of feature fusion.
[0124] Example: Build a comprehensive portrait that includes audience ID, emotional tendencies, demand preferences, personality traits, personalized recommendations, etc.
[0125] Portrait storage: The generated audience portrait is stored in the database for subsequent query and analysis.
[0126] Example: Design a relational or NoSQL database to store audience profiles and ensure the accessibility and security of profile data.
[0127] 6. Application of audience portrait
[0128] Personalized recommendations: Based on audience portraits, provide audiences with personalized product recommendations and interactive content.
[0129] Example: Recommend related products or activities based on the demand preferences in the audience portrait.
[0130] Interaction strategy optimization: Optimize interaction strategies and response content based on the emotional tendencies and personality traits in the audience portrait.
[0131] Example: Provide more active and positive interactive content to audiences with positive emotional tendencies.
[0132] Step 105: modify the first reply strategy according to the audience portrait to obtain a second reply strategy;
[0133] Specifically, extract audience portrait information:
[0134] Access the audience data management system and extract their interaction history, purchase records, feedback and any personal information that has been analyzed based on the user's identification information.
[0135] Integrate this information to create a comprehensive audience profile that includes sentiment, purchasing preferences, personality traits, and personalized recommendations derived from past behavior.
[0136] Analyzing the first reply strategy:
[0137] Review your current response strategy content to see if it’s hitting your audience’s key concerns and needs.
[0138] Evaluate whether the tone and style of your response strategy matches your audience’s emotional state and personality.
[0139] Determine whether the current response method is suitable for the audience's interaction habits and personality.
[0140] Adjust your response strategy based on the profile:
[0141] Adjust the information, semantics, and emotional load of your responses to suit the mood and needs of each audience. For example, use a more positive and enthusiastic tone for users with positive emotions; add relevant information or product recommendations to responses for users with a certain interest.
[0142] Adjust the interaction method according to personality traits. For example, design more interactive language and response content for extroverted audiences, and provide more detailed information and support for introverted audiences.
[0143] Leverage past purchase and browsing history to provide users with personalized product or service recommendations.
[0144] Generate the second reply strategy:
[0145] In combination with the above adjustments, rewrite the reply content to make it more in line with the user portrait while ensuring the accuracy and interactivity of the information.
[0146] Create a dynamic response library that automatically adjusts the language style and content according to different users.
[0147] Extract audience portrait information:
[0148] Access the audience data management system and extract their interaction history, purchase records, feedback and any personal information that has been analyzed based on the user's identification information.
[0149] Integrate this information to create a comprehensive audience profile that includes sentiment, purchasing preferences, personality traits, and personalized recommendations derived from past behavior.
[0150] Analyzing the first reply strategy:
[0151] Review your current response strategy content to see if it’s hitting your audience’s key concerns and needs.
[0152] Evaluate whether the tone and style of your response strategy matches your audience’s emotional state and personality.
[0153] Determine whether the current response method is suitable for the audience's interaction habits and personality.
[0154] Adjust your response strategy based on the profile:
[0155] Adjust the information, semantics, and emotional load of your responses to suit the mood and needs of each audience. For example, use a more positive and enthusiastic tone for users with positive emotions; add relevant information or product recommendations to responses for users with a certain interest.
[0156] Adjust the interaction method according to personality traits. For example, design more interactive language and response content for extroverted audiences, and provide more detailed information and support for introverted audiences.
[0157] Leverage past purchase and browsing history to provide users with personalized product or service recommendations.
[0158] Generate the second reply strategy:
[0159] In combination with the above adjustments, rewrite the reply content to make it more in line with the user portrait while ensuring the accuracy and interactivity of the information.
[0160] Create a dynamic response library that automatically adjusts the language style and content according to different users.
[0161] Step 106: Input the first reply strategy and the second reply strategy into the trained multi-dimensional dynamic conversation generation model to obtain a final personalized reply strategy; wherein the final personalized reply strategy is used to automatically generate personalized conversation content for specific audiences in the live broadcast scene, and present it to the audience in text or voice form through the AI digital anchor.
[0162] Specifically, in order to implement the training of a multi-dimensional dynamic conversation generation model and obtain a strategy for generating personalized responses, a specific model architecture can be selected as an example, such as a Transformer-based sequence-to-sequence (Seq2Seq) model. The following are the specific implementation steps of the model training process:
[0163] 1. Dataset Preparation
[0164] Collect a dataset of live broadcast room interactions, including user behaviors and session records. The dataset should contain input sequences (such as users’ questions, comments, or messages) and target sequences (such as the host’s or assistant’s responses).
[0165] 2. Data Preprocessing
[0166] The collected text data is processed, including text cleaning (removing useless characters), tokenization (breaking sentences into words or sub-word units), building a vocabulary, padding or truncating sequences to a fixed length, and converting the text into a numerical format that the model can handle.
[0167] 3. Set up the model architecture
[0168] Use the Transformer-based Seq2Seq model with the following configuration:
[0169] Encoder: Converts the input sequence into a continuous hidden state.
[0170] Decoder: Produces the next output (character, word, or subword unit) based on the encoder output and the generated sequence.
[0171] 4. Model Training
[0172] Write the training loop:
[0173] Use a loss function (such as cross entropy loss) to measure the difference between the predicted sequence and the actual sequence.
[0174] Choose an optimizer (such as Adam) to adjust the weights of the model to minimize the loss.
[0175] Consider adding an attention mechanism to better handle long sequences.
[0176] A teacher forcing strategy can be used to speed up the training process.
[0177] 5. Model Tuning
[0178] Evaluate the effect of the model on the validation set and tune hyperparameters such as learning rate, number of layers, number of heads, etc. based on the evaluation results.
[0179] Apply techniques such as model checkpointing (saving the best model), early stopping, etc. to avoid overfitting.
[0180] 6. Performance Evaluation
[0181] Evaluate the performance of the model on the test set and use metrics specific to language generation tasks such as BLEU, ROUGE, or METEOR scores.
[0182] 7. Application Model
[0183] Deploy the trained model to the application to respond to the audience's interaction in the live broadcast scene in real time and generate personalized response strategies.
[0184] Another embodiment of the conversation generation method based on artificial intelligence in the embodiment of the present invention includes: the first audience data at least includes audience click behavior data, audience search behavior data, audience purchase behavior data, and audience comment data; the second audience data at least includes product preference data, brand preference data, evaluation preference data, and purchase history preference data.
[0185] Another embodiment of the conversation generation method based on artificial intelligence in the embodiment of the present invention includes:
[0186] The method of obtaining the first audience data and the second audience data of the audience during the e-commerce live broadcast process includes:
[0187] Send an authorization request signal to the viewer's device. If the viewer agrees, obtain the viewer's device permissions and start the preset data collection program;
[0188] Using a data collection program to collect audience online interaction behavior data during the live broadcast process, to obtain audience online interaction behavior data;
[0189] Based on a preset traffic data analysis algorithm, the audience's online interactive behavior data is extracted to obtain first audience data;
[0190] The audience personalized data source is accessed, and the audience historical interaction behavior data is obtained, and the audience historical interaction behavior data is extracted to obtain the second audience data.
[0191] Specifically, let’s take an example:
[0192] Suppose an e-commerce company wants to improve the interactivity and personalized experience of its live sales, and the company has developed an AI-based conversation generation method. The following are the specific implementation steps of this technical solution:
[0193] Viewer device permissions:
[0194] When the live broadcast begins, the system automatically sends an authorization request signal to the viewer's device. For example, by clicking the "Agree" button on the live broadcast page, the viewer grants the e-commerce platform permission to collect their online interaction behavior data.
[0195] Online interactive behavior data collection:
[0196] Once permission is obtained, the system activates the data collection program to monitor and record in real time the various interactions of the audience during the live broadcast, such as likes, comments, product clicks, adding to shopping carts, and other behaviors.
[0197] First audience data extraction:
[0198] Use traffic data analysis algorithms to process audience online interactive behavior data in real time, extract important parameters such as viewing time, interaction frequency, etc., and organize them into structured first-level audience data.
[0199] Access audience-specific data feeds:
[0200] The system uses the authorization given by the audience to access their personal accounts on the e-commerce platform and obtain their historical interactive behavior data, such as previously watched live broadcasts and historical purchase records.
[0201] Second audience data extraction:
[0202] Analyze historical data in the audience's personal account and extract key behavioral indicators as secondary audience data to understand the audience's preferences and shopping habits.
[0203] In the embodiments of the present invention, the beneficial effects are:
[0204] By adopting the above implementation steps, e-commerce companies can dynamically generate personalized conversations during live broadcasts to enhance interaction with viewers. The main benefits include:
[0205] Improve audience engagement: First, audience data allows the live broadcast host to understand the current online audience behavior trends, so that timely adjustments can be made, such as highlighting products that the audience is interested in, thereby increasing the participation of the live broadcast.
[0206] Personalized audience experience: Second, audience data helps live streaming platforms customize a more personalized audience experience through historical interaction behaviors, such as pushing products that viewers like or providing special offers to loyal customers.
[0207] Optimize sales strategies: By integrating primary audience data and secondary audience data, merchants can analyze the audience's all-round needs, optimize product recommendation algorithms, and increase sales conversion rates.
[0208] Strengthen customer loyalty: Continuously optimize the audience experience and create personalized interactions to strengthen the audience's brand loyalty and long-term value.
[0209] Another embodiment of the conversation generation method based on artificial intelligence in the embodiment of the present invention includes:
[0210] The training process of the personalized learning model includes:
[0211] Obtaining first audience training data and second audience training data provided by audiences in the e-commerce live broadcast; wherein the first audience training data at least includes audience click behavior training data, audience search behavior training data, purchase behavior training data, and audience comment behavior training data, and the second audience training data at least includes product preference training data, brand preference training data, evaluation preference training data, and purchase history preference training data;
[0212] Perform feature extraction on the non-text content in the first audience training data to obtain a first high-order feature of the audience behavior pattern; perform in-depth analysis on the text content in the first audience training data to obtain a second high-order feature of the text content;
[0213] Inputting the second audience training data into a preset deep autoencoder network for encoding to learn and extract the latent structural features of the audience preference pattern and generate the third high-order features of the audience preference pattern;
[0214] Create a feature fusion network based on recurrent neural network and attention mechanism, integrate and dynamically match the first high-order features, second high-order features and third high-order features through the feature fusion network to generate a multimodal feature set;
[0215] The multimodal feature set is used as the model input, and the model parameters are adjusted through an adaptive hybrid optimization algorithm to optimize the loss function of the personalized learning model; after gradual iterative optimization, until the loss function converges, the training of the personalized learning model is completed.
[0216] Specifically, the specific implementation steps of this embodiment are as follows:
[0217] Data Collection and Processing:
[0218] Audience click behavior training data: Through the front-end tracking technology of the live broadcast platform, the user's click action on the product is captured in real time. For example, JavaScript code is used to record the click event and transmit the data to the back-end server.
[0219] Audience search behavior training data: Use the platform's search engine recording function to save user query terms and search result clicks. This requires a search log analysis tool such as Apache Solr or Elasticsearch.
[0220] Purchase behavior training data: Combine the payment system and shopping cart functions to track users' purchase behavior and purchase order.
[0221] Audience comment behavior training data: collect comments posted by users in the live broadcast room, and use real-time chat message preservation technology to archive the comments in the database in real time.
[0222] Product preference training data: Mining user preferences for specific product types or styles from user profiles and positive interactions (such as favorites and likes).
[0223] Brand preference training data: Analyze user interaction data to find out the brands that users tend to buy and their loyalty levels.
[0224] Review preference training data: Use sentiment analysis tools, such as IBM Watson or Google Cloud NaturalLanguage API, to extract the sentiment and evaluation of products in user reviews.
[0225] Purchase history preference training data: Determine the user’s purchase pattern, such as price sensitivity and purchase cycle, through the user’s historical order information.
[0226] 2. First and second high-order feature extraction:
[0227] Feature extraction of non-text content: Use statistical analysis tools such as R or Python libraries (such as Pandas, NumPy) to run cluster analysis on user behavior datasets to extract common patterns of user actions.
[0228] In-depth analysis of text content: Use natural language processing tools, such as BERT or OpenAI GPT-3, to perform deep learning, semantic understanding, and sentiment analysis on user comment data.
[0229] 3. Deep Autoencoder Network Coding:
[0230] Deep Autoencoder Network Application: Design and implement a deep neural network with multiple layers of encoders and decoders. Use an autoencoder to learn deep feature representations of user preference data using a deep learning framework such as TensorFlow or PyTorch.
[0231] 4. Feature fusion network creation:
[0232] Application of recurrent neural networks and attention mechanisms: Build an RNN model, such as LSTM or GRU, to process sequential data inputs. Combine with attention models, such as the Transformer architecture, to enhance the network's ability to focus on the most important signals.
[0233] 5. Model training and optimization:
[0234] Multimodal feature set fusion: unify all extracted features into a vector space, using feature fusion techniques such as splicing or weighted averaging.
[0235] Adaptive hybrid optimization algorithm adjusts model parameters: Implement an optimization algorithm, such as Adam or AdaGrad, to adjust network weights and biases to minimize the multi-class cross entropy loss function.
[0236] Iterative optimization process: Run multiple training cycles, evaluate the model performance with the validation set after each iteration, and make parameter adjustments as needed until the model performance stops improving.
[0237] Another embodiment of the conversation generation method based on artificial intelligence in the embodiment of the present invention includes:
[0238] The feature fusion network based on the recurrent neural network and the attention mechanism is created, and the first high-order feature, the second high-order feature and the third high-order feature are integrated and dynamically matched through the feature fusion network to generate a multimodal feature set, including:
[0239] Acquire a feature fusion network; wherein the feature fusion network at least includes an input layer, a first integration layer, a second integration layer, a fusion layer, and an output layer;
[0240] The input layer is used to input the first high-order feature and the second high-order feature into the first integration layer and input the first high-order feature and the second high-order feature into the second integration layer;
[0241] The first integration layer is used to perform time series feature association on the first high-order feature and the second high-order feature to obtain a first associated feature set;
[0242] The second integration layer is used to perform time series feature association on the second high-order feature and the third high-order feature to obtain a second associated feature set;
[0243] The fusion layer is used to dynamically match the first associated feature set with the second associated feature set to obtain a matching feature set;
[0244] The output layer is used to jointly output the first associated feature set, the second associated feature set, and the matching feature set to obtain a multimodal feature set.
[0245] Specifically, in this embodiment, a feature fusion network based on a recurrent neural network (RNN) and an attention mechanism is created to integrate different types of high-order features and generate a multimodal feature set. The following are specific technical implementation details:
[0246] Get the feature fusion network:
[0247] First, we design and implement the architecture of the feature fusion network, which consists of multiple layers, each specialized in processing different features and tasks.
[0248] The network at least includes: an input layer, two integration layers (a first integration layer and a second integration layer), a fusion layer and an output layer.
[0249] Input Layer:
[0250] The input layer is designed to receive data of the first high-order feature (non-text content extraction feature) and the second high-order feature (text content deep analysis feature).
[0251] Use effective data standardization or normalization techniques, such as min-max scaling or z-score normalization, to transform feature data so that it is suitable for subsequent network layer operations.
[0252] First integration layer:
[0253] RNN structures (such as long short-term memory networks (LSTM) or gated recurrent units (GRU)) are used to process time-related first-order features and second-order features, which allows the network to learn the temporal associations between features.
[0254] Apply the output of the RNN and add one or more fully connected layers to generate a first set of associated features. These layers use activation functions (such as ReLU) to increase nonlinear feature associations.
[0255] Second integration layer:
[0256] This layer receives the second and third high-order features (viewer preference pattern features generated by the deep autoencoder network).
[0257] The combination of RNN and fully connected layer is also used to generate the associated second high-order feature set.
[0258] Fusion layer:
[0259] The attention mechanism is used to dynamically weigh the importance of the first associated feature set and the second associated feature set to generate a weighted fused matching feature set.
[0260] The attention mechanism can be implemented through soft weighting or other advanced attention models, examples include multi-head attention in BERT, etc.
[0261] Output layer:
[0262] The final output layer aggregates the first associated feature set, the second associated feature set, and their matching feature sets.
[0263] This can be achieved through simple concatenation or more complex operations such as further combining the joint features using fully connected layers.
[0264] The output of the output layer is the required multimodal feature set, which can be used for further applications, such as input to personalized recommendation models or prediction models.
[0265] In the embodiments of the present invention, the beneficial effects are:
[0266] Rich feature representation: By integrating first, second, and third high-order features, the feature fusion network is able to capture multi-dimensional information about user behavior, including temporal behavior patterns, deep semantics of text content, and fine-grained characteristics of user preferences. This rich feature representation provides the model with deeper and broader insights, helping to accurately predict user behavior and needs.
[0267] Improve personalized experience: The temporal correlation capability in the feature fusion network enables the system to capture the changes in user behavior over time during the live broadcast. The dynamic matching combined with the attention mechanism allows the system to focus on the most relevant features, which ensures that the generated session is not only coordinated with the user's current behavior, but also consistent with the user's long-term preferences.
[0268] Improved accuracy and efficiency: The attention mechanism of the fusion layer can give different weights to features, emphasizing the features that best reflect the user's intent, rather than having the model treat all inputs equally. This weighted approach improves the accuracy of the model, while reducing unnecessary calculations due to the focus, thereby improving efficiency.
[0269] Enhanced model adaptability: The integrated output scheme of the output layer makes the multimodal feature set more flexible. The model can be applied to a wide range of application scenarios, such as product recommendations, customer service chatbots, content customization, etc., significantly expanding the scope of commercial applications.
[0270] Optimizing user interaction: The generation of multimodal feature sets provides sufficient contextual information for the AI conversational system, making the generated conversational content more natural and attractive.
[0271] The above describes the conversation generation method based on artificial intelligence in the embodiment of the present invention. The following describes the conversation generation device based on artificial intelligence in the embodiment of the present invention. Figure 2 In one embodiment of the present invention, a conversation generation device based on artificial intelligence includes:
[0272] An acquisition module, used to acquire first audience data and second audience data of the audience during the e-commerce live broadcast;
[0273] An input module, used for inputting the first audience data and the second audience data into a preset personalized learning model to obtain a first reply strategy; wherein the personalized learning model is a deep learning model obtained through pre-training;
[0274] An analysis module, for performing sentiment analysis on the first audience data and the second audience data based on a preset sentiment analysis algorithm, respectively, to obtain sentiment characteristic data and demand characteristic data; performing personality analysis on the first audience data and the second audience data based on a preset personality analysis algorithm, to obtain personality characteristic data and personalized recommendation characteristic data;
[0275] An integration module, for integrating the emotion feature data, the demand feature data, the personality feature data and the personalized recommendation feature data based on a preset feature integration rule to obtain an audience portrait;
[0276] A correction module, used for correcting the first reply strategy according to the audience portrait to obtain a second reply strategy;
[0277] A prediction module is used to input the first reply strategy and the second reply strategy into the trained multi-dimensional dynamic conversation generation model to obtain a final personalized reply strategy; wherein the final personalized reply strategy is used to automatically generate personalized conversation content for specific audiences in the live broadcast scene, and present it to the audience in text or voice form through the AI digital anchor.
[0278] The present invention also provides an artificial intelligence-based conversation generation device, which includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the artificial intelligence-based conversation generation method in the above-mentioned embodiments.
[0279] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the artificial intelligence-based conversation generation method.
[0280] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0281] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0282] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A conversation generation method based on artificial intelligence, characterized in that: The artificial intelligence-based conversation generation method comprises the following steps: Obtaining first audience data and second audience data of the audience during the e-commerce live broadcast process, wherein the first audience data at least includes audience click behavior data, audience search behavior data, audience purchase behavior data, and audience comment data; the second audience data at least includes product preference data, brand preference data, evaluation preference data, and purchase history preference data; Inputting the first audience data and the second audience data into a preset personalized learning model to obtain a first response strategy; wherein the personalized learning model is a deep learning model obtained through pre-training; Based on a preset sentiment analysis algorithm, sentiment tendency analysis is performed on the first audience data and the second audience data respectively to obtain sentiment characteristic data and demand characteristic data; based on a preset personality analysis algorithm, personality analysis is performed on the first audience data and the second audience data to obtain personality characteristic data and personalized recommendation characteristic data; Based on a preset feature integration rule, the emotional feature data, the demand feature data, the personality feature data, and the personalized recommendation feature data are feature integrated to obtain an audience portrait, wherein the feature integration of the emotional feature data, the demand feature data, the personality feature data, and the personalized recommendation feature data based on the preset feature integration rule to obtain an audience portrait includes: setting different weights according to the influence and importance of different features, unifying the feature data formats from different sources, removing duplicate, invalid or missing data, ensuring the quality and accuracy of feature data, weighted averaging the emotional feature data, the demand feature data, the personality feature data, and the personalized recommendation feature data according to the weights, performing multi-dimensional fusion, and generating an audience portrait based on the result of feature fusion; According to the audience portrait, the first response strategy is modified to obtain a second response strategy; The first reply strategy and the second reply strategy are input into the trained multi-dimensional dynamic conversation generation model to obtain a final personalized reply strategy; wherein the final personalized reply strategy is used to automatically generate personalized conversation content for specific audiences in the live broadcast scene, and present it to the audience in text or voice form through the AI digital anchor.
2. The artificial intelligence-based conversation generation method according to claim 1, characterized in that: The method of obtaining the first audience data and the second audience data of the audience during the e-commerce live broadcast process includes: Send an authorization request signal to the viewer's device. If the viewer agrees, obtain the viewer's device permissions and start the preset data collection program; Using a data collection program to collect audience online interaction behavior data during the live broadcast process, to obtain audience online interaction behavior data; Based on a preset traffic data analysis algorithm, the audience's online interactive behavior data is extracted to obtain first audience data; The audience personalized data source is accessed, and the audience historical interaction behavior data is obtained, and the audience historical interaction behavior data is extracted to obtain the second audience data.
3. The artificial intelligence-based conversation generation method according to claim 1, characterized in that: The training process of the personalized learning model includes: Obtaining first audience training data and second audience training data provided by audiences in the e-commerce live broadcast; wherein the first audience training data at least includes audience click behavior training data, audience search behavior training data, purchase behavior training data, and audience comment behavior training data, and the second audience training data at least includes product preference training data, brand preference training data, evaluation preference training data, and purchase history preference training data; Perform feature extraction on the non-text content in the first audience training data to obtain a first high-order feature of the audience behavior pattern; perform in-depth analysis on the text content in the first audience training data to obtain a second high-order feature of the text content; Inputting the second audience training data into a preset deep autoencoder network for encoding to learn and extract the latent structural features of the audience preference pattern and generate the third high-order features of the audience preference pattern; Create a feature fusion network based on recurrent neural network and attention mechanism, integrate and dynamically match the first high-order features, second high-order features and third high-order features through the feature fusion network to generate a multimodal feature set; The multimodal feature set is used as the model input, and the model parameters are adjusted through an adaptive hybrid optimization algorithm to optimize the loss function of the personalized learning model; after gradual iterative optimization, until the loss function converges, the training of the personalized learning model is completed.
4. The artificial intelligence-based conversation generation method according to claim 3, characterized in that: The feature fusion network based on the recurrent neural network and the attention mechanism is created, and the first high-order feature, the second high-order feature and the third high-order feature are integrated and dynamically matched through the feature fusion network to generate a multimodal feature set, including: Acquire a feature fusion network; wherein the feature fusion network at least includes an input layer, a first integration layer, a second integration layer, a fusion layer, and an output layer; The input layer is used to input the first high-order feature and the second high-order feature into the first integration layer and input the first high-order feature and the second high-order feature into the second integration layer; The first integration layer is used to perform time series feature association on the first high-order feature and the second high-order feature to obtain a first associated feature set; The second integration layer is used to perform time series feature association on the second high-order feature and the third high-order feature to obtain a second associated feature set; The fusion layer is used to dynamically match the first associated feature set with the second associated feature set to obtain a matching feature set; The output layer is used to jointly output the first associated feature set, the second associated feature set, and the matching feature set to obtain a multimodal feature set.
5. A conversation generation device based on artificial intelligence, characterized in that: The artificial intelligence-based conversation generation device includes: An acquisition module is used to acquire first audience data and second audience data of the audience during the e-commerce live broadcast process, wherein the first audience data at least includes audience click behavior data, audience search behavior data, audience purchase behavior data, and audience comment data; the second audience data at least includes product preference data, brand preference data, evaluation preference data, and purchase history preference data; An input module, used for inputting the first audience data and the second audience data into a preset personalized learning model to obtain a first reply strategy; wherein the personalized learning model is a deep learning model obtained through pre-training; An analysis module, for performing sentiment analysis on the first audience data and the second audience data based on a preset sentiment analysis algorithm, respectively, to obtain sentiment characteristic data and demand characteristic data; performing personality analysis on the first audience data and the second audience data based on a preset personality analysis algorithm, to obtain personality characteristic data and personalized recommendation characteristic data; An integration module is used to integrate the emotional feature data, the demand feature data, the personality feature data and the personalized recommendation feature data based on a preset feature integration rule to obtain an audience portrait, wherein the step of integrating the emotional feature data, the demand feature data, the personality feature data and the personalized recommendation feature data based on a preset feature integration rule to obtain an audience portrait includes: setting different weights according to the influence and importance of different features, unifying the feature data formats from different sources, removing duplicate, invalid or missing data, ensuring the quality and accuracy of feature data, weighted averaging the emotional feature data, the demand feature data, the personality feature data and the personalized recommendation feature data according to the weights, performing multi-dimensional fusion, and generating an audience portrait based on the result of feature fusion; A correction module, used for correcting the first reply strategy according to the audience portrait to obtain a second reply strategy; A prediction module is used to input the first reply strategy and the second reply strategy into the trained multi-dimensional dynamic conversation generation model to obtain a final personalized reply strategy; wherein the final personalized reply strategy is used to automatically generate personalized conversation content for specific audiences in the live broadcast scene, and present it to the audience in text or voice form through the AI digital anchor.
6. A conversation generation device based on artificial intelligence, characterized in that: The artificial intelligence-based conversation generation device includes: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the artificial intelligence-based conversation generation device to execute the artificial intelligence-based conversation generation method as described in any one of claims 1-4.
7. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the artificial intelligence-based conversation generation method as described in any one of claims 1-4 is implemented.
