{'fraction_non_alphanumeric': 0.022114347357065803, 'fraction_numerical': 0.0, 'mean_word_length': 5.578014184397163, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Reliable and Lightweight Trust Inference Model for Service Recommendation in SIoT

In the era of Internet of Things (IoT), millions of heterogeneous IoT devices generate an explosion of data and services waiting to be discovered. The convergence of IoT with social networks (SIoT) interconnects multiple IoT applications and alleviates the common data sparsity and cold start problems in traditional recommendation systems. However, the social trust relationships may also be very sparse, which affects the accuracy of trust-based recommendation systems. Meanwhile, mobile devices have limited resources and are more vulnerable to malicious attacks in the IoT environment. In order to complete the trust relationship and further improve the trust-based recommendation performance, we propose a reliable and lightweight trust inference model for service recommendation in SIoT, called TIRec. First, we obtain a comprehensive weighted centrality metric (LGWC) considering both local and global contexts. Based on this, we propose a corresponding lightweight trust path selection algorithm. Then, we present a reliable trust inference calculation algorithm consist of trust propagation and aggregation strategy, which can efficiently resist two common malicious attacks. Finally, we incorporate the rating, direct trust, and indirect trust together into the matrix factorization model, and integrate the influence of truster and trustee to obtain the synthetic model for rating predication. To the best of our knowledge, this article is the first to integrate trust inference algorithm into the trust-based recommendation systems. The extensive experiments are conducted on three real-world data sets, and the results show that our TIRec model performs better than other advanced recommendation models in both “all users” view and “cold start users” view.