CN117851688B - Personalized recommendation method based on deep learning and user comment content - Google Patents

Personalized recommendation method based on deep learning and user comment content Download PDF

Info

Publication number
CN117851688B
CN117851688B CN202410253430.8A CN202410253430A CN117851688B CN 117851688 B CN117851688 B CN 117851688B CN 202410253430 A CN202410253430 A CN 202410253430A CN 117851688 B CN117851688 B CN 117851688B
Authority
CN
China
Prior art keywords
emotion
comment
sequence
words
sentence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410253430.8A
Other languages
Chinese (zh)
Other versions
CN117851688A (en
Inventor
温泉
邬兆望
黄于鉴
王志民
冯何阳
邓楷馨
杨帆
侯婷
缪蕊
于梦凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Univeristy of Technology
Original Assignee
Chengdu Univeristy of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Univeristy of Technology filed Critical Chengdu Univeristy of Technology
Priority to CN202410253430.8A priority Critical patent/CN117851688B/en
Publication of CN117851688A publication Critical patent/CN117851688A/en
Application granted granted Critical
Publication of CN117851688B publication Critical patent/CN117851688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of content recommendation, in particular to a personalized recommendation method based on deep learning and user comment content, which comprises the following steps: acquiring commodity comment data of a user, acquiring emotion attribute sequences of each sentence sequence, correcting the emotion attribute sequences to acquire complete emotion attribute sequences, acquiring comment basic emotion scores of each sentence according to the complete emotion attribute sequences, acquiring first-order condition difference sequences of the complete emotion attribute sequences, acquiring emotion analysis difficulty indexes of each sentence according to the first-order condition difference sequences, acquiring comment comprehensive emotion scores of each sentence by combining the comment basic emotion scores and the emotion analysis difficulty indexes, and completing comment content recommendation of the user by combining a neural network. The invention aims to improve the accuracy of user comment content recommendation and realize the accurate recommendation of the user comment content.

Description

Personalized recommendation method based on deep learning and user comment content
Technical Field
The invention relates to the technical field of content recommendation, in particular to a personalized recommendation method based on deep learning and user comment content.
Background
With the development of the internet, data grows in an explosive manner, and users have the characteristics of information overload and ambiguous requirements while accessing information. To cope with this situation, the prior art generally adopts collaborative filtering-based and content-based recommendation algorithms to make personalized recommendations for users, and accesses content-related recommendations according to user history.
In the information historically accessed by the user, not all browsed content is content liked by the user, and the user comments often comprise a plurality of user preferences and comment information for browsing the content. Therefore, a recommendation method based on emotion analysis is generally performed according to user comment information. However, there are often uncertain factors in the user comments to influence the accuracy of emotion analysis, for example, comment texts often adopt metaphor convoying techniques, that is, comments contain deeper meanings, and the meaning is opposite to that expressed by words, so that the complexity of sentence emotion is increased, and emotion tendencies of the user comments are difficult to distinguish.
Disclosure of Invention
In order to solve the technical problems, the invention provides a personalized recommendation method based on deep learning and user comment content so as to solve the existing problems.
The personalized recommendation method based on deep learning and user comment content adopts the following technical scheme:
the embodiment of the invention provides a personalized recommendation method based on deep learning and user comment content, which comprises the following steps:
acquiring a user comment content disclosure data set;
Word segmentation is carried out on the comment content of the user to obtain each sentence sequence; obtaining emotion attribute sequences of each sentence sequence according to the positive emotion words and the negative emotion words in the emotion dictionary; correcting the emotion attribute sequence according to the distribution of the polar emotion words and the negative emotion words in the data set to obtain a complete emotion attribute sequence; combining the complete emotion attribute sequence and the number of negative words in the sentence sequence to obtain comment basic emotion scores of the sentence sequences; acquiring a first-order conditional differential sequence of a complete emotion attribute sequence; obtaining emotion analysis difficulty indexes of each sentence sequence according to the first-order conditional differential sequence; combining the comment basic emotion scores and the emotion analysis difficulty indexes to obtain comment comprehensive emotion scores of each sentence sequence; training a commodity comment emotion classification model by combining the comment comprehensive emotion scores; and the commodity comment emotion classification model is utilized to finish the recommendation of the user comment content.
Preferably, the word segmentation of the comment content of the user to obtain each sentence sequence includes:
And dividing the comment content of each sentence user into each word by using a word segmentation tool, wherein the sentence sequence is the combination of all the words.
Preferably, the obtaining the emotion attribute sequence of each sentence sequence according to the positive emotion words and the negative emotion words in the emotion dictionary includes:
For each sentence sequence, marking the emotion attribute of which the words are positive emotion words in the emotion dictionary as 1, marking the emotion attribute of which the words are negative emotion words in the emotion dictionary as-1, marking the emotion attributes of all the words of other types in the emotion dictionary as 0, and taking all the marked emotion attributes as emotion attribute sequences.
Preferably, the obtaining the complete emotion attribute sequence according to the distribution correction emotion attribute sequence of the polar emotion words and the passive emotion words in the data set includes:
For each sentence sequence, if the words are in the emotion dictionary, the emotion attributes corresponding to the words are complete emotion attributes, otherwise, the times that positive emotion words in the words and the emotion dictionary appear in one sentence simultaneously in the data set are counted and recorded as first times, the times that negative emotion words in the words and the emotion dictionary appear in one sentence simultaneously in the data set are counted and recorded as second times, the difference value between the first times and the second times is calculated, the ratio of the difference value to the total times of the words appearing in the data set is used as the complete emotion attributes of the words, and the complete emotion attributes of all the words are used as complete emotion attribute sequences.
Preferably, the obtaining the comment basic emotion score of each sentence sequence by combining the complete emotion attribute sequence and the number of negative words in the sentence sequence includes:
Counting the times of occurrence of negative words in the sentence sequence, taking the times as an index of an exponential function taking-1 as a base, calculating the product of the calculation result of the exponential function and the complete emotion attribute of each word in the sentence sequence, and taking the sum of the products of all the words in the sentence sequence as the comment base emotion score of the sentence sequence.
Preferably, the obtaining the first-order conditional differential sequence of the complete emotion attribute sequence includes:
The expression of the element values in the first-order conditional differential sequence is:
in the method, in the process of the invention, Representing the value of the ith element in the first order conditional differential sequence,/>Complete emotion attributes representing the ith word in a sentence sequence,/>Complete emotion attributes representing the i-1 st word in a sentence sequence,/>Representing natural constants.
Preferably, the obtaining the emotion analysis difficulty index of each sentence sequence according to the first-order conditional differential sequence includes:
And taking the average value of all elements of the first-order conditional differential sequence as the emotion analysis difficulty index of each sentence sequence aiming at the first-order conditional differential sequence of each sentence sequence.
Preferably, the method for obtaining the comment comprehensive emotion score of each sentence sequence by combining the comment basic emotion score and the emotion analysis difficulty index includes:
And aiming at each sentence sequence, calculating the ratio of the comment basic emotion score to the emotion analysis difficulty index, and taking the normalized value of the ratio as the comment comprehensive emotion score of each sentence sequence.
Preferably, the training of the commodity comment emotion classification model by combining the comment comprehensive emotion score comprises the following steps:
and aiming at each comment in the data set, if the comment comprehensive emotion score of the corresponding sentence sequence is greater than 0, marking the label of the comment as like, otherwise, marking the label as dislike, marking the commodity comment emotion classification model as a convolutional neural network, and training all comments marked by the commodity comment emotion classification model.
Preferably, the method for completing user comment content recommendation by using the commodity comment emotion classification model includes:
And taking multiple comments of a single user aiming at the single commodity as input of a trained commodity comment emotion classification model, outputting labels of all comments, taking the average value of the corresponding scores of all labels as the preference of the current user on the commodity, acquiring other users with the same preference as the current user on the commodity, and taking the commodity with the highest preference among all commodities liked by the other users as the recommended content of the current user.
The invention has at least the following beneficial effects:
according to the method, personalized commodity recommendation is realized for the user according to feedback of the user by analyzing commodity comment data of the user; acquiring emotion attributes of each word in the sentence sequence through the emotion dictionary, calculating a complete emotion attribute sequence of the sentence sequence, acquiring comment basic emotion scores and emotion analysis difficulty indexes of the sentence sequence, acquiring comment comprehensive emotion scores of the sentence sequences, training commodity comment emotion classification models according to the comment comprehensive emotion scores of the sentence sequences, and performing personalized recommendation for users according to classification results. The method and the system solve the problem of low commodity recommendation accuracy of the user due to complex and changeable comment content expression modes and difficult semantic understanding, and effectively reduce the wrong classification condition of the commodity comment emotion classification model on complex sentences by analyzing emotion analysis difficulty indexes of sentence sequences, so that personalized recommendation is realized for the user more accurately.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions and advantages of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating steps of a personalized recommendation method based on deep learning and user comment content according to an embodiment of the present invention;
FIG. 2 is a flowchart for obtaining user content recommendation index.
Detailed Description
In order to further describe the technical means and effects adopted by the invention to achieve the preset aim, the following detailed description is given below with reference to the accompanying drawings and the preferred embodiments, wherein the specific implementation, structure, characteristics and effects of the personalized recommendation method based on deep learning and user comment content according to the invention are as follows. In the following description, different "one embodiment" or "another embodiment" means that the embodiments are not necessarily the same. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The specific scheme of the personalized recommendation method based on deep learning and user comment content provided by the invention is specifically described below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for personalized recommendation based on deep learning and user comment content according to an embodiment of the invention is shown, and the method includes the following steps:
and S001, obtaining user comment content data and preprocessing.
The embodiment adopts the commodity comment public data set for analysis, wherein a large number of commodity comments from an online shopping platform are included, and the commodity comments comprise commodity information, comment texts, commenter IDs, comment time and the like.
The comment text in the commodity comment public data set is segmented, the segmentation tool adopted in the embodiment is NLTK tool kit, and an implementer can select other segmentation tools according to actual conditions, so that the embodiment does not limit the segmentation tools.
Step S002, obtaining complete emotion attribute sequences of each sentence sequence according to the emotion dictionary, obtaining comment basic emotion scores according to the complete emotion attribute sequences, and further obtaining emotion analysis difficulty indexes to obtain comment comprehensive emotion scores.
Specifically, in this embodiment, commodity comment data of a user is obtained, an emotion attribute sequence of each sentence sequence is obtained, the emotion attribute sequence is corrected to obtain a complete emotion attribute sequence, comment basic emotion scores of each sentence are obtained according to the complete emotion attribute sequence, a first-order conditional differential sequence of the complete emotion attribute sequence is obtained, emotion analysis difficulty indexes of each sentence are obtained according to the first-order conditional differential sequence, comment comprehensive emotion scores of each sentence are obtained by combining the comment basic emotion scores and the emotion analysis difficulty indexes, user comment content recommendation is completed by combining a neural network, and a user content recommendation index obtaining flow chart is shown in fig. 2. The construction process of the comment comprehensive emotion scores of each sentence sequence specifically comprises the following steps:
In general, when a personalized recommendation service is performed for a user, it is necessary to browse content analysis features according to the history of the user and then recommend related commodities to the user according to the features. But there is a phenomenon that the user does not feel the sense of the front after browsing a certain item, i.e., not all the browsed contents are the contents that the user likes. Therefore, the real feeling and comments of the user on the commodity are required to be obtained by analyzing the comment content of the user. So that the recommendation system can better conduct personalized recommendation service for the user. Since the comment text is not a normal text, it is possible that the sentence component of the user comment is incomplete or that the meaning expressed by the user is opposite to the literal meaning, which would seriously affect the understanding of the user comment content.
In order to obtain a commodity comment emotion classification model with more robustness, the embodiment is provided. And further feature extraction of the comment information of the user is completed, and emotion resolution capability of comment content is improved.
When the user has poor feeling on the commodity, the user can express in a metaphor mode, and the metaphor can express emotion and attitude of the user more implicitly, especially when the user is not full of the commodity. However, from a text emotion analysis perspective, metaphors increase the complexity of the analysis, often requiring an understanding in combination with the context and cultural background. Therefore, special attention needs to be paid to the use of metaphors in performing emotion analysis to ensure that the emotion tendencies of the user can be accurately captured.
Firstly, the emotion score of each word in a sentence is obtained through an emotion dictionary. The present embodiment uses a net emotion dictionary that includes positive emotion words such as "happy", and the like, and negative emotion words such as "painful", "anger", and the like. The practitioner can select other emotion dictionaries according to the actual situation, and the embodiment is not limited to this.
Firstly, each sentence comment in the commodity comment public data set is used as a sentence sequence, and the sentence sequence is defined asWherein each element represents a word, and the emotion attribute of each word in the sentence is determined according to the emotion dictionary to obtain an emotion attribute sequence/>Emotion attribute sequence/>Each element in the sentence sequence represents the emotion attribute of each word corresponding to the sentence sequence, the emotion attribute of the positive emotion word is marked as '1', the emotion attribute of the negative emotion word is marked as '1', and the emotion attributes of all words of other types in the emotion dictionary are marked as '0'. However, some words in some sentences in a specific scene, although not belonging to an emotion dictionary, express a certain emotion, for example: "this computer is not only inexpensive but also waterproof", where "inexpensive" and "waterproof" are positive words in this particular scenario of the computer, but it does not belong to affective words. Therefore, the embodiment needs to score emotion for the words not in the emotion dictionary, so as to obtain a complete emotion attribute sequence/>Wherein/>The expression is:
in the method, in the process of the invention, Complete emotion attributes representing the ith word in a sentence sequence,/>Representing the emotion attribute of the i-th word in the sentence sequence; /(I)Representing the number of times that the ith word and the positive emotion word in the sentence sequence are simultaneously present in one sentence sequence in the commodity comment public data set,/>Representing the number of times that the ith word and the negative emotion word in the sentence sequence are simultaneously present in one sentence sequence in the commodity comment public data set; /(I)Representing the total number of times that the ith word in the sentence sequence appears in the commodity comment public data set; /(I)Representing an ith word in the sentence sequence; /(I)Representing emotion dictionary,/>The representation belongs to,/>The representation does not belong. Will/>The number of times is noted as a first number of times,Recorded as the second number.
When the words in the sentence sequence do not belong to the emotion dictionary, the emotion attribute of each word needs to be calculated. When the number of times that a word in a sentence sequence appears with a positive emotion word is greater and the number of times that the word appears with a negative emotion word is smaller, then the word is more likely to express a positive emotion, andAbove/>The more the positive emotion is, the higher the negative emotion is, otherwise, the more likely the word expresses negative emotion, and/>Higher thanThe more, the higher the negative emotion. Thus, the complete emotion attribute of each word in the sentence sequence can be obtained.
When considering the emotion score of a sentence sequence, the original emotion direction of the sentence sequence is changed when there are negative words in the sentence sequence, and the original emotion direction is canceled when there are a plurality of negative words, i.e. "double negative representation affirmative", for example, in the case where two negative words are contained in the sentence sequence, such as "i have to dislike him". The original emotional direction is negative because of the negative word "offensive". However, since the negation word "no" occurs twice, the change in emotion direction of the sentence sequence is counteracted without change and still interpreted as negative. Therefore, the comment basic emotion score of each sentence sequence is constructed, and the expression is as follows:
in the method, in the process of the invention, Comment base emotion score representing sentence sequence,/>The number of words contained in the sentence sequence is represented,Representing the number of negative words in the sentence sequence; /(I)Representing the complete emotion attributes of the i-th word in the sentence sequence.
When the sum of the complete emotion attributes of the words in the sentence sequence is greater than 0, the basic emotion attribute of the sentence sequence is more biased to positive emotion, otherwise, the basic emotion attribute of the sentence sequence is more biased to negative attribute; meanwhile, when the number of the negative words is odd, the basic emotion attribute direction of the sentence sequence is indicated to be changed, otherwise, the basic emotion attribute of the sentence sequence is indicated to be unchanged.
When the emotion tendencies of the comment content of the user are analyzed, the simpler the sentence sequence expression is, the easier the comment basic emotion score of the sentence sequence is calculated by analyzing the complete emotion attributes of each word in the sentence sequence. The simpler the sentence sequence expression, the less likely the hidden meaning exists, the more the sentence sequence tends to literally express the meaning, and the complete emotion attribute sequence based on the sentence sequenceFirst-order conditional differential sequence/>, of complete emotion attribute sequence is calculatedWherein/>The expression is:
in the method, in the process of the invention, Representing the value of the ith element in the first order conditional differential sequence,/>Complete emotion attributes representing the ith word in a sentence sequence,/>Complete emotion attributes representing the i-1 st word in a sentence sequence,/>Representing natural constants.
Then according to the first order conditional differential sequenceConstructing emotion analysis difficulty indexes of sentence sequences, wherein the expression is as follows:
in the method, in the process of the invention, Emotion analysis difficulty index representing sentence sequence,/>Representing the number of words contained in a sentence sequence,/>Representing the value of the i-th element in the first order conditional differential sequence.
When the product of the complete emotion attributes of the i-th word and the previous word in the sentence sequence is larger than 0, the meaning of the emotion words of the two words belonging to the same emotion direction is that the emotion attributes of the two words both represent positive emotion or both represent negative emotion,The larger the emotion expression vocabulary of the sentence sequence is, the more the emotion analysis difficulty index is, otherwise, the smaller the emotion expression vocabulary of the sentence sequence is, and the emotion analysis difficulty index is also smaller; when the product of the complete emotion attribute of the i-th word and the previous word in the sentence sequence is less than or equal to 0, the meaning that the two words belong to emotion words with opposite emotion directions is that one emotion attribute of the two words is negative emotion and the other emotion attribute of the two words is positive emotion.
The comment base emotion score of the sentence sequence mainly analyzes and expresses emotion tendencies of the whole sentence from the complete emotion attribute aspect of each word. However, if the emotion expression of the sentence sequence is complex, the higher the emotion analysis difficulty is, the lower the confidence of the comment basic emotion score calculated based on the steps is, and the comment comprehensive emotion score of the sentence sequence is constructed, wherein the expression is as follows:
in the method, in the process of the invention, Comment comprehensive emotion score representing sentence sequence,/>Representing normalization function to make data value in (-1, 1) interval,/>Comment base emotion score representing sentence sequence,/>And representing the emotion analysis difficulty index of the sentence sequence.
When the comment base emotion score of the sentence sequence is greater than "0", it is indicated that positive emotion of the sentence sequence is expressed from the complete emotion attribute analysis of the word,The larger the positive emotion is, the stronger; when the basic emotion score of the sentence sequence is less than or equal to 0, the method indicates that the negative emotion of the sentence sequence is expressed from the complete emotion attribute analysis of the words,/>The smaller the negative emotion is, the stronger; when the emotion analysis difficulty index of the sentence sequence is large, the expression method is more complicated, the confidence of the comment basic emotion score of the sentence sequence is smaller, the comment comprehensive emotion score of the final sentence sequence is smaller, and conversely, the confidence of the comment basic emotion score of the sentence sequence is larger, and the comment comprehensive emotion score of the final sentence sequence is larger.
And step S003, training a commodity comment emotion classification model according to the comment comprehensive emotion score of each sentence sequence, and performing personalized recommendation for the user.
According to the embodiment, the comment comprehensive emotion score of each sentence sequence in the commodity comment public data set is obtained, wherein the value range of the comment comprehensive emotion score is in a (-1, 1) interval, the label of the sentence sequence with the comment comprehensive emotion score being more than 0 is marked as like, and the label of the sentence sequence with the comment comprehensive emotion score being less than or equal to 0 is marked as dislike, so that the commodity comment emotion classification model is trained.
In this embodiment, the commodity comment emotion classification model adopts a convolutional neural network model, and an implementer can select other models according to actual conditions, which is not limited in this embodiment, and the convolutional neural network model and the training process of the convolutional neural network model are both existing known techniques, which are not described in detail herein. The optimizer of the convolutional neural network model adopts Adam, and the loss function adopts cross entropy loss function.
And providing personalized recommendation for the user by adopting a collaborative filtering recommendation method based on the user, taking a plurality of comments of a single user on a single commodity as input of a trained commodity comment emotion classification model, outputting a label of each comment, taking the average value of the corresponding scores of all labels as the preference of the current user on the commodity, acquiring other users with the same preference as the current user on the commodity, and taking the commodity with the highest preference among all commodities liked by the other users as the recommended content of the current user.
In conclusion, the embodiment of the invention solves the problem of low commodity recommendation accuracy of users due to complex and changeable comment content expression modes and difficult semantic understanding, effectively reduces the wrong classification condition of a commodity comment emotion classification model on complex sentences by analyzing emotion analysis difficulty indexes of sentence sequences, and improves the accuracy of the user recommendation content.
It should be noted that: the sequence of the embodiments of the present invention is only for description, and does not represent the advantages and disadvantages of the embodiments. And the foregoing description has been directed to specific embodiments of this specification. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing description of the preferred embodiments of the present invention is not intended to be limiting, but rather, any modifications, equivalents, improvements, etc. that fall within the principles of the present invention are intended to be included within the scope of the present invention.

Claims (3)

1. The personalized recommendation method based on deep learning and user comment content is characterized by comprising the following steps of:
acquiring a user comment content disclosure data set;
Word segmentation is carried out on the comment content of the user to obtain each sentence sequence; obtaining emotion attribute sequences of each sentence sequence according to the positive emotion words and the negative emotion words in the emotion dictionary; correcting the emotion attribute sequence according to the distribution of the polar emotion words and the negative emotion words in the data set to obtain a complete emotion attribute sequence; combining the complete emotion attribute sequence and the number of negative words in the sentence sequence to obtain comment basic emotion scores of the sentence sequences; acquiring a first-order conditional differential sequence of a complete emotion attribute sequence; obtaining emotion analysis difficulty indexes of each sentence sequence according to the first-order conditional differential sequence; combining the comment basic emotion scores and the emotion analysis difficulty indexes to obtain comment comprehensive emotion scores of each sentence sequence; training a commodity comment emotion classification model by combining the comment comprehensive emotion scores; the commodity comment emotion classification model is utilized to complete user comment content recommendation;
The obtaining the emotion attribute sequence of each sentence sequence according to the positive emotion words and the negative emotion words in the emotion dictionary comprises the following steps:
For each sentence sequence, marking the emotion attribute of which the words are positive emotion words in the emotion dictionary as 1, marking the emotion attribute of which the words are negative emotion words in the emotion dictionary as-1, marking the emotion attribute of all the words of other types in the emotion dictionary as 0, and taking all the marked emotion attributes as emotion attribute sequences;
The obtaining of the complete emotion attribute sequence according to the distribution correction emotion attribute sequence of the polar emotion words and the passive emotion words in the data set comprises the following steps:
For each sentence sequence, if the words are in the emotion dictionary, the emotion attributes corresponding to the words are complete emotion attributes, otherwise, counting the number of times that positive emotion words in the words and the emotion dictionary appear in one sentence simultaneously in the data set, recording the number of times as a first time, counting the number of times that negative emotion words in the words and the emotion dictionary appear in one sentence simultaneously in the data set, recording the number of times as a second time, calculating the difference value between the first time and the second time, taking the ratio of the difference value to the total number of times that the words appear in the data set as the complete emotion attributes of the words, and taking the complete emotion attributes of all the words as the complete emotion attribute sequence;
The method for obtaining comment basic emotion scores of each sentence sequence by combining the complete emotion attribute sequence and the number of negative words in the sentence sequence comprises the following steps:
Counting the times of occurrence of negative words in a sentence sequence, taking the times as an index of an exponential function taking-1 as a base, calculating the product of the calculation result of the exponential function and the complete emotion attribute of each word in the sentence sequence, and taking the sum of the products of all the words in the sentence sequence as the comment basic emotion score of the sentence sequence;
the first-order conditional differential sequence for obtaining the complete emotion attribute sequence comprises the following steps:
The expression of the element values in the first-order conditional differential sequence is:
Wherein t i represents the value of the ith element in the first-order conditional differential sequence, q 'i represents the complete emotion attribute of the ith word in the sentence sequence, q' i-1 represents the complete emotion attribute of the i-1 th word in the sentence sequence, and e represents a natural constant;
The emotion analysis difficulty index of each sentence sequence is obtained according to the first-order conditional differential sequence, and the emotion analysis difficulty index comprises the following steps:
aiming at the first-order conditional differential sequences of each sentence sequence, taking the average value of all elements of the first-order conditional differential sequences as the emotion analysis difficulty index of each sentence sequence;
the comment comprehensive emotion score of each sentence sequence is obtained by combining the comment basic emotion score and the emotion analysis difficulty index, and the method comprises the following steps:
for each sentence sequence, calculating the ratio of the comment basic emotion score to the emotion analysis difficulty index, and taking the normalized value of the ratio as the comment comprehensive emotion score of each sentence sequence;
The method for completing user comment content recommendation by using the commodity comment emotion classification model comprises the following steps:
And taking multiple comments of a single user aiming at the single commodity as input of a trained commodity comment emotion classification model, outputting labels of all comments, taking the average value of the corresponding scores of all labels as the preference of the current user on the commodity, acquiring other users with the same preference as the current user on the commodity, and taking the commodity with the highest preference among all commodities liked by the other users as the recommended content of the current user.
2. The personalized recommendation method based on deep learning and user comment content according to claim 1, wherein the word segmentation of the user comment content to obtain each sentence sequence includes:
And dividing the comment content of each sentence user into each word by using a word segmentation tool, wherein the sentence sequence is the combination of all the words.
3. The personalized recommendation method based on deep learning and user comment content according to claim 1, wherein training the commodity comment emotion classification model in combination with comment integrated emotion scores comprises:
and aiming at each comment in the data set, if the comment comprehensive emotion score of the corresponding sentence sequence is greater than 0, marking the label of the comment as like, otherwise, marking the label as dislike, marking the commodity comment emotion classification model as a convolutional neural network, and training all comments marked by the commodity comment emotion classification model.
CN202410253430.8A 2024-03-06 2024-03-06 Personalized recommendation method based on deep learning and user comment content Active CN117851688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410253430.8A CN117851688B (en) 2024-03-06 2024-03-06 Personalized recommendation method based on deep learning and user comment content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410253430.8A CN117851688B (en) 2024-03-06 2024-03-06 Personalized recommendation method based on deep learning and user comment content

Publications (2)

Publication Number Publication Date
CN117851688A CN117851688A (en) 2024-04-09
CN117851688B true CN117851688B (en) 2024-05-03

Family

ID=90532748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410253430.8A Active CN117851688B (en) 2024-03-06 2024-03-06 Personalized recommendation method based on deep learning and user comment content

Country Status (1)

Country Link
CN (1) CN117851688B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710680A (en) * 2018-05-18 2018-10-26 哈尔滨理工大学 It is a kind of to carry out the recommendation method of the film based on sentiment analysis using deep learning
CN110517121A (en) * 2019-09-23 2019-11-29 重庆邮电大学 Method of Commodity Recommendation and the device for recommending the commodity based on comment text sentiment analysis
CN111401936A (en) * 2020-02-26 2020-07-10 中国人民解放军战略支援部队信息工程大学 Recommendation method based on comment space and user preference
CN112364646A (en) * 2020-11-18 2021-02-12 安徽财经大学 Sentence comment emotion polarity analysis method considering modifiers
CN114926239A (en) * 2022-05-16 2022-08-19 重庆大学 Commodity recommendation method, system and equipment based on comment information and scoring matrix
CN116757794A (en) * 2023-08-17 2023-09-15 酒仙网络科技股份有限公司 Big data-based product recommendation method in wine selling applet

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11570131B1 (en) * 2019-12-23 2023-01-31 Reputation.Com, Inc. Impact-based strength and weakness determination
WO2021178731A1 (en) * 2020-03-04 2021-09-10 Karl Denninghoff Neurological movement detection to rapidly draw user attention to search results

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710680A (en) * 2018-05-18 2018-10-26 哈尔滨理工大学 It is a kind of to carry out the recommendation method of the film based on sentiment analysis using deep learning
CN110517121A (en) * 2019-09-23 2019-11-29 重庆邮电大学 Method of Commodity Recommendation and the device for recommending the commodity based on comment text sentiment analysis
CN111401936A (en) * 2020-02-26 2020-07-10 中国人民解放军战略支援部队信息工程大学 Recommendation method based on comment space and user preference
CN112364646A (en) * 2020-11-18 2021-02-12 安徽财经大学 Sentence comment emotion polarity analysis method considering modifiers
CN114926239A (en) * 2022-05-16 2022-08-19 重庆大学 Commodity recommendation method, system and equipment based on comment information and scoring matrix
CN116757794A (en) * 2023-08-17 2023-09-15 酒仙网络科技股份有限公司 Big data-based product recommendation method in wine selling applet

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
A quantum-inspired classical algorithm for recommendation systems;Ewin Tang;《STOC 2019: Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing》;20190623;217-228 *
Deep Learning-Embedded Social Internet of Things for Ambiguity-Aware Social Recommendations;Zhiwei Guo 等;《IEEE Transactions on Network Science and Engineering》;20220630;第9卷(第3期);1067-1081 *
基于深度学习的机载LiDAR点云滤波方法;李海枫 等;《成都理工大学学报(自然科学版)》;20230317;第50卷(第03期);376-384 *
面向个性化推荐的在线评论细粒度情感分析研究及应用;赵佳艳;《中国优秀硕士学位论文全文数据库 信息科技辑》;20220615(第06期);I138-640 *
面向大规模电商评论的情感分析与兴趣挖掘研究;李铁;《中国博士学位论文全文数据库 经济与管理科学辑》;20180915(第09期);J157-2 *

Also Published As

Publication number Publication date
CN117851688A (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN110162593B (en) Search result processing and similarity model training method and device
CN107133213B (en) Method and system for automatically extracting text abstract based on algorithm
CN104008091B (en) A kind of network text sentiment analysis method based on emotion value
CN105183833B (en) Microblog text recommendation method and device based on user model
CN107992531A (en) News personalization intelligent recommendation method and system based on deep learning
CN111897967A (en) Medical inquiry recommendation method based on knowledge graph and social media
CN110765260A (en) Information recommendation method based on convolutional neural network and joint attention mechanism
CN112241626B (en) Semantic matching and semantic similarity model training method and device
CN108154395A (en) A kind of customer network behavior portrait method based on big data
CN111488931A (en) Article quality evaluation method, article recommendation method and corresponding devices
CN107357793A (en) Information recommendation method and device
CN112966091B (en) Knowledge map recommendation system fusing entity information and heat
CN111506831A (en) Collaborative filtering recommendation module and method, electronic device and storage medium
CN112231593B (en) Financial information intelligent recommendation system
CN112214661A (en) Emotional unstable user detection method for conventional video comments
CN116680363A (en) Emotion analysis method based on multi-mode comment data
CN113934835B (en) Retrieval type reply dialogue method and system combining keywords and semantic understanding representation
CN116595975A (en) Aspect-level emotion analysis method for word information enhancement based on sentence information
CN113204624B (en) Multi-feature fusion text emotion analysis model and device
CN111259156A (en) Hot spot clustering method facing time sequence
CN113449200B (en) Article recommendation method and device and computer storage medium
CN110334204B (en) Exercise similarity calculation recommendation method based on user records
CN110968675B (en) Recommendation method and system based on multi-field semantic fusion
CN117851688B (en) Personalized recommendation method based on deep learning and user comment content
CN115510326A (en) Internet forum user interest recommendation algorithm based on text features and emotional tendency

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant