Abstract
The increasing availability of temporal network data is calling for more research on extracting and characterizing mesoscopic structures in temporal networks and on relating such structure to specific functions or properties of the system. An outstanding challenge is the extension of the results achieved for static networks to time-varying networks, where the topological structure of the system and the temporal activity patterns of its components are intertwined. Here we investigate the use of a latent factor decomposition technique, non-negative tensor factorization, to extract the community-activity structure of temporal networks. The method is intrinsically temporal and allows to simultaneously identify communities and to track their activity over time. We represent the time-varying adjacency matrix of a temporal network as a three-way tensor and approximate this tensor as a sum of terms that can be interpreted as communities of nodes with an associated activity time series. We subsequently apply tensor factorization to a temporal network for which a ground truth is available for both the community structure and the temporal activity patterns. We show that non-negative tensor factorization is capable of recovering the class structure with high accuracy. In particular, the extracted tensor components can be validated either as known school classes, or in terms of correlated activity patterns, i.e., of spatial and temporal coincidences that are determined by the known school activity schedule.
Introduction
Traditional network analysis often relies on static snapshots, aggregating interactions over time into a single graph. This approach frequently obscures the "rhythm" of the system, potentially merging groups that were never active simultaneously or losing critical temporal dynamics. Real-world systems, such as social interactions in a school or protein-protein interactions, are inherently time-varying. The challenge lies in identifying "mesoscopic" structures—communities—that are defined not only by their topology (who is connected) but also by their temporal activity patterns (when they are active).
Methodology: Non-Negative Tensor Factorization (NTF)
To address this, the authors propose a framework based on Non-Negative Tensor Factorization (NTF), specifically utilizing the PARAFAC (Parallel Factor Analysis) decomposition.
Tensor Representation
A temporal network is represented as a three-way tensor $\mathcal{T}$ of size $N \times N \times S$, where $N$ denotes the number of nodes and $S$ represents the number of time intervals or snapshots. This structure captures the full evolution of the adjacency matrix over time.
Decomposition and Interpretation
The core of the method involves decomposing the tensor into a sum of $R$ components. Each component is an outer product of vectors representing node memberships and a temporal activity profile.
By applying a non-negativity constraint, the model becomes highly interpretable: nodes belong to a community with a specific weight, and that community exhibits activity with a certain intensity over time. This additive model allows for overlapping memberships, where nodes (such as teachers in a school setting) can belong to multiple communities simultaneously.
Experimental Validation
The framework was validated using high-resolution data from the SocioPatterns collaboration, specifically tracking face-to-face interactions among 241 individuals in a French primary school. This dataset provides a robust ground truth, including known class memberships and the official school schedule.
Community and Activity Discovery
The NTF approach successfully recovered the school's class structure with near-perfect accuracy. Beyond static classes, the model identified "mixed-class" components corresponding to social gatherings in shared spaces like the cafeteria or playground.
The temporal profiles (Matrix C) aligned perfectly with the school's daily rhythm. Components representing individual classes showed high activity during lesson hours, while mixed-class components peaked during lunch and recess. Spatial correlation analysis confirmed that these mixed-class components were physically located in the cafeteria and playground at the predicted times.
Conclusion
Non-negative tensor factorization provides a powerful, intrinsically temporal method for unmasking the intertwined structures of community and activity. By moving beyond static snapshots, it offers a more nuanced understanding of how networks evolve. Future work may explore incorporating temporal smoothing for noisier datasets or extending the model to multiplex networks and real-time data streams.
Summary updated