Tham khảo tài liệu 'smart home systems part 8', kỹ thuật - công nghệ, cơ khí - chế tạo máy phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 96 Smart Home Systems To obtain the total relationship between ti and tj rij we should take into account their partial relationships with respect to each service in the smart home and appropriately weight them according to its IOP. IOP s rij s ys ti vtj GT s rij IOP s 5 ys ti vtj GT s Tag cloud comparison The selection process need an algorithm of tag cloud comparison. Concretely the contextual tag cloud which describes the actual context TC home has to be compared with the information in the contextual folksonomy in order to decide which service of a specific category is more suitable. As it was mentioned before in this decision we can vary the quantity of collective intelligence taken into account that is using only the information in the user personomy or using the information in the system folksonomy. In this section we propose a metric for comparing contextual tag clouds. The simplest way to measure this value would be to count the number of coincident tags in both contextual tag clouds . the higher the number of coincident tags the higher the degree of relationship between the actual context at home and the contexts where a specific service has been used. Besides to take into account the relative importance of the coincident tag in the tag cloud instead of adding 1 for each coincident tag it is better to add the means of their weights in both tag clouds. The relationships is then calculated like follows Ro TCs s TC home yjw s ti w home ti 6 yi ti e T s CT home But this approach does not take into account the relationships between the tags in the weighted graph of the folksonomy TGc. Although a tag that belongs to the first tag cloud do not appear in the second tag cloud or appears with a lower weight it can be closely related to the rest of the tags of the second tag cloud. To take this fact into account we do not only consider the number of coincident tags and their weights direct relationship Ro TCs s TC home but also the degree of relationship .