Introduction
Link prediction is a fundamental task in network science, with applications ranging from social network recommendations to biological interaction discovery. However, real-world networks are inherently dynamic and modular. Traditional static approaches often fail to capture the temporal evolution of relationships or the influence of community structures. This paper proposes a supervised learning framework that addresses these gaps by integrating community discovery with time series forecasting to predict future interactions within and between communities.
Methodology
The proposed framework follows a four-stage pipeline designed to capture the dynamic nature of social interactions by treating network features as evolving signals rather than static snapshots.
- Community Discovery: The dynamic network is divided into temporal snapshots. Community detection algorithms—such as Louvain, Infohiermap, and DEMON—are applied to each snapshot to identify node clusters.
- Feature Engineering: For every pair of nodes, a comprehensive set of features is extracted. These include pairwise structural metrics (e.g., Common Neighbors), global topological metrics (e.g., PageRank), and specialized community-based features.
- Time Series Forecasting: Instead of using static feature values, the framework treats each feature as a time series. Forecasting methods like Moving Average or Linear Regression are employed to predict the feature's value in the subsequent time step.
- Supervised Classification: The forecasted feature values serve as inputs to an ensemble of classifiers (e.g., Random Forest, SVM) to predict the likelihood of a future link.
Community-Aware Features
A key innovation of this work is the use of community-specific metrics to capture the local environment of node pairs. These features help distinguish between intra-community (internal) and inter-community (bridge) links.
Experimental Setup
The framework was evaluated on two real-world datasets:
- Social Network: A messaging network from UC Irvine (~1,900 nodes, 113k interactions) discretized into monthly snapshots.
- DBLP: A large-scale co-authorship network (~747,000 nodes, 5.3M interactions) discretized into yearly snapshots.
The study specifically compared the performance of intra-community prediction (within the same group) and inter-community prediction (between different groups).
Key Results and Insights
The experimental results highlight several critical findings:
- Predictive Power of Trends: Forecasting the "momentum" of a relationship (the trend of its features) significantly outperforms models based on static snapshots. In some cases, community-aware features provided a 10.67% boost in accuracy over standard structural features.
- High Accuracy in Communities: For intra-community prediction on the Social dataset, the model achieved an impressive AUC of 0.981 and an accuracy of 93.55%.
- The Challenge of Weak Ties: Inter-community links (bridges) are more volatile and harder to predict. However, by abstracting the network to a "community-node" graph, the model achieved an AUC of 0.66 on the DBLP dataset, significantly outperforming random baselines.
- Algorithm Sensitivity: The choice of community detection matters. The DEMON algorithm, which allows for overlapping communities, performed best for the social messaging dataset, suggesting that informal social circles are better modeled as overlapping entities.
Conclusion
By treating network features as evolving signals and incorporating community context, this supervised approach provides a robust framework for predicting both stable group interactions and volatile bridges in dynamic networks. Future work will explore the integration of community evolution patterns (merging and splitting) and non-network data to further enhance prediction accuracy.
Summary updated