Logistics user preference discovering method based on machine learning analysis on-line comments

By analyzing user review data in the app store, constructing topic models and sparse matrices, and using logistic regression models, we solve the problem of the inability to accurately analyze logistics user preference needs in existing technologies, and implement preference factor screening and optimization suggestions for logistics platforms. , providing logistics companies with more accurate and warning analysis results.

CN118710310APending Publication Date: 2024-09-27HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410826220.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing technology cannot accurately analyze users' logistics preferences and needs. Questionnaire survey data is insufficient and timely, and shopping platform review data is not practical. It is difficult to screen out users' preferences for logistics services.

Method used

By obtaining user review data in the app store, we perform preprocessing and sentiment analysis, build positive and negative LDA topic models, build sparse matrices, use logistic regression models to analyze user preference needs, and use Bibexcel and Netdraw software to build keyword consensus Presentation matrix and social network diagram.

Benefits of technology

It realizes user preference demand screening based on online reviews, provides logistics enterprise optimization suggestions, takes into account both positive and negative factors, and improves the accuracy and timeliness of analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710310A
    Figure CN118710310A
Patent Text Reader

Abstract

The invention provides a logistics user preference discovering method based on machine learning analysis online comments, and relates to the technical field of data mining. According to the method, the network comment of the user logistics platform in the application store is taken as a starting point, the problem of how to screen the logistics platform to attract and retain the user based on the online comment analysis requirement is solved, the preference factors of the logistics platform to attract and retain the user are screened based on the online comment, and optimization suggestions are provided for logistics enterprises. Meanwhile, positive factors and negative factors of the user on the satisfaction degree of the logistics service requirements are considered, and the result has better warning performance for enterprises.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data mining, and in particular to a method for discovering logistics user preferences based on machine learning analysis of online reviews. Background Art

[0002] Based on the current market environment, logistics has penetrated every aspect of people's lives. Due to economic development, the improvement of people's consumption level, and the increasingly fierce competition among enterprises, traditional delivery and distribution services can no longer meet users' demand for logistics services. Users' demand for logistics services tends to be personalized, customized, and differentiated. The quality of logistics services has also become the key to the survival and development of enterprises and the improvement of their competitiveness. How to improve the service quality of enterprises at a lower cost and effectively improve user satisfaction is the key to retaining users.

[0003] However, existing methods mainly include questionnaire surveys or logistics preference demand analysis based on shopping platform data. However, the questionnaire survey method obtains a small amount of data, the analysis results are of low accuracy, and have certain timeliness and limitations. The evaluation of shopping platforms is more focused on the quality of items, and the obtained review data is not very practical. It is difficult to screen out users' preference needs for logistics services through these online review data.

[0004] From the above description, it can be seen that the existing technology cannot accurately analyze the user's logistics preference needs. Summary of the invention

[0005] 1. Technical issues to be solved

[0006] In view of the shortcomings of the prior art, the present invention provides a method for discovering logistics user preferences based on machine learning analysis of online reviews, which solves the technical problem that the prior art cannot accurately analyze users' logistics preference needs.

[0007] (II) Technical solution

[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0009] In a first aspect, the present invention provides a method for discovering logistics user preferences based on machine learning analysis of online reviews, comprising:

[0010] Obtain the review data of the logistics platform published by users in the app store, perform preprocessing, obtain keywords, and use the review data with the keywords as the review set;

[0011] Performing sentiment analysis on the comment data in the comment set, dividing the comment data into positive emotion comment data, neutral emotion comment data and negative emotion comment data, collecting the positive emotion comment data as a positive comment set, and collecting the negative emotion comment data as a negative positive comment set;

[0012] Based on the positive review set, a positive LDA topic model is constructed to determine positive sentiment theme words; based on the negative positive review set, a negative LDA topic model is constructed to determine negative sentiment theme words;

[0013] Based on the positive sentiment theme words and the positive comment set, construct a positive "comment-topic" sparse matrix; based on the negative sentiment theme words and the negative comment set, construct a negative "comment-topic" sparse matrix;

[0014] The positive "comment-topic" sparse matrix and the negative "comment-topic" sparse matrix are used as input data respectively, and the user's preference requirements for the logistics platform are obtained through the Logistic regression model.

[0015] Preferably, the method for discovering logistics user preferences further includes:

[0016] The keywords are used as row feature words, and Bibexcel software is used to construct a keyword co-occurrence matrix; the co-occurrence matrix is ​​input into Netdraw software to obtain a social network relationship diagram of the keywords.

[0017] Preferably, the sentiment analysis of the comment data in the comment set includes:

[0018] According to the intensity of the emotion expressed in the collected comment data, the sentiment words are assigned an intensity of |1| or |2| and a score is specified. c It represents the sentiment score of comment data c, and its calculation formula is as follows:

[0019]

[0020] Among them, P(W ci ) indicates the positive and negative polarity of the keyword, deg(W ci ) represents the modified sentiment word W ci The level of the adverb of degree, [(-1) ci ] K Represents the influence of K negative words on the positive and negative polarity of review c.

[0021] Preferably, constructing a positive LDA topic model based on the positive review set to determine positive sentiment keywords; constructing a negative LDA topic model based on the negative positive review set to determine negative sentiment keywords includes:

[0022] Based on the positive review set, the optimal number of topics K1 of the positive LDA topic model is determined, and the perplexity evaluation method is used to obtain the optimal number of topics K1; based on the negative review set, the optimal number of topics K2 of the negative LDA topic model is determined, and the perplexity evaluation method is used to obtain the optimal number of topics K2;

[0023] A positive LDA topic model is established based on the optimal number of topics K1 and the positive comment set to determine positive sentiment topic words; a negative LDA topic model is established based on the optimal number of topics K2 and the negative comment set to determine negative sentiment topic words.

[0024] Preferably, the positive LDA topic model is constructed based on the positive review set to determine positive sentiment keywords, including

[0025] Set comment data {c1, c2, c3, ..., c m} as the positive review set, set topic = {t1, t2, t3, ..., t n} as the positive sentiment theme word set; the comment set and topic set are used as column and row labels respectively to establish a positive "comment-topic" sparse matrix; the rules are established as follows: if the comment c i Included Theme j If a specific topic keyword is included in , it is recorded as 1, and if it is not included, it is recorded as 0; the sparse matrix Z m×n as follows;

[0026]

[0027] In a second aspect, the present invention provides a system for discovering logistics user preferences based on machine learning analysis of online reviews, comprising:

[0028] The data acquisition module is used to obtain the review data of the logistics platform published by users in the application store, and pre-process it to obtain keywords, and use the review data with keywords as the review set;

[0029] The sentiment analysis module is used to perform sentiment analysis on the comment data in the comment set, divide the comment data into positive emotion comment data, neutral emotion comment data and negative emotion comment data, collect the positive emotion comment data as the positive comment set, and collect the negative emotion comment data as the negative positive comment set;

[0030] The topic word determination module is used to construct a positive LDA topic model based on the positive comment set and determine the positive sentiment topic words; and to construct a negative LDA topic model based on the negative positive comment set and determine the negative sentiment topic words;

[0031] The matrix construction module is used to construct a positive "comment-topic" sparse matrix based on positive sentiment keywords and positive comment sets; and to construct a negative "comment-topic" sparse matrix based on negative sentiment keywords and negative comment sets;

[0032] The regression analysis module is used to use the positive "comment-topic" sparse matrix and the negative "comment-topic" sparse matrix as input data, and obtain the user's preference requirements for the logistics platform through the Logistic regression model.

[0033] Preferably, the system for discovering logistics user preferences further includes:

[0034] The visualization module is used to use the keywords as row feature words and construct a keyword co-occurrence matrix using Bibexcel software; and obtain a social network relationship diagram of the keywords by inputting the co-occurrence matrix into Netdraw software.

[0035] Preferably, the sentiment analysis of the comment data in the comment set includes:

[0036] According to the intensity of the emotion expressed in the collected comment data, the sentiment words are assigned an intensity of |1| or |2| and a score is specified. c It represents the sentiment score of comment data c, and its calculation formula is as follows:

[0037]

[0038] Among them, P(W ci ) indicates the positive and negative polarity of the keyword, deg(W ci ) represents the modified sentiment word W ci The level of the adverb of degree, [(-1) ci ] K Represents the influence of K negative words on the positive and negative polarity of review c.

[0039] In a third aspect, the present invention provides a computer-readable storage medium storing a computer program for a method for discovering logistics user preferences based on machine learning analysis of online reviews, wherein the computer program enables a computer to execute the method for discovering logistics user preferences based on machine learning analysis of online reviews as described above.

[0040] In a fourth aspect, the present invention provides an electronic device, comprising:

[0041] One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the programs include methods for executing the method for discovering logistics user preferences based on machine learning analysis of online reviews as described above.

[0042] (III) Beneficial effects

[0043] The present invention provides a method for discovering logistics user preferences based on machine learning analysis of online reviews. Compared with the prior art, it has the following beneficial effects:

[0044] The present invention takes the online comments of user logistics platforms in the app store as the starting point, solves the problem of how to analyze the needs based on online comments to screen logistics platforms to attract and retain users, and realizes the screening of the preference factors of logistics platforms to attract and retain users based on online comments, and provides optimization suggestions for logistics companies. At the same time, the present invention takes into account both the positive and negative factors of user satisfaction with logistics service needs, and the results are more warning to companies. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0046] Figure 1 The block diagram of a method for discovering logistics user preferences based on machine learning analysis of online reviews in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] The embodiment of the present application solves the technical problem that the prior art cannot accurately analyze the user's logistics preference needs by providing a method for discovering logistics user preferences based on machine learning analysis of online reviews, and realizes the screening of preference factors for the logistics platform to attract and retain customers based on the review data of the logistics platform published by users in the application store.

[0049] The technical solution in the embodiment of the present application is to solve the above technical problems, and the overall idea is as follows:

[0050] Traditional research on logistics service quality and customer satisfaction mostly relies on enterprise surveys, questionnaires and other methods to obtain research data, which has certain timeliness and limitations, and the amount of data is relatively small. Existing research on improving logistics service quality based on online review data is generally aimed at a certain category or brand of a shopping platform, but the logistics services of these online sales companies are mostly outsourced, and the evaluation of the mall is more focused on the quality of the goods, and the obtained review data is not very practical. Therefore, the present invention uses the online reviews of the logistics platform in the application store as research data, and customers publish product evaluation information through social media such as e-commerce to provide reference for other customers. The number of online reviews is usually very high, providing a lot of information, and the results are also more valuable for reference to platform-related companies.

[0051] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0052] It should be noted that, in order to facilitate the subsequent understanding of the solution, the principles of the LDA model and Logistic regression analysis involved in the embodiment of the present invention are briefly explained:

[0053] The LDA generation model has three assumptions:

[0054] (1) Assume there are m documents covering a total of K topics;

[0055] (2) Each document (length N) m ) have their own topic distribution, which is a multinomial distribution with a parameter of α, and follows a Dirichlet distribution;

[0056] (3) Each topic has its own word distribution, which is a multinomial distribution with a parameter of β, which follows a Dirichlet distribution. For the nth word in a document m, we can get the word distribution from the topic distribution θ of the article. m Sampling a topic Z m,n , Z m,n= multi(θ m ); the word distribution corresponding to this topic β m,n Sample a word W from m,n , W m,n =multi(β Z m,n ). Repeat the above process until all m articles have completed the random generation process.

[0057] Next, we need to solve the topic distribution θ of each document. m and the word distribution β for each topic m,n , the Gibbs algorithm is generally used for sampling.

[0058] In order to deal with the problem of two unknown parameters in topic distribution and word distribution, Gibbs sampling needs to first solve the posterior distribution of topic distribution and word distribution. The sampling steps are as follows:

[0059] (1) Determine the number of topics K and select appropriate hyperparameter vectors α and β;

[0060] (2) Randomly assign a topic z to each word in each document;

[0061] (3) Count the words W that appear under each topic z m,n The number of and the number of topics z that appear under each document m;

[0062] (4) Scan each word in the document and calculate the conditional probability distribution p(z i = k | z -i ,w), sample a new topic number according to this probability distribution and assign it to the word;

[0063] (5) Update the next word in the same way and repeat the process (3) and (4) until convergence;

[0064] (6) Count the topics of each word and get the topic distribution θ of each document m , and the word distribution of each topic β m,n .

[0065] Logistic regression analysis

[0066] Logistic regression analysis is a generalized linear regression analysis model, which is often used in data mining, automatic disease diagnosis, economic forecasting and other fields. Logistic regression estimates the probability of an event based on a given set of independent variable data. Since the result is a probability, the range of the dependent variable is between 0 and 1. Independent variables can be either continuous or categorical. Then, through logistic regression analysis, the weights of the independent variables can be obtained, so that we can roughly understand which factors are significant factors. At the same time, based on the weights, the possibility of the dependent variable can be predicted based on the significant factors.

[0067] The binomial logistic regression model uses the logistic function to construct a logistic regression model, and the error term ε i As a linear function related to the independent variable x, that is, ε i =α+βx i , where ɑ is called the regression intercept, β i is called the regression coefficient, x i is the independent variable. At this time, the Logistic distribution function can be rewritten as:

[0068]

[0069] Given input data x i According to the above formula, we can obtain two conditional probability values ​​P(y i =1|x i ) and P(y i =0|x i ). Then compare P(y i =1|x i ) and P(y i =0|x i ) value, and x i The regression coefficient and independent variable are expanded and expressed as a vector, denoted as β, x, that is, β = (α, β1, β2, ..., β p ) T ,x=(1,x1,x2,…,x n ). At this point, the binomial logistic regression model can be expressed as:

[0070]

[0071] If the probability of an event occurring is recorded as P, and the probability of an event not occurring is 1-P, then the probability of the event occurring (the ratio of the probability of the event occurring to the probability of not occurring) is P / (1-P), and the logarithmic probability of the event is

[0072]

[0073] From formulas (4) and (5), we can get the logarithmic probability of outputting Y=1 is

[0074]

[0075] This shows that the logarithmic probability of output Y=1 can be expressed as a linear function of input x, that is, the logarithmic probability of output Y=1 is a model represented by a linear function of input x, namely, the Logistic regression model.

[0076] The embodiment of the present invention provides a method for discovering logistics user preferences based on machine learning analysis of online reviews, such as Figure 1 As shown, the method includes:

[0077] S1. Obtain the review data of the logistics platform published by users in the app store, perform preprocessing, obtain keywords, and use the review data with keywords as the review set;

[0078] S2. Perform sentiment analysis on the comment data in the comment set, divide the comment data into positive emotion comment data, neutral emotion comment data and negative emotion comment data, collect the positive emotion comment data as the positive comment set, and collect the negative emotion comment data as the negative positive comment set;

[0079] S3. Based on the positive comment set, a positive LDA topic model is constructed to determine the positive sentiment theme words; based on the negative positive comment set, a negative LDA topic model is constructed to determine the negative sentiment theme words;

[0080] S4. Based on positive sentiment keywords and positive comment sets, construct a positive "comment-topic" sparse matrix; based on negative sentiment keywords and negative comment sets, construct a negative "comment-topic" sparse matrix;

[0081] S5. Use the positive "comment-topic" sparse matrix and the negative "comment-topic" sparse matrix as input data, and use the Logistic regression model to obtain the user's preference for the logistics platform.

[0082] The embodiment of the present invention takes the online comments of the user logistics platform in the application store as the starting point, solves the problem of how to analyze the demand based on online comments to screen the logistics platform to attract and retain users, and realizes the selection of the preference factors of the logistics platform to attract and retain users based on online comments, and provides optimization suggestions for logistics companies. At the same time, the embodiment of the present invention takes into account both the positive and negative factors of user satisfaction with logistics service needs, and the results are more warning to enterprises.

[0083] The following is a detailed description of each step:

[0084] In one embodiment, S1, obtain the review data of the logistics platform published by the user in the application store, and pre-process it to obtain keywords, and use the review data with keywords as the review set. The specific implementation process is as follows:

[0085] The review data about the logistics platform posted by users in the app store is obtained through crawler technology. The logistics platforms mainly include Cainiao Kuaigou, SF Express, YTO Express, STO Express, Yunda Express, ZTO Express, JD Logistics, Deppon Express, and EMS China Post. Users can leave comments after downloading these software in the app store, and these evaluation data are collected using crawler technologies such as Python. Segmenting the user review text of the app store and finding the sentiment words with higher frequency is the first step in the process of obtaining customized sentiment words. Next, it is necessary to screen and identify buzzwords from the Internet and phrases specific to the logistics and express delivery industry, because users' comments on logistics services are somewhat colloquial. When crawling app store reviews, invalid content such as advertising information and repeated comments will have an adverse effect on the accuracy of the information and deviate from the research results. Therefore, it is always necessary to preprocess the data to ensure the validity and representativeness of the information. The preprocessing process mainly includes:

[0086] (1) Using the pandas package to read the comment data, duplicate and garbled text will be deleted from the data. At the same time, data that is too brief and lacks analytical importance will be manually removed, such as duplicate comments, comments with less than 10 words, advertisements and other invalid information should be deleted. , and the cleaned comment data will be obtained.

[0087] (2) By repeatedly generating high-frequency word lists, single words that have a significant impact on the research significance and irrelevant words are removed to develop banned dictionaries and user-defined dictionaries to enhance the effectiveness of word segmentation results.

[0088] (3) Use the jieba package to perform word segmentation, part-of-speech tagging, and stop word filtering on the cleaned comment data, and select the top m words with the highest term frequency-inverse document frequency (TF-IDF) value as keywords. In the embodiment of the present invention, m=300. The TF-IDF value calculation formula is as follows:

[0089]

[0090] Among them, tf i,j is the frequency of word i in text j, N is the total number of annotated texts in the corpus, df i is the number of texts containing word i.

[0091] In the embodiment of the present invention, in order to more intuitively see the close relationship between the keywords in the comments, the keywords with higher point centrality, and roughly understand the main logistics service demand issues, the embodiment of the present invention also constructs a keyword co-occurrence matrix. Specifically including:

[0092] The keywords obtained by preprocessing are used as row feature words, and the keyword co-occurrence matrix is ​​constructed using Bibexcel software. The row feature words are composed of keywords that represent the meaning expressed by a certain comment. The co-occurrence matrix is ​​used to count the number of co-occurrences of two word vectors in the comment text, which can represent the close relationship between word vectors. The co-occurrence matrix is ​​then imported into Netdraw to draw a social network relationship diagram of the keywords. In the social network diagram, it is easier to see keywords with higher point centrality or keywords that are more related to other keywords. Therefore, the main logistics service demand issues raised in user comments can be roughly evaluated.

[0093] In one embodiment, S2, sentiment analysis is performed on the comment data in the comment set, and the comment data is divided into positive emotion comment data, neutral emotion comment data, and negative emotion comment data, and the positive emotion comment data is collected as the positive comment set, and the negative emotion comment data is collected as the negative positive comment set. The specific implementation process is as follows:

[0094] After calculating the sentiment scores of user comments using the sentiment dictionary, the user's positive, neutral and negative sentiment classification results are obtained. The embodiment of the present invention will construct an LDA topic model based on the collected positive and negative comments to determine the factors affecting user satisfaction with logistics service quality.

[0095] According to the intensity of the emotion expressed by the collected comment data, the sentiment words are assigned an intensity of |1| or |2|, and specific examples are shown in Table 1. c represents the sentiment score of the comment data c.

[0096] Table 1 Example of custom sentiment dictionary

[0097]

[0098] Among them, P(W ci ) indicates the positive and negative polarity of the keyword, deg(W ci ) represents the modified sentiment word W ci The level of the adverb of degree, [(-1) ci ] K Represents the influence of K negative words on the positive and negative polarity of review c.

[0099] In one embodiment, S3, based on the positive comment set, a positive LDA topic model is constructed to determine positive sentiment keywords; based on the negative positive comment set, a negative LDA topic model is constructed to determine negative sentiment keywords. The specific implementation process is as follows:

[0100] S301. Based on the positive comment set, determine the optimal number of topics K1 of the positive LDA topic model, and use the perplexity evaluation method to obtain the optimal number of topics K1; based on the negative comment set, determine the optimal number of topics K2 of the negative LDA topic model, and use the perplexity evaluation method to obtain the optimal number of topics K2.

[0101] The perplexity calculation formula is:

[0102]

[0103] Where L is the size of the review test corpus, w t is the vocabulary sequence of text t, N t is the number of words in text t, p(w t ) is generated in the document t The probability of clustering is 0. Considering that too many topics will lose the analysis significance, the number of topics is selected to be less than 15, and the perplexity index is analyzed by controlling the number of different topics. The lower the perplexity, the better the clustering effect. The number of topics corresponding to the lowest perplexity is selected as the optimal number of topics K.

[0104] Within the optimal number of topics K, adjust the number of positive and negative topics respectively, and analyze the corresponding perplexity index. Similarly, select the number of positive and negative topics corresponding to the lowest perplexity as the optimal number of positive and negative topics K1 and K2.

[0105] S302: Establish a positive LDA topic model based on the optimal number of topics K1 and the positive comment set to determine positive sentiment keywords; establish a negative LDA topic model based on the optimal number of topics K2 and the negative comment set to determine negative sentiment keywords. The specific implementation process is as follows:

[0106] Extract the Dirichlet probability topic distribution from the preprocessed relevant comment data; based on the probability topic distribution, generate topics by sampling at each position of the text; generate corresponding feature word distribution from the previously selected topics using Dirichlet distribution; randomly select a word from the word distribution of the topic. Repeat the above process until the entire topic is generated.

[0107] (1) Sampling the preprocessed relevant comment data to generate comment topic distribution θ based on the optimal topic number K and the corresponding word distribution under each topic Among them, They obey the Dirichlet distribution with prior parameters α and β respectively;

[0108] (2) At each position in the text, i.e., at each word, a topic Z is sampled from the topic distribution θ, and the word distribution corresponding to this topic is Sample a word W from , where Z and W follow a multinomial distribution;

[0109] (3) Based on the optimal number of topics K determined in S301, the machine learning software package Gensim is used to perform LDA topic modeling on the review data, and the number of Gibbs sampling iterations is set to 300. Then, the parameters of the LDA model are set after the determined topic number to establish the keyword distribution of each topic. The words listed under each topic are sorted in descending order according to the posterior probability of occurrence, and the top 15 keywords are selected as the corresponding LDA model results.

[0110] In one embodiment, S4, constructing a positive "comment-topic" sparse matrix based on positive sentiment keywords and positive comment sets; constructing a negative "comment-topic" sparse matrix based on negative sentiment keywords and negative comment sets;

[0111] Taking the positive sentiment keywords and positive comment set as an example, set comment = {c 11 , c2, c3, ..., c m} as the positive review set, set topic = {t1, t2, t3, ..., t n} as the positive sentiment theme word set. The comment set and topic set are used as column and row labels respectively to establish a positive "comment-topic" sparse matrix. The establishment rule is as follows: If the comment c i Included Theme j If a specific topic keyword is included in , it is recorded as 1, and if it is not included, it is recorded as 0. Therefore, the sparse matrix Z m×n The example is obtained as follows.

[0112]

[0113] In one embodiment, S5, using the positive "comment-topic" sparse matrix and the negative "comment-topic" sparse matrix as input data, respectively, the user's preference requirements for the logistics platform are obtained through a Logistic regression model.

[0114] The independent variable is the topic factor, and the dependent variable is the positive / negative sentiment of each text. Positive sentiment indicates the user's satisfaction with the logistics express service and willingness to continue using it, while negative sentiment indicates the opposite. The dependent variable, the positive / negative sentiment of the text, is a typical dichotomous variable, denoted as Y, and each topic factor is denoted as t i (i=1, 2, ..., n). When the log probability of output Y=1 is expressed as input t i (i=1, 2, ..., n), that is, the logarithmic probability of output Y=1 is given by the input t i The model represented by the linear function of (i=1, 2, ..., n) is the Logistic regression model.

[0115] Combined with the "comment-topic" sparse matrix established in S4, SPSS software was used to perform binary logistic regression, and the impact of each extracted topic factor on the user's positive / negative emotions was analyzed. The logistic regression model is as follows:

[0116]

[0117] Among them, p ti is the probability of the event occurring, t i is the extracted subject factor.

[0118] An embodiment of the present invention provides a system for discovering logistics user preferences based on machine learning analysis of online reviews, the system comprising:

[0119] The data acquisition module is used to obtain the review data of the logistics platform published by users in the application store, and pre-process it to obtain keywords, and use the review data with keywords as the review set;

[0120] The sentiment analysis module is used to perform sentiment analysis on the comment data in the comment set, divide the comment data into positive emotion comment data, neutral emotion comment data and negative emotion comment data, collect the positive emotion comment data as the positive comment set, and collect the negative emotion comment data as the negative positive comment set;

[0121] The topic word determination module is used to construct a positive LDA topic model based on the positive comment set and determine the positive sentiment topic words; and to construct a negative LDA topic model based on the negative positive comment set and determine the negative sentiment topic words;

[0122] The matrix construction module is used to construct a positive "comment-topic" sparse matrix based on positive sentiment keywords and positive comment sets; and to construct a negative "comment-topic" sparse matrix based on negative sentiment keywords and negative comment sets;

[0123] The regression analysis module is used to use the positive "comment-topic" sparse matrix and the negative "comment-topic" sparse matrix as input data, and obtain the user's preference requirements for the logistics platform through the Logistic regression model.

[0124] It can be understood that the system for discovering logistics user preferences based on machine learning analysis of online reviews provided in the embodiment of the present invention corresponds to the above-mentioned method for discovering logistics user preferences based on machine learning analysis of online reviews, and the explanations, examples, beneficial effects and other parts of the relevant contents can refer to the corresponding contents in the method for discovering logistics user preferences based on machine learning analysis of online reviews, which will not be repeated here.

[0125] An embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program for discovering logistics user preferences based on machine learning analysis of online reviews, wherein the computer program enables a computer to execute the method for discovering logistics user preferences based on machine learning analysis of online reviews as described above.

[0126] An embodiment of the present invention further provides an electronic device, including:

[0127] one or more processors;

[0128] Memory; and

[0129] One or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, the programs including a method for executing the method for discovering logistics user preferences based on machine learning analysis of online reviews as described above.

[0130] In summary, compared with the prior art, the present invention has the following beneficial effects:

[0131] 1. The embodiment of the present invention takes the online reviews of user logistics platforms in application stores as the starting point, solves the problem of how to analyze needs based on online reviews to screen logistics platforms to attract and retain users, and realizes the screening of preference factors for logistics platforms to attract and retain users based on online reviews, providing optimization suggestions for logistics companies.

[0132] 2. The embodiment of the present invention takes into account both positive and negative factors of user satisfaction with logistics service demand, and the result is more instructive to enterprises.

[0133] 3. The embodiment of the present invention uses machine learning to extract influencing factors and adopts regression analysis to sort the extracted influencing factors, thereby broadening the scope of application of machine learning methods.

[0134] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0135] 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 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 method for discovering logistics user preferences based on machine learning analysis of online reviews, characterized in that: include: Obtain the review data of the logistics platform published by users in the app store, perform preprocessing, obtain keywords, and use the review data with the keywords as the review set; Performing sentiment analysis on the comment data in the comment set, dividing the comment data into positive emotion comment data, neutral emotion comment data and negative emotion comment data, collecting the positive emotion comment data as a positive comment set, and collecting the negative emotion comment data as a negative positive comment set; Based on the positive review set, a positive LDA topic model is constructed to determine positive sentiment keywords; According to the negative and positive comment sets, a negative LDA topic model is constructed to determine negative sentiment topic words; Based on the positive sentiment keywords and the positive comment set, construct a positive "comment-topic" sparse matrix; Based on the negative sentiment topic words and the negative comment set, construct a negative "comment-topic" sparse matrix; The positive "comment-topic" sparse matrix and the negative "comment-topic" sparse matrix are used as input data respectively, and the user's preference demand for the logistics platform is obtained through the Logistic regression model.

2. The method for discovering logistics user preferences based on machine learning analysis of online reviews as claimed in claim 1, characterized in that: The method for discovering logistics user preferences also includes: The keywords are used as row feature words, and Bibexcel software is used to construct a keyword co-occurrence matrix; the co-occurrence matrix is ​​input into Netdraw software to obtain a social network relationship diagram of the keywords.

3. The method for discovering logistics user preferences based on machine learning analysis of online reviews as claimed in claim 1, characterized in that: The performing sentiment analysis on the comment data in the comment set includes: According to the intensity of the emotion expressed in the collected comment data, the sentiment words are assigned an intensity of |1| or |2| and a score is specified. c It represents the sentiment score of comment data c, and its calculation formula is as follows: Among them, P(W ci ) indicates the positive and negative polarity of the keyword, deg(W ci ) represents the modified sentiment word W ci The level of the adverb of degree, [(-1) ci ] K Represents the influence of K negative words on the positive and negative polarity of review c.

4. The method for discovering logistics user preferences based on machine learning analysis of online reviews as claimed in claim 1, characterized in that: According to the positive review set, a positive LDA topic model is constructed to determine positive sentiment keywords; According to the negative and positive comment sets, a negative LDA topic model is constructed to determine negative sentiment keywords, including: Based on the positive review set, the optimal number of topics K1 of the positive LDA topic model is determined, and the perplexity evaluation method is used to obtain the optimal number of topics K1; based on the negative review set, the optimal number of topics K2 of the negative LDA topic model is determined, and the perplexity evaluation method is used to obtain the optimal number of topics K2; Establish a positive LDA topic model based on the optimal number of topics K1 and the positive comment set to determine positive sentiment keywords; A negative LDA topic model is established based on the optimal number of topics K2 and the negative comment set to determine negative sentiment keywords.

5. The method for discovering logistics user preferences based on machine learning analysis of online reviews as described in any one of claims 1 to 4, characterized in that: According to the positive review set, a positive LDA topic model is constructed to determine positive sentiment keywords, including Set comment data {c1, c2, c3, ..., c m } as the positive review set, set topic = {t1, t2, t3, ..., t n } as the positive sentiment theme word set; the comment set and topic set are used as column and row labels respectively to establish a positive "comment-topic" sparse matrix; the rules are established as follows: if the comment c i Included Theme j If a specific topic keyword is included in , it is recorded as 1, and if it is not included, it is recorded as 0; the sparse matrix Z m×n as follows; 6. A system for discovering logistics user preferences based on machine learning analysis of online reviews, characterized in that: include: The data acquisition module is used to obtain the review data of the logistics platform published by users in the application store, and pre-process it to obtain keywords, and use the review data with keywords as the review set; The sentiment analysis module is used to perform sentiment analysis on the comment data in the comment set, divide the comment data into positive emotion comment data, neutral emotion comment data and negative emotion comment data, collect the positive emotion comment data as the positive comment set, and collect the negative emotion comment data as the negative positive comment set; The topic word determination module is used to construct a positive LDA topic model based on the positive comment set and determine the positive sentiment topic words; Based on the negative and positive review sets, a negative LDA topic model is constructed to determine the negative sentiment keywords; The matrix construction module is used to construct a positive "comment-topic" sparse matrix based on positive sentiment keywords and positive comment sets; Based on negative sentiment keywords and negative review sets, a negative "review-topic" sparse matrix is ​​constructed; The regression analysis module is used to use the positive "comment-topic" sparse matrix and the negative "comment-topic" sparse matrix as input data, and obtain the user's preference requirements for the logistics platform through the Logistic regression model.

7. The system for discovering logistics user preferences based on machine learning analysis of online reviews as claimed in claim 6, characterized in that: The system for discovering logistics user preferences also includes: The visualization module is used to use the keywords as row feature words and construct a keyword co-occurrence matrix using Bibexcel software; and obtain a social network relationship diagram of the keywords by inputting the co-occurrence matrix into Netdraw software.

8. The system for discovering logistics user preferences based on machine learning analysis of online reviews as claimed in claim 6, characterized in that: The performing sentiment analysis on the comment data in the comment set includes: According to the intensity of the emotion expressed in the collected comment data, the sentiment words are assigned an intensity of |1| or |2| and a score is specified. c It represents the sentiment score of comment data c, and its calculation formula is as follows: Among them, P(W ci ) indicates the positive and negative polarity of the keyword, deg(W ci ) represents the modified sentiment word W ci The level of the adverb of degree, [(-1) ci ] K Represents the influence of K negative words on the positive and negative polarity of review c.

9. A computer-readable storage medium, characterized in that: It stores a computer program for a method for discovering logistics user preferences based on machine learning analysis of online reviews, wherein the computer program enables a computer to execute a method for discovering logistics user preferences based on machine learning analysis of online reviews as described in any one of claims 1 to 5.

10. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the programs include a method for executing the method for discovering logistics user preferences based on machine learning analysis of online reviews as described in any one of claims 1 to 5.