Towards a Machine Learning-driven Trust Evaluation Model for Social Internet of Things: A Time-aware Approach

Subhash Sagar, Adnan Mahmood, Michael Sheng, Munazza Zaib, Wei Zhang

Abstract

The Social Internet of Things (SIoT) represents an evolution of the IoT where smart objects autonomously establish social-like relationships to facilitate collaboration. Ensuring security in such decentralized networks requires a robust trust evaluation mechanism. Traditional models often utilize static "weighted-sum" heuristics that fail to capture the dynamic and context-dependent nature of trust. This paper presents a time-aware trust evaluation model that utilizes a machine learning pipeline—combining k-means clustering for unsupervised labeling and Random Forest for classification. Evaluated on real-world traces from the CRAWDAD dataset, the proposed model achieves a classification accuracy of 98.8%, demonstrating its ability to effectively distinguish between trustworthy and malicious entities based on their social interaction history.

1. Introduction

As the Internet of Things (IoT) transitions into the Social Internet of Things (SIoT), smart objects—ranging from wearable devices to home hubs—increasingly interact through social-like paradigms such as friendships, shared ownership, and co-location. In these environments, objects must autonomously decide whether to collaborate with others. This decision-making process hinges on "trust," a metric that is inherently dynamic and influenced by past behaviors.

Existing trust evaluation frameworks typically rely on manually assigned weights for various parameters. These heuristics are difficult to tune and often fail to adapt to the evolving behaviors of nodes over time. There is a critical need for a model that can automatically determine the importance of social metrics and account for temporal changes in node behavior.

2. Proposed Methodology

The authors propose a three-stage pipeline designed to automate trust evaluation and adapt to the temporal dynamics of the SIoT network.

The proposed three-stage trust evaluation pipeline: Social Network of Objects, Feature Selection and Quantification, and Trust Computation.

2.1 Feature Extraction

The model identifies four primary social trust metrics:

  • Friendship Similarity (FS): Measures commonality in neighboring nodes.
  • Community-of-Interest (CoI): Evaluates shared social or functional group memberships.
  • Co-work Similarity (CWS): Quantifies the frequency of collaboration on common tasks.
  • Cooperativeness (CoP): Uses an entropy-based function to detect interaction imbalances, which can signal malicious or inconsistent service.

2.2 Unsupervised Labeling and Classification

Given the lack of labeled "trustworthy" or "malicious" data in real-world SIoT traces, the model employs k-means clustering to group interactions into two classes. Subsequently, a Random Forest classifier is trained on these labels. This approach not only establishes a robust decision boundary but also provides "feature importance" scores, effectively replacing manual weighting with data-driven insights.

3. Experimental Evaluation

The model was validated using the CRAWDAD dataset (SIGCOMM 2009), which contains real-world traces of 76 nodes and over 18,000 interactions. The data includes friendship lists, interest groups, and message logs, which were processed into a feature matrix representing 5,776 interaction pairs.

4. Results and Analysis

The machine learning-driven approach yielded significant improvements over traditional models.

4.1 Classification Performance

The Random Forest model achieved an overall accuracy of 98.8%. Precision, recall, and F1-scores for both trustworthy and untrustworthy classes remained consistently between 0.97 and 1.0, indicating high reliability in identifying malicious actors.

Classification of trustworthy vs. untrustworthy nodes based on Cooperativeness and Community-of-Interest features, showing the learned decision boundary.

4.2 Feature Importance and Temporal Dynamics

A key finding was the "death of manual weights." The Random Forest analysis revealed that Co-work Similarity (CWS) was the most influential factor, accounting for 60.75% of the trust decision. In contrast, Cooperativeness (CoP) contributed only 3.16% in this specific dataset.

Furthermore, the model demonstrated sensitivity to temporal changes. By tracking nodes over a 24-hour period, the authors observed how trust scores evolve. For instance, "Node 8" successfully built a positive reputation through consistent interactions, while "Node 19" lost trust over time due to deteriorating behavior. This highlights the model's ability to handle the "warm-up" period for new nodes and detect shifting patterns in established ones.

5. Conclusion

This paper demonstrates that a machine learning-driven, time-aware approach significantly enhances trust evaluation in SIoT. By moving away from rigid heuristics to a data-driven pipeline, the model achieves near-perfect accuracy while providing transparency into which social factors drive trust. Future work will focus on integrating environmental context (e.g., energy levels) and testing resilience against sophisticated "on-off" trust attacks.

Summary updated

Abstract

The emerging paradigm of the Social Internet of Things (SIoT) has transformed the traditional notion of the Internet of Things (IoT) into a social network of billions of interconnected smart objects by integrating social networking facets into the same. In SIoT, objects can establish social relationships in an autonomous manner and interact with the other objects in the network based on their social behaviour. A fundamental problem that needs attention is establishing of these relationships in a reliable and trusted way, i.e., establishing trustworthy relationships and building trust amongst objects. In addition, it is also indispensable to ascertain and predict an object’s behaviour in the SIoT network over a period of time. Accordingly, in this paper, we have proposed an efficient time-aware machine learning-driven trust evaluation model to address this particular issue. The envisaged model deliberates social relationships in terms of friendship and community-interest, and further takes into consideration the working relationships and cooperativeness (object-object interactions) as trust parameters to quantify the trustworthiness of an object. Subsequently, in contrast to the traditional weighted sum heuristics, a machine learning-driven aggregation scheme is delineated to synthesize these trust parameters to ascertain a single trust score. The experimental results demonstrate that the proposed model can efficiently segregates the trustworthy and untrustworthy objects within a network, and further provides the insight on how the trust of an object varies with time along with depicting the effect of each trust parameter on a trust score.
BibTeX
@inproceedings{sagar2020towards,
  author = {Subhash Sagar and Adnan Mahmood and Michael Sheng and Munazza Zaib and Wei Zhang},
  title = {{Towards a Machine Learning-driven Trust Evaluation Model for Social Internet of Things: A Time-aware Approach}},
  booktitle = {MobiQuitous},
  year = {2020},
  doi = {10.1145/3448891.3448927},
}
Figure