A multi-layer attribution graph construction method based on sentiment classification
The multi-layer attribution map construction method of emotional classification solves the problem of traditional emotional analysis being unable to identify the specific causes of emotional tendencies, and generates a detailed multi-layer attribution map to help merchants formulate targeted measures and improve marketing and product tracking. Effect.
Patent Information
- Application Number
- CN202110621640.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-03
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-06-03
AI Technical Summary
Traditional sentiment analysis cannot track the specific causes of emotional tendencies and triggering touch points, making it difficult for merchants to effectively utilize user reviews in marketing promotion and product/service tracking.
A multi-layer attribution graph construction method based on emotional classification is used to build an aspect-level related classification prediction model for emotional tendencies and negative content tendencies through the LSTM network, forming a prototype of the aspect-level feature framework, and the interactive graph is refined through clustering and business perspectives. Group attention into groups, generate a multi-layer attribution map, and provide targeted measures and suggestions.
It achieves detailed identification of emotional tendencies and triggering touch points, provides an operable multi-layered attribution map, helps merchants formulate targeted measures, and improves the effectiveness of marketing promotion and product tracking.
Smart Images

Figure CN113495960B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for constructing a multi-layer attribution graph based on sentiment classification, and belongs to the field of e-commerce. Background Art
[0002] With the development of e-commerce, more and more users' opinions and evaluations of goods / services appear on the Internet, affecting subsequent user purchase decisions. According to research, 87% of consumers will read online reviews of goods before purchasing; 93% of consumers said that online reviews will affect their shopping decisions; and some consumers are willing to pay up to 15% more for the same product or service as long as this product or service can bring them a better consumer experience.
[0003] After experiencing related products or services, more and more emotional content appears on the Internet. This emotional tendency is further paid attention to and referenced by subsequent consumers who participate in the purchase, affecting their purchase decisions. Traditional sentiment analysis only identifies the overall tendency of users, but cannot track the specific reasons and triggering points of these emotional tendencies, making it impossible for merchants to implement marketing promotion and product / service tracking and improvement. Summary of the invention
[0004] The purpose of the present invention is to provide a method for constructing a multi-layer attribution graph based on sentiment classification. The present invention not only provides a method for forming an aspect-level feature framework prototype, but also provides a method for integrating business and models within the aspect-level feature framework prototype, and constructing a multi-layer attribution graph based on comment content from the two perspectives of sentiment tendency and triggering touchpoints, and outputs suggestions for taking measures based on the content of the multi-layer attribution graph.
[0005] The present invention provides a method for constructing a multi-layer attribution graph based on sentiment classification, which is characterized by comprising the following steps:
[0006] A method for constructing a multi-layer attribution graph based on sentiment classification, characterized by comprising the following steps:
[0007] Step 1: Data processing: For the labeled auxiliary domain and source domain samples, use the word segmentation tool to perform word segmentation, punctuation and stop word processing, and map the segmented text into vectors;
[0008] Step 2: Use the samples processed in step 1 to build an LSTM network and train the following two models:
[0009] a) Polarity classification prediction model of sentiment tendency,
[0010] b) Aspect-level correlation classification prediction model for negative content tendency,
[0011] Step 3: Formation of aspect feature framework:
[0012] Use the above trained models a) and b) to predict and label the new data.
[0013] Generate polarity classification labels of sentiment tendency according to model a).
[0014] According to model b), aspect-level related classification labels with negative content tendency are generated to form an aspect-level category framework;
[0015] Step 4:
[0016] After model a) and model b) are trained and modeled, the prediction samples are predicted to form two different classification prediction result labels, and the result labels are crossed to form a more refined classification. Finally, the negative content is extracted and combined with the LSTM prediction labels of the above models to form the prototype of the aspect-level feature framework.
[0017] Step 5: Further focus on the sub-groups in the aspect-level feature framework prototype, and perform sub-grouping as follows:
[0018] The keywords are further subdivided into multiple layers with different granularities through clustering and grouping within the framework, forming a flexible inductive space for experts to freely choose. Then, combined with business induction and recognizability, the appropriate segmentation granularity is further determined based on the interactive observation map. Through this interactive induction, understandable and actionable multiple attention-level refinement points are extracted, and the characteristic keywords are extracted and added to the hierarchical characteristic keyword mapping table.
[0019] Clarify and focus grouping: Under the premise of not affecting clarity or operation targeting and being controllable, for each attention level, refine the grouping to cover as many comment samples as possible. For the groups that need to be introduced, extract the corresponding hierarchical feature keywords and add them to the hierarchical feature keyword mapping table;
[0020] The above processing is performed on each segment group in the prototype of the aspect-level feature framework, gradually forming a multi-layer attribution map based on the comment content.
[0021] Furthermore, the method for constructing a multi-layer attribution graph based on sentiment classification of the present invention also has the following characteristics: step six is included between step four and step five, and an extended step is applied: step 6-1, using the business-level keyword mapping table to receive keywords set at the business layer.
[0022] Furthermore, the method for constructing a multi-layer attribution graph based on sentiment classification of the present invention also has the following characteristics: Step six also includes: Step 6-2, integrating business personnel segmentation, and supplemented by model segmentation observation, to further supplement and improve the business-level keyword mapping table in Step 6-1.
[0023] Furthermore, the method for constructing a multi-layer attribution graph based on sentiment classification of the present invention also has the following characteristics: in step five, within the scope of the aspect-level feature framework prototype constructed in step four, for each segmented comment group, focused clusters are constructed interspersedly based on the clarity and degree of distinction between the interaction graphs of the business perspective clusters and the interaction graphs corresponding to the clusters classified by the unsupervised model.
[0024] Furthermore, the method for constructing a multi-layer attribution graph based on sentiment classification of the present invention also has the following characteristics: in step five, it also includes the step of constructing a clear focused clustering: within the scope of the aspect-level feature framework prototype formed in step four, for each segmented comment group therein, the clarity and degree of distinction between the interaction graphs clustered from a business perspective and the interaction graphs corresponding to the groups classified by an unsupervised model are used to interweave and construct a clear focused clustering.
[0025] Furthermore, the method for constructing a multi-layer attribution graph based on sentiment classification of the present invention also has the following characteristics: in step five, it also includes the step of forming supplementary segmentation groups: forming supplementary segmentation groups: if the segmentation groups appear in the unsupervised classification model but are not included in the previous business keyword combing, the hierarchical feature keywords are supplemented to the mapping table according to the observed graph content.
[0026] Furthermore, the method for constructing a multi-layer attribution graph based on sentiment classification of the present invention also has the following characteristics: in step 2, the polarity classification prediction model of sentiment tendency uses the last output unit of bi-LSTM in the first layer to calculate the final classification value through the sigmoid function;
[0027] The aspect-level correlation classification prediction model for negative content tendency adopts a standard LSTM neural network, which then forms multiple output units and calculates the corresponding classification values through the softmax layer.
[0028] Furthermore, the method for constructing a multi-layer attribution graph based on sentiment classification of the present invention also has the following characteristics: for each segment group in the aspect-level feature framework prototype, the following are performed: step 6-1 and step 6-2, and the keywords are again segmented at different granularities through clustering within the framework, the focused clusters are clarified, and the processing of supplementary segment groups is formed to form a multi-layer attribution graph based on the comment content.
[0029] Furthermore, the method for constructing a multi-layer attribution graph based on sentiment classification of the present invention also has the following characteristics: the subject of the evaluated object or the noun of the subject is extracted as the triggering contact perspective, and the triggering contact perspective indicates which objects trigger these negative emotions; the remaining feature keywords are classified into subdivided sentiment tendency perspectives. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is the result part of the hotel service category in the sample table of multi-layer attribution graph results.
[0031] Figure 2 This is the result part of the hotel facilities category in the sample table of multi-layer attribution graph results.
[0032] Figure 3 This is the result part of the hotel surrounding environment category in the multi-layer attribution graph result sample table. DETAILED DESCRIPTION
[0033] The technical solution of the present invention is further illustrated by specific implementation methods below.
[0034] Since consumers rarely consume hotels, most hotel merchants have a small number of online reviews. Therefore, we introduce some review data from other fields that are similar to the review terms used in hotel reviews. This provides more sufficient learning samples in the initial stage of model learning.
[0035] Dataset: A part of the hotel reviews of a travel website with sentiment polarity labels and aspect-level labels + book reviews of a website are used. The hotel reviews of a travel website are called source domain samples, and the book reviews of a website are called auxiliary domain samples.
[0036] Step 1. Data processing
[0037] Use the word segmentation tool to segment the text in the dataset; then remove punctuation and stop words, etc.; then use word2vector to map the segmented text into 300 word vectors.
[0038] Step 2. Migration and prediction
[0039] Since there are too few hotel review samples, this paper adopts model-based transfer learning, with the help of and integration of book review information from a certain website and a small amount of labeled hotel evaluation information, to conduct model-based transfer training to improve the hidden dangers of modeling caused by relatively few samples.
[0040] For predictive classification problems in deep learning, insufficient samples will make it difficult for model training to converge, and the classification accuracy will be low when predicting test samples. As the number of diverse samples increases, the classification accuracy of predictive test samples will also improve.
[0041] From an empirical perspective, for text classification, the prediction accuracy of general test samples must reach 80% or above; if more detailed classification and sorting is required later, the requirement will be higher, that is: >= 90%.
[0042] If the prediction accuracy of the test sample is not enough, it is necessary to expand the training samples in a diversified way until the test accuracy reaches the standard. If the current training samples cannot support the minimum value of the test accuracy, it is necessary to consider introducing migration samples from other fields.
[0043] Step 3. LSTM network construction, including parameter setting and training:
[0044] a) Polarity classification prediction model of sentiment tendency
[0045] In this model, the first layer uses bi-LSTM; the last output unit is calculated by the sigmoid function to obtain the final binary classification value.
[0046] b) Aspect-level correlation classification prediction model for negative content tendency
[0047] A standard LSTM neural network is used, and then 9 output units are formed, and the corresponding 9 classification values are calculated by the softmax layer. Of course, the classification values of the above two models are only the number of examples in this embodiment, and in other embodiments, the classification values may be different.
[0048] Step 4. Result evaluation
[0049] The data is divided into 80% training samples and 20% prediction samples. The model is trained and built, and the evaluation results are as follows:
[0050] a) Evaluation of the polarity classification prediction model of sentiment tendency:
[0051] Table 1:
[0052]
[0053] Table 1 Evaluation table of the polarity classification prediction model of sentiment tendency
[0054] The LSTM neural network model has a high prediction accuracy of 88.46% for sentiment polarity classification prediction, while Bi-LSTM has increased it by approximately 3.84% to 92.30%.
[0055] b) Evaluation of aspect-level review classification models:
[0056] Table 2: Evaluation table of aspect-level comment classification prediction model of sentiment tendency:
[0057]
[0058] The LSTM neural network model is used for aspect-level review classification, and its prediction accuracy has reached 90.84%.
[0059] Step 5. Formation of the prototype of aspect-level feature framework
[0060] Use the above-trained classification model a) and classification model b) to predict and label the new data.
[0061] Generate a polarity classification label of sentiment tendency according to the classification model a).
[0062] According to the classification model b), aspect-level related classification labels with negative content tendency are generated to form an aspect-level category framework.
[0063] After training and modeling the a) and b) models, the prediction samples are predicted to form two different classification prediction result labels, which are crossed to form a more detailed classification. Finally, the negative content of the hotel review text is extracted and combined with the LSTM prediction labels of the above model to form the prototype of the aspect-level feature framework.
[0064] Prediction labels of models a and b
[0065] The emotional tendency of a is: positive, negative
[0066] The aspect level classification of b is: hotel services, hotel facilities, surrounding environment, price
[0067] The classification conclusions obtained by model a and model b are crossed to form a subdivision classification
[0068] Subdivisions such as:
[0069] Negative | Hotel Services
[0070] Negative | Hotel Facilities
[0071] Negative | Surrounding Environment
[0072] Negative | Price
[0073] Of course, the above subdivisions are only examples in this embodiment, and do not mean that there are only these subdivisions in other embodiments.
[0074] Step 6. Apply the comb extension:
[0075] 1) Design a hierarchical keyword mapping table for business personnel to set keywords
[0076] According to the prototype of the aspect-level feature framework formed in step 5, a hierarchical keyword mapping table is designed to carry out preliminary keyword sorting according to the business side's segmented concerns; it is also convenient to perform automatic segmentation under the framework according to the keywords in the mapping table in the future;
[0077] |Class 1|…|Class n|Keywords|
[0078] Among them: The larger the n, the deeper the subdivision
[0079] 2) Integrate business personnel segmentation and supplement it with model segmentation observation to further supplement and improve the keyword mapping table in step 1).
[0080] Within the scope of the aspect-level feature framework formed in step 5, for each segmented comment group, sort out the keywords at the business level and build an auxiliary unsupervised classification model to help clarify the focus group or form a supplementary segment group. Extract the attention content that is proven to be operational and can be solved in a targeted manner, that is, the attention-level refined grouping. Attach the corresponding solution to the attention content that can be solved in a targeted manner to facilitate repeated execution in the future.
[0081] Among them: the method of focusing on each sub-group in the aspect-level feature framework prototype is as follows:
[0082] Through the in-frame clustering, keywords are subdivided into multiple layers with different granularities to form a flexible inductive space for free selection of division and combination. Then, combined with the business perspective clustering and recognizability, the appropriate segmentation granularity is further determined based on the interactive observation map. Through this interactive induction, understandable and actionable multiple attention-level refined focus points are extracted, and the characteristic keywords are extracted and added to the hierarchical characteristic keyword mapping table. Among them, the in-frame clustering adopts the clustering method of unsupervised learning to cluster the keywords in each subcategory again.
[0083] A relatively fine cluster classification is initially formed, and then business experts or manual observations are combined with interactive observation maps to merge the fine classifications. When new subcategories appear, new subcategories are summarized to form a relatively more reasonable summary group.
[0084] The interactive observation map is presented in the form of an observation word cloud, where the cluster number and word cloud are presented in interactive observation, or each cluster number corresponds to a related word cloud. Click one or more cluster numbers on the left side of the interactive observation map, and the observation word cloud on the right side will focus on the comments under the specified cluster. Then, the recognition clarity and degree of distinction of the observation map obtained by interaction are weighed to determine whether to merge multiple categories or to classify them separately.
[0085] Business perspective grouping refers to the observation of business personnel. Figure 1-Figure 3In the word cloud corresponding to the medium and large categories, are there any clusters that meet the large categories but are different from other small categories in the large categories, or hierarchical feature keywords that should be separated into a separate category from a business perspective. For the clusters that need to be introduced, the corresponding hierarchical feature keywords can be extracted and added to the mapping table. The clusters to be observed are the clusters obtained by unsupervised learning. After observation and judgment, they are moved to the final sub-category clusters from a business perspective as appropriate. Since the small categories separated by the machine were originally numbered, it is not very convenient to further analyze the comments based on keywords. Therefore, it is necessary to extract and summarize the new small category names based on keywords, such as Figure 1 In addition, since the review keywords have been preliminarily classified, business personnel will have clearer ideas when facing the keywords after preliminary classification, and it will be easier to summarize the sub-category names or re-classify the keywords according to the feasibility and purpose.
[0086] Business personnel intervene in the construction of the learning model only when the program is run for the first time. When the classification selection is completed, the subsequent artificial intelligence program runs to judge and classify the newly formed comments, and business personnel intervention is no longer required.
[0087] Clarified and focused grouping: Under the premise of not affecting clarity, not affecting the targetedness of operations, and being controllable, for each attention-level refined grouping, it is necessary to cover as many comment samples as possible and extract the hierarchical feature keywords into the mapping table.
[0088] Forming supplementary subdivision groups: If there are any that appear in the unsupervised classification model and have not been considered in the previous business keyword combing, the hierarchical feature keywords can be added to the mapping table as appropriate based on the observed graph content. The step of forming supplementary subdivision groups only needs to be supplemented when new classifications are found during the inspection. If no new classes are found after classification by the unsupervised classification model, there is no need to form supplementary subdivision groups.
[0089] The remaining samples that cannot be classified are temporarily classified into the unidentifiable group.
[0090] The above processing is performed on each segment group in the prototype of the aspect-level feature framework, gradually forming a multi-layer attribution map based on the comment content.
[0091] The multi-layer attribution map thus extracted contains segmented sentiment tendencies and aspect-level comment keywords, making it easier for businesses to formulate targeted response measures based on user comments, and provide useful information reference for decision-makers and operational execution layers.
[0092] Step 7. Cause tracking
[0093] The evaluated objects, such as the subject or the noun of the subject, are extracted as the triggering contact perspective, which is also the tracking focus object perspective - indicating which objects trigger these negative emotions; the remaining feature keywords are classified as segmented emotional tendency perspectives.
[0094] Give examples to illustrate the meaning of the noun in the subject: For example, one comment is: the decoration is too simple and there are mold spots on the walls.
[0095] The noun of the subject is the object being evaluated: decoration, wall - the object of attention that triggers the touch point. When the subject itself has modifiers, such as there are mildew spots on the beige wall. At this time, the program will remove the modifiers of the subject. In this sentence, for example, "beige" is removed to obtain the subject: wall.
[0096] Simple, shabby - Based on the characteristic keywords tracked by the above objects, the corresponding emotional tendencies can be detected.
[0097] Step 8. Recommend actions to take
[0098] Since the above map has broken down and presented the issues of concern, it is naturally more convenient for business personnel to attach relevant solution suggestions for adoption one by one, which will help with subsequent marketing promotion and problem solving. Figure 1 , Figure 2 and Figure 3 The sample results of multi-layer attribution graph interaction are presented, as well as the corresponding adoption measures.
[0099] In the present invention, only the aggregation with negative sentiment direction is used as an example to illustrate the method of establishing a multi-layer attribution map. Based on the technical solution described in the present invention, it is easy to select the aggregation formed by positive sentiment direction and comments, or select neutral comments to form a map, thereby meeting the needs of hotel customers for screening comments of various sentiment directions, and helping hotels to conduct more targeted personalized marketing to hotel consumers.
[0100] Within the LSTM and bi-LSTM prediction conclusion framework, the present invention further performs multi-layer segmentation of keywords at different granularities through clustering within the framework, forming a flexible inductive space for division and combination that experts can freely choose, and then combines business induction and identifiability to further determine the appropriate segmentation granularity based on the interaction graph, and extracts multiple understandable and actionable focus points through this interactive transformation; these focus points extracted on this basis will make it easier for users to specifically sort out and formulate response measures, and provide useful information reference for the decision-making layer and the operation execution layer.
Claims
1. A method for constructing a multi-layer attribution graph based on sentiment classification, characterized in that: The steps include: Step 1: Data processing: For the labeled auxiliary domain and source domain samples, use the word segmentation tool to perform word segmentation, punctuation and stop word processing, and map the segmented text into vectors; Step 2: Use the samples processed in step 1 to build an LSTM network and train the following two models: a) Polarity classification prediction model of sentiment tendency, b) Aspect-level correlation classification prediction model for negative content tendency, Step 3: Formation of aspect feature framework: Use the above trained models a) and b) to predict and label the new data. Generate polarity classification labels of sentiment tendency according to model a). According to model b), aspect-level related classification labels with negative content tendency are generated to form an aspect-level category framework; Step 4: After model a) and model b) are trained and modeled, the prediction samples are predicted to form two different classification prediction result labels, and the result labels are crossed to form a more refined classification. Finally, the negative content is extracted and combined with the LSTM prediction labels of the above models to form the prototype of the aspect-level feature framework. Step 5: Further focus on the sub-groups in the aspect-level feature framework prototype, and perform sub-grouping as follows: The keywords are further subdivided into multiple layers with different granularities through clustering and grouping within the framework, forming a flexible inductive space for experts to freely choose. Then, combined with business induction and recognizability, the appropriate segmentation granularity is further determined based on the interactive observation map. Through this interactive induction, understandable and actionable multiple attention-level refinement points are extracted, and the characteristic keywords are extracted and added to the hierarchical characteristic keyword mapping table. Clarify and focus grouping: Under the premise of not affecting clarity or operation targeting and being controllable, for each attention level, refine the grouping to cover as many comment samples as possible. For the groups that need to be introduced, extract the corresponding hierarchical feature keywords and add them to the hierarchical feature keyword mapping table; The above processing is performed on each sub-group in the prototype of the aspect-level feature framework, gradually forming a multi-layer attribution map based on the review content; In step 5, within the scope of the aspect-level feature framework prototype built in step 4, for each segmented review group, focus groups are constructed based on the clarity and distinction between the interaction graphs of the business perspective grouping and the interaction graphs corresponding to the groups classified by the unsupervised model; Step five also includes the step of forming a supplementary segment group: forming a supplementary segment group: if a segment group appears in the unsupervised classification model but is not included in the previous business keyword combing, the hierarchical feature keywords are added to the mapping table according to the observed graph content; In step 2, the polarity classification prediction model of sentiment tendency uses the last output unit of bi-LSTM in the first layer to calculate the final classification value through the sigmoid function; The aspect-level correlation classification prediction model for negative content tendency adopts a standard LSTM neural network, which then forms multiple output units and calculates the corresponding classification values through the softmax layer.
2. The method for constructing a multi-layer attribution graph based on sentiment classification according to claim 1, characterized in that: Between steps 4 and 5, there is also step 6, which is the application extension step: Step 6-1: Use the business-level keyword mapping table to receive keywords set at the business layer.
3. The method for constructing a multi-layer attribution graph based on sentiment classification according to claim 2, characterized in that: Step six also includes: Step 6-2, integrating business personnel segmentation and supplementing with model segmentation observations to further supplement and improve the business-level keyword mapping table in step 6-1.
4. The method for constructing a multi-layer attribution graph based on sentiment classification according to claim 1, characterized in that: The subject or noun of the evaluated object is extracted as the triggering contact perspective, which indicates which objects trigger these negative emotions; the remaining feature keywords are classified into segmented emotional tendency perspectives.
