CN103473291B - Personalized service recommendation system and method based on latent semantic probability models - Google Patents

Personalized service recommendation system and method based on latent semantic probability models Download PDF

Info

Publication number
CN103473291B
CN103473291B CN201310392446.9A CN201310392446A CN103473291B CN 103473291 B CN103473291 B CN 103473291B CN 201310392446 A CN201310392446 A CN 201310392446A CN 103473291 B CN103473291 B CN 103473291B
Authority
CN
China
Prior art keywords
service
user
hidden
preference
index
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.)
Expired - Fee Related
Application number
CN201310392446.9A
Other languages
Chinese (zh)
Other versions
CN103473291A (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.)
Institute of Software of CAS
Original Assignee
Institute of Software of CAS
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 Institute of Software of CAS filed Critical Institute of Software of CAS
Priority to CN201310392446.9A priority Critical patent/CN103473291B/en
Publication of CN103473291A publication Critical patent/CN103473291A/en
Application granted granted Critical
Publication of CN103473291B publication Critical patent/CN103473291B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

本发明涉及一种基于隐语义概率模型的个性化服务推荐系统及方法,属于服务计算技术领域,包括以下步骤:确定用于评价一系列功能相似服务的性能优劣的QoS指标体系;建立用户、用户指标偏好以及服务情境三者之间的隐语义概率模型;收集系统内不同用户在不同的服务情境下使用不同功能的服务时通过与系统交互提供的指标偏好信息,并存入历史经验数据库;用已收集的数据训练隐语义概率模型的参数;当用户不熟悉某种服务情境,但需要在该服务情景下调用特定功能服务时,利用已训练的隐语义概率模型对该用户的指标偏好进行预测;根据预测出的用户个性化的QoS指标偏好,对候选服务进行综合筛选,从中选出最贴近该用户需求的服务,从而实现个性化服务推荐。

The invention relates to a personalized service recommendation system and method based on a hidden semantic probability model, which belongs to the technical field of service computing and includes the following steps: determining a QoS index system for evaluating the performance of a series of similarly functioning services; establishing a user, The implicit semantic probability model between user index preference and service context; collect the index preference information provided by different users in the system when they use services with different functions in different service contexts through interaction with the system, and store them in the historical experience database; Use the collected data to train the parameters of the latent semantic probability model; when the user is not familiar with a certain service situation, but needs to call a specific function service in this service situation, use the trained latent semantic probability model to evaluate the user's index preference Prediction: According to the predicted user's personalized QoS index preference, the candidate services are comprehensively screened, and the service that is closest to the user's needs is selected from them, so as to realize personalized service recommendation.

Description

一种基于隐语义概率模型的个性化服务推荐系统及方法A Personalized Service Recommendation System and Method Based on Latent Semantic Probability Model

技术领域technical field

本发明属于服务计算技术领域,具体涉及一种基于隐语义概率模型的个性化服务推荐系统及方法。The invention belongs to the technical field of service computing, and in particular relates to a personalized service recommendation system and method based on a hidden semantic probability model.

背景技术Background technique

随着互联网技术的飞速发展,服务计算技术得到了广泛应用,Web服务就是这样一种分布运行于Internet之上、支持不同平台之间互操作的松耦合软件系统,它主要通过“发布-查找-绑定”的模式允许服务使用者和提供者之间形成松散的绑定关系,这为服务的使用奠定了基础。但web服务的使用者和提供者相分离的特性,增加了服务使用者理解服务的难度,同时随着Internet上运行的web服务数量不断增多,服务使用者需要从众多功能相似的服务中选出最符合自身需求的一个或一组服务,这对大多数缺乏专业知识的服务使用者来说无疑是一项繁重的任务,所以发展有效的服务推荐技术是服务选择的必然需求。With the rapid development of Internet technology, service computing technology has been widely used. Web service is such a loosely coupled software system that runs on the Internet and supports interoperability between different platforms. The "binding" pattern allows for a loosely bound relationship between service consumers and providers, which lays the foundation for service usage. However, the separation of users and providers of web services increases the difficulty for service users to understand services. At the same time, as the number of web services running on the Internet continues to increase, service users need to choose from many services with similar functions. It is undoubtedly a heavy task for most service users who lack professional knowledge to find a service or a group of services that best meet their own needs, so the development of effective service recommendation technology is an inevitable requirement for service selection.

经过对现有技术的检索发现,中国专利申请号200710162463.8,记载了一种自适应服务推荐设备,该装置主要包括:语义分析装置、服务选择装置、服务推荐装置;语义分析装置用于对用户的查询进行语义上的分析;服务选择装置用于找出与语义分析后的查询对应的选择的服务,并根据选择的服务更新服务相关数据库;最后服务推荐装置用于利用获取的选择的服务来查找服务相关数据库以向用户推荐相关服务。After searching the prior art, it is found that Chinese patent application number 200710162463.8 records an adaptive service recommendation device, which mainly includes: a semantic analysis device, a service selection device, and a service recommendation device; the semantic analysis device is used for the user's Perform semantic analysis on the query; the service selection device is used to find out the selected service corresponding to the query after the semantic analysis, and update the service-related database according to the selected service; finally, the service recommendation device is used to use the obtained selected service to search Serving related databases to recommend related services to users.

进一步检索发现,中国专利申请号200910236492.3,记载了一种个性化服务推荐系统和方法,该方法主要包括:用户信息收集器监控在终端进行的各种操作信息,并进行预处理后存入用户信息数据库,若用户信息数据库方法更新,则启动用户行为分析器进行分析;用户行为分析器扫描用户信息数据库,提取新的用户信息并计入资源信息数据库,计算新的推荐策略并记入推荐策略数据库;上下文感知处理器感知用户的当前上下文,输出当前的上下文描述信息,启动个性化推荐处理器;个性化推荐处理器接收来自上下文感知处理器的消息后,获得当前上下文信息,通过检索推荐策略数据库,获得匹配的左右推荐策略,并按照左右推荐策略通过检索资源信息数据库,匹配合适的资源信息,实时生成个性化推荐服务。Further search found that Chinese patent application number 200910236492.3 records a personalized service recommendation system and method, which mainly includes: the user information collector monitors various operation information performed on the terminal, and stores user information after preprocessing Database, if the user information database method is updated, start the user behavior analyzer for analysis; the user behavior analyzer scans the user information database, extracts new user information and counts it into the resource information database, calculates a new recommendation strategy and records it into the recommendation strategy database ;The context-aware processor perceives the user's current context, outputs the current context description information, and starts the personalized recommendation processor; after receiving the message from the context-aware processor, the personalized recommendation processor obtains the current context information, and retrieves the recommendation strategy database , obtain the matching left and right recommendation strategies, and match the appropriate resource information by searching the resource information database according to the left and right recommendation strategies, and generate personalized recommendation services in real time.

进一步检索发现,中国专利申请号20121014234.2记录了一种基于上下文感知和用户偏好的空间信息服务匹配方法,在用户的服务请求和候选空间信息服务的功能性匹配和非功能性匹配的基础上,考虑上下文敏感的用户偏好,计算出用户服务需求与智能空间中的各候选空间信息服务的匹配度,然后依据匹配度将候选空间信息服务推荐给用户;虽然用户可能具有固定的或者重复的偏好,但这些偏好不是在任何时候都相关,该发明基于上下文感知和用户偏好的空间信息服务匹配方法从上下文的角度对用户偏好进行精简,剔除与用户无关的用户偏好;该发明从功能匹配和非功能匹配两个方面进行匹配度计算,提高空间信息服务匹配的准确率。Further search found that Chinese Patent Application No. 20121014234.2 records a spatial information service matching method based on context awareness and user preference. On the basis of functional matching and non-functional matching between user service requests and candidate spatial information services, consider Context-sensitive user preferences, calculate the matching degree of user service needs and each candidate spatial information service in the smart space, and then recommend the candidate spatial information service to the user according to the matching degree; although the user may have fixed or repeated preferences, but These preferences are not relevant at any time, the invention based on context awareness and user preference spatial information service matching method streamlines user preferences from the perspective of context, and eliminates user preferences irrelevant to users; the invention combines functional matching and non-functional matching Two aspects are used to calculate the matching degree to improve the accuracy of spatial information service matching.

进一步检索发现,中国专利申请号201210253884.2记录了一种用于Web服务推荐的个性化搜索方法,包括以下步骤:步骤1,预处理WSDL文档:通过去除停用词和提取词干两个预处理步骤,形成词袋;步骤2,抽取用户兴趣:使用改进的TF-IDF公式计算词袋中的每一个词的权重,并乘以该词的时间衰减因子,得到新的权重;选择权重由大至小前k个词作为用户的兴趣词,以及每个词的对应权重,组成k维的用户兴趣向量;步骤3,计算兴趣相似度:设定相似度阈值,超过阈值的用户入选为目标用户的邻居用户;步骤4,排序服务检索结果,根据邻居用户的相似度及其选择服务的次数计算服务的推荐预测值,并将检索结果按照推荐预测值降序排列,从而得到个性化搜索结果。Further search found that Chinese Patent Application No. 201210253884.2 records a personalized search method for Web service recommendation, including the following steps: Step 1, preprocessing WSDL documents: through two preprocessing steps of removing stop words and extracting word stems , forming a bag of words; step 2, extracting user interests: use the improved TF-IDF formula to calculate the weight of each word in the bag of words, and multiply it by the time decay factor of the word to get a new weight; select the weight from large to The first k words are used as the user's interest words, and the corresponding weights of each word form a k-dimensional user interest vector; step 3, calculate interest similarity: set a similarity threshold, and users exceeding the threshold are selected as target users Neighbor users; step 4, sorting service retrieval results, calculating service recommendation prediction values based on the similarity of neighbor users and the number of service selections, and sorting the retrieval results in descending order of recommendation prediction values to obtain personalized search results.

上述的方法都涉及了个性化的服务推荐,但很少针对Web服务的非功能属性筛选服务以满足用户的个性化需求,服务的非功能属性往往是服务性能的主要体现,所以如何利用服务的非功能属性客观地评价服务的性能同时又能满足不同用户的个性化需求是服务推荐需要解决的问题。The above methods all involve personalized service recommendation, but few services are screened for the non-functional attributes of web services to meet the individual needs of users. The non-functional attributes of services are often the main manifestation of service performance, so how to use the service Non-functional attributes can objectively evaluate the performance of services while meeting the individual needs of different users is a problem to be solved for service recommendation.

发明内容Contents of the invention

本发明技术解决问题:针对现有技术存在的不足,提供一种基于隐语义概率模型的个性化服务推荐系统及方法,旨在为用户在不熟悉的服务情境下提供指标偏好预测,从而完成基于多维QoS指标的服务综合排序,为用户提供个性化的服务推荐结果。The technology of the present invention solves the problem: Aiming at the deficiencies of the existing technology, a personalized service recommendation system and method based on the hidden semantic probability model is provided, aiming at providing index preference prediction for users in unfamiliar service situations, so as to complete the system based on The comprehensive service ranking of multi-dimensional QoS indicators provides users with personalized service recommendation results.

本发明的技术解决方案:一种个性化服务推荐中基于隐语义概率模型的用户指标偏好预测方法,具体步骤如下:The technical solution of the present invention: a user index preference prediction method based on a hidden semantic probability model in personalized service recommendation, the specific steps are as follows:

步骤1、确定评价服务性能优劣的服务QoS指标体系Step 1. Determine the service QoS index system for evaluating service performance

所述的服务QoS指标体系是指整个Web服务系统统一采用的用于评价一系列功能相似服务性能优劣所用QoS指标的集合,不同的系统可以根据需要选取适当的QoS指标组成自己的QoS指标体系用于评价服务的性能优劣;The service QoS indicator system refers to the collection of QoS indicators used by the entire Web service system to evaluate the performance of a series of similar services. Different systems can select appropriate QoS indicators to form their own QoS indicator systems. To evaluate the performance of the service;

步骤2、建立用户、用户指标偏好以及服务情境三者之间的隐语义概率模型Step 2. Establish an implicit semantic probability model among users, user index preferences, and service contexts

所述的用户指标偏好是指用户对步骤1中所述服务QoS指标体系中各个QoS指标的偏好程度,对每个QoS指标的偏好程度值介于0到1之间,并且对各个QoS指标的偏好值总和为1;所述的服务情境是指在何种场景下使用何种功能的服务,每一个服务情境e用三元组(w1,w2,w3)表示,其中w1表示服务完成的与业务无关的基本功能,如视频功能、导航功能等,w2表示用户使用该功能的服务完成的具体业务活动,如学术会议、军事导航等,w3表示用户调用服务的终端设备,如手机、PC机等;所述的用户、用户指标偏好、服务情境三者之间的隐语义概率模型是指单个用户以不同的概率依赖不同的用户隐类而存在,单则服务情境以不同的概率依赖不同的服务情境隐类存在,指标偏好同时以不同的概率同时依赖不同的用户隐类和服务情境隐类存在的概率模型,模型的图像化表示如7所示。The user index preference refers to the user's degree of preference for each QoS index in the service QoS index system described in step 1, the preference value for each QoS index is between 0 and 1, and the preference for each QoS index The sum of preference values is 1; the service context refers to the service with which function is used in which scenario, and each service context e is represented by a triplet (w 1 , w 2 , w 3 ), where w 1 represents The basic functions irrelevant to the business completed by the service, such as video function, navigation function, etc., w 2 represents the specific business activities completed by the user using the service of this function, such as academic conferences, military navigation, etc., w 3 represents the terminal equipment that the user calls the service , such as mobile phones, PCs, etc.; the implicit semantic probability model between users, user index preferences, and service contexts means that a single user exists with different probabilities depending on different user hidden categories, and a single service context is based on Different probabilities depend on the existence of different service context hidden classes, and indicator preferences depend on the probability models of different user hidden classes and service context hidden classes at the same time with different probabilities. The graphical representation of the model is shown in Figure 7.

所述的用户隐类是指非人为事先确定的而是从历史经验数据中学习得到的用户聚簇;所述的服务情境隐类是指非人为事先确定的而是从历史经验数据中学习得到的服务情境聚簇;The user hidden class refers to user clusters that are not determined in advance by humans but learned from historical experience data; the hidden class of service situations refers to user clusters that are not determined in advance by humans but learned from historical experience data clustering of service scenarios;

步骤3、收集不同用户在不同的服务情境下使用不同功能服务时自主提供的指标偏好信息,作为历史经验数据存入数据库,为训练步骤2中建立的隐语义概率模型的参数作准备,存储格式为(用户,服务情境、指标偏好)三元组;Step 3. Collect the index preference information provided by different users when using different functional services in different service scenarios, and store them in the database as historical experience data to prepare for training the parameters of the latent semantic probability model established in step 2. The storage format It is a triplet of (user, service context, indicator preference);

步骤4、用EM算法及已收集的历史经验数据训练隐语义概率模型的参数Step 4. Use the EM algorithm and the collected historical experience data to train the parameters of the implicit semantic probability model

所述的隐语义概率模型的参数是指所有用户隐类{U1,U2,...,UI}的先验概率P(Ui)(1≤i≤I)、服务情境隐类{E1,E2,...,EJ}先验概率P(Ej)(1≤j≤J)、给定一个用户隐类Ui的情况下单个用户u出现的条件概率P(u|Ui)(1≤i≤I)、给定一个服务情境隐类Ej的情况下单则服务情境e出现的条件概率P(e|Ej)(1≤j≤J)、给定用户隐类Ui和服务情境隐类Ej的情况下用户指标偏好向量r出现的概率P(r|Ui,Ej)(1≤i≤I,1≤j≤J);其中I,J分别表示用户隐类和服务情境隐类的总个数,i,j分别表示用户隐类和服务情境隐类的编号;The parameters of the hidden semantic probability model refer to the prior probability P(U i )(1≤i≤I) of all user hidden classes {U 1 , U 2 ,..., U I }, service situation hidden class {E 1 ,E 2 ,...,E J } prior probability P(E j )( 1≤j≤J ), conditional probability P( u|U i )(1≤i≤I), the conditional probability P(e|E j )(1≤j≤J) of a single service situation e in the case of a given service situation hidden class E j , given The probability of user index preference vector r appearing in the case of given user hidden class U i and service situation hidden class E j P(r|U i , E j )(1≤i≤I, 1≤j≤J); where I , J represent the total number of user hidden classes and service situation hidden classes respectively, i, j represent the numbers of user hidden classes and service situation hidden classes respectively;

步骤5、获得用户需要服务推荐的请求,包括个人信息、服务推荐所依赖的服务情境;Step 5. Obtain the user's request for service recommendation, including personal information and the service context on which the service recommendation depends;

步骤6、用已训练的隐语义概率模型预测指定用户在特定服务情境下的未知指标偏好;Step 6. Use the trained latent semantic probability model to predict the unknown index preference of the specified user in a specific service situation;

步骤7、根据预测出的用户个性化的QoS指标偏好,对候选服务进行综合筛选,从而选出最贴近该用户需求的服务,将推荐结果返回给用户。Step 7. According to the predicted user's personalized QoS index preference, comprehensively screen the candidate services, so as to select the service that is closest to the user's needs, and return the recommendation result to the user.

所述步骤3中收集历史经验数据的过程如下:The process of collecting historical experience data in the step 3 is as follows:

(1)用户在其熟悉的服务情境下调用熟悉的web服务时可以直接与系统交互,使用层次分析法给出自己给出对各个指标偏好的两两比较结果,建立比较矩阵;(1) Users can directly interact with the system when invoking familiar web services in their familiar service contexts, use the AHP to give their own pairwise comparison results for each index preference, and establish a comparison matrix;

CC == cc 1111 ,, cc 1212 ,, .. .. .. ,, cc 11 nno cc 21twenty one ,, cc 22twenty two ,, .. .. .. ,, cc 33 nno .. .. .. .. .. .. .. .. .. cc nno 11 ,, cc nno 22 ,, .. .. .. ,, cc nnnn ,,

(2)验证比较矩阵的一致性是否在可接受的范围内,若可接受,进入(3),否者返回(1);(2) Verify whether the consistency of the comparison matrix is within the acceptable range, if acceptable, go to (3), otherwise return to (1);

(3)计算比较矩阵的最大特征值对应的特征向量,将该特征向量归一化后所得到的就是用户对各个QoS指标的偏好向量WQoS,将(用户、服务情境、指标偏好)三元组存入数据库。(3) Calculate the eigenvector corresponding to the largest eigenvalue of the comparison matrix. After normalizing the eigenvector, the user’s preference vector W QoS for each QoS indicator is obtained, and the (user, service situation, indicator preference) ternary Groups are stored in the database.

所述步骤4中隐语义概率模型的参数训练过程如下:The parameter training process of hidden semantic probability model in described step 4 is as follows:

(1)从数据库中取出所有的用户、服务情境、指标偏好三元组作为训练数据,是用户在其熟悉的服务情境下利用层次分析法给出的个性化指标偏好权值,每个三元组(u,e,r)表示用户u在服务情境e下对服务的各个QoS指标的偏好权重为r,r是一个K维向量(r1,r2,...,rK),为简单起见,假设权重向量r的每一维相互独立并且服从正态分布,则联合概率P(u,e,r)可用下面两个公式表示,(1) Take all triples of user, service context, and index preference from the database as training data, which is the personalized index preference weight given by the user in the familiar service context using the AHP. Each triple The group (u,e,r) means that the user u's preference weight for each QoS indicator of the service in the service situation e is r, and r is a K-dimensional vector (r 1 ,r 2 ,...,r K ), which is For simplicity, assuming that each dimension of the weight vector r is independent of each other and obeys a normal distribution, the joint probability P(u,e,r) can be expressed by the following two formulas,

PP (( uu ,, ee ,, rr )) == ΣΣ ii ΣΣ jj PP (( Uu ii )) PP (( EE. jj )) PP (( uu || Uu ii )) PP (( ee || EE. jj )) PP (( rr || Uu ii ,, EE. jj )) ,,

其中P(r|Ui,Ej)为K维正态分布,i,j分别表示用户隐类和服务情境隐类编号;Among them, P(r|U i , E j ) is a K-dimensional normal distribution, and i, j respectively represent the number of user hidden class and service situation hidden class;

(2)E步计算隐类的联合后验概率,(2) Step E calculates the joint posterior probability of hidden classes,

PP (( Uu pp ,, EE. qq || uu ,, ee ,, rr )) == [[ PP (( Uu pp )) PP (( EE. qq )) PP (( uu || Uu pp )) PP (( ee || EE. qq )) PP (( rr || Uu pp ,, EE. qq )) ]] bb ΣΣ ii ΣΣ jj [[ PP (( Uu ii )) PP (( EE. jj )) PP (( uu || Uu ii )) PP (( ee || EE. jj )) PP (( rr || Uu pp ,, EE. qq )) ]] bb ..

其中b是一个介于0到1之间的模拟退火参数,P(r|Up,Eq)为K维正态分布,p,q表示用户隐类和服务情境隐类编号;Where b is a simulated annealing parameter between 0 and 1, P(r|U p , E q ) is a K-dimensional normal distribution, and p, q represent the number of user hidden classes and service situation hidden classes;

(3)M步使用E步计算得到的后验概率重新估算模型参数,包括每一个用户隐类和每一个服务情境隐类的先验概率P(Up)和P(Eq),每一个用户在给定不同用户隐类时出现的条件概率P(u|Up),每一则服务情境在给定不同服务情境隐类时出现的条件概率P(e|Eq),同时给定不同的用户情境隐类和服务情境隐类时K个指标偏好的正态分布均值和方差 σ 2 k , U p , E q : (3) Step M uses the posterior probability calculated in step E to re-estimate the model parameters, including the prior probability P(U p ) and P(E q ) of each user hidden class and each service situation hidden class, each The conditional probability P(u|U p ) of the user when different user implicit classes are given, the conditional probability P(e|E q ) of each service situation when the different service situation implicit classes are given, and given The normal distribution mean value of K indicator preferences when different user contextual implicit classes and service contextual implicit classes and variance σ 2 k , u p , E. q :

PP (( Uu pp )) == ΣΣ ll ΣΣ jj PP (( Uu pp ,, EE. jj || uu (( ll )) ,, ee (( ll )) ,, rr (( ll )) )) LL ,, PP (( EE. qq )) == ΣΣ ll ΣΣ ii PP (( Uu ii ,, EE. qq || uu (( ll )) ,, ee (( ll )) ,, rr (( ll )) )) LL ,,

PP (( uu || Uu pp )) == ΣΣ ll :: uu (( ll )) == uu ΣΣ jj PP (( Uu pp ,, EE. jj || uu (( ll )) ,, ee (( ll )) ,, rr (( ll )) )) LL ** PP (( Uu pp )) ,, PP (( ee || EE. qq )) == ΣΣ ll :: ee (( ll )) == ee ΣΣ ii PP (( Uu ii ,, EE. qq || uu (( ll )) ,, ee (( ll )) ,, rr (( ll )) )) LL ** PP (( EE. qq )) ,,

μμ kk ,, Uu pp ,, EE. qq == ΣΣ ll rr kk (( ll )) PP (( Uu pp ,, EE. qq || uu (( ll )) ,, ee (( ll )) ,, rr (( ll )) )) ΣΣ ll PP (( Uu pp ,, EE. qq || uu (( ll )) ,, ee (( ll )) ,, rr (( ll )) )) ,, σσ 22 kk ,, Uu pp ,, EE. qq == ΣΣ ll (( rr kk (( ll )) -- μμ kk ,, Uu pp ,, EE. qq )) 22 PP (( Uu pp ,, EE. qq || uu (( ll )) ,, ee (( ll )) ,, rr (( ll )) )) ΣΣ ll PP (( Uu pp ,, EE. qq || uu (( ll )) ,, ee (( ll )) ,, rr (( ll )) )) ..

其中l表示历史训练样本的编号,i,p表示用户隐类的标号,j,q表示服务情境隐类的编号,u,e表示单个用户和单则服务情境,U,E表示用户隐类和服务情境隐类,k表示QoS指标的编号。Among them, l represents the number of historical training samples, i, p represent the label of user hidden class, j, q represent the number of service situation hidden class, u, e represent a single user and single service situation, U, E represent user hidden class and Implicit class of service context, k represents the number of the QoS indicator.

(4)检查模型参数是否收敛,若收敛,结束并保存模型参数,若不收敛,返回(2)执行。(4) Check whether the model parameters are converged, if converged, end and save the model parameters, if not converged, return to (2) to execute.

所述步骤6中利用已训练的隐语义概率模型预测用户指标偏好的实现方式如下:In the step 6, the implementation of using the trained latent semantic probability model to predict user index preference is as follows:

(1)用户ut登陆服务推荐系统,提供需要进行服务推荐的服务情境et(1) The user u t logs in to the service recommendation system and provides the service situation e t that requires service recommendation;

(2)推荐系统获取用户的个人数据及其提供的服务情境信息,用下面的公式对该用户在该服务情境下的各个QoS指标偏好进行独立预测(2) The recommendation system obtains the user's personal data and the service context information it provides, and uses the following formula to independently predict the user's preference for each QoS indicator in the service context

RR kk (( ee tt ,, uu tt )) == ∫∫ 00 11 rr kk PP (( ee tt ,, uu tt ,, rr kk )) ∫∫ 00 11 PP (( ee tt ,, uu tt ,, rr kk )) dd rr kk dd rr kk

其中in

PP (( ee tt ,, uu tt ,, rr kk )) == ΣΣ ii ,, jj PP (( Uu ii )) PP (( EE. jj )) PP (( uu tt || Uu ii )) PP (( ee tt || EE. jj )) PP (( rr kk || Uu ii ,, EE. jj ))

PP (( rr kk || Uu ii ,, EE. jj )) == 11 22 ππ σσ kk ,, Uu ii ,, EE. jj expexp [[ -- (( rr kk -- μμ kk ,, Uu ii ,, EE. jj )) 22 22 σσ 22 kk ,, Uu ii ,, EE. jj ]] ..

最后预测得到用户ut在该服务情境et下对各个QoS指标的偏好权重为 ( R 1 ( e t , u t ) , . . . , R K ( e t , u t ) ) , 简单记作 ( r ^ 1 , r ^ 2 , . . . , r ^ K ) . Finally, it is predicted that the preference weight of user u t for each QoS indicator in the service situation e t is ( R 1 ( e t , u t ) , . . . , R K ( e t , u t ) ) , simply write ( r ^ 1 , r ^ 2 , . . . , r ^ K ) .

所述步骤7中根据预测出的用户个性化的QoS指标偏好,对候选服务进行筛选的过程如下:用户ut在服务情境et下已得到多个功能相似的候选服务,假设每个服务的各QoS指标上的性能可有其他方法得到,记为(q1,q2,...,qK),那么每一个服务的总得分采用表示,最后根据各个服务的总得分给出服务的排序,作为服务推荐的依据。In the step 7, according to the predicted user's personalized QoS index preference, the process of screening the candidate services is as follows: the user u t has obtained multiple candidate services with similar functions in the service context e t , assuming that each service's The performance of each QoS index can be obtained by other methods, recorded as (q 1 ,q 2 ,...,q K ), then the total score of each service is Finally, according to the total score of each service, the ranking of services is given, which is used as the basis for service recommendation.

本发明与现有技术相比的优点在于:本发明提供的技术方案建立了一种有关用户、用户指标偏好、服务情境之间的概率依赖模型,用历史数据对模型训练以后,可以利用该模型方便地预测出特定用户在陌生服务情境下的指标偏好向量,最后结合服务的非功能属性和已经预测的用户指标偏好对候选服务进行综合评价以实现个性化服务推荐。已有方法一般只简单地将候选服务的各维度QoS值进行加权平均,据此给出候选服务的综合排序,权值一般是先确定的,显然无法体现用户在服务调用过程中的个性化需求。本专利提出的基于隐语义概率模型的个性化服务推荐方法可以以一种自动的方式预测出用户在特定情境下的个性化指标偏好,即使在用户自己也无法明确表达自己的偏好信息的时候。同时本发明的模型训练可以离线进行,所以提高了在线服务推荐的效率。Compared with the prior art, the present invention has the advantages that: the technical solution provided by the present invention establishes a probability dependence model among users, user index preferences, and service situations. After the model is trained with historical data, the model can be used It is convenient to predict the indicator preference vector of a specific user in an unfamiliar service situation, and finally combine the non-functional attributes of the service and the predicted user indicator preference to comprehensively evaluate the candidate services to realize personalized service recommendation. Existing methods generally simply weight and average the QoS values of each dimension of candidate services, and then give a comprehensive ranking of candidate services. The weights are generally determined first, which obviously cannot reflect the individual needs of users in the process of service invocation. . The personalized service recommendation method based on the latent semantic probability model proposed in this patent can predict the user's personalized index preference in a specific situation in an automatic way, even when the user cannot clearly express his preference information. At the same time, the model training of the present invention can be performed offline, so the efficiency of online service recommendation is improved.

附图说明Description of drawings

图1是本发明系统的功能框图;Fig. 1 is the functional block diagram of the system of the present invention;

图2为图1中历史信息收集模块的实现流程图;Fig. 2 is the realization flowchart of historical information collection module in Fig. 1;

图3为图1中隐语义概率模型参数训练模块的实现流程图;Fig. 3 is the realization flowchart of implicit semantic probability model parameter training module in Fig. 1;

图4为图1中服务推荐请求模块的实现流程图;Fig. 4 is the implementation flowchart of the service recommendation request module in Fig. 1;

图5为图1中个性化指标偏好预测模块的实现流程图;Fig. 5 is the implementation flowchart of the personalized index preference prediction module in Fig. 1;

图6为图1中个性化服务推荐模块的实现流程图;Fig. 6 is the implementation flowchart of the personalized service recommendation module in Fig. 1;

图7为隐语义概率模型的图像化表示。Figure 7 is a graphical representation of the latent semantic probability model.

具体实施方式detailed description

如图1所示,本发明一种基于隐语义概率模型的个性化服务推荐系统及方法由历史信息收集模块、隐语义概率模型参数训练模块、服务推荐请求模块、个性化指标偏好预测模块、个性化服务推荐模块组成。As shown in Figure 1, a personalized service recommendation system and method based on a hidden semantic probability model in the present invention consists of a historical information collection module, a hidden semantic probability model parameter training module, a service recommendation request module, a personalized index preference prediction module, a personality Composed of personalized service recommendation modules.

整个实现过程如下:The whole implementation process is as follows:

步骤1、确定评价服务性能优劣的服务QoS指标体系Step 1. Determine the service QoS index system for evaluating service performance

所述的服务QoS指标体系是指整个Web服务系统统一采用的用于评价一系列功能相似服务性能优劣所用QoS指标的集合,不同的系统可以根据需要选取适当的QoS指标组成自己的QoS指标体系用于评价服务的性能优劣;The service QoS indicator system refers to the collection of QoS indicators used by the entire Web service system to evaluate the performance of a series of similar services. Different systems can select appropriate QoS indicators to form their own QoS indicator systems. Used to evaluate the performance of the service;

步骤2、建立用户、用户指标偏好以及服务情境三者之间的隐语义概率模型Step 2. Establish an implicit semantic probability model among users, user index preferences, and service contexts

所述的用户指标偏好是指用户对步骤1中所述服务QoS指标体系中各个QoS指标的偏好程度,对每个QoS指标的偏好程度值介于0到1之间,并且对各个QoS指标的偏好值总和为1;所述的服务情境是指在何种场景下使用何种功能的服务,每一个服务情境e用三元组(w1,w2,w3)表示,其中w1表示服务完成的与业务无关的基本功能,如视频功能、导航功能等,w2表示用户使用该功能的服务完成的具体业务活动,如学术会议、军事导航等,w3表示用户调用服务的终端设备,如手机、PC机等;所述的用户、用户指标偏好、服务情境三者之间的隐语义概率模型是指单个用户以不同的概率依赖不同的用户隐类而存在,单则服务情境以不同的概率依赖不同的服务情境隐类存在,指标偏好同时以不同的概率同时依赖不同的用户隐类和服务情境隐类存在的概率模型,模型的图像化表示如图7所示。图中U代表用户隐类,E代表服务情境隐类,u、e分别代表单个用户和打个服务情境,r代表指标偏好向量,图7显示了这几个要素之间的概率依赖关系,用户u、服务情境e、指标偏好向量r对用户隐类U和服务情境隐类E的依赖度的大小以条件概率P(u|U)、P(e|E)、P(r|U,E)的大小来衡量。The user index preference refers to the user's degree of preference for each QoS index in the service QoS index system described in step 1, the preference value for each QoS index is between 0 and 1, and the preference for each QoS index The sum of preference values is 1; the service context refers to the service with which function is used in which scenario, and each service context e is represented by a triplet (w 1 , w 2 , w 3 ), where w 1 represents The basic functions irrelevant to the business completed by the service, such as video function, navigation function, etc., w 2 represents the specific business activities completed by the user using the service of this function, such as academic conferences, military navigation, etc., w 3 represents the terminal equipment that the user calls the service , such as mobile phones, PCs, etc.; the implicit semantic probability model between users, user index preferences, and service contexts means that a single user exists with different probabilities depending on different user hidden categories, and a single service context is based on Different probabilities depend on the existence of different service context hidden classes, and indicator preferences depend on the probability models of different user hidden classes and service context hidden classes at the same time with different probabilities. The graphical representation of the model is shown in Figure 7. In the figure, U represents the user hidden class, E represents the service situation hidden class, u and e represent a single user and a service situation respectively, and r represents the index preference vector. Figure 7 shows the probability dependence relationship between these elements. User The dependence of u, service context e, and index preference vector r on user implicit class U and service context implicit class E is determined by the conditional probability P(u|U), P(e|E), P(r|U,E ) to measure the size.

所述的用户隐类是指非人为事先确定的而是从历史经验数据中学习得到的用户聚簇;所述的服务情境隐类是指非人为事先确定的而是从历史经验数据中学习得到的服务情境聚簇;The user hidden class refers to user clusters that are not determined in advance by humans but learned from historical experience data; the hidden class of service situations refers to user clusters that are not determined in advance by humans but learned from historical experience data clustering of service scenarios;

步骤3、收集不同用户在不同的服务情境下使用不同功能服务时自主提供的指标偏好信息,作为历史经验数据存入数据库,为训练步骤2中建立的隐语义概率模型的参数作准备,存储格式为(用户,服务情境、指标偏好)三元组;Step 3. Collect the index preference information provided by different users when using different functional services in different service scenarios, and store them in the database as historical experience data to prepare for training the parameters of the latent semantic probability model established in step 2. The storage format It is a triplet of (user, service context, indicator preference);

步骤4、用EM算法及已收集的历史经验数据训练隐语义概率模型的参数Step 4. Use the EM algorithm and the collected historical experience data to train the parameters of the implicit semantic probability model

所述的隐语义概率模型的参数是指所有用户隐类{U1,U2,...,UI}的先验概率P(Ui)(1≤i≤I)、服务情境隐类{E1,E2,...,EJ}先验概率P(Ej)(1≤j≤J)、给定一个用户隐类Ui的情况下单个用户u出现的条件概率P(u|Ui)(1≤i≤I)、给定一个服务情境隐类Ej的情况下单则服务情境e出现的条件概率P(e|Ej)(1≤j≤J)、给定用户隐类Ui和服务情境隐类Ej的情况下用户指标偏好向量r出现的概率P(r|Ui,Ej)(1≤i≤I,1≤j≤J);i,j分别代表什么,其中I,J分别表示用户隐类和服务情境隐类的总个数,i,j分别表示用户隐类和服务情境隐类的编号;The parameters of the hidden semantic probability model refer to the prior probability P(U i )(1≤i≤I) of all user hidden classes {U 1 , U 2 ,..., U I }, service situation hidden class {E 1 ,E 2 ,...,E J } prior probability P(E j )( 1≤j≤J ), conditional probability P( u|U i )(1≤i≤I), the conditional probability P(e|E j )(1≤j≤J) of a single service situation e in the case of a given service situation hidden class E j , given The probability of user index preference vector r appearing in the case of given user hidden class U i and service situation hidden class E j P(r|U i , E j )(1≤i≤I, 1≤j≤J); i, What do j stand for respectively, where I and J respectively represent the total number of user hidden classes and service situation hidden classes, and i and j represent the numbers of user hidden classes and service situation hidden classes respectively;

步骤5、获得用户需要服务推荐的请求,包括个人信息、服务推荐所依赖的服务情境;Step 5. Obtain the user's request for service recommendation, including personal information and the service context on which the service recommendation depends;

步骤6、用已训练的隐语义概率模型预测指定用户在特定服务情境下的未知指标偏好;Step 6. Use the trained latent semantic probability model to predict the unknown index preference of the specified user in a specific service situation;

步骤7、根据预测出的用户个性化的QoS指标偏好,对候选服务进行综合筛选,从而选出最贴近该用户需求的服务,将推荐结果返回给用户。Step 7. According to the predicted user's personalized QoS index preference, comprehensively screen the candidate services, so as to select the service that is closest to the user's needs, and return the recommendation result to the user.

上述各模块的具体实现过程如下:The specific implementation process of the above modules is as follows:

1.历史信息收集模块1. Historical information collection module

实现过程如图2所示:收集用户的个人信息,包括姓名、职业、年收入、兴趣爱好等,为每个用户分配一个编号;收集用户提供指标偏好所处的服务情境信息,服务情境表示为三元组(服务基本功能,目标活动,终端设备),比如(导航功能,日常出行,手机)或者(语音功能,学术会议,个人电脑)等等。假设实际确定的各个QoS维度为:可靠性、响应时间、可用性、吞吐量、价格,那么用户在该服务情境下给出的比较矩阵就为5*5的矩阵C,计算其最大特征值对应的特征向量并归一化,即为指标偏好,将用户,服务情境,指标偏好三元组存入数据库。The implementation process is shown in Figure 2: collect personal information of users, including name, occupation, annual income, hobbies, etc., and assign a number to each user; collect service context information where users provide index preferences, and the service context is expressed as The triplet (basic service function, target activity, terminal device), such as (navigation function, daily travel, mobile phone) or (voice function, academic conference, personal computer) and so on. Assuming that the actual determined QoS dimensions are: reliability, response time, availability, throughput, and price, then the comparison matrix given by the user in this service scenario is a 5*5 matrix C, and the corresponding maximum eigenvalue is calculated The eigenvectors are normalized, which is the indicator preference, and the user, service situation, and indicator preference triplet are stored in the database.

2、隐语义概率模型参数训练模块2. Latent semantic probability model parameter training module

实现过程如图3所示:将数据库中的历史训练数据取出,然后人工设置用户隐类和服务隐类的个数,假设都为5个,以及隐语义概率模型的初始参数:5个用户隐类的初始先验概率,可均设为1/5;5个服务情境隐类的概率,可均设为1/5;每一个用户在给定不同用户隐类的条件概率初值;每一则服务情境在给定不同服务情境隐类的条件概率初值;每一个指标偏好在给定不同用户隐类和服务情境隐类时的正态分布均值和方差的初值,然后用EM算法结合训练数据迭代训练模型的参数直至收敛并将参数保存。The implementation process is shown in Figure 3: take out the historical training data in the database, and then manually set the number of user hidden classes and service hidden classes, assuming that they are both 5, and the initial parameters of the hidden semantic probability model: 5 user hidden classes The initial prior probability of each class can be set to 1/5; the probabilities of the five service context hidden classes can all be set to 1/5; each user is given the initial value of the conditional probability of different user hidden classes; each Then the initial value of the conditional probability of the service situation given different service situation hidden classes; the initial value of the normal distribution mean and variance of each index preference when given different user hidden classes and service situation hidden classes, and then combined with EM algorithm The training data iterates the parameters of the training model until convergence and saves the parameters.

3.服务推荐请求模块3. Service recommendation request module

实现过程如图4所示,用户登录服务推荐系统,假设该用户已经是系统的注册用户,并且有特定的登录名标识,记为ut,他提供了需要进行服务推荐的服务情境记为et,具体含义是(汇率转换,网络购物,个人电脑),该模块会记录下ut和et,提交给个性化指标偏好预测模块和个性化服务推荐模块。The implementation process is shown in Figure 4. The user logs in to the service recommendation system. Assume that the user is already a registered user of the system and has a specific login name, denoted as u t . t , the specific meaning is (exchange rate conversion, online shopping, personal computer), this module will record u t and e t , and submit them to the personalized index preference prediction module and the personalized service recommendation module.

4.个性化指标偏好预测模块,实现过程如图5所示。4. Personalized index preference prediction module, the implementation process is shown in Figure 5.

该模块需要获取已训练好的模型参数和用户提供的服务推荐请求信息,基于上面提出的指标偏好预测方法预测出用户指标偏好,假设预测的指标偏好为r=(0.3,0.1,0.2,0.3,0.1)。This module needs to obtain the trained model parameters and the service recommendation request information provided by the user, and predict the user's index preference based on the index preference prediction method proposed above, assuming that the predicted index preference is r=(0.3,0.1,0.2,0.3, 0.1).

5.个性化服务推荐模块5. Personalized service recommendation module

实现过程如图6所示,假设满足汇率转换的服务共有3个s1,s2,s3,它们在五个QoS维度上的归一化值可以由其他方式获得,假设分别记为:q1=(0.5,0.5,0.6,0.7,0.6),q2=(0.8,0.4,0.7,0.2,0.6),q3=(0.4,0.8,0.2,0.6,0.4),那么三个候选服务的得分分别为:The implementation process is shown in Figure 6. Assume that there are three s1, s2, and s3 services that satisfy exchange rate conversion, and their normalized values on the five QoS dimensions can be obtained in other ways, assuming that they are respectively recorded as: q1=(0.5 ,0.5,0.6,0.7,0.6),q2=(0.8,0.4,0.7,0.2,0.6),q3=(0.4,0.8,0.2,0.6,0.4), then the scores of the three candidate services are:

g1=r·q1=(0.3,0.1,0.2,0.3,0.1)·(0.5,0.5,0.6,0.7,0.6)=0.59;g1=r·q1=(0.3,0.1,0.2,0.3,0.1)·(0.5,0.5,0.6,0.7,0.6)=0.59;

g2=r·q2=(0.3,0.1,0.2,0.3,0.1)·(0.8,0.4,0.7,0.2,0.6)=0.54;g2=r·q2=(0.3,0.1,0.2,0.3,0.1)·(0.8,0.4,0.7,0.2,0.6)=0.54;

g3=r·q3=(0.3,0.1,0.2,0.3,0.1)·(0.4,0.8,0.2,0.6,0.4)=0.46;g3=r·q3=(0.3,0.1,0.2,0.3,0.1)·(0.4,0.8,0.2,0.6,0.4)=0.46;

所以可得g1>g2>g3,所以给出了服务排序列表为s1,s2,s3,返回给用户供用户选择。Therefore, g1>g2>g3 can be obtained, so the service sorting list is given as s1, s2, s3, and returned to the user for the user to choose.

本发明未详细阐述部分属于本领域公知技术。Parts not described in detail in the present invention belong to the well-known technology in the art.

以上所述,仅为本发明部分具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本领域的人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。The above are only some specific implementations of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims (7)

1.一种基于隐语义概率模型的个性化服务推荐系统,其特征在于包括:1. A personalized service recommendation system based on hidden semantic probability model, characterized in that it comprises: 历史信息收集模块:收集不同用户在不同服务情境下通过层次分析法自主提供的指标偏好比较矩阵,检查该矩阵满足一致性约束后,计算该矩阵最大特征值对应的特征向量,归一化后得出不同用户在不同服务情境下的指标偏好,并将用户、服务情境、指标偏好以三元组形式存入数据库,为隐语义概率模型参数训练模块提供历史训练数据;Historical information collection module: collect the index preference comparison matrix independently provided by different users through the AHP in different service scenarios, check that the matrix meets the consistency constraints, calculate the eigenvector corresponding to the largest eigenvalue of the matrix, and obtain Find out the indicator preferences of different users in different service scenarios, and store users, service scenarios, and indicator preferences in the database in the form of triples, and provide historical training data for the implicit semantic probability model parameter training module; 隐语义概率模型参数训练模块:从数据库中获取历史信息收集模块收集的用户、服务情境、指标偏好三元组作为训练样本,根据事先设定的隐语义概率模型参数初值,利用EM算法在训练数据上迭代训练模型参数,直至模型参数收敛,保存所得训练参数,提供给个性化指标偏好预测模块;Implicit Semantic Probability Model Parameter Training Module: Obtain triplets of users, service situations, and index preferences collected by the historical information collection module from the database as training samples, and use EM algorithm to train Iteratively train model parameters on the data until the model parameters converge, save the obtained training parameters, and provide them to the personalized index preference prediction module; 用户服务推荐请求模块:该模块获取用户登录时提供的个性资料信息及用户登录后录入的需要进行服务推荐的服务情境信息,最后将这两项信息提供给个性化指标偏好预测模块;User service recommendation request module: This module obtains the personal data information provided by the user when logging in and the service situation information that needs to be recommended for service input after the user logs in, and finally provides these two pieces of information to the personalized index preference prediction module; 个性化指标偏好预测模块:获取用户服务推荐请求模块提供的用户个人信息和服务情境信息,结合隐语义概率模型参数训练模块提供的已经训练好的模型参数,预测该用户在该服务情境下的指标偏好,并将预测的指标偏好提供给个性化服务推荐模块;Personalized index preference prediction module: Obtain the user's personal information and service context information provided by the user service recommendation request module, and combine the trained model parameters provided by the implicit semantic probability model parameter training module to predict the user's index in the service context preferences, and provide the predicted index preferences to the personalized service recommendation module; 个性化服务推荐模块:接收来自个性化指标偏好模块的用户指标偏好,及来自用户服务推荐请求模块的服务情境信息,获取适用于该服务情境的所有功能相似的服务,及服务各维度的QoS指标值,与用户个性化的指标偏好作点积,给出服务的综合排序,作为推荐列表返回给用户,用户根据推荐的结果选择自己感兴趣的项目进行关注。Personalized service recommendation module: Receive user indicator preferences from the personalized indicator preference module, and service context information from the user service recommendation request module, and obtain all services with similar functions applicable to the service context, as well as QoS indicators of each dimension of the service Value, dot product with the user's personalized index preference, give the comprehensive ranking of the service, return it to the user as a recommendation list, and the user chooses the item he is interested in according to the recommendation result to pay attention to. 2.根据权利要求1所述的基于隐语义概率模型的个性化服务推荐系统,其特征在于:所述隐语义概率模型参数训练模块实现过程:2. the personalized service recommendation system based on hidden semantic probability model according to claim 1, is characterized in that: described hidden semantic probability model parameter training module realization process: (1)从数据库中获取历史信息收集模块存入的用户、服务情境、指标偏好三元组,作为历史训练数据;(1) Obtain the user, service situation, and index preference triplet stored in the historical information collection module from the database as historical training data; (2)人工设置用户隐类和服务情境隐类的个数以及模型的参数初值,包括用户隐类和服务情境隐类的先验概率,单个用户在给定不同用户隐类时的条件概率,单则服务情境在给定不同服务情境隐类时的条件概率,以及各个指标偏好在给定不同用户隐类和不同服务情境隐类时的正态分布均值和方差;(2) Manually set the number of user hidden classes and service situation hidden classes and the initial value of the model parameters, including the prior probability of user hidden classes and service situation hidden classes, and the conditional probability of a single user when different user hidden classes are given , the conditional probability of a single service situation when given different service situation hidden classes, and the normal distribution mean and variance of each index preference when given different user hidden classes and different service situation hidden classes; (3)用EM算法,结合历史训练数据,对模型参数进行迭代训练,直至收敛,保存模型参数,提供给个性化指标偏好预测模块。(3) Using the EM algorithm, combined with historical training data, iteratively trains the model parameters until convergence, saves the model parameters, and provides them to the personalized index preference prediction module. 3.一种基于隐语义概率模型的个性化服务推荐方法,其特征在于实现步骤如下:3. A personalized service recommendation method based on hidden semantic probability model, characterized in that the implementation steps are as follows: 步骤1、确定评价服务性能优劣的服务QoS指标体系Step 1. Determine the service QoS index system for evaluating service performance 所述的服务QoS指标体系是指整个Web服务系统统一采用的用于评价一系列功能相似服务性能优劣所用QoS指标的集合,不同的系统可以根据需要选取适当的QoS指标组成自己的QoS指标体系用于评价服务的性能优劣;The service QoS indicator system refers to the collection of QoS indicators used by the entire Web service system to evaluate the performance of a series of similar services. Different systems can select appropriate QoS indicators to form their own QoS indicator systems. Used to evaluate the performance of the service; 步骤2、建立用户、用户指标偏好以及服务情境三者之间的隐语义概率模型Step 2. Establish an implicit semantic probability model among users, user index preferences, and service contexts 所述的用户指标偏好是指用户对步骤1中所述服务QoS指标体系中各个QoS指标的偏好程度,对每个QoS指标的偏好程度值介于0到1之间,并且对各个QoS指标的偏好值总和为1;所述的服务情境是指在何种场景下使用何种功能的服务,每一个服务情境e用三元组(w1,w2,w3)表示,其中w1表示服务完成的与业务无关的基本功能,包括视频功能、导航功能,w2表示用户使用该功能的服务完成的具体业务活动,w3表示用户调用服务的终端设备;The user index preference refers to the user's degree of preference for each QoS index in the service QoS index system described in step 1, the preference value for each QoS index is between 0 and 1, and the preference for each QoS index The sum of preference values is 1; the service context refers to the service with which function is used in which scenario, and each service context e is represented by a triplet (w 1 , w 2 , w 3 ), where w 1 represents Basic functions irrelevant to business completed by the service, including video function and navigation function, w 2 indicates the specific business activities completed by the user using the service of this function, w 3 indicates the terminal device that the user calls the service; 所述的用户、用户指标偏好、服务情境三者之间的隐语义概率模型是指单个用户以不同的概率依赖不同的用户隐类而存在,单则服务情境以不同的概率依赖不同的服务情境隐类存在,指标偏好同时以不同的概率同时依赖不同的用户隐类和服务情境隐类存在的概率模型,所述的用户隐类是指非人为事先确定的而是从历史经验数据中学习得到的用户聚簇;所述的服务情境隐类是指非人为事先确定的而是从历史经验数据中学习得到的服务情境聚簇;The implicit semantic probability model between the user, user index preference, and service context means that a single user depends on different user hidden classes with different probabilities, and a single service context depends on different service contexts with different probabilities. Hidden classes exist, and indicator preferences depend on different probabilities at the same time. The probability model of the existence of different user hidden classes and service situation hidden classes. The user hidden classes are not determined in advance by humans but learned from historical experience data. The user clustering; the service context implicit category refers to the service context clustering that is not determined in advance by humans but learned from historical experience data; 步骤3、收集不同用户在不同的服务情境下使用不同功能服务时自主提供的指标偏好信息,作为历史经验数据存入数据库,为训练步骤2中建立的隐语义概率模型的参数作准备,存储格式为用户、服务情境、指标偏好三元组;Step 3. Collect the index preference information provided by different users when using different functional services in different service scenarios, and store them in the database as historical experience data to prepare for training the parameters of the latent semantic probability model established in step 2. The storage format It is a triplet of user, service context, and indicator preference; 步骤4、用EM算法及已收集的历史经验数据训练隐语义概率模型的参数Step 4. Use the EM algorithm and the collected historical experience data to train the parameters of the implicit semantic probability model 所述的隐语义概率模型的参数是指所有用户隐类的先验概率服务情境隐类先验概率给定一个用户隐类的情况下单个用户u出现的条件概率给定一个服务情境隐类的情况下单则服务情境e出现的条件概率给定用户隐类和服务情境隐类的情况下用户指标偏好向量r出现的概率其中I,J分别表示用户隐类和服务情境隐类的总个数,i,j分别表示用户隐类和服务情境隐类的编号;The parameters of the hidden semantic probability model refer to all user hidden classes The prior probability of service context implicit class Priori probability Given a user hidden class The conditional probability of a single user u appearing in the case Given a service context implicit class The conditional probability of occurrence of a single service situation e in the case of Given user implicit class and service context implicit class The probability that the user index preference vector r appears in the case Among them, I and J respectively represent the total number of user hidden classes and service situation hidden classes, and i and j respectively represent the numbers of user hidden classes and service situation hidden classes; 步骤5、获得用户需要服务推荐的请求,包括个人信息、服务推荐所依赖的服务情境;Step 5. Obtain the user's request for service recommendation, including personal information and the service context on which the service recommendation depends; 步骤6、用已训练的隐语义概率模型预测指定用户在特定服务情境下的未知指标偏好;Step 6. Use the trained latent semantic probability model to predict the unknown index preference of the specified user in a specific service situation; 步骤7、根据预测出的用户个性化的QoS指标偏好,对候选服务进行综合筛选,从而选出最贴近该用户需求的服务,将推荐结果返回给用户。Step 7. According to the predicted user's personalized QoS index preference, comprehensively screen the candidate services, so as to select the service that is closest to the user's needs, and return the recommendation result to the user. 4.根据权利要求3所述的基于隐语义概率模型的个性化服务推荐方法,其特征在于:所述步骤3中收集历史经验数据的过程如下:4. The personalized service recommendation method based on hidden semantic probability model according to claim 3, characterized in that: the process of collecting historical experience data in the step 3 is as follows: (1)用户在其熟悉的服务情境下调用熟悉的web服务时,直接与系统交互,使用层次分析法给出自己对各个指标偏好的两两比较结果,建立比较矩阵;(1) When the user calls the familiar web service in the familiar service situation, he directly interacts with the system, uses the AHP to give the pairwise comparison results of his preferences for each indicator, and establishes a comparison matrix; CC == cc 1111 ,, cc 1212 ,, ...... ,, cc 11 nno cc 21twenty one ,, cc 22twenty two ,, ...... ,, cc 33 nno .. .. .. .. .. .. .. .. .. cc nno 11 ,, cc nno 22 ,, ...... ,, cc nno nno ,, (2)验证比较矩阵的一致性是否在可接受的范围内,若可接受,进入步骤(3),否者返回步骤(1);(2) Verify whether the consistency of the comparison matrix is within an acceptable range, if acceptable, enter step (3), otherwise return to step (1); (3)计算比较矩阵的最大特征值对应的特征向量,将该特征向量归一化后所得到的就是用户对各个QoS指标的偏好向量WQoS,将用户、服务情境、指标偏好三元组存入数据库。(3) Calculate the eigenvector corresponding to the largest eigenvalue of the comparison matrix. After normalizing the eigenvector, the user’s preference vector W QoS for each QoS indicator is obtained. Store the user, service situation, and indicator preference triplet into the database. 5.根据权利要求3所述的基于隐语义概率模型的个性化服务推荐方法,其特征在于:所述步骤4中隐语义概率模型的参数训练过程如下,5. the method for recommending personalized services based on the hidden semantic probability model according to claim 3, characterized in that: the parameter training process of the hidden semantic probability model in the step 4 is as follows, (1)从数据库中取出所有的用户、服务情境、指标偏好三元组作为训练数据,是用户在其熟悉的服务情境下利用层次分析法给出的个性化指标偏好权值,每个三元组(u,e,r)表示用户u在服务情境e下对服务的各个QoS指标的偏好权重为r,r是一个K维向量(r1,r2,...,rK),为简单起见,假设权重向量r的每一维相互独立并且服从正态分布,则联合概率P(u,e,r)用下面公式表示,(1) Take out all triples of user, service context, and index preference from the database as training data, which is the personalized index preference weight given by the user in the familiar service context using the AHP. Each triple The group (u,e,r) means that the user u's preference weight for each QoS indicator of the service in the service situation e is r, and r is a K-dimensional vector (r 1 ,r 2 ,...,r K ), which is For simplicity, assuming that each dimension of the weight vector r is independent of each other and obeys a normal distribution, the joint probability P(u,e,r) is expressed by the following formula, 其中为K维正态分布,i,j分别表示用户隐类和服务情境隐类编号,K是QoS指标体系中指标个数;in It is a K-dimensional normal distribution, i and j respectively represent the number of hidden users and service situations, and K is the number of indicators in the QoS indicator system; (2)E步计算隐类的联合后验概率,(2) Step E calculates the joint posterior probability of the hidden class, 其中b是一个介于0到1之间的模拟退火参数,满足K维正态分布,i,p表示用户隐类编号,j,q表示服务情境隐类编号;where b is a simulated annealing parameter between 0 and 1, Satisfy the K-dimensional normal distribution, i, p represent the hidden class number of the user, j, q represent the hidden class number of the service situation; (3)M步使用E步计算得到的用户隐类和服务情境隐类的联合后验概率重新估算模型参数,包括每一个用户隐类和每一个服务情境隐类的先验概率每一个用户在给定不同用户隐类时出现的条件概率每一则服务情境在给定不同服务情境隐类时出现的条件概率同时给定不同的用户情境隐类和服务情境隐类时K个指标偏好的正态分布均值和方差 (3) Step M uses the joint posterior probability of user hidden class and service situation hidden class calculated in E step to re-estimate model parameters, including the prior probability of each user hidden class and each service situation hidden class and The conditional probability of each user appearing given different user hidden classes The conditional probability of each service situation when given different service situation hidden classes The mean value of the normal distribution of K indicator preferences when different user contextual implicit classes and service contextual implicit classes are given at the same time and variance 其中l表示历史训练样本的编号,L表示训练样本的总数,i,p表示用户隐类的标号,j,q表示服务情境隐类的编号,u,e表示单个用户和单则服务情境,分别表示用户隐类和服务情境隐类,k表示QoS指标的编号;Among them, l represents the number of historical training samples, L represents the total number of training samples, i, p represents the label of user hidden class, j, q represents the number of service situation hidden class, u, e represent a single user and a single service situation, Respectively represent user hidden class and service situation hidden class, k represents the number of QoS index; (4)检查模型参数是否收敛,若收敛,结束并保存模型参数,若不收敛,返回(2)执行。(4) Check whether the model parameters are converged, if converged, end and save the model parameters, if not converged, return to (2) for execution. 6.根据权利要求5所述的基于隐语义概率模型的个性化服务推荐方法,其特征在于:步骤6中利用已训练的隐语义概率模型预测用户指标偏好的实现方式如下:6. The personalized service recommendation method based on the hidden semantic probability model according to claim 5, characterized in that: in step 6, the implementation of using the trained hidden semantic probability model to predict user index preference is as follows: (1)用户ut登陆服务推荐系统,提供需要进行服务推荐的服务情境et(1) The user u t logs in to the service recommendation system, and provides the service situation e t that requires service recommendation; (2)推荐系统获取用户的个人数据及其提供的服务情境信息,用下面的公式对该用户在该服务情境下的各个QoS指标偏好进行独立预测:(2) The recommendation system obtains the user's personal data and the service context information it provides, and uses the following formula to independently predict each QoS index preference of the user in the service context: RR kk (( ee tt ,, uu tt )) == ∫∫ 00 11 rr kk PP (( ee tt ,, uu tt ,, rr kk )) ∫∫ 00 11 PP (( ee tt ,, uu tt ,, rr kk )) drdr kk drdr kk ;; 其中:in: 其中ut、et分别表示待预测指标偏好的用户及其所处的服务情境,k表示QoS指标的编号,Rk(et,ut)表示用户ut在服务情境et下对第k个指标偏好的预测值,分别代表用户隐类和服务情境隐类,i表示用户隐类的标号,j表示服务情境隐类的编号,分别表示给定用户情境隐类和服务情境隐类时第k个指标偏好的正态分布均值和方差最后预测得到用户ut在该服务情境et下对各个QoS指标的偏好权重为(R1(et,ut),...,RK(et,ut)),记作 Among them, u t and e t respectively represent the users who are preferred by the index to be predicted and the service context they are in, k represents the number of the QoS index, R k (e t , u t ) represents the user u t ’s preference for the first Predicted values for k indicator preferences, Represent user hidden class and service situation hidden class respectively, i represents the label of user hidden class, j represents the number of service situation hidden class, and Respectively represent the implicit class of given user context and service context implicit class The normal distribution mean of the k-th index preference and variance Finally, it is predicted that user u t ’s preference weight for each QoS indicator in the service situation e t is (R 1 (e t ,u t ),...,R K (e t ,u t )), denoted as 7.根据权利要求6所述的基于隐语义概率模型的个性化服务推荐方法,其特征在于:步骤7中根据预测出的用户个性化的QoS指标偏好,对候选服务进行筛选的过程如下:用户ut在服务情境et下已得到多个功能相似的候选服务,假设每个服务的各QoS指标上的性能可有其他方法得到,记为(q1,q2,...,qK),每一个服务的总得分采用表示,最后根据各个服务的总得分给出服务的排序,作为服务推荐的依据。7. The personalized service recommendation method based on the hidden semantic probability model according to claim 6, characterized in that: in step 7, according to the user's personalized QoS index preference predicted, the process of screening candidate services is as follows: u t has obtained multiple candidate services with similar functions in the service context e t , assuming that the performance of each QoS index of each service can be obtained by other methods, recorded as (q 1 ,q 2 ,...,q K ), the total score of each service is Finally, according to the total score of each service, the ranking of services is given, which is used as the basis for service recommendation.
CN201310392446.9A 2013-09-02 2013-09-02 Personalized service recommendation system and method based on latent semantic probability models Expired - Fee Related CN103473291B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310392446.9A CN103473291B (en) 2013-09-02 2013-09-02 Personalized service recommendation system and method based on latent semantic probability models

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310392446.9A CN103473291B (en) 2013-09-02 2013-09-02 Personalized service recommendation system and method based on latent semantic probability models

Publications (2)

Publication Number Publication Date
CN103473291A CN103473291A (en) 2013-12-25
CN103473291B true CN103473291B (en) 2017-01-18

Family

ID=49798139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310392446.9A Expired - Fee Related CN103473291B (en) 2013-09-02 2013-09-02 Personalized service recommendation system and method based on latent semantic probability models

Country Status (1)

Country Link
CN (1) CN103473291B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3684139A4 (en) * 2017-09-30 2020-08-19 Huawei Technologies Co., Ltd. DATA ANALYSIS METHOD AND DEVICE

Families Citing this family (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104112366B (en) * 2014-07-25 2017-02-22 中国科学院自动化研究所 Method for traffic signal optimization based on latent semantic model
CN104166702B (en) * 2014-08-04 2017-06-23 浙江财经大学 A kind of service recommendation method of service-oriented supply chain network
CN104199843B (en) * 2014-08-07 2017-09-26 蔡剑 A kind of service ranking and recommendation method and system based on community network interaction data
CN104361023B (en) * 2014-10-22 2018-01-30 浙江中烟工业有限责任公司 A kind of mobile terminal Tobacco Reference method for pushing of context aware
CN104468727B (en) * 2014-11-06 2018-05-01 北京邮电大学 A kind of method for service selection based on variance
CN104468728B (en) * 2014-11-06 2017-12-08 北京邮电大学 A kind of method for service selection based on comentropy and variance
US10028116B2 (en) * 2015-02-10 2018-07-17 Microsoft Technology Licensing, Llc De-siloing applications for personalization and task completion services
CN104834967A (en) * 2015-04-24 2015-08-12 南京邮电大学 User similarity-based business behavior prediction method under ubiquitous network
CN104794367B (en) * 2015-05-12 2018-01-12 宁波克诺普信息科技有限公司 Medical treatment resource scoring based on hidden semantic model is with recommending method
US9792281B2 (en) * 2015-06-15 2017-10-17 Microsoft Technology Licensing, Llc Contextual language generation by leveraging language understanding
CN105138508A (en) * 2015-08-06 2015-12-09 电子科技大学 Preference diffusion based context recommendation system
CN105260390B (en) * 2015-09-11 2016-11-16 合肥工业大学 A kind of item recommendation method based on joint probability matrix decomposition towards group
CN105512323A (en) * 2015-12-21 2016-04-20 广东省科技基础条件平台中心 Method for recommending scientific and technological resources based on domain feature and latent semantic analysis
CN109146151A (en) * 2016-02-05 2019-01-04 第四范式(北京)技术有限公司 There is provided or obtain the method, apparatus and forecasting system of prediction result
CN107169571A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 A kind of Feature Selection method and device
CN105930406B (en) * 2016-04-15 2019-03-22 清华大学 A service recommendation method based on Poisson decomposition
CN108629608B (en) * 2017-03-22 2023-02-24 腾讯科技(深圳)有限公司 User data processing method and device
US10922717B2 (en) 2017-04-07 2021-02-16 Beijing Didi Infinity Technology And Development Co., Ltd. Systems and methods for activity recommendation
CN108694182B (en) * 2017-04-07 2021-03-02 北京嘀嘀无限科技发展有限公司 Activity pushing method, activity pushing device and server
CN106961356B (en) * 2017-04-26 2020-01-10 中国人民解放军信息工程大学 Web service selection method and device based on dynamic QoS and subjective and objective weight
CN107025311A (en) * 2017-05-18 2017-08-08 北京大学 A kind of Bayes's personalized recommendation method and device based on k nearest neighbor
CN107330023B (en) * 2017-06-21 2021-02-12 北京百度网讯科技有限公司 Text content recommendation method and device based on attention points
CN107562632B (en) * 2017-09-12 2020-08-28 北京奇艺世纪科技有限公司 A/B testing method and device for recommendation strategy
CN107885796B (en) * 2017-10-27 2020-04-17 阿里巴巴集团控股有限公司 Information recommendation method, device and equipment
CN108182229B (en) * 2017-12-27 2022-10-28 上海科大讯飞信息科技有限公司 Information interaction method and device
CN108763251B (en) * 2018-04-02 2021-06-01 创新先进技术有限公司 Personalized recommendation method, device and electronic device for core body products
CN108287904A (en) * 2018-05-09 2018-07-17 重庆邮电大学 A kind of document context perception recommendation method decomposed based on socialization convolution matrix
CN109032591B (en) * 2018-06-21 2021-04-09 北京航空航天大学 Crowdsourcing software developer recommendation method based on meta-learning
CN112997171B (en) * 2018-09-27 2024-08-27 谷歌有限责任公司 Analyze web pages to facilitate automatic navigation
WO2020106706A1 (en) 2018-11-19 2020-05-28 Siemens Aktiengesellschaft Object marking to support tasks by autonomous machines
CN111611486B (en) * 2020-05-15 2021-03-26 北京博海迪信息科技有限公司 Deep learning sample labeling method based on online education big data
CN113094589B (en) * 2021-04-30 2024-05-28 中国银行股份有限公司 Intelligent service recommendation method and device
CN117852632A (en) * 2023-04-27 2024-04-09 深圳市中京政通科技有限公司 Knowledge base operation service system and integrated knowledge base management method
CN119987923B (en) * 2025-01-16 2025-08-29 杭州哨邦科技有限公司 Platform management method, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414296A (en) * 2007-10-15 2009-04-22 日电(中国)有限公司 Self-adapting service recommendation equipment and method, self-adapting service recommendation system and method
US8145636B1 (en) * 2009-03-13 2012-03-27 Google Inc. Classifying text into hierarchical categories
CN102819575A (en) * 2012-07-20 2012-12-12 南京大学 Personalized search method for Web service recommendation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198882A1 (en) * 2001-03-29 2002-12-26 Linden Gregory D. Content personalization based on actions performed during a current browsing session

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414296A (en) * 2007-10-15 2009-04-22 日电(中国)有限公司 Self-adapting service recommendation equipment and method, self-adapting service recommendation system and method
US8145636B1 (en) * 2009-03-13 2012-03-27 Google Inc. Classifying text into hierarchical categories
CN102819575A (en) * 2012-07-20 2012-12-12 南京大学 Personalized search method for Web service recommendation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3684139A4 (en) * 2017-09-30 2020-08-19 Huawei Technologies Co., Ltd. DATA ANALYSIS METHOD AND DEVICE
US11552856B2 (en) 2017-09-30 2023-01-10 Huawei Technologies Co., Ltd. Data analytics method and apparatus

Also Published As

Publication number Publication date
CN103473291A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
CN103473291B (en) Personalized service recommendation system and method based on latent semantic probability models
WO2021179834A1 (en) Heterogeneous graph-based service processing method and device
US9128988B2 (en) Search result ranking by department
CN106354856B (en) Deep neural network enhanced search method and device based on artificial intelligence
CN114782062B (en) Commodity recall optimization method and device, equipment, medium and product thereof
CN107609651A (en) A kind of design item appraisal procedure based on learner model
CN101685456B (en) A search method, system and device
CN111553401B (en) A QoS prediction method based on graph model applied in cloud service recommendation
Feng et al. Computational social indicators: a case study of chinese university ranking
CN103095849B (en) A method and a system of spervised web service finding based on attribution forecast and error correction of quality of service (QoS)
Liu Simulation of E-learning in English personalized learning recommendation system based on Markov chain algorithm and adaptive learning algorithm
CN104063555B (en) The user model modeling method intelligently distributed towards remote sensing information
Celdir et al. Popularity bias in online dating platforms: Theory and empirical evidence
WO2020147259A1 (en) User portait method and apparatus, readable storage medium, and terminal device
CN107958070B (en) Personalized message pushing method based on user preference
CN110879841B (en) Knowledge item recommendation method, device, computer equipment and storage medium
CN106021423A (en) Group division-based meta-search engine personalized result recommendation method
Gao et al. [Retracted] Construction of Digital Marketing Recommendation Model Based on Random Forest Algorithm
CN120583429A (en) Multi-dimensional competitive insight method for mobile communication networks based on DeepSeek large model and multi-agent collaboration
CN113742597A (en) Interest point recommendation method based on LBSN (location based service) and multi-graph fusion
CN115222177A (en) Service data processing method and device, computer equipment and storage medium
Salehi et al. Attribute-based collaborative filtering using genetic algorithm and weighted c-means algorithm
CN119961628A (en) Model hallucination detection method and device, storage medium and electronic device
CN119271777A (en) Intelligent reply method, device, equipment and medium based on natural language processing
CN118193865A (en) A method and system for identifying user identity links across social networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170118

Termination date: 20190902

CF01 Termination of patent right due to non-payment of annual fee