73 publications · 3 preprints. See also my Google Scholar profile.
Type
Show
Group by
2026
-
Improving network motif analysis: an algorithmic approach with user-defined patterns
doi code
bib
@article{ribeiro-IJDSA2026, author = {Luciano Grácio and Pedro Ribeiro}, title = {Improving network motif analysis: an algorithmic approach with user-defined patterns}, journal = {International Journal of Data Science and Analytics}, volume = {22}, number = {1}, pages = {370}, publisher = {Springer}, doi = {10.1007/s41060-026-01308-1}, month = {November}, year = {2026} } -
preprint Transfer Learning for Evolving Domains
doi arXiv
abstract
Transfer learning explores how to leverage knowledge from various tasks or domains (sources) to enhance predictive performance in related tasks or domains (targets). Typically, transfer learning research is segmented into several isolated sub-areas (such as domain generalisation, domain adaptation, or multi-domain learning), each making distinct assumptions about target data availability, namely how much data and how many labels are available at training time. However, in many real-world applications, data availability is not fixed but evolves over time, as instances and labels are progressively collected from a new domain. Each of the classical settings then describes only a snapshot of a trajectory that a deployed system must traverse in full. We formalise this trajectory as a transfer learning problem in its own right, Transfer Learning for Evolving Domains (TrED), specified by a data availability process fixed by the environment, a learning protocol that the method is free to choose, and an evaluation criterion that scores the whole trajectory of models rather than a single one. Within this formalism, the classical settings are recovered as regimes that a learner may pass through, rather than as separate problems that TrED concatenates. We then examine the transfer learning literature to identify mechanisms that are promising building blocks for a solution, and find that most methods are tailored to a single regime and that even the strongest existing candidates do not yet optimise the whole trajectory. We argue that TrED is a well-posed and unsolved problem, and an important direction for future research.bib
@misc{ribeiro-ARXIV260913039, author = {Ricardo Ribeiro Pereira and Jacopo Bono and Hugo M. Ferreira and Pedro Ribeiro and Pedro Saleiro and Pedro Bizarro and Carlos Soares}, title = {Transfer Learning for Evolving Domains}, howpublished = {arXiv preprint arXiv:2609.13039}, doi = {10.48550/arXiv.2609.13039}, month = {September}, year = {2026} } -
Bringing Cancer Prevention to Schools: Evaluation of a Novel Teaching Toolkit
doi
abstract
Purpose cancer prevention is key to reduce disease burden, but is often dependent on individual behavioral choices, many of which are adopted early on during adolescence. A novel cancer prevention teaching toolkit, designed for this audience and the educational context, was evaluated for its adequacy and impact. Design Three complementary methods were used: a students’ evaluation study, a teachers’ survey, and website metrics analysis. Setting Schools and online. Sample 316 high school students (15-21yo), 79 teachers, and 4007 online users. Measures Students’ knowledge was measured by questionnaire and behavior were measured pre- and post-intervention; teacher and student appreciation was assessed via structured survey; usage was evaluated by survey (teachers) and website analytics. Analysis Descriptive statistics summarized appreciation levels; paired statistical tests evaluated changes in knowledge and behavior; network analysis and descriptive statistics for describing usage patterns. Results The toolkit was primarily used by Biology teachers (89.9%) in classroom settings (83.5%). Both teachers and students reported high levels of appreciation and dissemination. Significant knowledge differences between groups of students were observed 30 days post-intervention ( P < 0.001). Approximately 50% of students adopted healthier behaviors, some for the first time. Conclusion This work boldly underlines the importance of purposedly designing cancer prevention contents for adolescents and the educational context, with important implications for the development of future cancer prevention educational programs and public health promotion initiatives.bib
@article{ribeiro-AJHP2026, author = {Ana A. Gomes and Nuno Ribeiro and Pedro Oliveira and Pedro Ribeiro and Nuno T. Marcos}, title = {Bringing Cancer Prevention to Schools: Evaluation of a Novel Teaching Toolkit}, journal = {American Journal of Health Promotion}, publisher = {SAGE Publications}, doi = {10.1177/08901171261481763}, month = {August}, year = {2026} } -
Counting subgraphs in multiplex networks
doi code
abstract
Beyond isolated nodes, subgraphs are fundamental components of networks, with enormous potential to provide a detailed characterization of the underlying systems. Computing subgraph frequencies is therefore a core task indispensable to several other important network metrics. Yet, quantifying these small pieces is computationally challenging, with no known general polynomial-time solution, driving the search for efficient methodologies. Previous counting methods mainly focused on simple classic networks, consisting of a single layer of connectivity. In the last decade, there has been growing interest in multilayer networks, which provide a more realistic representation of complex systems by incorporating layers. With this integration, fundamental concepts were meanwhile presented in a consolidated manner, forming the basis for the development of our proposed strategy. Seeking to contribute to the advancement of multilayer network analysis, but considering the scarcity of available solutions, we focus on a specific and more limited problem before progressing to the more general case. Here, we focus precisely on providing a subgraph counting methodology by computing the frequency of all subgraphs of a specified size in the multiplex case, which is the most widely used type of multilayer networks. Our implementation builds on the algorithm, extending it to accommodate multiplex networks by adapting its efficient enumeration and isomorphism identification process to address the introduced layers. This adaptation preserves accuracy, making it an available practical tool for counting subgraphs in multiplex networks, with proof of its performance, supported by experimental results that validate its effectiveness in both synthetic and real world datasets.bib
@article{ribeiro-ANS2026, author = {André Couto Meira and Pedro Ribeiro}, title = {Counting subgraphs in multiplex networks}, journal = {Applied Network Science}, volume = {11}, number = {1}, pages = {58}, publisher = {Springer}, doi = {10.1007/s41109-026-00812-4}, month = {August}, year = {2026} } -
preprint Do Deep Ensembles Actually Capture Uncertainty in Graph Neural Networks?
doi arXiv
abstract
While deep ensembles are widely considered to be the default method for uncertainty quantification in deep learning, their effectiveness for graph-structured data is often simply assumed based on successes in domains like computer vision. We investigate standard deep ensembles specifically for message-passing graph neural networks. Benchmarking across eight datasets representing varied tasks and complexities, we reveal that ensembles provide only marginal improvement over a single model. These marginal gains stem primarily from averaging out optimization noise in point predictions rather than from meaningfully better uncertainty estimates. Through an aleatoric-epistemic decomposition, we identify epistemic collapse: independently trained networks consistently converge to overly similar predictions. Because disagreement is the fundamental mechanism through which ensembles capture epistemic uncertainty, this lack of diversity neutralizes their key advantage. Towards explaining this phenomenon, we derive a bound on epistemic variance in terms of the graph topology and Dirichlet energy budget, linking epistemic collapse to the smoothing bias of message passing. Our results suggest that deep ensemble success does not seamlessly transfer to graph machine learning.bib
@misc{ribeiro-ARXIV260522593, author = {Pedro C. Vieira and Pedro Ribeiro and Viacheslav Borovitskiy}, title = {Do Deep Ensembles Actually Capture Uncertainty in Graph Neural Networks?}, howpublished = {arXiv preprint arXiv:2605.22593}, doi = {10.48550/arXiv.2605.22593}, month = {May}, year = {2026} }
2025
-
Evaluating Transfer Learning Methods on Real-World Data Streams: A Case Study in Financial Fraud Detection
doi
abstract
When the available data for a target domain is limited, transfer learning (TL) methods can be used to develop models on related data-rich domains, before deploying them on the target domain. However, these TL methods are typically designed with specific, static assumptions on the amount of available labeled and unlabeled target data. This is in contrast with many real world applications, where the availability of data and corresponding labels varies over time. Since the evaluation of the TL methods is typically also performed under the same static data availability assumptions, this would lead to unrealistic expectations concerning their performance in real world settings. To support a more realistic evaluation and comparison of TL algorithms and models, we propose a data manipulation framework that (1) simulates varying data availability scenarios over time, (2) creates multiple domains through resampling of a given dataset and (3) introduces inter-domain variability by applying realistic domain transformations, e.g., creating a variety of potentially time-dependent covariate and concept shifts. These capabilities enable simulation of a large number of realistic variants of the experiments, in turn providing more information about the potential behavior of algorithms when deployed in dynamic settings. We demonstrate the usefulness of the proposed framework by performing a case study on a proprietary real-world suite of card payment datasets. Given the confidential nature of the case study, we also illustrate the use of the framework on the publicly available Bank Account Fraud (BAF) dataset. By providing a methodology for evaluating TL methods over time and in realistic data availability scenarios, our framework facilitates understanding of the behavior of models and algorithms. This leads to better decision making when deploying models for new domains in real-world environments.bib
@inproceedings{ribeiro-ECMLPKDD2025, author = {Ricardo Ribeiro Pereira and Jacopo Bono and Hugo M. Ferreira and Pedro Ribeiro and Carlos Soares and Pedro Bizarro}, title = {Evaluating Transfer Learning Methods on Real-World Data Streams: A Case Study in Financial Fraud Detection}, booktitle = {Machine Learning and Knowledge Discovery in Databases. Applied Data Science Track}, pages = {230--246}, publisher = {Springer}, doi = {10.1007/978-3-032-06118-8_14}, month = {September}, year = {2025} } -
Optimizing Medical Image Captioning with Conditional Prompt Encoding
doi
bib
@inproceedings{ribeiro-IBPRIA2025, author = {Rendson F. Fernandes and Hugo S. Oliveira and Pedro Ribeiro and Hélder P. Oliveira}, title = {Optimizing Medical Image Captioning with Conditional Prompt Encoding}, booktitle = {Pattern Recognition and Image Analysis}, pages = {196--207}, publisher = {Springer}, doi = {10.1007/978-3-031-99568-2_16}, month = {July}, year = {2025} } -
Multilayer quantile graph for multivariate time series analysis and dimensionality reduction
pdf doi arXiv
abstract
In recent years, there has been a surge in the prevalence of high- and multidimensional temporal data across various scientific disciplines. These datasets are characterized by their vast size and challenging potential for analysis. Such data typically exhibit serial and cross-dependency and possess high dimensionality, thereby introducing additional complexities to conventional time series analysis methods. To address these challenges, a recent and complementary approach has emerged, known as network-based analysis methods for multivariate time series. In univariate settings, quantile graphs have been employed to capture temporal transition properties and reduce data dimensionality by mapping observations to a smaller set of sample quantiles. To confront the increasingly prominent issue of high dimensionality, we propose an extension of quantile graphs into a multivariate variant, which we term “Multilayer Quantile Graphs”. In this innovative mapping, each time series is transformed into a quantile graph, and inter-layer connections are established to link contemporaneous quantiles of pairwise series. This enables the analysis of dynamic transitions across multiple dimensions. In this study, we demonstrate the effectiveness of this new mapping using synthetic and benchmark multivariate time series datasets. We delve into the resulting network’s topological structures, extract network features, and employ these features for original dataset analysis. Furthermore, we compare our results with a recent method from the literature. The resulting multilayer network offers a significant reduction in the dimensionality of the original data while capturing serial and cross-dimensional transitions. This approach facilitates the characterization and analysis of large multivariate time series datasets through network analysis techniques.bib
@article{ribeiro-IJDSA2024, author = {Vanessa Freitas Silva and Maria Eduarda Silva and Pedro Ribeiro and Fernando Silva}, title = {Multilayer quantile graph for multivariate time series analysis and dimensionality reduction}, journal = {International Journal of Data Science and Analytics}, volume = {20}, number = {3}, pages = {1795--1807}, publisher = {Springer}, doi = {10.1007/s41060-024-00561-6}, month = {May}, year = {2025} } -
preprint Studying and Improving Graph Neural Network-based Motif Estimation
doi arXiv
abstract
Graph Neural Networks (GNNs) are a predominant method for graph representation learning. However, beyond subgraph frequency estimation, their application to network motif significance-profile (SP) prediction remains under-explored, with no established benchmarks in the literature. We propose to address this problem, framing SP estimation as a task independent of subgraph frequency estimation. Our approach shifts from frequency counting to direct SP estimation and modulates the problem as multitarget regression. The reformulation is optimised for interpretability, stability and scalability on large graphs. We validate our method using a large synthetic dataset and further test it on real-world graphs. Our experiments reveal that 1-WL limited models struggle to make precise estimations of SPs. However, they can generalise to approximate the graph generation processes of networks by comparing their predicted SP with the ones originating from synthetic generators. This first study on GNN-based motif estimation also hints at how using direct SP estimation can help go past the theoretical limitations that motif estimation faces when performed through subgraph counting.bib
@misc{ribeiro-ARXIV250615709, author = {Pedro C. Vieira and Miguel E. P. Silva and Pedro Ribeiro}, title = {Studying and Improving Graph Neural Network-based Motif Estimation}, howpublished = {arXiv preprint arXiv:2506.15709}, doi = {10.48550/arXiv.2506.15709}, month = {May}, year = {2025} } -
Multilayer horizontal visibility graphs for multivariate time series analysis
doi arXiv code
abstract
Multivariate time series analysis is a vital but challenging task, with multidisciplinary applicability, tackling the characterization of multiple interconnected variables over time and their dependencies. Traditional methodologies often adapt univariate approaches or rely on assumptions specific to certain domains or problems, presenting limitations. A recent promising alternative is to map multivariate time series into high-level network structures such as multiplex networks, with past work relying on connecting successive time series components with interconnections between contemporary timestamps. In this work, we first define a novel cross-horizontal visibility mapping between lagged timestamps of different time series and then introduce the concept of multilayer horizontal visibility graphs. This allows describing cross-dimension dependencies via inter-layer edges, leveraging the entire structure of multilayer networks. To this end, a novel parameter-free topological measure is proposed and common measures are extended for the multilayer setting. Our approach is general and applicable to any kind of multivariate time series data. We provide an extensive experimental evaluation with both synthetic and real-world datasets. We first explore the proposed methodology and the data properties highlighted by each measure, showing that inter-layer edges based on cross-horizontal visibility preserve more information than previous mappings, while also complementing the information captured by commonly used intra-layer edges. We then illustrate the applicability and validity of our approach in multivariate time series mining tasks, showcasing its potential for enhanced data analysis and insights.bib
@article{ribeiro-DAMI2025, author = {Vanessa Freitas Silva and Maria Eduarda Silva and Pedro Ribeiro and Fernando Silva}, title = {Multilayer horizontal visibility graphs for multivariate time series analysis}, journal = {Data Mining and Knowledge Discovery}, volume = {39}, number = {3}, pages = {17}, publisher = {Springer}, doi = {10.1007/s10618-025-01089-4}, month = {March}, year = {2025} }
2024
-
Next Higher Point: two Novel Approaches for Computing Natural Visibility Graphs
pdf doi
abstract
With the huge amount of data that has been collected over time, many methods are being developed to allow better understanding and forecasting in several domains. Time series analysis is a powerful tool to achieve this goal. Despite being a well-established area, there are some gaps, and new methods are emerging to overcome these limitations, such as visibility graphs. Visibility graphs allow the analyses of times series as complex networks and make possible the use of more advanced techniques from another well-established area, network science. In this paper, we present two new efficient approaches for computing natural visibility graphs from times series, one for online scenarios in O(n log n) and the other for offline scenarios in O(nm), the latter taking advantage of the number of different values in the time series (m).bib
@inproceedings{ribeiro-CNA2024, author = {Patrick Daniel and Vanessa Silva and Pedro Ribeiro}, title = {Next Higher Point: two Novel Approaches for Computing Natural Visibility Graphs}, booktitle = {13th International Conference on Complex Networks and their Applications}, pages = {259--272}, publisher = {Springer}, doi = {10.1007/978-3-031-82427-2_22}, month = {December}, year = {2024} } -
Deep-Graph-Sprints: Accelerated Representation Learning in Continuous-Time Dynamic Graphs
pdf arXiv
abstract
Continuous-time dynamic graphs (CTDGs) are essential for modeling interconnected, evolving systems. Traditional methods for extracting knowledge from these graphs often depend on feature engineering or deep learning. Feature engineering is limited by the manual and time-intensive nature of crafting features, while deep learning approaches suffer from high inference latency, making them impractical for real-time applications. This paper introduces Deep-Graph-Sprints (DGS), a novel deep learning architecture designed for efficient representation learning on CTDGs with low-latency inference requirements. We benchmark DGS against state-of-the-art (SOTA) feature engineering and graph neural network methods using five diverse datasets. The results indicate that DGS achieves competitive performance while inference speed improves between 4x and 12x compared to other deep learning approaches on our benchmark datasets. Our method effectively bridges the gap between deep representation learning and low-latency application requirements for CTDGs.bib
@article{ribeiro-TMLR2024, author = {Ahmad Naser Eddin and Jacopo Bono and David Aparício and Hugo Ferreira and Pedro Ribeiro and Pedro Bizarro}, title = {Deep-Graph-Sprints: Accelerated Representation Learning in Continuous-Time Dynamic Graphs}, journal = {Transactions on Machine Learning Research}, month = {November}, year = {2024} } -
Computing Motifs in Hypergraphs
pdf doi code
abstract
Motifs are overrepresented and statistically significant sub-patterns in a network, whose identification is relevant to uncover its underlying functional units. Recently, its extraction has been performed on higher-order networks, but due to the complexity arising from polyadic interactions, and the similarity with known computationally hard problems, its practical application is limited. Our main contribution is a novel approach for hyper-subgraph census and higher-order motif discovery, allowing for motifs with sizes 3 or 4 to be found efficiently, in real-world scenarios. It is consistently an order of magnitude faster than a baseline state-of-art method, while using less memory and supporting a wider range of base algorithms.bib
@inproceedings{ribeiro-COMPLENET2024, author = {Duarte Nóbrega and Pedro Ribeiro}, title = {Computing Motifs in Hypergraphs}, booktitle = {15th Conference on Complex Networks}, pages = {55--70}, publisher = {Springer}, doi = {10.1007/978-3-031-57515-0_5}, month = {April}, year = {2024} }
2023
-
From random-walks to graph-sprints: a low-latency node embedding framework on continuous-time dynamic graphs
pdf doi arXiv
abstract
Many real-world datasets have an underlying dynamic graph structure, where entities and their interactions evolve over time. Machine learning models should consider these dynamics in order to harness their full potential in downstream tasks. Previous approaches for graph representation learning have focused on either sampling k-hop neighborhoods, akin to breadth-first search, or random walks, akin to depth-first search. However, these methods are computationally expensive and unsuitable for real-time, low-latency inference on dynamic graphs. To overcome these limitations, we propose graph-sprints a general purpose feature extraction framework for continuous-time-dynamic-graphs (CTDGs) that has low latency and is competitive with state-of-the-art, higher latency models. To achieve this, a streaming, low latency approximation to the random-walk based features is proposed. In our framework, time-aware node embeddings summarizing multi-hop information are computed using only single-hop operations on the incoming edges. We evaluate our proposed approach on three open-source datasets and two in-house datasets, and compare with three state-of-the-art algorithms (TGN-attn, TGN-ID, Jodie). We demonstrate that our graph-sprints features, combined with a machine learning classifier, achieve competitive performance (outperforming all baselines for the node classification tasks in five datasets). Simultaneously, graph-sprints significantly reduce inference latencies, achieving close to an order of magnitude speed-up in our experimental setting.bib
@inproceedings{ribeiro-ICAIF23b, author = {Ahmad Naser Eddin and Jacopo Bono and David Aparício and Hugo Ferreira and João Tiago Ascensão and Pedro Ribeiro and Pedro Bizarro}, title = {From random-walks to graph-sprints: a low-latency node embedding framework on continuous-time dynamic graphs}, booktitle = {4th ACM International Conference on AI in Finance}, pages = {176--184}, publisher = {ACM}, doi = {10.1145/3604237.3626842}, month = {November}, year = {2023} } -
The GANfather: Controllable generation of malicious activity to improve defence systems
pdf doi arXiv
abstract
Machine learning methods to aid defence systems in detecting malicious activity typically rely on labelled data. In some domains, such labelled data is unavailable or incomplete. In practice this can lead to low detection rates and high false positive rates, which characterise for example anti-money laundering systems. In fact, it is estimated that 1.7–4 trillion euros are laundered annually and go undetected. We propose The GANfather, a method to generate samples with properties of malicious activity, without label requirements. We propose to reward the generation of malicious samples by introducing an extra objective to the typical Generative Adversarial Networks (GANs) loss. Ultimately, our goal is to enhance the detection of illicit activity using the discriminator network as a novel and robust defence system. Optionally, we may encourage the generator to bypass pre-existing detection systems. This setup then reveals defensive weaknesses for the discriminator to correct. We evaluate our method in two real-world use cases, money laundering and recommendation systems. In the former, our method moves cumulative amounts close to 350 thousand dollars through a network of accounts without being detected by an existing system. In the latter, we recommend the target item to a broad user base with as few as 30 synthetic attackers. In both cases, we train a new defence system to capture the synthetic attacks.bib
@inproceedings{ribeiro-ICAIF23a, author = {Ricardo Ribeiro Pereira and Jacopo Bono and João Tiago Ascensão and David Aparício and Pedro Ribeiro and Pedro Bizarro}, title = {The GANfather: Controllable generation of malicious activity to improve defence systems}, booktitle = {4th ACM International Conference on AI in Finance}, pages = {133--140}, publisher = {ACM}, doi = {10.1145/3604237.3626882}, month = {November}, year = {2023} } -
Evaluation of Regularization Techniques for Transformers-Based Models
doi
abstract
In recent years the great success of transformers-based models initially employed in Natural Language (NLP) tasks has led to the development of several transformers variations to be employed in a wide range of domains, such as vision. With the correct amount of training data and proper training, transformers can perform excellently compared to the Convolution Neural Networks (CNN) counterpart in the vision tasks. However, the main drawback of transformers concerns the know memory requirements that often exceed the available training platform, growing in a quadratic form regarding the input image size, and a great tendency to overfit. Several works address the memory problem by relaxing the model architecture versions, but mainly with reduced prediction capabilities. In this work, we evaluate Random Patch erasing among the image patch level of the transformer model as a regularization technique to reduce ovefitting while at the same time alleviating training time. The evaluated regularization technique achieves competitive results on several image classification medical datasets. The evaluated Visual Transformers (ViT) models allow to be trained in a single GPU, reaching similar results to CNN counterparts, obtaining an accuracy 91.2%, 79.2% in two competitive image datasets, and reducing the training time on average by 22% on the transformers models.bib
@inproceedings{ribeiro-IbPRIA23, author = {Hugo S. Oliveira and Pedro Ribeiro and Helder P. Oliveira}, title = {Evaluation of Regularization Techniques for Transformers-Based Models}, booktitle = {11th Iberian Conference on Pattern Recognition and Image Analysis}, pages = {312--319}, publisher = {Springer}, doi = {10.1007/978-3-031-36616-1_25}, month = {June}, year = {2023} }
2022
-
Improving the Characterization and Comparison of Football Players with Spatial Flow Motifs
pdf doi
abstract
Association Football is probably the world’s most popular sport. Being able to characterise and compare football players is therefore a very important and impactful task. In this work we introduce spatial flow motifs as an extension of previous work on this problem, by incorporating both temporal and spatial information into the network analysis of football data. Our approach considers passing sequences and the role of the player in those sequences, complemented with the physical position of the field where the passes occurred. We provide experimental results of our proposed methodology on real-life event data from the Italian League, showing we can more accurately identify players when compared to using purely topological data.bib
@inproceedings{ribeiro-CNA2022b, author = {Alberto Barbosa and Pedro Ribeiro and Inês Dutra}, title = {Improving the Characterization and Comparison of Football Players with Spatial Flow Motifs}, booktitle = {11th International Conference on Complex Networks and their Applications}, pages = {579--591}, publisher = {Springer}, doi = {10.1007/978-3-031-21131-7_45}, month = {November}, year = {2022} } -
Towards the Concept of Spatial Network Motifs
pdf doi
abstract
Many complex systems exist in the physical world and therefore can be modeled by networks in which their nodes and edges are embedded in space. However, classical network motifs only use purely topological information and disregard other features. In this paper we introduce a novel and general subgraph abstraction that incorporates spatial information, therefore enriching its characterization power. Moreover, we describe and implement a method to compute and count our spatial subgraphs in any given network. We also provide initial experimental results by using our methodology to produce spatial fingerprints of real road networks, showcasing its discrimination power and how it captures more than just simple topology.bib
@inproceedings{ribeiro-CNA2022a, author = {José Ferreira and Alberto Barbosa and Pedro Ribeiro}, title = {Towards the Concept of Spatial Network Motifs}, booktitle = {11th International Conference on Complex Networks and their Applications}, pages = {565--577}, publisher = {Springer}, doi = {10.1007/978-3-031-21131-7_44}, month = {November}, year = {2022} } -
Novel features for time series analysis: a complex networks approach
pdf doi arXiv code
abstract
Being able to capture the characteristics of a time series with a feature vector is a very important task with a multitude of applications, such as classification, clustering or forecasting. Usually, the features are obtained from linear and nonlinear time series measures, that may present several data related drawbacks. In this work we introduce NetF as an alternative set of features, incorporating several representative topological measures of different complex networks mappings of the time series. Our approach does not require data preprocessing and is applicable regardless of any data characteristics. Exploring our novel feature vector, we are able to connect mapped network features to properties inherent in diversified time series models, showing that NetF can be useful to characterize time data. Furthermore, we also demonstrate the applicability of our methodology in clustering synthetic and benchmark time series sets, comparing its performance with more conventional features, showcasing how NetF can achieve high-accuracy clusters. Our results are very promising, with network features from different mapping methods capturing different properties of the time series, adding a different and rich feature set to the literature.bib
@article{ribeiro-DAMI2022, author = {Vanessa Freitas Silva and Maria Eduarda Silva and Pedro Ribeiro and Fernando Silva}, title = {Novel features for time series analysis: a complex networks approach}, journal = {Data Mining and Knowledge Discovery}, volume = {36}, number = {3}, pages = {1062--1101}, publisher = {Springer}, doi = {10.1007/s10618-022-00826-3}, month = {May}, year = {2022} } -
Anti-Money Laundering Alert Optimization Using Machine Learning with Graphs
arXiv
abstract
Money laundering is a global problem that concerns legitimizing proceeds from serious felonies (1.7-4 trillion euros annually) such as drug dealing, human trafficking, or corruption. The anti-money laundering systems deployed by financial institutions typically comprise rules aligned with regulatory frameworks. Human investigators review the alerts and report suspicious cases. Such systems suffer from high false-positive rates, undermining their effectiveness and resulting in high operational costs. We propose a machine learning triage model, which complements the rule-based system and learns to predict the risk of an alert accurately. Our model uses both entity-centric engineered features and attributes characterizing inter-entity relations in the form of graph-based features. We leverage time windows to construct the dynamic graph, optimizing for time and space efficiency. We validate our model on a real-world banking dataset and show how the triage model can reduce the number of false positives by 80% while detecting over 90% of true positives. In this way, our model can significantly improve anti-money laundering operations.bib
@inproceedings{ribeiro-AIFS2022, author = {Ahmad Naser Eddin and Jacopo Bono and David Aparício and David Polido and João Tiago Ascensão and Pedro Bizarro and Pedro Ribeiro}, title = {Anti-Money Laundering Alert Optimization Using Machine Learning with Graphs}, booktitle = {AAAI-22 Workshop on AI in Financial Services: Adaptiveness, Resilience & Governance}, month = {February}, year = {2022} } -
edited volume Network Science: 7th International Winter Conference, NetSci-X 2022, Porto, Portugal, February 8–11, 2022, Proceedings
doi
bib
@proceedings{ribeiro-NETSCIX2022, editor = {Pedro Ribeiro and Fernando Silva and José Fernando Mendes and Rosário Laureano}, title = {Network Science: 7th International Winter Conference, NetSci-X 2022, Porto, Portugal, February 8–11, 2022, Proceedings}, series = {Lecture Notes in Computer Science}, volume = {13197}, publisher = {Springer}, doi = {10.1007/978-3-030-97240-0}, year = {2022} }
2021
-
Similarity of Football Players Using Passing Sequences
pdf doi
abstract
Association football has been the subject of many research studies. In this work we present a study on player similarity using passing sequences extracted from games from the top-5 European football leagues during the 2017/2018 season. We present two different approaches: first, we only count the motifs a player is involved in; then we also take into consideration the specific position a player occupies in each motif. We also present a new way to objectively judge the quality of the generated models in football analytics. Our results show that the study of passing sequences can be used to study player similarity with relative success.bib
@inproceedings{ribeiro-MLSA2021, author = {Alberto Barbosa and Pedro Ribeiro and Inês Dutra}, title = {Similarity of Football Players Using Passing Sequences}, booktitle = {8th Workshop on Machine Learning and Data Mining for Sports Analytics}, pages = {51--61}, publisher = {Springer}, doi = {10.1007/978-3-031-02044-5_5}, month = {September}, year = {2021} } -
A Survey on Subgraph Counting: Concepts, Algorithms, and Applications to Network Motifs and Graphlets
pdf doi arXiv
abstract
Computing subgraph frequencies is a fundamental task that lies at the core of several network analysis methodologies, such as network motifs and graphlet-based metrics, which have been widely used to categorize and compare networks from multiple domains. Counting subgraphs is, however, computationally very expensive, and there has been a large body of work on efficient algorithms and strategies to make subgraph counting feasible for larger subgraphs and networks. This survey aims precisely to provide a comprehensive overview of the existing methods for subgraph counting. Our main contribution is a general and structured review of existing algorithms, classifying them on a set of key characteristics, highlighting their main similarities and differences. We identify and describe the main conceptual approaches, giving insight on their advantages and limitations, and we provide pointers to existing implementations. We initially focus on exact sequential algorithms, but we also do a thorough survey on approximate methodologies (with a trade-off between accuracy and execution time) and parallel strategies (that need to deal with an unbalanced search space).bib
@article{ribeiro-CSUR2021, author = {Pedro Ribeiro and Pedro Paredes and Miguel E. P. Silva and David Aparício and Fernando Silva}, title = {A Survey on Subgraph Counting: Concepts, Algorithms, and Applications to Network Motifs and Graphlets}, journal = {ACM Computing Surveys}, volume = {54}, number = {2}, pages = {1--36}, publisher = {ACM}, doi = {10.1145/3433652}, month = {March}, year = {2021} } -
Time series analysis via network science: Concepts and algorithms
pdf doi arXiv
abstract
There is nowadays a constant flux of data being generated and collected in all types of real world systems. These data sets are often indexed by time, space, or both requiring appropriate approaches to analyze the data. In univariate settings, time series analysis is a mature field. However, in multivariate contexts, time series analysis still presents many limitations. In order to address these issues, the last decade has brought approaches based on network science. These methods involve transforming an initial time series data set into one or more networks, which can be analyzed in depth to provide insight into the original time series. This review provides a comprehensive overview of existing mapping methods for transforming time series into networks for a wide audience of researchers and practitioners in machine learning, data mining, and time series. Our main contribution is a structured review of existing methodologies, identifying their main characteristics, and their differences. We describe the main conceptual approaches, provide authoritative references and give insight into their advantages and limitations in a unified way and language. We first describe the case of univariate time series, which can be mapped to single layer networks, and we divide the current mappings based on the underlying concept: visibility, transition, and proximity. We then proceed with multivariate time series discussing both single layer and multiple layer approaches. Although still very recent, this research area has much potential and with this survey we intend to pave the way for future research on the topic.bib
@article{ribeiro-WIDM2021, author = {Vanessa Freitas Silva and Maria Eduarda Silva and Pedro Ribeiro and Fernando Silva}, title = {Time series analysis via network science: Concepts and algorithms}, journal = {Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery}, volume = {11}, number = {3}, pages = {e1404}, publisher = {Wiley}, doi = {10.1002/widm.1404}, month = {March}, year = {2021} }
2020
-
StreamFaSE: An Online Algorithm for Subgraph Counting in Dynamic Networks
pdf doi
abstract
Counting subgraph occurrences in complex networks is an important analytical task with applicability in a multitude of domains such as sociology, biology and medicine. This task is a fundamental primitive for concepts such as motifs and graphlet degree distributions. However, there is a lack of online algorithms for computing and updating subgraph counts in dynamic networks. Some of these networks exist as a streaming of edge additions and deletions that are registered as they occur in the real world. In this paper we introduce StreamFaSE, an efficient online algorithm for keeping track of exact subgraph counts in dynamic networks, and we explain in detail our approach, showcasing its general applicability in different network scenarios. We tested our method on a set of diverse real directed and undirected network streams, showing that we are always faster than the current existing methods for this task, achieving several orders of magnitude speedup when compared to a state-of-art baseline.bib
@inproceedings{ribeiro-CNA2020, author = {Henrique Branquinho and Luciano Grácio and Pedro Ribeiro}, title = {StreamFaSE: An Online Algorithm for Subgraph Counting in Dynamic Networks}, booktitle = {9th International Conference on Complex Networks and their Applications}, pages = {688--699}, publisher = {Springer}, doi = {10.1007/978-3-030-65351-4_55}, month = {December}, year = {2020} } -
PseudoChecker: an integrated online platform for gene inactivation inference
pdf doi code
abstract
The rapid expansion of high-quality genome assemblies, exemplified by ongoing initiatives such as the Genome-10K and i5k, demands novel automated methods to approach comparative genomics. Of these, the study of inactivating mutations in the coding region of genes, or pseudogenization, as a source of evolutionary novelty is mostly overlooked. Thus, to address such evolutionary/genomic events, a systematic, accurate and computationally automated approach is required. Here, we present PseudoChecker, the first integrated online platform for gene inactivation inference. Unlike the few existing methods, our comparative genomics-based approach displays full automation, a built-in graphical user interface and a novel index, PseudoIndex, for an empirical evaluation of the gene coding status. As a multi-platform online service, PseudoChecker simplifies access and usability, allowing a fast identification of disruptive mutations. An analysis of 30 genes previously reported to be eroded in mammals, and 30 viable genes from the same lineages, demonstrated that PseudoChecker was able to correctly infer 97% of loss events and 95% of functional genes, confirming its reliability. PseudoChecker is freely available, without login required, at http://pseudochecker.ciimar.up.pt.bib
@article{ribeiro-NAR2020, author = {Luís Q Alves and Raquel Ruivo and Miguel M Fonseca and Mónica Lopes-Marques and Pedro Ribeiro and L Filipe C Castro}, title = {PseudoChecker: an integrated online platform for gene inactivation inference}, journal = {Nucleic Acids Research}, volume = {48}, number = {W1}, pages = {W321--W331}, publisher = {Oxford University Press}, doi = {10.1093/nar/gkaa408}, month = {July}, year = {2020} } -
Condensed Graphs: A Generic Framework for Accelerating Subgraph Census Computation
pdf doi
abstract
Counting subgraph occurrences is a hard but very important task in complex network analysis, with applications in concepts such as network motifs or graphlet degree distributions. In this paper we present a novel approach for this task that takes advantage of knowing that a large fraction of subgraph types does not appear at all on real world networks. We describe a pattern-growth methodology that is able to iteratively build subgraph patterns that do not contain smaller non-occurring subgraphs, significantly pruning the search space. By using the g-trie data structure, we are able to efficiently only count those subgraphs that we are interested in, reducing the total computation time. The obtained experimental results are very promising allowing us to avoid the computation of up to 99.78% of all possible subgraph patterns. This showcases the potential of this approach and paves the way for reaching previously unattainable subgraph sizes.bib
@inproceedings{ribeiro-COMPLENET2020, author = {Miguel Martins and Pedro Ribeiro}, title = {Condensed Graphs: A Generic Framework for Accelerating Subgraph Census Computation}, booktitle = {11th Conference on Complex Networks}, pages = {3--15}, publisher = {Springer}, doi = {10.1007/978-3-030-40943-2_1}, month = {March}, year = {2020} } -
FOCAS: penalising friendly citations to improve author ranking
pdf doi
abstract
Scientific impact is commonly associated with the number of citations received. However, an author can easily boost his own citation count by (i) publishing articles that cite his own previous work (self-citations), (ii) having co-authors citing his work (co-author citations), or (iii) exchanging citations with authors from other research groups (reciprocated citations). Even though these friendly citations inflate an author’s perceived scientific impact, author ranking algorithms do not normally address them. They, at most, remove self-citations. Here we present Friends-Only Citations AnalySer (FOCAS), a method that identifies friendly citations and reduces their negative effect in author ranking algorithms. FOCAS combines the author citation network with the co-authorship network in order to measure author proximity and penalises citations between friendly authors. FOCAS is general and can be regarded as an independent module applied while running (any) PageRank-like author ranking algorithm. FOCAS can be tuned to use three different criteria, namely authors’ distance, citation frequency, and citation recency, or combinations of these. We evaluate and compare FOCAS against eight state-of-the-art author ranking algorithms. We compare their rankings with a ground-truth of best paper awards. We test our hypothesis on a citation and co-authorship network comprised of seven Information Retrieval top-conferences. We observed that FOCAS improved author rankings by 25% on average and, in one case, leads to a gain of 46%.bib
@inproceedings{ribeiro-ACMSAC2020-SONAMA, author = {Jorge Silva and David Aparício and Pedro Ribeiro and Fernando Silva}, title = {FOCAS: penalising friendly citations to improve author ranking}, booktitle = {35th ACM Symposium On Applied Computing - Social Network and Media Analysis Track}, pages = {1852--1860}, publisher = {ACM}, doi = {10.1145/3341105.3373991}, month = {March}, year = {2020} }
2019
-
Finding Dominant Nodes Using Graphlets
doi
abstract
Finding important nodes is a classic task in network science. Nodes are important depending on the context; e.g., they can be (i) nodes that, when removed, cause the network to collapse or (ii) influential spreaders (e.g., of information, or of diseases). Typically, central nodes are assumed to be important, and numerous network centrality measures have been proposed such as the degree centrality, the betweenness centrality, and the subgraph centrality. However, centrality measures are not tailored to capture one particular kind of important nodes: dominant nodes. We define dominant nodes as nodes that dominate many others and are not dominated by many others. We then propose a general graphlet-based measure of node dominance called graphlet-dominance (GD). We analyze how GD differs from traditional network centrality measures. We also study how certain parameters (namely the importance of dominating versus not being dominated and indirect versus direct dominances) influence GD. Finally, we apply GD to author ranking and verify that GD is superior to PageRank in four of the five citation networks tested.bib
@inproceedings{ribeiro-CNA2019, author = {David Aparício and Pedro Ribeiro and Fernando Silva and Jorge Silva}, title = {Finding Dominant Nodes Using Graphlets}, booktitle = {8th International Conference on Complex Networks and their Applications}, pages = {77--89}, publisher = {Springer}, doi = {10.1007/978-3-030-36687-2_7}, month = {December}, year = {2019} } -
Temporal network alignment via GoT-WAVE
pdf doi arXiv code
abstract
Motivation: Network alignment (NA) finds conserved regions between two networks. NA methods optimize node conservation (NC) and edge conservation. Dynamic graphlet degree vectors are a state-of-the-art dynamic NC measure, used within the fastest and most accurate NA method for temporal networks: DynaWAVE. Here, we use graphlet-orbit transitions (GoTs), a different graphlet-based measure of temporal node similarity, as a new dynamic NC measure within DynaWAVE, resulting in GoT-WAVE. Results: On synthetic networks, GoT-WAVE improves DynaWAVE’s accuracy by 30% and speed by 64%. On real networks, when optimizing only dynamic NC, the methods are complementary. Furthermore, only GoT-WAVE supports directed edges. Hence, GoT-WAVE is a promising new temporal NA algorithm, which efficiently optimizes dynamic NC. We provide a user-friendly user interface and source code for GoT-WAVE.bib
@article{ribeiro-BIOINFORMATICS2019, author = {David Aparício and Pedro Ribeiro and Tijana Milenković and Fernando Silva}, title = {Temporal network alignment via GoT-WAVE}, journal = {Bioinformatics}, volume = {35}, number = {18}, pages = {3527--3529}, publisher = {Oxford University Press}, doi = {10.1093/bioinformatics/btz119}, month = {September}, year = {2019} } -
TensorCast: forecasting and mining with coupled tensors
pdf doi code
abstract
Given an heterogeneous social network, can we forecast its future? Can we predict who will start using a given hashtag on twitter? Can we leverage side information, such as who retweets or follows whom, to improve our membership forecasts? We present TensorCast, a novel method that forecasts time-evolving networks more accurately than current state-of-the-art methods by incorporating multiple data sources in coupled tensors. TensorCast is (a) scalable, being linearithmic on the number of connections; (b) effective, achieving over 20% improved precision on top-1000 forecasts of community members; (c) general, being applicable to data sources with different structure. We run our method on multiple real-world networks, including DBLP, epidemiology data, power grid data, and a Twitter temporal network with over 310 million nonzeros, where we predict the evolution of the activity of the use of political hashtags.bib
@article{ribeiro-KAIS2018, author = {Miguel Araujo and Pedro Ribeiro and Hyun Ah Song and Christos Faloutsos}, title = {TensorCast: forecasting and mining with coupled tensors}, journal = {Knowledge and Information Systems}, volume = {59}, number = {3}, pages = {497--522}, publisher = {Springer}, doi = {10.1007/s10115-018-1223-9}, month = {June}, year = {2019} } -
An efficient approach for counting occurring induced subgraphs
pdf doi
abstract
Counting subgraph occurrences is a hard but very important task in complex network analysis, with applications in concepts such as network motifs or graphlet degree distributions. In this paper we present a novel approach for this task that takes advantage of knowing that a large fraction of subgraph types does not appear at all on real world networks. We describe a pattern-growth methodology that is able to iteratively build subgraph patterns that do not contain smaller non-occurring subgraphs, significantly pruning the search space. By using the g-trie data structure, we are able to efficiently only count those subgraphs that we are interested in, reducing the total computation time. The obtained experimental results are very promising allowing us to avoid the computation of up to 99.78% of all possible subgraph patterns. This showcases the potential of this approach and paves the way for reaching previously unattainable subgraph sizes.bib
@inproceedings{ribeiro-COMPLENET2019, author = {Luciano Grácio and Pedro Ribeiro}, title = {An efficient approach for counting occurring induced subgraphs}, booktitle = {10th Conference on Complex Networks}, pages = {33--45}, publisher = {Springer}, doi = {10.1007/978-3-030-14459-3_3}, month = {March}, year = {2019} }
2018
-
Automatic Habitat Mapping using Convolutional Neural Networks
pdf doi
abstract
In this paper we propose a novel technique for performing habitat mapping in submerged coastal areas using AUVs and Convolutional Neural Networks (CNNs). Our approach consists having multiple AUVs traveling close to the bottom to acquire geo-referenced photos. Habitats in the photos are (partially) identified by marine biologists, which makes a supervised learning approach possible. (preliminary version of abstract)bib
@inproceedings{ribeiro-AUV2018, author = {André Diegues and José Pinto and Pedro Ribeiro}, title = {Automatic Habitat Mapping using Convolutional Neural Networks}, booktitle = {IEEE OES Autonomous Underwater Vehicle Symposium}, pages = {1--6}, publisher = {IEEE}, doi = {10.1109/AUV.2018.8729787}, month = {November}, year = {2018} } -
Graphlet-orbit Transitions (GoT): A fingerprint for temporal network comparison
pdf doi arXiv
abstract
Given a set of temporal networks, from different domains and with different sizes, how can we compare them? Can we identify evolutionary patterns that are both (i) characteristic and (ii) meaningful? We address these challenges by introducing a novel temporal and topological network fingerprint named Graphlet-orbit Transitions (GoT). We demonstrate that GoT provides very rich and interpretable network characterizations. Our work puts forward an extension of graphlets and uses the notion of orbits to encapsulate the roles of nodes in each subgraph. We build a transition matrix that keeps track of the temporal trajectory of nodes in terms of their orbits, therefore describing their evolution. We also introduce a metric (OTA) to compare two networks when considering these matrices. Our experiments show that networks representing similar systems have characteristic orbit transitions. GoT correctly groups synthetic networks pertaining to well-known graph models more accurately than competing static and dynamic state-of-the-art approaches by over 30%. Furthermore, our tests on real-world networks show that GoT produces highly interpretable results, which we use to provide insight into characteristic orbit transitions.bib
@article{ribeiro-PLOS2018-GOT, author = {David Aparicio and Pedro Ribeiro and Fernando Silva}, title = {Graphlet-orbit Transitions (GoT): A fingerprint for temporal network comparison}, journal = {PLoS One}, volume = {13}, number = {10}, pages = {e0205497}, doi = {10.1371/journal.pone.0205497}, month = {October}, year = {2018} } -
Hierarchical Expert Profiling using Heterogeneous Information Networks
pdf doi
abstract
Linking an expert to his knowledge areas is still a challenging research problem. The task is usually divided into two steps: identifying the knowledge areas/topics in the text corpus and assign them to the experts. Common approaches for the expert profiling task are based on the Latent Dirichlet Allocation (LDA) algorithm. As a result, they require pre-defining the number of topics to be identified which is not ideal in most cases. Furthermore, LDA generates a list of independent topics without any kind of relationship between them. Expert profiles created using this kind of flat topic lists have been reported as highly redundant and many times either too specific or too general. In this paper we propose a methodology that addresses these limitations by creating hierarchical expert profiles, where the knowledge areas of a researcher are mapped along different granularity levels, from broad areas to more specific ones. For the purpose, we explore the rich structure and semantics of Heterogeneous Information Networks (HINs). Our strategy is divided into two parts. First, we introduce a novel algorithm that can fully use the rich content of an HIN to create a topical hierarchy, by discovering overlapping communities and ranking the nodes inside each community. We then present a strategy to map the knowledge areas of an expert along all the levels of the hierarchy, exploiting the information we have about the expert to obtain an hierarchical profile of topics. To test our proposed methodology, we used a computer science bibliographical dataset to create a star-schema HIN containing publications as star-nodes and authors, keywords and ISI fields as attribute-nodes. We use heterogeneous pointwise mutual information to demonstrate the quality and coherence of our created hierarchies. Furthermore, we use manually labelled data to serve as ground truth to evaluate our hierarchical expert profiles, showcasing how our strategy is capable of building accurate profiles.bib
@inproceedings{ribeiro-DS2018, author = {Jorge Silva and Pedro Ribeiro and Fernando Silva}, title = {Hierarchical Expert Profiling using Heterogeneous Information Networks}, booktitle = {21st International Conference on Discovery Science}, pages = {344--360}, publisher = {Springer}, doi = {10.1007/978-3-030-01771-2_22}, month = {October}, year = {2018} } -
TensorCast: Forecasting Time-Evolving Networks with Contextual Information
pdf doi code
abstract
Given an heterogeneous social network, can we forecast its future? Can we predict who will start using a given hashtag on twitter? Can we leverage side information, such as who retweets or follows whom, to improve our membership forecasts? We present TensorCast, a novel method that forecasts time-evolving networks more accurately than current state of the art methods by incorporating multiple data sources in coupled tensors. TensorCast is (a) scalable, being linearithmic on the number of connections; (b) effective, achieving over 20% improved precision on top-1000 forecasts of community members; (c) general, being applicable to data sources with different structure. We run our method on multiple real-world networks, including DBLP and a Twitter temporal network with over 310 million non-zeros, where we predict the evolution of the activity of the use of political hashtags.bib
@inproceedings{ribeiro-IJCAI2018, author = {Miguel Araujo and Pedro Ribeiro and Christos Faloutsos}, title = {TensorCast: Forecasting Time-Evolving Networks with Contextual Information}, booktitle = {27th International Joint Conference on Artificial Intelligence - Sister Conferences Best Papers}, pages = {5199--5203}, doi = {10.24963/ijcai.2018/721}, month = {July}, year = {2018} } -
Fast streaming small graph canonization
pdf doi code
abstract
In this paper we introduce the streaming graph canonization problem. Its goal is finding a canonical representation of a sequence of graphs in a stream. Our model of a stream fixes the graph’s vertices and allows for fully dynamic edge changes, meaning it permits both addition and removal of edges. Our focus is on small graphs, since small graph isomorphism is an important primitive of many subgraph based metrics, like motif analysis or frequent subgraph mining. We present an efficient data-structure to approach this problem, namely a graph isomorphism discrete finite automaton and showcase its efficiency when compared to a non-streaming-aware method that simply recomputes the isomorphism information from scratch in each iteration.bib
@inproceedings{ribeiro-COMPLENET2018, author = {Pedro Paredes and Pedro Ribeiro}, title = {Fast streaming small graph canonization}, booktitle = {9th Conference on Complex Networks}, pages = {27--40}, publisher = {Springer}, doi = {10.1007/978-3-319-73198-8_3}, month = {March}, year = {2018} }
2017
-
Extending the Applicability of Graphlets to Directed Networks
pdf doi arXiv code
abstract
With recent advances in high-throughput cell biology the amount of cellular biological data has grown drastically. Such data is often modeled as graphs (also called networks) and studying them can lead to new insights into molecule-level organization. A possible way to understand their structure is by analysing the smaller components that constitute them, namely network motifs and graphlets. Graphlets are particularly well suited to compare networks and to assess their level of similarity due to the rich topological information that they offer but are almost always used as small undirected graphs of up to five nodes, thus limiting their applicability in directed networks. However, a large set of interesting biological networks such as metabolic, cell signaling or transcriptional regulatory networks are intrinsically directional, and using metrics that ignore edge direction may gravely hinder information extraction. Our main purpose in this work is to extend the applicability of graphlets to directed networks by considering their edge direction, thus providing a powerful basis for the analysis of directed biological networks. We tested our approach on two network sets, one composed of synthetic graphs and another of real directed biological networks, and verified that they were more accurately grouped using directed graphlets than undirected graphlets. It is also evident that directed graphlets offer substantially more topological information than simple graph metrics such as degree distribution or reciprocity. However, enumerating graphlets in large networks is a computationally demanding task. Our implementation addresses this concern by using a state-of-the-art data structure, the g-trie, which is able to greatly reduce the necessary computation. We compared our tool to other state-of-the art methods and verified that it is the fastest general tool for graphlet counting.bib
@article{ribeiro-TCBB2017, author = {David Aparício and Pedro Ribeiro and Fernando Silva}, title = {Extending the Applicability of Graphlets to Directed Networks}, journal = {IEEE/ACM Transactions on Computational Biology and Bioinformatics}, volume = {14}, number = {6}, pages = {1302--1315}, publisher = {IEEE}, doi = {10.1109/TCBB.2016.2586046}, month = {November}, year = {2017} } -
TensorCast: Forecasting with Context using Coupled Tensors Best Paper Award
pdf doi code
abstract
Given an heterogeneous social network, can we forecast its future? Can we predict who will start using a given hashtag on twitter? Can we leverage side information, such as who retweets or follows whom, to improve our membership forecasts? We present TensorCast, a novel method that forecasts time-evolving networks more accurately than current state of the art methods by incorporating multiple data sources in coupled tensors. TensorCast is (a) scalable, being linearithmic on the number of connections; (b) effective, achieving over 20% improved precision on top-1000 forecasts of community members; (c) general, being applicable to data sources with different structure. We run our method on multiple real-world networks, including DBLP and a Twitter temporal network with over 310 million non-zeros, where we predict the evolution of the activity of the use of political hashtags.bib
@inproceedings{ribeiro-ICDM2017, author = {Miguel Araujo and Pedro Ribeiro and Christos Faloutsos}, title = {TensorCast: Forecasting with Context using Coupled Tensors}, booktitle = {IEEE International Conference on Data Mining}, pages = {71--80}, publisher = {IEEE}, doi = {10.1109/ICDM.2017.16}, month = {November}, year = {2017} } -
Evolutionary Role Mining in Complex Networks by Ensemble Clustering
pdf doi
abstract
The structural patterns in the neighborhood of nodes assign unique roles to the nodes. Mining the set of existing roles in a network provides a descriptive profile of the network and draws its general picture. This paper proposes a new method to determine structural roles in a dynamic network based on the current position of nodes and their historic behavior. We develop a temporal ensemble clustering technique to dynamically find groups of nodes, holding similar tempo-structural roles. We compare two weighting functions, based on age and distribution of data, to incorporate temporal behavior of nodes in the role discovery. To evaluate the performance of the proposed method, we assess the result s from two points of view: 1) goodness of fit to current structure of the network; 2) consistency with historic data. We conduct the evaluation using different ensemble clustering techniques. The results on real world networks demonstrate that our method can detect tempo-structural roles that simultaneously depict the topology of a network and reflect its dynamics with high accuracy.bib
@inproceedings{ribeiro-ACMSAC2017-SONAMA, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Evolutionary Role Mining in Complex Networks by Ensemble Clustering}, booktitle = {32nd ACM Symposium On Applied Computing - Social Network and Media Analysis Track}, pages = {1053--1060}, publisher = {ACM}, doi = {10.1145/3019612.3019815}, month = {April}, year = {2017} } -
Scalable Subgraph Counting using MapReduce
pdf doi
abstract
Networks are powerful in representing a wide variety of systems in many fields of study. Networks are composed of smaller substructures (subgraphs) that characterize them and give important information related to their topology and functionality. Therefore, discovering and counting these subgraph patterns is very important towards mining the features of networks. Algorithmically, subgraph counting in a network is a computationally hard problem and the needed execution time grows exponentially as the size of the subgraph or the network increases. The main goal of this paper is to contribute towards subgraph search, by providing an accessible and scalable parallel methodology for counting subgraphs. For that we present a dynamic iterative MapReduce strategy to parallelize algorithms that induce an unbalanced search tree, and apply it in the subgraph counting realm. At the core of our methods lies the g-trie, a state-of-the-art data structure that was created precisely for this task. Our strategy employs an adaptive time threshold and an efficient work-sharing mechanism to dynamically do load balancing between the workers. We evaluate our implementations using Spark on a large set of representative complex networks from different fields. The results obtained are very promising and we achieved a consistent and almost linear speedup up to 32 cores, with an average efficiency close to 80%. To the best of our knowledge this is the fastest and most scalable method for subgraph counting within the MapReduce programming model.bib
@inproceedings{ribeiro-ACMSAC2017-PAPP, author = {Ahmad Naser eddin and Pedro Ribeiro}, title = {Scalable Subgraph Counting using MapReduce}, booktitle = {32nd ACM Symposium On Applied Computing - Practical Aspects of High-Level Parallel Programming Track}, pages = {1574--1581}, publisher = {ACM}, doi = {10.1145/3019612.3019744}, month = {April}, year = {2017} } -
Network motifs detection using random networks with prescribed subgraph frequencies
pdf doi code
abstract
In order to detect network motifs we need to evaluate the exceptionality of subgraphs in a given network. This is usually done by comparing subgraph frequencies on both the original and an ensemble of random networks keeping certain structural properties. The classical null model implies preserving the degree sequence. In this paper our focus is on a richer model that approximately fixes the frequency of subgraphs of size K−1 to compute motifs of size K. We propose a method for generating random graphs under this model, and we provide algorithms for its efficient computation. We show empirical results of our proposed methodology on neurobiological networks, showcasing its efficiency and its differences when comparing to the traditional null model.bib
@inproceedings{ribeiro-COMPLENET2017, author = {Miguel Silva and Pedro Paredes and Pedro Ribeiro}, title = {Network motifs detection using random networks with prescribed subgraph frequencies}, booktitle = {8th Conference on Complex Networks}, pages = {17--29}, publisher = {Springer}, doi = {10.1007/978-3-319-54241-6_2}, month = {March}, year = {2017} }
2016
-
FastStep: Scalable Boolean Matrix Decomposition
pdf doi code
abstract
Matrix Decomposition methods are applied to a wide range of tasks, such as data denoising, dimensionality reduction, co-clustering and community detection. However, in the presence of boolean inputs, common methods either do not scale or do not provide a boolean reconstruction, which results in high reconstruction error and low interpretability of the decomposition. We propose a novel step decomposition of boolean matrices in non-negative factors with boolean reconstruction. By formulating the problem using threshold operators and through suitable relaxation of this problem, we provide a scalable algorithm that can be applied to boolean matrices with millions of non-zero entries. We show that our method achieves significantly lower reconstruction error when compared to standard state of the art algorithms. We also show that the decomposition keeps its interpretability by analyzing communities in a flights dataset (where the matrix is interpreted as a graph in which nodes are airports) and in a movie-ratings dataset with 10 million non-zeros.bib
@inproceedings{ribeiro-PAKDD2016, author = {Miguel Araujo and Pedro Ribeiro and Christos Faloutsos}, title = {FastStep: Scalable Boolean Matrix Decomposition}, booktitle = {20th Pacific-Asia Conference on Knowledge Discovery and Data Mining}, pages = {461--473}, publisher = {Springer}, doi = {10.1007/978-3-319-31753-3_37}, month = {April}, year = {2016} } -
A subgraph-based ranking system for professional tennis players
pdf doi
abstract
This paper introduces a novel ranking system for competitive sports based around the notion of subgraphs and we show its applicability on men’s professional tennis. The results of over 180,000 tennis matches played from 1974 to 2015 are used to create a colored directed dominance network, with colors representing different surfaces and edges depicting head-to-head results between all the 856 players that were in the Top-100 of the ATP official ranking. We start by exploring the general properties of the network that we constructed and show that both their in and out degree distributions follow a power-law. We proceed by describing our proposed ranking system, which relies on considering all the occurrences of size 4 directed subgraphs and in which positions (or orbits) the players appear on the subgraphs. Even with a very sparse network and without any background knowledge on the tournaments and stage of the matches, we show that our proposal is able to extract meaningful rankings which capture the intricate competitive relationships between players from different eras.bib
@inproceedings{ribeiro-COMPLENET2016, author = {David Aparício and Pedro Ribeiro and Fernando Silva}, title = {A subgraph-based ranking system for professional tennis players}, booktitle = {7th International Workshop on Complex Networks}, pages = {159--171}, publisher = {Springer}, doi = {10.1007/978-3-319-30569-1_12}, month = {March}, year = {2016} } -
Large Scale Graph Representations for Subgraph Census
pdf doi
abstract
A Subgraph Census (determining the frequency of smaller subgraphs in a network) is an important computational task at the heart of several graph mining algorithms. Here we focus on the g-tries, an efficient state-of-the art data structure. Its algorithm makes extensive use of the graph primitive that checks if a certain edge exists. The original implementation used adjacency matrices in order to make this operation as fast as possible, as is the case with most past approaches. This representation is very expensive in memory usage, limiting the applicability. In this paper we study a number of possible approaches that scale linearly with the number of edges. We make an extensive empirical study of these alternatives in order to find an efficient hybrid approach that combines the best representations. We achieve a performance that is less than 50% slower than the adjacency matrix on average (almost 3 times more efficient than a naive binary search implementation), while being memory efficient and tunable for different memory restrictions.bib
@inproceedings{ribeiro-NETSCIX2016, author = {Pedro Paredes and Pedro Ribeiro}, title = {Large Scale Graph Representations for Subgraph Census}, booktitle = {International School and Conference on Network Science}, pages = {186--194}, publisher = {Springer}, doi = {10.1007/978-3-319-28361-6_16}, month = {January}, year = {2016} }
2015
-
Pairwise structural role mining for user categorization in information cascades
pdf doi
abstract
It is well known that many social networks follow the homophily principle, dictating that individuals tend to connect with similar peers. Past studies focused on non-topological properties, such as the age, gender, beliefs or educations. In this paper we focus precisely on the topology itself, exploring the possible existence of pairwise role dependency, that is, purely structural homophily. We show that while pairwise dependency is necessary for some structural roles, it may be misleading for others. We also present SR-Diffuse, a novel method for identifying the structural roles of nodes within a network. It is an iterative algorithm following an optimization model able to learn simultaneously from topological features and structural homophily, combining both aspects. For assessing our method, we applied it in a classification problem in information cascades, comparing its performance against several baseline methods. The experimental results with Flickr and Digg data show that SR-Diffuse can improve the quality of the discovered roles and can better represent the profile of the individuals, leading to a better prediction of social classes within information cascades.bib
@inproceedings{ribeiro-ASONAM2015, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Pairwise structural role mining for user categorization in information cascades}, booktitle = {IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining}, pages = {137--144}, publisher = {IEEE}, doi = {10.1145/2808797.2808909}, month = {August}, year = {2015} } -
Discovering weighted motifs in gene co-expression networks
pdf doi
abstract
An important dimension of complex networks is embedded in the weights of its edges. Incorporating this source of information on the analysis of a network can greatly enhance our understanding of it. This is the case for gene co-expression networks, which encapsulate information about the strength of correlation between gene expression profiles. Classical unweighted gene co-expression networks use thresholding for defining connectivity, losing some of the information contained in the different connection strengths. In this paper, we propose a mining method capable of extracting information from weighted gene co-expression networks. We study groups of differently connected nodes and their importance as network motifs. We define a subgraph as a motif if the weights of edges inside the subgraph hold a significantly different distribution than what would be found in a random distribution. We use the Kolmogorov-Smirnov test to calculate the significance score of the subgraph, avoiding the time consuming generation of random networks to determine statistic significance. We apply our approach to gene co-expression networks related to three different types of cancer and also to two healthy datasets. The structure of the networks is compared using weighted motif profiles, and our results show that we are able to clearly distinguish the networks and separate them by type. We also compare the biological relevance of our weighted approach to a more classical binary motif profile, where edges are unweighted. We use shared Gene Ontology annotations on biological processes, cellular components and molecular functions. The results of gene enrichment analysis show that weighted motifs are biologically more significant than the binary motifs.bib
@inproceedings{ribeiro-ACMSAC2015, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Discovering weighted motifs in gene co-expression networks}, booktitle = {25th ACM Symposium On Applied Computing - Data Mining Track}, pages = {10--17}, publisher = {ACM}, doi = {10.1145/2695664.2695773}, month = {March}, year = {2015} } -
Dynamic inference of social roles in information cascades
pdf doi
abstract
Nodes in complex networks inherently represent different kinds of functional or organizational roles. In the dynamic process of an information cascade, users play different roles in spreading the information: some act as seeds to initiate the process, some limit the propagation and others are in-between. Understanding the roles of users is crucial in modeling the cascades. Previous research mainly focuses on modeling users behavior based upon the dynamic exchange of information with neighbors. We argue however that the structural patterns in the neighborhood of nodes may already contain enough information to infer users’ roles, independently from the information flow in itself. To approach this possibility, we examine how network characteristics of users affect their part in the cascade. We also advocate that temporal information is very important. With this in mind, we propose an unsupervised methodology based on ensemble clustering to classify users into their social roles in a network, using not only their current topological positions, but also considering their history over time. Our experiments on two social networks, Flickr and Digg, show that topological metrics indeed possess discriminatory power and that different structural patterns correspond to different parts in the process. We observe that user commitment in the neighborhood affects considerably the influence score of users. In addition, we discover that the cohesion of neighborhood is important in blocking behavior of users. With this we can construct topological fingerprints that can help us in identifying social roles, based solely on structural social ties, and independently from nodes activity and how information flows.bib
@article{ribeiro-DAMI2015, author = {Sarvenaz Choobdar and Pedro Ribeiro and Srinivasan Parthasarathy and Fernando Silva}, title = {Dynamic inference of social roles in information cascades}, journal = {Data Mining and Knowledge Discovery}, volume = {29}, number = {5}, pages = {1152--1177}, publisher = {Springer}, doi = {10.1007/s10618-015-0402-5}, year = {2015} } -
Rand-FaSE: Fast Approximate Subgraph Census
pdf doi code
abstract
Abstract Determining the frequency of small subgraphs is an important graph mining primitive. One major class of algorithms for this task is based upon the enumeration of all sets of k connected nodes. These are known as network-centric algorithms. FaSE is a exact algorithm for subgraph counting that contrasted with its past approaches by performing the isomorphism tests while doing the enumeration, encapsulating the topological information in a g-trie and thus largely reducing the number of required isomorphism tests. Our goal with this paper is to expand this approach by providing an approximate algorithm, which we called Rand-FaSE. It uses an unbiased sampling estimator for the number of subgraphs of each type, allowing an user to trade some accuracy for even faster execution times. We tested our algorithm on a set of representative complex networks, comparing it with the exact alternative, FaSE. We also do an extensive analysis by studying its accuracy and speed gains against previous sampling approaches. With all of this, we believe FaSE and Rand-FaSE pave the way for faster network-centric census algorithms.bib
@article{ribeiro-SNAM2015, author = {Pedro Paredes and Pedro Ribeiro}, title = {Rand-FaSE: Fast Approximate Subgraph Census}, journal = {Social Network Analysis and Mining}, volume = {5}, number = {1}, pages = {1--18}, publisher = {Springer}, doi = {10.1007/s13278-015-0256-2}, year = {2015} }
2014
-
book chapter Querying Volatile and Dynamic Networks
doi 2nd ed. 2018
abstract
Many networks are intrinsically dynamic and change over time. These networks can be very volatile, with a significant number of edges and nodes appearing and disappearing. The majority of the existing network mining methodologies are however geared towards a more static scenario, with a single graph describing the topology of the system being analyzed. There is still a need for measurements and tools that allow the temporal dimension on network analysis to be fully and naturally incorporated. In this entry we deal precisely with volatile and dynamic networks and how to extract information from them. We take a general approach in which we track the structural role of nodes over time. By using a set of local properties, such as degree and clustering coefficients, we group similar nodes and we monitor the behavior of these groups over time, looking for significant changes. We are able to describe the evolution of the network in the form of transition patterns that explain how position of nodes change and how groups of nodes grow and shrink.bib
@inbook{ribeiro-ENCSNAM2014, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Querying Volatile and Dynamic Networks}, booktitle = {Encyclopedia of Social Network Analysis and Mining}, pages = {1456--1463}, publisher = {Springer}, doi = {10.1007/978-1-4614-6170-8_390}, month = {October}, year = {2014} } -
A Scalable Parallel Approach for Subgraph Census Computation
pdf doi code
abstract
Counting the occurrences of small subgraphs in large networks is a fundamental graph mining metric with several possible applications. Computing frequencies of those subgraphs is also known as the subgraph census problem, which is a computationally hard task. In this paper we provide a parallel multicore algorithm for this purpose. At its core we use FaSE, an efficient network-centric sequential subgraph census algorithm, which is able to substantially decrease the number of isomorphism tests needed when compared to past approaches. We use one thread per core and employ a dynamic load balancing scheme capable of dealing with the highly unbalanced search tree induced by FaSE and effectively redistributing work during execution. We ass essed the scalability of our algorithm on a varied set of representative networks and achieved near linear speedup up to 32 cores while obtaining a high efficiency for the total 64 cores of our machine.bib
@inproceedings{ribeiro-MUCOCOS2014, author = {David Aparício and Pedro Paredes and Pedro Ribeiro}, title = {A Scalable Parallel Approach for Subgraph Census Computation}, booktitle = {7th International Workshop on Multi-/Many-Core Computing Systems}, pages = {194--205}, publisher = {Springer}, doi = {10.1007/978-3-319-14313-2_17}, month = {August}, year = {2014} } -
Parallel subgraph counting for multicore architectures
pdf doi code
abstract
Computing the frequency of small subgraphs on a large network is a computationally hard task. This is, however, an important graph mining primitive, with several applications, and here we present a novel multicore parallel algorithm for this task. At the core of our methodology lies a state-of-the-art data structure, the g-trie, which represents a collection of subgraphs and allows for a very efficient sequential search. Our implementation was done using Pthreads and can run on any multicore personal computer. We employ a diagonal work sharing strategy to dynamically and effectively divide work among threads during the execution. We assess the performance of our Pthreads implementation on a set of representative networks from various domains and with diverse topological features. For most networks, we obtain a speedup of over 50 for 64 cores and an almost linear speedup up to 32 cores, showcasing the flexibility and scalability of our algorithm. This paves the way for the usage of such counting algorithms on larger subgraph and network sizes without the obligatory access to a cluster.bib
@inproceedings{ribeiro-ISPA2014, author = {David Aparício and Pedro Ribeiro and Fernando Silva}, title = {Parallel subgraph counting for multicore architectures}, booktitle = {12th IEEE International Symposium on Parallel and Distributed Processing with Applications}, pages = {34--41}, publisher = {IEEE}, doi = {10.1109/ISPA.2014.14}, month = {August}, year = {2014} } -
Discovering Colored Network Motifs
pdf doi
abstract
Network motifs are small overrepresented patterns that have been used successfully to characterize complex networks. Current algorithmic approaches focus essentially on pure topology and disregard node and edge nature. However, it is often the case that nodes and edges can also be classified and separated into different classes. This kind of networks can be modeled by colored (or labeled) graphs and in this paper we present a definition of a colored motif and an algorithm that efficiently discovers this kind of motifs. We use g-tries, a specialized data-structure created for finding sets of subgraphs. G-Tries encapsulate common sub-structure, and with the aid of symmetry breaking conditions and a customized canonization methodology, we are able to efficiently search for several colored patterns at the same time. We apply our algorithm to a set of representative complex networks, showing that we can find colored motifs, outperforming previous methods.bib
@inproceedings{ribeiro-COMPLENET2014, author = {Pedro Ribeiro and Fernando Silva}, title = {Discovering Colored Network Motifs}, booktitle = {5th International Workshop on Complex Networks}, volume = {549}, pages = {107--118}, publisher = {Springer SCI}, doi = {10.1007/978-3-319-05401-8_11}, month = {March}, year = {2014} } -
G-Tries: a data structure for storing and finding subgraphs
pdf doi code
abstract
The ability to find and count subgraphs of a given network is an important non trivial task with multidisciplinary applicability. Discovering network motifs or computing graphlet signatures are two examples of methodologies that at their core rely precisely on the subgraph counting problem. Here we present the g-trie, a data-structure specifically designed for discovering subgraph frequencies. We produce a tree that encapsulates the structure of the entire graph set, taking advantage of common topologies in the same way a prefix tree takes advantage of common prefixes. This avoids redundancy in the representation of the graphs, thus allowing for both memory and computation time savings. We introduce a specialized canonical labeling designed to highlight common substructures and annotate the g-trie with a set of conditional rules that break symmetries, avoiding repetitions in the computation. We introduce a novel algorithm that takes as input a set of small graphs and is able to efficiently find and count them as induced subgraphs of a larger network. We perform an extensive empirical evaluation of our algorithms, focusing on efficiency and scalability on a set of diversified complex networks. Results show that g-tries are able to clearly outperform previously existing algorithms by at least one order of magnitude.bib
@article{ribeiro-DAMI2014, author = {Pedro Ribeiro and Fernando Silva}, title = {G-Tries: a data structure for storing and finding subgraphs}, journal = {Data Mining and Knowledge Discovery}, volume = {28}, number = {2}, pages = {337--377}, publisher = {Springer}, doi = {10.1007/s10618-013-0303-4}, month = {March}, year = {2014} }
2013
-
Towards a Faster Network-Centric Subgraph Census
pdf doi
abstract
Determining the frequency of small subgraphs is an important computational task lying at the core of several graph mining methodologies, such as network motifs discovery or graphlet based measurements. In this paper we try to improve a class of algorithms available for this purpose, namely network-centric algorithms, which are based upon the enumeration of all sets of k connected nodes. Past approaches would essentially delay isomorphism tests until they had a finalized set of k nodes. In this paper we show how isomorphism testing can be done during the actual enumeration. We use a customized g-trie, a tree data structure, in order to encapsulate the topological information of the embedded subgraphs, identifying already known node permutations of the same subgraph type. With this we avoid redundancy and the need of an isomorphism test for each subgraph occurrence. We tested our algorithm, which we called FaSE, on a set of different real complex networks, both directed and undirected, showcasing that we indeed achieve significant speedups of at least one order of magnitude against past algorithms, paving the way for a faster network-centric approach.bib
@inproceedings{ribeiro-ASONAM2013, author = {Pedro Paredes and Pedro Ribeiro}, title = {Towards a Faster Network-Centric Subgraph Census}, booktitle = {IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining}, pages = {264--271}, publisher = {IEEE}, doi = {10.1145/2492517.2492535}, month = {August}, year = {2013} }
2012
-
Event Detection in Evolving Networks
pdf doi
abstract
This paper describes a methodology for finding and describing significant events in time evolving complex networks. We first group the nodes of the network in clusters, according to their similarity in terms of a set of local properties such as degree and clustering coefficient. We then monitor the behavior of these groups over time, looking for significant changes on the size of the groups. These events are notable since they show that the position of a number of nodes in the network has changed. We describe this evolution by extracting the correspondent transition patterns. We examined our methodology on three different real network datasets. Our experiments show that the discovered rules are significant and can describe the occurring events.bib
@inproceedings{ribeiro-CASON2012, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Event Detection in Evolving Networks}, booktitle = {4th International Conference on Computational Aspects of Social Networks}, pages = {26--32}, publisher = {IEEE}, doi = {10.1109/CASoN.2012.6412373}, month = {November}, year = {2012} } -
Motif Mining in Weighted Networks
pdf doi
abstract
Unexpectedly frequent subgraphs, known as motifs, can help in characterizing the structure of complex networks. Most of the existing methods for finding motifs are designed for unweighted networks, where only the existence of connection between nodes is considered, and not their strength or capacity. However, in many real world networks, edges contain more information than just simple node connectivity. In this paper, we propose a new method to incorporate edge weight information in motif mining. We think of a motif as a subgraph that contains unexpected information, and we define a new significance measurement to assess this subgraph exceptionality. The proposed metric embeds the weight distribution in subgraphs and it is based on weight entropy. We use the g-trie data structure to find instances of k-sized subgraphs and to calculate its significance score. Following a statistical approach, the random entropy of subgraphs is then calculated, avoiding the time consuming step of random network generation. The discrimination power of the derived motif profile by the proposed method is assessed against the results of the traditional unweighted motifs through a graph classification problem. We use a set of labeled ego networks of co-authorship in the biology and mathematics fields. The new proposed method is shown to be feasible, achieving even slightly better accuracy. Since it does not require the generation of random networks, it is also computationally faster, and because we are able to use the weight information in computing the motif importance, we can avoid converting weighted networks into unweighted ones.bib
@inproceedings{ribeiro-DAMNET2012, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Motif Mining in Weighted Networks}, booktitle = {2nd IEEE ICDM Workshop on Data Mining in Networks}, pages = {210--217}, publisher = {IEEE}, doi = {10.1109/ICDMW.2012.111}, month = {November}, year = {2012} } -
Comparison of Co-authorship Networks across Scientific Fields Using Motifs
pdf doi
abstract
Comparing scientific production across different research fields is commonly controversial and subject to disagreement. Different fields have different practices, but expectedly some fields such as Chemistry and Physics should be more comparable then they are to Mathematics or Computer Science. Such comparison is often based on quantitative indicators, such as papers per researcher, but data normalization is rather difficult to accomplish. Here, we focus on the comparison of different fields based on their research collaboration networks. Could it be that co-authorship patterns can characterize and differentiate various fields of research? We use co-authorship networks where nodes are researchers and the edges show the existing co-authorship relations between them. Our comparison methodology is based on network motifs fingerprints, that are over represented patterns or subgraphs in the network. We derive motif fingerprints for 22 research fields based on 29 motifs of size three to five found in the corresponding co-authorship networks. These fingerprints provide a quantitative measure for assessing similarity among research fields, and our analysis shows that the discrimination power of 29 motif types is not identical. We use a co-authorship dataset built from over 15,361 publications inducing a co-authorship network with over 32,842 researchers.bib
@inproceedings{ribeiro-ASONAM2012, author = {Sarvenaz Choobdar and Pedro Ribeiro and Sylwia Bugla and Fernando Silva}, title = {Comparison of Co-authorship Networks across Scientific Fields Using Motifs}, booktitle = {IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining}, pages = {147--152}, publisher = {IEEE}, doi = {10.1109/ASONAM.2012.34}, month = {August}, year = {2012} } -
Querying Subgraph Sets with G-Tries Best Paper Award
pdf doi
abstract
In this paper we present an universal methodology for finding all the occurrences of a given set of subgraphs in one single larger graph. Past approaches would either enumerate all possible subgraphs of a certain size or query a single subgraph. We use g-tries, a data structure specialized in dealing with subgraph sets. G-Tries store the topological information on a tree that exposes common substructure. Using a specialized canonical form and symmetry breaking conditions, a single non-redundant search of the entire set of subgraphs is possible. We give results of applying g-tries querying to different social networks, showing that we can efficiently find the occurrences of a set containing subgraphs of multiple sizes, outperforming previous methods.bib
@inproceedings{ribeiro-DBSOCIAL2012, author = {Pedro Ribeiro and Fernando Silva}, title = {Querying Subgraph Sets with G-Tries}, booktitle = {2nd ACM SIGMOD Workshop on Databases and Social Networks}, pages = {25--30}, publisher = {ACM}, doi = {10.1145/2304536.2304541}, month = {May}, year = {2012} } -
Parallel Discovery of Network Motifs
pdf doi
abstract
Many natural structures can be naturally represented by complex networks. Discovering network motifs, which are overrepresented patterns of inter-connections, is a computationally hard task related to graph isomorphism. Sequential methods are hindered by an exponential execution time growth when we increase the size of motifs and networks. In this article we study the opportunities for parallelism in existing methods and propose new parallel strategies that adapt and extend one of the most efficient serial methods known from the Fanmod tool. We propose both a master–worker strategy and one with distributed control, in which we employ a randomized receiver initiated methodology capable of providing dynamic load balancing during the whole computation process. Our strategies are capable of dealing both with exact and approximate network motif discovery. We implement and apply our algorithms to a set of representative networks and examine their scalability up to 128 processing cores. We obtain almost linear speedups, showcasing the efficiency of our proposed approach and are able to reach motif sizes that were not previously achievable using conventional serial algorithms.bib
@article{ribeiro-JPDC2012, author = {Pedro Ribeiro and Fernando Silva and Luís Lopes}, title = {Parallel Discovery of Network Motifs}, journal = {Journal of Parallel and Distributed Computing}, volume = {72}, number = {2}, pages = {144--154}, publisher = {Elsevier}, doi = {10.1016/j.jpdc.2011.08.007}, month = {February}, year = {2012} }
2011
-
Network node label acquisition and tracking
pdf doi
abstract
Complex networks are ubiquitous in real-world and represent a multitude of natural and artificial systems. Some of these networks are inherently dynamic and their structure changes over time, but only recently has the research community been trying to better characterize them. In this paper we propose a novel general methodology to characterize time evolving networks, analyzing the dynamics of their structure by labeling the nodes and tracking how these labels evolve. Node labeling is formulated as a clustering task that assigns a classification to each node according to its local properties. Association rule mining is then applied to sequences of nodes’ labels to extract useful rules that best describe changes in the network. We evaluate our method using two different networks, a real-world network of the world annual trades and a synthetic scale-free network, in order to uncover evolution patterns. The results show that our approach is valid and gives insights into the dynamics of the network. As an example, the derived rules for the scale-free network capture the properties of preferential node attachment.bib
@inproceedings{ribeiro-EPIA2011, author = {Sarvenaz Choobdar and Fernando Silva and Pedro Ribeiro}, title = {Network node label acquisition and tracking}, booktitle = {15th Portuguese Conference on Artificial Intelligence}, pages = {418--430}, publisher = {Springer}, doi = {10.1007/978-3-642-24769-9_31}, month = {October}, year = {2011} } -
PhD thesis Efficient and Scalable Algorithms for Network Motifs Discovery
pdf
abstract
Networks are a powerful representation for a multitude of natural and artificial systems. They are ubiquitous in real-world systems, presenting substantial non-trivial topological features. These are called complex networks and have received increasing attention in recent years. In order to understand their design principles, the concept of network motifs emerged. These are recurrent over-represented patterns of inter-connections, conjectured to have some significance, that can be seen as basic building blocks of networks. Algorithmically, discovering network motifs is a hard problem related to graph isomorphism. The needed execution time grows exponentially as the size of networks or motifs increases, thus limiting their applicability. Since motifs are a fundamental concept, increasing the efficiency in its detection can lead to new insights in several areas of knowledge. To develop efficient and scalable algorithms for motifs discovery is precisely the main aim of this thesis. We provide a thorough survey of existing methods, complete with an associated chronology, taxonomy, algorithmic description and empirical evaluation and comparison. We propose a novel data-structure, g-tries, designed to represent a collection of graphs. Akin to a prefix tree, it takes advantage of common substructures to both reduce the memory needed to store the graphs, and to produce a new more efficient sequential algorithm to compute their frequency as subgraphs of another larger graph. We also introduce a sampling methodology for g-tries that successfully trades accuracy for faster execution times. We identify opportunities for parallelism in motif discovery, creating an associated taxonomy. We expose the whole motif computation as a tree based search and devise a general methodology for parallel execution with dynamic load balancing, including a novel strategy capable of efficiently stopping and dividing computation on the fly. In particular we provide parallel algorithms for ESU and g-tries. Finally, we extensively evaluate our algorithms on a set of diversified complex networks. We show that we are able to outperform all existing sequential algorithms and are able to scale our parallel algorithms up to 128 processors almost linearly. By combining the power of g-tries and parallelism, we speedup motif discovery by several orders of magnitude, thus effectively pushing the limits in its applicability.bib
@phdthesis{ribeiro-PHD2011, author = {Pedro Ribeiro}, title = {Efficient and Scalable Algorithms for Network Motifs Discovery}, school = {Faculty of Science of the University of Porto}, month = {June}, year = {2011} }
2010
-
Efficient Parallel Subgraph Counting using G-Tries
pdf doi
abstract
Finding and counting the occurrences of a collection of subgraphs within another larger network is a computationally hard problem, closely related to graph isomorphism. The subgraph count is by itself a very powerful characterization of a network and it is crucial for other important network measurements. G-tries are a specialized data-structure designed to store and search for subgraphs. By taking advantage of subgraph common substructure, g-tries can provide considerable speedups over previously used methods. In this paper we present a parallel algorithm based precisely on g-tries that is able to efficiently find and count subgraphs. The algorithm relies on randomized receiver-initiated dynamic load balancing and is able to stop its computation at any given time, efficiently store its search position, divide what is left to compute in two halfs, and resume from where it left. We apply our algorithm to several representative real complex networks from various domains and examine its scalability. We obtain an almost linear speedup up to 128 processors, thus allowing us to reach previously unfeasible limits. We showcase the multidisciplinary potential of the algorithm by also applying it to network motif discovery.bib
@inproceedings{ribeiro-CLUSTER2010, author = {Pedro Ribeiro and Fernando Silva and Luís Lopes}, title = {Efficient Parallel Subgraph Counting using G-Tries}, booktitle = {IEEE International Conference on Cluster Computing}, pages = {217--226}, publisher = {IEEE}, doi = {10.1109/CLUSTER.2010.27}, month = {September}, year = {2010} } -
Efficient Subgraph Frequency Estimation with G-Tries
pdf doi
abstract
Many biological networks contain recurring overrepresented elements, called network motifs. Finding these substructures is a computationally hard task related to graph isomorphism. G-Tries are an efficient data structure, based on multiway trees, capable of efficiently identifying common substructures in a set of subgraphs. They are highly successful in constraining the search space when finding the occurrences of those subgraphs in a larger original graph. This leads to speedups up to 100 times faster than previous methods that aim for exact and complete results. In this paper we present a new efficient sampling algorithm for subgraph frequency estimation based on g-tries. It is able to uniformly traverse a fraction of the search space, providing an accurate unbiased estimation of subgraph frequencies. Our results show that in the same amount of time our algorithm achieves better precision than previous methods, as it is able to sustain higher sampling speeds.bib
@inproceedings{ribeiro-WABI2010, author = {Pedro Ribeiro and Fernando Silva}, title = {Efficient Subgraph Frequency Estimation with G-Tries}, booktitle = {10th International Workshop on Algorithms in Bioinformatics}, pages = {238--249}, publisher = {Springer}, doi = {10.1007/978-3-642-15294-8_20}, month = {September}, year = {2010} } -
G-Tries: an efficient data structure for discovering network motifs
pdf doi
abstract
In this paper we propose a novel specialized data structure that we call g-trie, designed to deal with collections of subgraphs. The main conceptual idea is akin to a prefix tree in the sense that we take advantage of common topology by constructing a multiway tree where the descendants of a node share a common substructure. We give algorithms to construct a g-trie, to list all stored subgraphs, and to find occurrences on another graph of the subgraphs stored in the g-trie. We evaluate the implementation of this structure and its associated algorithms on a set of representative benchmark biological networks in order to find network motifs. To assess the efficiency of our algorithms we compare their performance with other known network motif algorithms also implemented in the same common platform. Our results show that indeed, g-tries are a feasible, adequate and very efficient data structure for network motifs discovery, clearly outperforming previous algorithms and data structures.bib
@inproceedings{ribeiro-ACMSAC2010, author = {Pedro Ribeiro and Fernando Silva}, title = {G-Tries: an efficient data structure for discovering network motifs}, booktitle = {25th ACM Symposium On Applied Computing - Bioinformatics Track}, pages = {1559--1566}, publisher = {ACM}, doi = {10.1145/1774088.1774422}, month = {March}, year = {2010} } -
Parallel Calculation of Subgraph Census in Biological Networks
abstract
Mining meaningful data from complex biological networks is a critical task in many areas of research. One important example is calculating the frequency of all subgraphs of a certain size, also known as the subgraph census problem. This can provide a very comprehensive structural characterization of a network and is also used as an intermediate step in the computation of network motifs, an important basic building block of networks, that try to bridge the gap between structure and function. The subgraph census problem is computationally hard and here we present several parallel strategies to solve this problem. Our initial strategies were refined towards achieving an efficient and scalable adaptive parallel algorithm. This algorithm achieves almost linear speedups up to 128 cores when applied to a representative set of biological networks from different domains and makes the calculation of census for larger subgraph sizes feasible.bib
@inproceedings{ribeiro-BIOINFORMATICS2010, author = {Pedro Ribeiro and Fernando Silva and Luís Lopes}, title = {Parallel Calculation of Subgraph Census in Biological Networks}, booktitle = {1st International Conference on Bioinformatics}, pages = {56--65}, publisher = {INSTICC}, month = {January}, year = {2010} } -
A Parallel Algorithm for Counting Subgraphs in Complex Networks
pdf doi
abstract
Many natural and artificial structures can be represented as complex networks. Computing the frequency of all subgraphs of a certain size can give a very comprehensive structural characterization of these networks. This is known as the subgraph census problem, and it is also important as an intermediate step in the computation of other features of the network, such as network motifs. The subgraph census problem is computationally hard and most associated algorithms for it are sequential. Here we present several increasingly efficient parallel strategies for, culminating in a scalable and adaptive parallel algorithm. We applied our strategies to a representative set of biological networks and achieved almost linear speedups up to 128 processors, paving the way for making it possible to compute the census for bigger networks and larger subgraph sizes.bib
@inproceedings{ribeiro-BIOSTEC2010, author = {Pedro Ribeiro and Fernando Silva and Luís Lopes}, title = {A Parallel Algorithm for Counting Subgraphs in Complex Networks}, booktitle = {3rd International Joint Conference on Biomedical Engineering Systems and Technologies, Revised Selected Papers}, pages = {380--393}, publisher = {Springer}, doi = {10.1007/978-3-642-18472-7_30}, year = {2010} }
2009
-
Strategies for Network Motifs Discovery
pdf doi
abstract
Complex networks from domains like Biology or Sociology are present in many e-Science data sets. Dealing with networks can often form a workflow bottleneck as several related algorithms are computationally hard. One example is detecting characteristic patterns or “network motifs” - a problem involving subgraph mining and graph isomorphism. This paper provides a review and runtime comparison of current motif detection algorithms in the field. We present the strategies and the corresponding algorithms in pseudo-code yielding a framework for comparison. We categorize the algorithms outlining the main differences and advantages of each strategy. We finally implement all strategies in a common platform to allow a fair and objective efficiency comparison using a set of benchmark networks. We hope to inform the choice of strategy and critically discuss future improvements in motif detection.bib
@inproceedings{ribeiro-ESCIENCE2009, author = {Pedro Ribeiro and Fernando Silva and Marcus Kaiser}, title = {Strategies for Network Motifs Discovery}, booktitle = {5th IEEE International Conference on e-Science}, pages = {80--87}, publisher = {IEEE}, doi = {10.1109/e-Science.2009.20}, month = {December}, year = {2009} } -
Parallel calculation of multi-electrode array correlation networks
pdf doi code
abstract
When calculating correlation networks from multi-electrode array (MEA) data, one works with extensive computations. Unfortunately, as the MEAs grow bigger, the time needed for the computation grows even more: calculating pair-wise correlations for current 60 channel systems can take hours on normal commodity computers whereas for future 1000 channel systems it would take almost 280 times as long, given that the number of pairs increases with the square of the number of channels. Even taking into account the increase of speed in processors, soon it can be unfeasible to compute correlations in a single computer. Parallel computing is a way to sustain reasonable calculation times in the future. We provide a general tool for rapid computation of correlation networks which was tested for: (a) a single computer cluster with 16 cores, (b) the Newcastle Condor System utilizing idle processors of university computers and (c) the inter-cluster, with 192 cores. Our reusable tool provides a simple interface for neuroscientists, automating data partition and job submission, and also allowing coding in any programming language. It is also sufficiently flexible to be used in other high-performance computing environments.bib
@article{ribeiro-JNM2009, author = {Pedro Ribeiro and Jennifer Simonotto and Marcus Kaiser and Fernando Silva}, title = {Parallel calculation of multi-electrode array correlation networks}, journal = {Journal of Neuroscience Methods}, volume = {184}, number = {2}, pages = {357--364}, publisher = {Elsevier}, doi = {10.1016/j.jneumeth.2009.08.001}, month = {November}, year = {2009} } -
Improving the Automatic Evaluation of Problem Solutions in Programming Contests
pdf web
abstract
Automatically evaluating source program files is a crucial part of programming contests. The evaluation aims at discriminating programs according to their correctness and efficiency. Given the performance of today’s computers, in order to be able to distinguish the complexity of solutions, it is often necessary to use very large data sets. This is awkward, because it is against the nature of the stated problem and puts an unintended burden on the input operations. Besides, by advertizing a limit for the size of the input, the problem description gives away information with which the contestants may guess the algorithmic complexity that their solutions must attain. It would be more realistic to omit that information and let the contestants discover the limits by analyzing the problem, using a scientific approach. The complexity of the solution can then be estimated automatically by measuring the execution time of the function that solves the problem in incremental test cases, and plotting it against the size of the input. By calling the function multiple times and taking the overall time, we may use only data files the size of which is related to the nature of the problem being solved.bib
@article{ribeiro-IOI2009, author = {Pedro Ribeiro and Pedro Guerreiro}, title = {Improving the Automatic Evaluation of Problem Solutions in Programming Contests}, journal = {Olympiads in Informatics}, volume = {3}, pages = {132--143}, year = {2009} } -
Teaching Artificial Intelligence and Logic Programming in a Competitive Environment
pdf doi code web
abstract
Motivation plays a key role in the learning process. This paper describes an experience in the context of undergraduate teaching of Artificial Intelligence at the Computer Science Department of the Faculty of Sciences in the University of Porto. A sophisticated competition framework, which involved Prolog programmed contenders and game servers, including an appealing GUI, was developed to motivate students on the deepening of the topics covered in class. We report on the impact that such a competitive setup caused on students’ commitment, which surpassed our most optimistic expectations.bib
@article{ribeiro-INFEDU2009, author = {Pedro Ribeiro and Hugo Simões and Michel Ferreira}, title = {Teaching Artificial Intelligence and Logic Programming in a Competitive Environment}, journal = {Informatics in Education}, volume = {8}, number = {1}, pages = {85--100}, doi = {10.15388/infedu.2009.06}, year = {2009} }
2008
-
Early Introduction of Competitive Programming
pdf web
abstract
Those who enjoy programming enjoy programming competitions, either as contestants or as coaches. Often coaches are teachers, who, aiming at better results in the future, would like to have more and more students participating, from earlier stages. Learning all the basic algorithms takes some time, of course; on the other hand, competition environments can be introduced right from the beginning as a pedagogical tool. If handled correctly, this can be very effective in helping to reach the goals of the course and, as a side-effect, in bringing larger crowds of students into the programming competition arena.bib
@article{ribeiro-IOI2008, author = {Pedro Ribeiro and Pedro Guerreiro}, title = {Early Introduction of Competitive Programming}, journal = {Olympiads in Informatics}, volume = {2}, pages = {149--162}, year = {2008} }
2007
-
An autonomous hybrid robot system to navigate through unknown maze environments
pdf
abstract
This paper describes a fully complete autonomous hybrid robot system, named YAM (Yet Another Mouse), that is able to navigate through an unknown maze environment. YAM effectively tackles the problem of how to represent the environment using its sensor data to produce probability maps of the walls and beacons. Besides that, it is capable of computing long-term path plans using an adapted breadth-first search algorithm. It also shows how it is possible to model the actual motors behavior as a reactive task, using artificially created virtual short-term goals. We give real contest results, showing how YAM behaved on the “Ciber- Rato” robotics competition.bib
@inproceedings{ribeiro-ASC2007, author = {Pedro Ribeiro}, title = {An autonomous hybrid robot system to navigate through unknown maze environments}, booktitle = {11th IASTED International Conference on Artificial Intelligence and Soft Computing}, pages = {274--279}, month = {August}, year = {2007} } -
Plugging Computer Labs to the Grid
pdf
abstract
We present an architecture that allows the seamless configuration of computer labs to work as dedicated computing clusters duringperiods of user inactivity. The operation of the cluster is fully automated by making use of differentiated network booting and a job management system. We have prepared it to be plugged to a larger computational grid. We provide some preliminary performance results obtained.bib
@inproceedings{ribeiro-IBERGRID2007, author = {Pedro Ribeiro and Pedro Pereira and Luís Lopes and Fernando Silva}, title = {Plugging Computer Labs to the Grid}, booktitle = {1st Iberian GRID Infrastructure Conference}, pages = {393--396}, month = {May}, year = {2007} } -
Increasing the Appeal of Programming Contests with Tasks Involving Graphical User Interfaces and Computer Graphics
pdf web
abstract
Programming contests should be capable of being appealing to both the contestants and the general public. We feel that the use of graphical user interfaces and computer graphics could help achieve this goal, providing new ways of viewing the task. We describe experiments we made with games (Tic-Tac-Toe, Snake and Ataxx, an Othello-like game), which were made available to students with graphical components, and discuss the results. We also present a simple graphic library where simple drawings can be made and show how it can be used in a programming contest environment. We then conclude by revisiting some past IOI problems, suggesting ways to enhance them with graphical components.bib
@article{ribeiro-IOI2007, author = {Pedro Ribeiro and Pedro Guerreiro}, title = {Increasing the Appeal of Programming Contests with Tasks Involving Graphical User Interfaces and Computer Graphics }, journal = {Olympiads in Informatics}, volume = {1}, pages = {149--164}, year = {2007} }
2002
-
Portuguese journal YAM (Yet Another Mouse) - Um Robot Virtual com Planeamento de Caminho a Longo Prazo
pdf
abstract
This article has a brief description of the internal functioning of the virtual robot YAM (Yet Another Mouse), which won the 2002 edition of the “Ciber-Rato” contest. The robot is caracterized by having a strong component of long term planning, since it uses the info given by the beacon sensor to discover the global position of the exit of the maze. In that way it can search the best path to the exit having in account the visited zones, avoiding paths that are locally “good”, but globally “bad”.bib
@article{ribeiro-YAM2002, author = {Pedro Ribeiro}, title = {YAM (Yet Another Mouse) - Um Robot Virtual com Planeamento de Caminho a Longo Prazo}, journal = {Electrónica e Telecomunicações}, volume = {3}, number = {7}, pages = {672--674}, month = {September}, year = {2002} }
Journal articles
-
Improving network motif analysis: an algorithmic approach with user-defined patterns
doi code
bib
@article{ribeiro-IJDSA2026, author = {Luciano Grácio and Pedro Ribeiro}, title = {Improving network motif analysis: an algorithmic approach with user-defined patterns}, journal = {International Journal of Data Science and Analytics}, volume = {22}, number = {1}, pages = {370}, publisher = {Springer}, doi = {10.1007/s41060-026-01308-1}, month = {November}, year = {2026} } -
Bringing Cancer Prevention to Schools: Evaluation of a Novel Teaching Toolkit
doi
abstract
Purpose cancer prevention is key to reduce disease burden, but is often dependent on individual behavioral choices, many of which are adopted early on during adolescence. A novel cancer prevention teaching toolkit, designed for this audience and the educational context, was evaluated for its adequacy and impact. Design Three complementary methods were used: a students’ evaluation study, a teachers’ survey, and website metrics analysis. Setting Schools and online. Sample 316 high school students (15-21yo), 79 teachers, and 4007 online users. Measures Students’ knowledge was measured by questionnaire and behavior were measured pre- and post-intervention; teacher and student appreciation was assessed via structured survey; usage was evaluated by survey (teachers) and website analytics. Analysis Descriptive statistics summarized appreciation levels; paired statistical tests evaluated changes in knowledge and behavior; network analysis and descriptive statistics for describing usage patterns. Results The toolkit was primarily used by Biology teachers (89.9%) in classroom settings (83.5%). Both teachers and students reported high levels of appreciation and dissemination. Significant knowledge differences between groups of students were observed 30 days post-intervention ( P < 0.001). Approximately 50% of students adopted healthier behaviors, some for the first time. Conclusion This work boldly underlines the importance of purposedly designing cancer prevention contents for adolescents and the educational context, with important implications for the development of future cancer prevention educational programs and public health promotion initiatives.bib
@article{ribeiro-AJHP2026, author = {Ana A. Gomes and Nuno Ribeiro and Pedro Oliveira and Pedro Ribeiro and Nuno T. Marcos}, title = {Bringing Cancer Prevention to Schools: Evaluation of a Novel Teaching Toolkit}, journal = {American Journal of Health Promotion}, publisher = {SAGE Publications}, doi = {10.1177/08901171261481763}, month = {August}, year = {2026} } -
Counting subgraphs in multiplex networks
doi code
abstract
Beyond isolated nodes, subgraphs are fundamental components of networks, with enormous potential to provide a detailed characterization of the underlying systems. Computing subgraph frequencies is therefore a core task indispensable to several other important network metrics. Yet, quantifying these small pieces is computationally challenging, with no known general polynomial-time solution, driving the search for efficient methodologies. Previous counting methods mainly focused on simple classic networks, consisting of a single layer of connectivity. In the last decade, there has been growing interest in multilayer networks, which provide a more realistic representation of complex systems by incorporating layers. With this integration, fundamental concepts were meanwhile presented in a consolidated manner, forming the basis for the development of our proposed strategy. Seeking to contribute to the advancement of multilayer network analysis, but considering the scarcity of available solutions, we focus on a specific and more limited problem before progressing to the more general case. Here, we focus precisely on providing a subgraph counting methodology by computing the frequency of all subgraphs of a specified size in the multiplex case, which is the most widely used type of multilayer networks. Our implementation builds on the algorithm, extending it to accommodate multiplex networks by adapting its efficient enumeration and isomorphism identification process to address the introduced layers. This adaptation preserves accuracy, making it an available practical tool for counting subgraphs in multiplex networks, with proof of its performance, supported by experimental results that validate its effectiveness in both synthetic and real world datasets.bib
@article{ribeiro-ANS2026, author = {André Couto Meira and Pedro Ribeiro}, title = {Counting subgraphs in multiplex networks}, journal = {Applied Network Science}, volume = {11}, number = {1}, pages = {58}, publisher = {Springer}, doi = {10.1007/s41109-026-00812-4}, month = {August}, year = {2026} } -
Multilayer quantile graph for multivariate time series analysis and dimensionality reduction
pdf doi arXiv
abstract
In recent years, there has been a surge in the prevalence of high- and multidimensional temporal data across various scientific disciplines. These datasets are characterized by their vast size and challenging potential for analysis. Such data typically exhibit serial and cross-dependency and possess high dimensionality, thereby introducing additional complexities to conventional time series analysis methods. To address these challenges, a recent and complementary approach has emerged, known as network-based analysis methods for multivariate time series. In univariate settings, quantile graphs have been employed to capture temporal transition properties and reduce data dimensionality by mapping observations to a smaller set of sample quantiles. To confront the increasingly prominent issue of high dimensionality, we propose an extension of quantile graphs into a multivariate variant, which we term “Multilayer Quantile Graphs”. In this innovative mapping, each time series is transformed into a quantile graph, and inter-layer connections are established to link contemporaneous quantiles of pairwise series. This enables the analysis of dynamic transitions across multiple dimensions. In this study, we demonstrate the effectiveness of this new mapping using synthetic and benchmark multivariate time series datasets. We delve into the resulting network’s topological structures, extract network features, and employ these features for original dataset analysis. Furthermore, we compare our results with a recent method from the literature. The resulting multilayer network offers a significant reduction in the dimensionality of the original data while capturing serial and cross-dimensional transitions. This approach facilitates the characterization and analysis of large multivariate time series datasets through network analysis techniques.bib
@article{ribeiro-IJDSA2024, author = {Vanessa Freitas Silva and Maria Eduarda Silva and Pedro Ribeiro and Fernando Silva}, title = {Multilayer quantile graph for multivariate time series analysis and dimensionality reduction}, journal = {International Journal of Data Science and Analytics}, volume = {20}, number = {3}, pages = {1795--1807}, publisher = {Springer}, doi = {10.1007/s41060-024-00561-6}, month = {May}, year = {2025} } -
Multilayer horizontal visibility graphs for multivariate time series analysis
doi arXiv code
abstract
Multivariate time series analysis is a vital but challenging task, with multidisciplinary applicability, tackling the characterization of multiple interconnected variables over time and their dependencies. Traditional methodologies often adapt univariate approaches or rely on assumptions specific to certain domains or problems, presenting limitations. A recent promising alternative is to map multivariate time series into high-level network structures such as multiplex networks, with past work relying on connecting successive time series components with interconnections between contemporary timestamps. In this work, we first define a novel cross-horizontal visibility mapping between lagged timestamps of different time series and then introduce the concept of multilayer horizontal visibility graphs. This allows describing cross-dimension dependencies via inter-layer edges, leveraging the entire structure of multilayer networks. To this end, a novel parameter-free topological measure is proposed and common measures are extended for the multilayer setting. Our approach is general and applicable to any kind of multivariate time series data. We provide an extensive experimental evaluation with both synthetic and real-world datasets. We first explore the proposed methodology and the data properties highlighted by each measure, showing that inter-layer edges based on cross-horizontal visibility preserve more information than previous mappings, while also complementing the information captured by commonly used intra-layer edges. We then illustrate the applicability and validity of our approach in multivariate time series mining tasks, showcasing its potential for enhanced data analysis and insights.bib
@article{ribeiro-DAMI2025, author = {Vanessa Freitas Silva and Maria Eduarda Silva and Pedro Ribeiro and Fernando Silva}, title = {Multilayer horizontal visibility graphs for multivariate time series analysis}, journal = {Data Mining and Knowledge Discovery}, volume = {39}, number = {3}, pages = {17}, publisher = {Springer}, doi = {10.1007/s10618-025-01089-4}, month = {March}, year = {2025} } -
Deep-Graph-Sprints: Accelerated Representation Learning in Continuous-Time Dynamic Graphs
pdf arXiv
abstract
Continuous-time dynamic graphs (CTDGs) are essential for modeling interconnected, evolving systems. Traditional methods for extracting knowledge from these graphs often depend on feature engineering or deep learning. Feature engineering is limited by the manual and time-intensive nature of crafting features, while deep learning approaches suffer from high inference latency, making them impractical for real-time applications. This paper introduces Deep-Graph-Sprints (DGS), a novel deep learning architecture designed for efficient representation learning on CTDGs with low-latency inference requirements. We benchmark DGS against state-of-the-art (SOTA) feature engineering and graph neural network methods using five diverse datasets. The results indicate that DGS achieves competitive performance while inference speed improves between 4x and 12x compared to other deep learning approaches on our benchmark datasets. Our method effectively bridges the gap between deep representation learning and low-latency application requirements for CTDGs.bib
@article{ribeiro-TMLR2024, author = {Ahmad Naser Eddin and Jacopo Bono and David Aparício and Hugo Ferreira and Pedro Ribeiro and Pedro Bizarro}, title = {Deep-Graph-Sprints: Accelerated Representation Learning in Continuous-Time Dynamic Graphs}, journal = {Transactions on Machine Learning Research}, month = {November}, year = {2024} } -
Novel features for time series analysis: a complex networks approach
pdf doi arXiv code
abstract
Being able to capture the characteristics of a time series with a feature vector is a very important task with a multitude of applications, such as classification, clustering or forecasting. Usually, the features are obtained from linear and nonlinear time series measures, that may present several data related drawbacks. In this work we introduce NetF as an alternative set of features, incorporating several representative topological measures of different complex networks mappings of the time series. Our approach does not require data preprocessing and is applicable regardless of any data characteristics. Exploring our novel feature vector, we are able to connect mapped network features to properties inherent in diversified time series models, showing that NetF can be useful to characterize time data. Furthermore, we also demonstrate the applicability of our methodology in clustering synthetic and benchmark time series sets, comparing its performance with more conventional features, showcasing how NetF can achieve high-accuracy clusters. Our results are very promising, with network features from different mapping methods capturing different properties of the time series, adding a different and rich feature set to the literature.bib
@article{ribeiro-DAMI2022, author = {Vanessa Freitas Silva and Maria Eduarda Silva and Pedro Ribeiro and Fernando Silva}, title = {Novel features for time series analysis: a complex networks approach}, journal = {Data Mining and Knowledge Discovery}, volume = {36}, number = {3}, pages = {1062--1101}, publisher = {Springer}, doi = {10.1007/s10618-022-00826-3}, month = {May}, year = {2022} } -
A Survey on Subgraph Counting: Concepts, Algorithms, and Applications to Network Motifs and Graphlets
pdf doi arXiv
abstract
Computing subgraph frequencies is a fundamental task that lies at the core of several network analysis methodologies, such as network motifs and graphlet-based metrics, which have been widely used to categorize and compare networks from multiple domains. Counting subgraphs is, however, computationally very expensive, and there has been a large body of work on efficient algorithms and strategies to make subgraph counting feasible for larger subgraphs and networks. This survey aims precisely to provide a comprehensive overview of the existing methods for subgraph counting. Our main contribution is a general and structured review of existing algorithms, classifying them on a set of key characteristics, highlighting their main similarities and differences. We identify and describe the main conceptual approaches, giving insight on their advantages and limitations, and we provide pointers to existing implementations. We initially focus on exact sequential algorithms, but we also do a thorough survey on approximate methodologies (with a trade-off between accuracy and execution time) and parallel strategies (that need to deal with an unbalanced search space).bib
@article{ribeiro-CSUR2021, author = {Pedro Ribeiro and Pedro Paredes and Miguel E. P. Silva and David Aparício and Fernando Silva}, title = {A Survey on Subgraph Counting: Concepts, Algorithms, and Applications to Network Motifs and Graphlets}, journal = {ACM Computing Surveys}, volume = {54}, number = {2}, pages = {1--36}, publisher = {ACM}, doi = {10.1145/3433652}, month = {March}, year = {2021} } -
Time series analysis via network science: Concepts and algorithms
pdf doi arXiv
abstract
There is nowadays a constant flux of data being generated and collected in all types of real world systems. These data sets are often indexed by time, space, or both requiring appropriate approaches to analyze the data. In univariate settings, time series analysis is a mature field. However, in multivariate contexts, time series analysis still presents many limitations. In order to address these issues, the last decade has brought approaches based on network science. These methods involve transforming an initial time series data set into one or more networks, which can be analyzed in depth to provide insight into the original time series. This review provides a comprehensive overview of existing mapping methods for transforming time series into networks for a wide audience of researchers and practitioners in machine learning, data mining, and time series. Our main contribution is a structured review of existing methodologies, identifying their main characteristics, and their differences. We describe the main conceptual approaches, provide authoritative references and give insight into their advantages and limitations in a unified way and language. We first describe the case of univariate time series, which can be mapped to single layer networks, and we divide the current mappings based on the underlying concept: visibility, transition, and proximity. We then proceed with multivariate time series discussing both single layer and multiple layer approaches. Although still very recent, this research area has much potential and with this survey we intend to pave the way for future research on the topic.bib
@article{ribeiro-WIDM2021, author = {Vanessa Freitas Silva and Maria Eduarda Silva and Pedro Ribeiro and Fernando Silva}, title = {Time series analysis via network science: Concepts and algorithms}, journal = {Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery}, volume = {11}, number = {3}, pages = {e1404}, publisher = {Wiley}, doi = {10.1002/widm.1404}, month = {March}, year = {2021} } -
PseudoChecker: an integrated online platform for gene inactivation inference
pdf doi code
abstract
The rapid expansion of high-quality genome assemblies, exemplified by ongoing initiatives such as the Genome-10K and i5k, demands novel automated methods to approach comparative genomics. Of these, the study of inactivating mutations in the coding region of genes, or pseudogenization, as a source of evolutionary novelty is mostly overlooked. Thus, to address such evolutionary/genomic events, a systematic, accurate and computationally automated approach is required. Here, we present PseudoChecker, the first integrated online platform for gene inactivation inference. Unlike the few existing methods, our comparative genomics-based approach displays full automation, a built-in graphical user interface and a novel index, PseudoIndex, for an empirical evaluation of the gene coding status. As a multi-platform online service, PseudoChecker simplifies access and usability, allowing a fast identification of disruptive mutations. An analysis of 30 genes previously reported to be eroded in mammals, and 30 viable genes from the same lineages, demonstrated that PseudoChecker was able to correctly infer 97% of loss events and 95% of functional genes, confirming its reliability. PseudoChecker is freely available, without login required, at http://pseudochecker.ciimar.up.pt.bib
@article{ribeiro-NAR2020, author = {Luís Q Alves and Raquel Ruivo and Miguel M Fonseca and Mónica Lopes-Marques and Pedro Ribeiro and L Filipe C Castro}, title = {PseudoChecker: an integrated online platform for gene inactivation inference}, journal = {Nucleic Acids Research}, volume = {48}, number = {W1}, pages = {W321--W331}, publisher = {Oxford University Press}, doi = {10.1093/nar/gkaa408}, month = {July}, year = {2020} } -
Temporal network alignment via GoT-WAVE
pdf doi arXiv code
abstract
Motivation: Network alignment (NA) finds conserved regions between two networks. NA methods optimize node conservation (NC) and edge conservation. Dynamic graphlet degree vectors are a state-of-the-art dynamic NC measure, used within the fastest and most accurate NA method for temporal networks: DynaWAVE. Here, we use graphlet-orbit transitions (GoTs), a different graphlet-based measure of temporal node similarity, as a new dynamic NC measure within DynaWAVE, resulting in GoT-WAVE. Results: On synthetic networks, GoT-WAVE improves DynaWAVE’s accuracy by 30% and speed by 64%. On real networks, when optimizing only dynamic NC, the methods are complementary. Furthermore, only GoT-WAVE supports directed edges. Hence, GoT-WAVE is a promising new temporal NA algorithm, which efficiently optimizes dynamic NC. We provide a user-friendly user interface and source code for GoT-WAVE.bib
@article{ribeiro-BIOINFORMATICS2019, author = {David Aparício and Pedro Ribeiro and Tijana Milenković and Fernando Silva}, title = {Temporal network alignment via GoT-WAVE}, journal = {Bioinformatics}, volume = {35}, number = {18}, pages = {3527--3529}, publisher = {Oxford University Press}, doi = {10.1093/bioinformatics/btz119}, month = {September}, year = {2019} } -
TensorCast: forecasting and mining with coupled tensors
pdf doi code
abstract
Given an heterogeneous social network, can we forecast its future? Can we predict who will start using a given hashtag on twitter? Can we leverage side information, such as who retweets or follows whom, to improve our membership forecasts? We present TensorCast, a novel method that forecasts time-evolving networks more accurately than current state-of-the-art methods by incorporating multiple data sources in coupled tensors. TensorCast is (a) scalable, being linearithmic on the number of connections; (b) effective, achieving over 20% improved precision on top-1000 forecasts of community members; (c) general, being applicable to data sources with different structure. We run our method on multiple real-world networks, including DBLP, epidemiology data, power grid data, and a Twitter temporal network with over 310 million nonzeros, where we predict the evolution of the activity of the use of political hashtags.bib
@article{ribeiro-KAIS2018, author = {Miguel Araujo and Pedro Ribeiro and Hyun Ah Song and Christos Faloutsos}, title = {TensorCast: forecasting and mining with coupled tensors}, journal = {Knowledge and Information Systems}, volume = {59}, number = {3}, pages = {497--522}, publisher = {Springer}, doi = {10.1007/s10115-018-1223-9}, month = {June}, year = {2019} } -
Graphlet-orbit Transitions (GoT): A fingerprint for temporal network comparison
pdf doi arXiv
abstract
Given a set of temporal networks, from different domains and with different sizes, how can we compare them? Can we identify evolutionary patterns that are both (i) characteristic and (ii) meaningful? We address these challenges by introducing a novel temporal and topological network fingerprint named Graphlet-orbit Transitions (GoT). We demonstrate that GoT provides very rich and interpretable network characterizations. Our work puts forward an extension of graphlets and uses the notion of orbits to encapsulate the roles of nodes in each subgraph. We build a transition matrix that keeps track of the temporal trajectory of nodes in terms of their orbits, therefore describing their evolution. We also introduce a metric (OTA) to compare two networks when considering these matrices. Our experiments show that networks representing similar systems have characteristic orbit transitions. GoT correctly groups synthetic networks pertaining to well-known graph models more accurately than competing static and dynamic state-of-the-art approaches by over 30%. Furthermore, our tests on real-world networks show that GoT produces highly interpretable results, which we use to provide insight into characteristic orbit transitions.bib
@article{ribeiro-PLOS2018-GOT, author = {David Aparicio and Pedro Ribeiro and Fernando Silva}, title = {Graphlet-orbit Transitions (GoT): A fingerprint for temporal network comparison}, journal = {PLoS One}, volume = {13}, number = {10}, pages = {e0205497}, doi = {10.1371/journal.pone.0205497}, month = {October}, year = {2018} } -
Extending the Applicability of Graphlets to Directed Networks
pdf doi arXiv code
abstract
With recent advances in high-throughput cell biology the amount of cellular biological data has grown drastically. Such data is often modeled as graphs (also called networks) and studying them can lead to new insights into molecule-level organization. A possible way to understand their structure is by analysing the smaller components that constitute them, namely network motifs and graphlets. Graphlets are particularly well suited to compare networks and to assess their level of similarity due to the rich topological information that they offer but are almost always used as small undirected graphs of up to five nodes, thus limiting their applicability in directed networks. However, a large set of interesting biological networks such as metabolic, cell signaling or transcriptional regulatory networks are intrinsically directional, and using metrics that ignore edge direction may gravely hinder information extraction. Our main purpose in this work is to extend the applicability of graphlets to directed networks by considering their edge direction, thus providing a powerful basis for the analysis of directed biological networks. We tested our approach on two network sets, one composed of synthetic graphs and another of real directed biological networks, and verified that they were more accurately grouped using directed graphlets than undirected graphlets. It is also evident that directed graphlets offer substantially more topological information than simple graph metrics such as degree distribution or reciprocity. However, enumerating graphlets in large networks is a computationally demanding task. Our implementation addresses this concern by using a state-of-the-art data structure, the g-trie, which is able to greatly reduce the necessary computation. We compared our tool to other state-of-the art methods and verified that it is the fastest general tool for graphlet counting.bib
@article{ribeiro-TCBB2017, author = {David Aparício and Pedro Ribeiro and Fernando Silva}, title = {Extending the Applicability of Graphlets to Directed Networks}, journal = {IEEE/ACM Transactions on Computational Biology and Bioinformatics}, volume = {14}, number = {6}, pages = {1302--1315}, publisher = {IEEE}, doi = {10.1109/TCBB.2016.2586046}, month = {November}, year = {2017} } -
Dynamic inference of social roles in information cascades
pdf doi
abstract
Nodes in complex networks inherently represent different kinds of functional or organizational roles. In the dynamic process of an information cascade, users play different roles in spreading the information: some act as seeds to initiate the process, some limit the propagation and others are in-between. Understanding the roles of users is crucial in modeling the cascades. Previous research mainly focuses on modeling users behavior based upon the dynamic exchange of information with neighbors. We argue however that the structural patterns in the neighborhood of nodes may already contain enough information to infer users’ roles, independently from the information flow in itself. To approach this possibility, we examine how network characteristics of users affect their part in the cascade. We also advocate that temporal information is very important. With this in mind, we propose an unsupervised methodology based on ensemble clustering to classify users into their social roles in a network, using not only their current topological positions, but also considering their history over time. Our experiments on two social networks, Flickr and Digg, show that topological metrics indeed possess discriminatory power and that different structural patterns correspond to different parts in the process. We observe that user commitment in the neighborhood affects considerably the influence score of users. In addition, we discover that the cohesion of neighborhood is important in blocking behavior of users. With this we can construct topological fingerprints that can help us in identifying social roles, based solely on structural social ties, and independently from nodes activity and how information flows.bib
@article{ribeiro-DAMI2015, author = {Sarvenaz Choobdar and Pedro Ribeiro and Srinivasan Parthasarathy and Fernando Silva}, title = {Dynamic inference of social roles in information cascades}, journal = {Data Mining and Knowledge Discovery}, volume = {29}, number = {5}, pages = {1152--1177}, publisher = {Springer}, doi = {10.1007/s10618-015-0402-5}, year = {2015} } -
Rand-FaSE: Fast Approximate Subgraph Census
pdf doi code
abstract
Abstract Determining the frequency of small subgraphs is an important graph mining primitive. One major class of algorithms for this task is based upon the enumeration of all sets of k connected nodes. These are known as network-centric algorithms. FaSE is a exact algorithm for subgraph counting that contrasted with its past approaches by performing the isomorphism tests while doing the enumeration, encapsulating the topological information in a g-trie and thus largely reducing the number of required isomorphism tests. Our goal with this paper is to expand this approach by providing an approximate algorithm, which we called Rand-FaSE. It uses an unbiased sampling estimator for the number of subgraphs of each type, allowing an user to trade some accuracy for even faster execution times. We tested our algorithm on a set of representative complex networks, comparing it with the exact alternative, FaSE. We also do an extensive analysis by studying its accuracy and speed gains against previous sampling approaches. With all of this, we believe FaSE and Rand-FaSE pave the way for faster network-centric census algorithms.bib
@article{ribeiro-SNAM2015, author = {Pedro Paredes and Pedro Ribeiro}, title = {Rand-FaSE: Fast Approximate Subgraph Census}, journal = {Social Network Analysis and Mining}, volume = {5}, number = {1}, pages = {1--18}, publisher = {Springer}, doi = {10.1007/s13278-015-0256-2}, year = {2015} } -
G-Tries: a data structure for storing and finding subgraphs
pdf doi code
abstract
The ability to find and count subgraphs of a given network is an important non trivial task with multidisciplinary applicability. Discovering network motifs or computing graphlet signatures are two examples of methodologies that at their core rely precisely on the subgraph counting problem. Here we present the g-trie, a data-structure specifically designed for discovering subgraph frequencies. We produce a tree that encapsulates the structure of the entire graph set, taking advantage of common topologies in the same way a prefix tree takes advantage of common prefixes. This avoids redundancy in the representation of the graphs, thus allowing for both memory and computation time savings. We introduce a specialized canonical labeling designed to highlight common substructures and annotate the g-trie with a set of conditional rules that break symmetries, avoiding repetitions in the computation. We introduce a novel algorithm that takes as input a set of small graphs and is able to efficiently find and count them as induced subgraphs of a larger network. We perform an extensive empirical evaluation of our algorithms, focusing on efficiency and scalability on a set of diversified complex networks. Results show that g-tries are able to clearly outperform previously existing algorithms by at least one order of magnitude.bib
@article{ribeiro-DAMI2014, author = {Pedro Ribeiro and Fernando Silva}, title = {G-Tries: a data structure for storing and finding subgraphs}, journal = {Data Mining and Knowledge Discovery}, volume = {28}, number = {2}, pages = {337--377}, publisher = {Springer}, doi = {10.1007/s10618-013-0303-4}, month = {March}, year = {2014} } -
Parallel Discovery of Network Motifs
pdf doi
abstract
Many natural structures can be naturally represented by complex networks. Discovering network motifs, which are overrepresented patterns of inter-connections, is a computationally hard task related to graph isomorphism. Sequential methods are hindered by an exponential execution time growth when we increase the size of motifs and networks. In this article we study the opportunities for parallelism in existing methods and propose new parallel strategies that adapt and extend one of the most efficient serial methods known from the Fanmod tool. We propose both a master–worker strategy and one with distributed control, in which we employ a randomized receiver initiated methodology capable of providing dynamic load balancing during the whole computation process. Our strategies are capable of dealing both with exact and approximate network motif discovery. We implement and apply our algorithms to a set of representative networks and examine their scalability up to 128 processing cores. We obtain almost linear speedups, showcasing the efficiency of our proposed approach and are able to reach motif sizes that were not previously achievable using conventional serial algorithms.bib
@article{ribeiro-JPDC2012, author = {Pedro Ribeiro and Fernando Silva and Luís Lopes}, title = {Parallel Discovery of Network Motifs}, journal = {Journal of Parallel and Distributed Computing}, volume = {72}, number = {2}, pages = {144--154}, publisher = {Elsevier}, doi = {10.1016/j.jpdc.2011.08.007}, month = {February}, year = {2012} } -
Parallel calculation of multi-electrode array correlation networks
pdf doi code
abstract
When calculating correlation networks from multi-electrode array (MEA) data, one works with extensive computations. Unfortunately, as the MEAs grow bigger, the time needed for the computation grows even more: calculating pair-wise correlations for current 60 channel systems can take hours on normal commodity computers whereas for future 1000 channel systems it would take almost 280 times as long, given that the number of pairs increases with the square of the number of channels. Even taking into account the increase of speed in processors, soon it can be unfeasible to compute correlations in a single computer. Parallel computing is a way to sustain reasonable calculation times in the future. We provide a general tool for rapid computation of correlation networks which was tested for: (a) a single computer cluster with 16 cores, (b) the Newcastle Condor System utilizing idle processors of university computers and (c) the inter-cluster, with 192 cores. Our reusable tool provides a simple interface for neuroscientists, automating data partition and job submission, and also allowing coding in any programming language. It is also sufficiently flexible to be used in other high-performance computing environments.bib
@article{ribeiro-JNM2009, author = {Pedro Ribeiro and Jennifer Simonotto and Marcus Kaiser and Fernando Silva}, title = {Parallel calculation of multi-electrode array correlation networks}, journal = {Journal of Neuroscience Methods}, volume = {184}, number = {2}, pages = {357--364}, publisher = {Elsevier}, doi = {10.1016/j.jneumeth.2009.08.001}, month = {November}, year = {2009} } -
Improving the Automatic Evaluation of Problem Solutions in Programming Contests
pdf web
abstract
Automatically evaluating source program files is a crucial part of programming contests. The evaluation aims at discriminating programs according to their correctness and efficiency. Given the performance of today’s computers, in order to be able to distinguish the complexity of solutions, it is often necessary to use very large data sets. This is awkward, because it is against the nature of the stated problem and puts an unintended burden on the input operations. Besides, by advertizing a limit for the size of the input, the problem description gives away information with which the contestants may guess the algorithmic complexity that their solutions must attain. It would be more realistic to omit that information and let the contestants discover the limits by analyzing the problem, using a scientific approach. The complexity of the solution can then be estimated automatically by measuring the execution time of the function that solves the problem in incremental test cases, and plotting it against the size of the input. By calling the function multiple times and taking the overall time, we may use only data files the size of which is related to the nature of the problem being solved.bib
@article{ribeiro-IOI2009, author = {Pedro Ribeiro and Pedro Guerreiro}, title = {Improving the Automatic Evaluation of Problem Solutions in Programming Contests}, journal = {Olympiads in Informatics}, volume = {3}, pages = {132--143}, year = {2009} } -
Teaching Artificial Intelligence and Logic Programming in a Competitive Environment
pdf doi code web
abstract
Motivation plays a key role in the learning process. This paper describes an experience in the context of undergraduate teaching of Artificial Intelligence at the Computer Science Department of the Faculty of Sciences in the University of Porto. A sophisticated competition framework, which involved Prolog programmed contenders and game servers, including an appealing GUI, was developed to motivate students on the deepening of the topics covered in class. We report on the impact that such a competitive setup caused on students’ commitment, which surpassed our most optimistic expectations.bib
@article{ribeiro-INFEDU2009, author = {Pedro Ribeiro and Hugo Simões and Michel Ferreira}, title = {Teaching Artificial Intelligence and Logic Programming in a Competitive Environment}, journal = {Informatics in Education}, volume = {8}, number = {1}, pages = {85--100}, doi = {10.15388/infedu.2009.06}, year = {2009} } -
Early Introduction of Competitive Programming
pdf web
abstract
Those who enjoy programming enjoy programming competitions, either as contestants or as coaches. Often coaches are teachers, who, aiming at better results in the future, would like to have more and more students participating, from earlier stages. Learning all the basic algorithms takes some time, of course; on the other hand, competition environments can be introduced right from the beginning as a pedagogical tool. If handled correctly, this can be very effective in helping to reach the goals of the course and, as a side-effect, in bringing larger crowds of students into the programming competition arena.bib
@article{ribeiro-IOI2008, author = {Pedro Ribeiro and Pedro Guerreiro}, title = {Early Introduction of Competitive Programming}, journal = {Olympiads in Informatics}, volume = {2}, pages = {149--162}, year = {2008} } -
Increasing the Appeal of Programming Contests with Tasks Involving Graphical User Interfaces and Computer Graphics
pdf web
abstract
Programming contests should be capable of being appealing to both the contestants and the general public. We feel that the use of graphical user interfaces and computer graphics could help achieve this goal, providing new ways of viewing the task. We describe experiments we made with games (Tic-Tac-Toe, Snake and Ataxx, an Othello-like game), which were made available to students with graphical components, and discuss the results. We also present a simple graphic library where simple drawings can be made and show how it can be used in a programming contest environment. We then conclude by revisiting some past IOI problems, suggesting ways to enhance them with graphical components.bib
@article{ribeiro-IOI2007, author = {Pedro Ribeiro and Pedro Guerreiro}, title = {Increasing the Appeal of Programming Contests with Tasks Involving Graphical User Interfaces and Computer Graphics }, journal = {Olympiads in Informatics}, volume = {1}, pages = {149--164}, year = {2007} }
Conference papers
-
Evaluating Transfer Learning Methods on Real-World Data Streams: A Case Study in Financial Fraud Detection
doi
abstract
When the available data for a target domain is limited, transfer learning (TL) methods can be used to develop models on related data-rich domains, before deploying them on the target domain. However, these TL methods are typically designed with specific, static assumptions on the amount of available labeled and unlabeled target data. This is in contrast with many real world applications, where the availability of data and corresponding labels varies over time. Since the evaluation of the TL methods is typically also performed under the same static data availability assumptions, this would lead to unrealistic expectations concerning their performance in real world settings. To support a more realistic evaluation and comparison of TL algorithms and models, we propose a data manipulation framework that (1) simulates varying data availability scenarios over time, (2) creates multiple domains through resampling of a given dataset and (3) introduces inter-domain variability by applying realistic domain transformations, e.g., creating a variety of potentially time-dependent covariate and concept shifts. These capabilities enable simulation of a large number of realistic variants of the experiments, in turn providing more information about the potential behavior of algorithms when deployed in dynamic settings. We demonstrate the usefulness of the proposed framework by performing a case study on a proprietary real-world suite of card payment datasets. Given the confidential nature of the case study, we also illustrate the use of the framework on the publicly available Bank Account Fraud (BAF) dataset. By providing a methodology for evaluating TL methods over time and in realistic data availability scenarios, our framework facilitates understanding of the behavior of models and algorithms. This leads to better decision making when deploying models for new domains in real-world environments.bib
@inproceedings{ribeiro-ECMLPKDD2025, author = {Ricardo Ribeiro Pereira and Jacopo Bono and Hugo M. Ferreira and Pedro Ribeiro and Carlos Soares and Pedro Bizarro}, title = {Evaluating Transfer Learning Methods on Real-World Data Streams: A Case Study in Financial Fraud Detection}, booktitle = {Machine Learning and Knowledge Discovery in Databases. Applied Data Science Track}, pages = {230--246}, publisher = {Springer}, doi = {10.1007/978-3-032-06118-8_14}, month = {September}, year = {2025} } -
Optimizing Medical Image Captioning with Conditional Prompt Encoding
doi
bib
@inproceedings{ribeiro-IBPRIA2025, author = {Rendson F. Fernandes and Hugo S. Oliveira and Pedro Ribeiro and Hélder P. Oliveira}, title = {Optimizing Medical Image Captioning with Conditional Prompt Encoding}, booktitle = {Pattern Recognition and Image Analysis}, pages = {196--207}, publisher = {Springer}, doi = {10.1007/978-3-031-99568-2_16}, month = {July}, year = {2025} } -
Next Higher Point: two Novel Approaches for Computing Natural Visibility Graphs
pdf doi
abstract
With the huge amount of data that has been collected over time, many methods are being developed to allow better understanding and forecasting in several domains. Time series analysis is a powerful tool to achieve this goal. Despite being a well-established area, there are some gaps, and new methods are emerging to overcome these limitations, such as visibility graphs. Visibility graphs allow the analyses of times series as complex networks and make possible the use of more advanced techniques from another well-established area, network science. In this paper, we present two new efficient approaches for computing natural visibility graphs from times series, one for online scenarios in O(n log n) and the other for offline scenarios in O(nm), the latter taking advantage of the number of different values in the time series (m).bib
@inproceedings{ribeiro-CNA2024, author = {Patrick Daniel and Vanessa Silva and Pedro Ribeiro}, title = {Next Higher Point: two Novel Approaches for Computing Natural Visibility Graphs}, booktitle = {13th International Conference on Complex Networks and their Applications}, pages = {259--272}, publisher = {Springer}, doi = {10.1007/978-3-031-82427-2_22}, month = {December}, year = {2024} } -
Computing Motifs in Hypergraphs
pdf doi code
abstract
Motifs are overrepresented and statistically significant sub-patterns in a network, whose identification is relevant to uncover its underlying functional units. Recently, its extraction has been performed on higher-order networks, but due to the complexity arising from polyadic interactions, and the similarity with known computationally hard problems, its practical application is limited. Our main contribution is a novel approach for hyper-subgraph census and higher-order motif discovery, allowing for motifs with sizes 3 or 4 to be found efficiently, in real-world scenarios. It is consistently an order of magnitude faster than a baseline state-of-art method, while using less memory and supporting a wider range of base algorithms.bib
@inproceedings{ribeiro-COMPLENET2024, author = {Duarte Nóbrega and Pedro Ribeiro}, title = {Computing Motifs in Hypergraphs}, booktitle = {15th Conference on Complex Networks}, pages = {55--70}, publisher = {Springer}, doi = {10.1007/978-3-031-57515-0_5}, month = {April}, year = {2024} } -
From random-walks to graph-sprints: a low-latency node embedding framework on continuous-time dynamic graphs
pdf doi arXiv
abstract
Many real-world datasets have an underlying dynamic graph structure, where entities and their interactions evolve over time. Machine learning models should consider these dynamics in order to harness their full potential in downstream tasks. Previous approaches for graph representation learning have focused on either sampling k-hop neighborhoods, akin to breadth-first search, or random walks, akin to depth-first search. However, these methods are computationally expensive and unsuitable for real-time, low-latency inference on dynamic graphs. To overcome these limitations, we propose graph-sprints a general purpose feature extraction framework for continuous-time-dynamic-graphs (CTDGs) that has low latency and is competitive with state-of-the-art, higher latency models. To achieve this, a streaming, low latency approximation to the random-walk based features is proposed. In our framework, time-aware node embeddings summarizing multi-hop information are computed using only single-hop operations on the incoming edges. We evaluate our proposed approach on three open-source datasets and two in-house datasets, and compare with three state-of-the-art algorithms (TGN-attn, TGN-ID, Jodie). We demonstrate that our graph-sprints features, combined with a machine learning classifier, achieve competitive performance (outperforming all baselines for the node classification tasks in five datasets). Simultaneously, graph-sprints significantly reduce inference latencies, achieving close to an order of magnitude speed-up in our experimental setting.bib
@inproceedings{ribeiro-ICAIF23b, author = {Ahmad Naser Eddin and Jacopo Bono and David Aparício and Hugo Ferreira and João Tiago Ascensão and Pedro Ribeiro and Pedro Bizarro}, title = {From random-walks to graph-sprints: a low-latency node embedding framework on continuous-time dynamic graphs}, booktitle = {4th ACM International Conference on AI in Finance}, pages = {176--184}, publisher = {ACM}, doi = {10.1145/3604237.3626842}, month = {November}, year = {2023} } -
The GANfather: Controllable generation of malicious activity to improve defence systems
pdf doi arXiv
abstract
Machine learning methods to aid defence systems in detecting malicious activity typically rely on labelled data. In some domains, such labelled data is unavailable or incomplete. In practice this can lead to low detection rates and high false positive rates, which characterise for example anti-money laundering systems. In fact, it is estimated that 1.7–4 trillion euros are laundered annually and go undetected. We propose The GANfather, a method to generate samples with properties of malicious activity, without label requirements. We propose to reward the generation of malicious samples by introducing an extra objective to the typical Generative Adversarial Networks (GANs) loss. Ultimately, our goal is to enhance the detection of illicit activity using the discriminator network as a novel and robust defence system. Optionally, we may encourage the generator to bypass pre-existing detection systems. This setup then reveals defensive weaknesses for the discriminator to correct. We evaluate our method in two real-world use cases, money laundering and recommendation systems. In the former, our method moves cumulative amounts close to 350 thousand dollars through a network of accounts without being detected by an existing system. In the latter, we recommend the target item to a broad user base with as few as 30 synthetic attackers. In both cases, we train a new defence system to capture the synthetic attacks.bib
@inproceedings{ribeiro-ICAIF23a, author = {Ricardo Ribeiro Pereira and Jacopo Bono and João Tiago Ascensão and David Aparício and Pedro Ribeiro and Pedro Bizarro}, title = {The GANfather: Controllable generation of malicious activity to improve defence systems}, booktitle = {4th ACM International Conference on AI in Finance}, pages = {133--140}, publisher = {ACM}, doi = {10.1145/3604237.3626882}, month = {November}, year = {2023} } -
Evaluation of Regularization Techniques for Transformers-Based Models
doi
abstract
In recent years the great success of transformers-based models initially employed in Natural Language (NLP) tasks has led to the development of several transformers variations to be employed in a wide range of domains, such as vision. With the correct amount of training data and proper training, transformers can perform excellently compared to the Convolution Neural Networks (CNN) counterpart in the vision tasks. However, the main drawback of transformers concerns the know memory requirements that often exceed the available training platform, growing in a quadratic form regarding the input image size, and a great tendency to overfit. Several works address the memory problem by relaxing the model architecture versions, but mainly with reduced prediction capabilities. In this work, we evaluate Random Patch erasing among the image patch level of the transformer model as a regularization technique to reduce ovefitting while at the same time alleviating training time. The evaluated regularization technique achieves competitive results on several image classification medical datasets. The evaluated Visual Transformers (ViT) models allow to be trained in a single GPU, reaching similar results to CNN counterparts, obtaining an accuracy 91.2%, 79.2% in two competitive image datasets, and reducing the training time on average by 22% on the transformers models.bib
@inproceedings{ribeiro-IbPRIA23, author = {Hugo S. Oliveira and Pedro Ribeiro and Helder P. Oliveira}, title = {Evaluation of Regularization Techniques for Transformers-Based Models}, booktitle = {11th Iberian Conference on Pattern Recognition and Image Analysis}, pages = {312--319}, publisher = {Springer}, doi = {10.1007/978-3-031-36616-1_25}, month = {June}, year = {2023} } -
Improving the Characterization and Comparison of Football Players with Spatial Flow Motifs
pdf doi
abstract
Association Football is probably the world’s most popular sport. Being able to characterise and compare football players is therefore a very important and impactful task. In this work we introduce spatial flow motifs as an extension of previous work on this problem, by incorporating both temporal and spatial information into the network analysis of football data. Our approach considers passing sequences and the role of the player in those sequences, complemented with the physical position of the field where the passes occurred. We provide experimental results of our proposed methodology on real-life event data from the Italian League, showing we can more accurately identify players when compared to using purely topological data.bib
@inproceedings{ribeiro-CNA2022b, author = {Alberto Barbosa and Pedro Ribeiro and Inês Dutra}, title = {Improving the Characterization and Comparison of Football Players with Spatial Flow Motifs}, booktitle = {11th International Conference on Complex Networks and their Applications}, pages = {579--591}, publisher = {Springer}, doi = {10.1007/978-3-031-21131-7_45}, month = {November}, year = {2022} } -
Towards the Concept of Spatial Network Motifs
pdf doi
abstract
Many complex systems exist in the physical world and therefore can be modeled by networks in which their nodes and edges are embedded in space. However, classical network motifs only use purely topological information and disregard other features. In this paper we introduce a novel and general subgraph abstraction that incorporates spatial information, therefore enriching its characterization power. Moreover, we describe and implement a method to compute and count our spatial subgraphs in any given network. We also provide initial experimental results by using our methodology to produce spatial fingerprints of real road networks, showcasing its discrimination power and how it captures more than just simple topology.bib
@inproceedings{ribeiro-CNA2022a, author = {José Ferreira and Alberto Barbosa and Pedro Ribeiro}, title = {Towards the Concept of Spatial Network Motifs}, booktitle = {11th International Conference on Complex Networks and their Applications}, pages = {565--577}, publisher = {Springer}, doi = {10.1007/978-3-031-21131-7_44}, month = {November}, year = {2022} } -
Similarity of Football Players Using Passing Sequences
pdf doi
abstract
Association football has been the subject of many research studies. In this work we present a study on player similarity using passing sequences extracted from games from the top-5 European football leagues during the 2017/2018 season. We present two different approaches: first, we only count the motifs a player is involved in; then we also take into consideration the specific position a player occupies in each motif. We also present a new way to objectively judge the quality of the generated models in football analytics. Our results show that the study of passing sequences can be used to study player similarity with relative success.bib
@inproceedings{ribeiro-MLSA2021, author = {Alberto Barbosa and Pedro Ribeiro and Inês Dutra}, title = {Similarity of Football Players Using Passing Sequences}, booktitle = {8th Workshop on Machine Learning and Data Mining for Sports Analytics}, pages = {51--61}, publisher = {Springer}, doi = {10.1007/978-3-031-02044-5_5}, month = {September}, year = {2021} } -
StreamFaSE: An Online Algorithm for Subgraph Counting in Dynamic Networks
pdf doi
abstract
Counting subgraph occurrences in complex networks is an important analytical task with applicability in a multitude of domains such as sociology, biology and medicine. This task is a fundamental primitive for concepts such as motifs and graphlet degree distributions. However, there is a lack of online algorithms for computing and updating subgraph counts in dynamic networks. Some of these networks exist as a streaming of edge additions and deletions that are registered as they occur in the real world. In this paper we introduce StreamFaSE, an efficient online algorithm for keeping track of exact subgraph counts in dynamic networks, and we explain in detail our approach, showcasing its general applicability in different network scenarios. We tested our method on a set of diverse real directed and undirected network streams, showing that we are always faster than the current existing methods for this task, achieving several orders of magnitude speedup when compared to a state-of-art baseline.bib
@inproceedings{ribeiro-CNA2020, author = {Henrique Branquinho and Luciano Grácio and Pedro Ribeiro}, title = {StreamFaSE: An Online Algorithm for Subgraph Counting in Dynamic Networks}, booktitle = {9th International Conference on Complex Networks and their Applications}, pages = {688--699}, publisher = {Springer}, doi = {10.1007/978-3-030-65351-4_55}, month = {December}, year = {2020} } -
Condensed Graphs: A Generic Framework for Accelerating Subgraph Census Computation
pdf doi
abstract
Counting subgraph occurrences is a hard but very important task in complex network analysis, with applications in concepts such as network motifs or graphlet degree distributions. In this paper we present a novel approach for this task that takes advantage of knowing that a large fraction of subgraph types does not appear at all on real world networks. We describe a pattern-growth methodology that is able to iteratively build subgraph patterns that do not contain smaller non-occurring subgraphs, significantly pruning the search space. By using the g-trie data structure, we are able to efficiently only count those subgraphs that we are interested in, reducing the total computation time. The obtained experimental results are very promising allowing us to avoid the computation of up to 99.78% of all possible subgraph patterns. This showcases the potential of this approach and paves the way for reaching previously unattainable subgraph sizes.bib
@inproceedings{ribeiro-COMPLENET2020, author = {Miguel Martins and Pedro Ribeiro}, title = {Condensed Graphs: A Generic Framework for Accelerating Subgraph Census Computation}, booktitle = {11th Conference on Complex Networks}, pages = {3--15}, publisher = {Springer}, doi = {10.1007/978-3-030-40943-2_1}, month = {March}, year = {2020} } -
FOCAS: penalising friendly citations to improve author ranking
pdf doi
abstract
Scientific impact is commonly associated with the number of citations received. However, an author can easily boost his own citation count by (i) publishing articles that cite his own previous work (self-citations), (ii) having co-authors citing his work (co-author citations), or (iii) exchanging citations with authors from other research groups (reciprocated citations). Even though these friendly citations inflate an author’s perceived scientific impact, author ranking algorithms do not normally address them. They, at most, remove self-citations. Here we present Friends-Only Citations AnalySer (FOCAS), a method that identifies friendly citations and reduces their negative effect in author ranking algorithms. FOCAS combines the author citation network with the co-authorship network in order to measure author proximity and penalises citations between friendly authors. FOCAS is general and can be regarded as an independent module applied while running (any) PageRank-like author ranking algorithm. FOCAS can be tuned to use three different criteria, namely authors’ distance, citation frequency, and citation recency, or combinations of these. We evaluate and compare FOCAS against eight state-of-the-art author ranking algorithms. We compare their rankings with a ground-truth of best paper awards. We test our hypothesis on a citation and co-authorship network comprised of seven Information Retrieval top-conferences. We observed that FOCAS improved author rankings by 25% on average and, in one case, leads to a gain of 46%.bib
@inproceedings{ribeiro-ACMSAC2020-SONAMA, author = {Jorge Silva and David Aparício and Pedro Ribeiro and Fernando Silva}, title = {FOCAS: penalising friendly citations to improve author ranking}, booktitle = {35th ACM Symposium On Applied Computing - Social Network and Media Analysis Track}, pages = {1852--1860}, publisher = {ACM}, doi = {10.1145/3341105.3373991}, month = {March}, year = {2020} } -
Finding Dominant Nodes Using Graphlets
doi
abstract
Finding important nodes is a classic task in network science. Nodes are important depending on the context; e.g., they can be (i) nodes that, when removed, cause the network to collapse or (ii) influential spreaders (e.g., of information, or of diseases). Typically, central nodes are assumed to be important, and numerous network centrality measures have been proposed such as the degree centrality, the betweenness centrality, and the subgraph centrality. However, centrality measures are not tailored to capture one particular kind of important nodes: dominant nodes. We define dominant nodes as nodes that dominate many others and are not dominated by many others. We then propose a general graphlet-based measure of node dominance called graphlet-dominance (GD). We analyze how GD differs from traditional network centrality measures. We also study how certain parameters (namely the importance of dominating versus not being dominated and indirect versus direct dominances) influence GD. Finally, we apply GD to author ranking and verify that GD is superior to PageRank in four of the five citation networks tested.bib
@inproceedings{ribeiro-CNA2019, author = {David Aparício and Pedro Ribeiro and Fernando Silva and Jorge Silva}, title = {Finding Dominant Nodes Using Graphlets}, booktitle = {8th International Conference on Complex Networks and their Applications}, pages = {77--89}, publisher = {Springer}, doi = {10.1007/978-3-030-36687-2_7}, month = {December}, year = {2019} } -
An efficient approach for counting occurring induced subgraphs
pdf doi
abstract
Counting subgraph occurrences is a hard but very important task in complex network analysis, with applications in concepts such as network motifs or graphlet degree distributions. In this paper we present a novel approach for this task that takes advantage of knowing that a large fraction of subgraph types does not appear at all on real world networks. We describe a pattern-growth methodology that is able to iteratively build subgraph patterns that do not contain smaller non-occurring subgraphs, significantly pruning the search space. By using the g-trie data structure, we are able to efficiently only count those subgraphs that we are interested in, reducing the total computation time. The obtained experimental results are very promising allowing us to avoid the computation of up to 99.78% of all possible subgraph patterns. This showcases the potential of this approach and paves the way for reaching previously unattainable subgraph sizes.bib
@inproceedings{ribeiro-COMPLENET2019, author = {Luciano Grácio and Pedro Ribeiro}, title = {An efficient approach for counting occurring induced subgraphs}, booktitle = {10th Conference on Complex Networks}, pages = {33--45}, publisher = {Springer}, doi = {10.1007/978-3-030-14459-3_3}, month = {March}, year = {2019} } -
Automatic Habitat Mapping using Convolutional Neural Networks
pdf doi
abstract
In this paper we propose a novel technique for performing habitat mapping in submerged coastal areas using AUVs and Convolutional Neural Networks (CNNs). Our approach consists having multiple AUVs traveling close to the bottom to acquire geo-referenced photos. Habitats in the photos are (partially) identified by marine biologists, which makes a supervised learning approach possible. (preliminary version of abstract)bib
@inproceedings{ribeiro-AUV2018, author = {André Diegues and José Pinto and Pedro Ribeiro}, title = {Automatic Habitat Mapping using Convolutional Neural Networks}, booktitle = {IEEE OES Autonomous Underwater Vehicle Symposium}, pages = {1--6}, publisher = {IEEE}, doi = {10.1109/AUV.2018.8729787}, month = {November}, year = {2018} } -
Hierarchical Expert Profiling using Heterogeneous Information Networks
pdf doi
abstract
Linking an expert to his knowledge areas is still a challenging research problem. The task is usually divided into two steps: identifying the knowledge areas/topics in the text corpus and assign them to the experts. Common approaches for the expert profiling task are based on the Latent Dirichlet Allocation (LDA) algorithm. As a result, they require pre-defining the number of topics to be identified which is not ideal in most cases. Furthermore, LDA generates a list of independent topics without any kind of relationship between them. Expert profiles created using this kind of flat topic lists have been reported as highly redundant and many times either too specific or too general. In this paper we propose a methodology that addresses these limitations by creating hierarchical expert profiles, where the knowledge areas of a researcher are mapped along different granularity levels, from broad areas to more specific ones. For the purpose, we explore the rich structure and semantics of Heterogeneous Information Networks (HINs). Our strategy is divided into two parts. First, we introduce a novel algorithm that can fully use the rich content of an HIN to create a topical hierarchy, by discovering overlapping communities and ranking the nodes inside each community. We then present a strategy to map the knowledge areas of an expert along all the levels of the hierarchy, exploiting the information we have about the expert to obtain an hierarchical profile of topics. To test our proposed methodology, we used a computer science bibliographical dataset to create a star-schema HIN containing publications as star-nodes and authors, keywords and ISI fields as attribute-nodes. We use heterogeneous pointwise mutual information to demonstrate the quality and coherence of our created hierarchies. Furthermore, we use manually labelled data to serve as ground truth to evaluate our hierarchical expert profiles, showcasing how our strategy is capable of building accurate profiles.bib
@inproceedings{ribeiro-DS2018, author = {Jorge Silva and Pedro Ribeiro and Fernando Silva}, title = {Hierarchical Expert Profiling using Heterogeneous Information Networks}, booktitle = {21st International Conference on Discovery Science}, pages = {344--360}, publisher = {Springer}, doi = {10.1007/978-3-030-01771-2_22}, month = {October}, year = {2018} } -
TensorCast: Forecasting Time-Evolving Networks with Contextual Information
pdf doi code
abstract
Given an heterogeneous social network, can we forecast its future? Can we predict who will start using a given hashtag on twitter? Can we leverage side information, such as who retweets or follows whom, to improve our membership forecasts? We present TensorCast, a novel method that forecasts time-evolving networks more accurately than current state of the art methods by incorporating multiple data sources in coupled tensors. TensorCast is (a) scalable, being linearithmic on the number of connections; (b) effective, achieving over 20% improved precision on top-1000 forecasts of community members; (c) general, being applicable to data sources with different structure. We run our method on multiple real-world networks, including DBLP and a Twitter temporal network with over 310 million non-zeros, where we predict the evolution of the activity of the use of political hashtags.bib
@inproceedings{ribeiro-IJCAI2018, author = {Miguel Araujo and Pedro Ribeiro and Christos Faloutsos}, title = {TensorCast: Forecasting Time-Evolving Networks with Contextual Information}, booktitle = {27th International Joint Conference on Artificial Intelligence - Sister Conferences Best Papers}, pages = {5199--5203}, doi = {10.24963/ijcai.2018/721}, month = {July}, year = {2018} } -
Fast streaming small graph canonization
pdf doi code
abstract
In this paper we introduce the streaming graph canonization problem. Its goal is finding a canonical representation of a sequence of graphs in a stream. Our model of a stream fixes the graph’s vertices and allows for fully dynamic edge changes, meaning it permits both addition and removal of edges. Our focus is on small graphs, since small graph isomorphism is an important primitive of many subgraph based metrics, like motif analysis or frequent subgraph mining. We present an efficient data-structure to approach this problem, namely a graph isomorphism discrete finite automaton and showcase its efficiency when compared to a non-streaming-aware method that simply recomputes the isomorphism information from scratch in each iteration.bib
@inproceedings{ribeiro-COMPLENET2018, author = {Pedro Paredes and Pedro Ribeiro}, title = {Fast streaming small graph canonization}, booktitle = {9th Conference on Complex Networks}, pages = {27--40}, publisher = {Springer}, doi = {10.1007/978-3-319-73198-8_3}, month = {March}, year = {2018} } -
TensorCast: Forecasting with Context using Coupled Tensors Best Paper Award
pdf doi code
abstract
Given an heterogeneous social network, can we forecast its future? Can we predict who will start using a given hashtag on twitter? Can we leverage side information, such as who retweets or follows whom, to improve our membership forecasts? We present TensorCast, a novel method that forecasts time-evolving networks more accurately than current state of the art methods by incorporating multiple data sources in coupled tensors. TensorCast is (a) scalable, being linearithmic on the number of connections; (b) effective, achieving over 20% improved precision on top-1000 forecasts of community members; (c) general, being applicable to data sources with different structure. We run our method on multiple real-world networks, including DBLP and a Twitter temporal network with over 310 million non-zeros, where we predict the evolution of the activity of the use of political hashtags.bib
@inproceedings{ribeiro-ICDM2017, author = {Miguel Araujo and Pedro Ribeiro and Christos Faloutsos}, title = {TensorCast: Forecasting with Context using Coupled Tensors}, booktitle = {IEEE International Conference on Data Mining}, pages = {71--80}, publisher = {IEEE}, doi = {10.1109/ICDM.2017.16}, month = {November}, year = {2017} } -
Evolutionary Role Mining in Complex Networks by Ensemble Clustering
pdf doi
abstract
The structural patterns in the neighborhood of nodes assign unique roles to the nodes. Mining the set of existing roles in a network provides a descriptive profile of the network and draws its general picture. This paper proposes a new method to determine structural roles in a dynamic network based on the current position of nodes and their historic behavior. We develop a temporal ensemble clustering technique to dynamically find groups of nodes, holding similar tempo-structural roles. We compare two weighting functions, based on age and distribution of data, to incorporate temporal behavior of nodes in the role discovery. To evaluate the performance of the proposed method, we assess the result s from two points of view: 1) goodness of fit to current structure of the network; 2) consistency with historic data. We conduct the evaluation using different ensemble clustering techniques. The results on real world networks demonstrate that our method can detect tempo-structural roles that simultaneously depict the topology of a network and reflect its dynamics with high accuracy.bib
@inproceedings{ribeiro-ACMSAC2017-SONAMA, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Evolutionary Role Mining in Complex Networks by Ensemble Clustering}, booktitle = {32nd ACM Symposium On Applied Computing - Social Network and Media Analysis Track}, pages = {1053--1060}, publisher = {ACM}, doi = {10.1145/3019612.3019815}, month = {April}, year = {2017} } -
Scalable Subgraph Counting using MapReduce
pdf doi
abstract
Networks are powerful in representing a wide variety of systems in many fields of study. Networks are composed of smaller substructures (subgraphs) that characterize them and give important information related to their topology and functionality. Therefore, discovering and counting these subgraph patterns is very important towards mining the features of networks. Algorithmically, subgraph counting in a network is a computationally hard problem and the needed execution time grows exponentially as the size of the subgraph or the network increases. The main goal of this paper is to contribute towards subgraph search, by providing an accessible and scalable parallel methodology for counting subgraphs. For that we present a dynamic iterative MapReduce strategy to parallelize algorithms that induce an unbalanced search tree, and apply it in the subgraph counting realm. At the core of our methods lies the g-trie, a state-of-the-art data structure that was created precisely for this task. Our strategy employs an adaptive time threshold and an efficient work-sharing mechanism to dynamically do load balancing between the workers. We evaluate our implementations using Spark on a large set of representative complex networks from different fields. The results obtained are very promising and we achieved a consistent and almost linear speedup up to 32 cores, with an average efficiency close to 80%. To the best of our knowledge this is the fastest and most scalable method for subgraph counting within the MapReduce programming model.bib
@inproceedings{ribeiro-ACMSAC2017-PAPP, author = {Ahmad Naser eddin and Pedro Ribeiro}, title = {Scalable Subgraph Counting using MapReduce}, booktitle = {32nd ACM Symposium On Applied Computing - Practical Aspects of High-Level Parallel Programming Track}, pages = {1574--1581}, publisher = {ACM}, doi = {10.1145/3019612.3019744}, month = {April}, year = {2017} } -
Network motifs detection using random networks with prescribed subgraph frequencies
pdf doi code
abstract
In order to detect network motifs we need to evaluate the exceptionality of subgraphs in a given network. This is usually done by comparing subgraph frequencies on both the original and an ensemble of random networks keeping certain structural properties. The classical null model implies preserving the degree sequence. In this paper our focus is on a richer model that approximately fixes the frequency of subgraphs of size K−1 to compute motifs of size K. We propose a method for generating random graphs under this model, and we provide algorithms for its efficient computation. We show empirical results of our proposed methodology on neurobiological networks, showcasing its efficiency and its differences when comparing to the traditional null model.bib
@inproceedings{ribeiro-COMPLENET2017, author = {Miguel Silva and Pedro Paredes and Pedro Ribeiro}, title = {Network motifs detection using random networks with prescribed subgraph frequencies}, booktitle = {8th Conference on Complex Networks}, pages = {17--29}, publisher = {Springer}, doi = {10.1007/978-3-319-54241-6_2}, month = {March}, year = {2017} } -
FastStep: Scalable Boolean Matrix Decomposition
pdf doi code
abstract
Matrix Decomposition methods are applied to a wide range of tasks, such as data denoising, dimensionality reduction, co-clustering and community detection. However, in the presence of boolean inputs, common methods either do not scale or do not provide a boolean reconstruction, which results in high reconstruction error and low interpretability of the decomposition. We propose a novel step decomposition of boolean matrices in non-negative factors with boolean reconstruction. By formulating the problem using threshold operators and through suitable relaxation of this problem, we provide a scalable algorithm that can be applied to boolean matrices with millions of non-zero entries. We show that our method achieves significantly lower reconstruction error when compared to standard state of the art algorithms. We also show that the decomposition keeps its interpretability by analyzing communities in a flights dataset (where the matrix is interpreted as a graph in which nodes are airports) and in a movie-ratings dataset with 10 million non-zeros.bib
@inproceedings{ribeiro-PAKDD2016, author = {Miguel Araujo and Pedro Ribeiro and Christos Faloutsos}, title = {FastStep: Scalable Boolean Matrix Decomposition}, booktitle = {20th Pacific-Asia Conference on Knowledge Discovery and Data Mining}, pages = {461--473}, publisher = {Springer}, doi = {10.1007/978-3-319-31753-3_37}, month = {April}, year = {2016} } -
A subgraph-based ranking system for professional tennis players
pdf doi
abstract
This paper introduces a novel ranking system for competitive sports based around the notion of subgraphs and we show its applicability on men’s professional tennis. The results of over 180,000 tennis matches played from 1974 to 2015 are used to create a colored directed dominance network, with colors representing different surfaces and edges depicting head-to-head results between all the 856 players that were in the Top-100 of the ATP official ranking. We start by exploring the general properties of the network that we constructed and show that both their in and out degree distributions follow a power-law. We proceed by describing our proposed ranking system, which relies on considering all the occurrences of size 4 directed subgraphs and in which positions (or orbits) the players appear on the subgraphs. Even with a very sparse network and without any background knowledge on the tournaments and stage of the matches, we show that our proposal is able to extract meaningful rankings which capture the intricate competitive relationships between players from different eras.bib
@inproceedings{ribeiro-COMPLENET2016, author = {David Aparício and Pedro Ribeiro and Fernando Silva}, title = {A subgraph-based ranking system for professional tennis players}, booktitle = {7th International Workshop on Complex Networks}, pages = {159--171}, publisher = {Springer}, doi = {10.1007/978-3-319-30569-1_12}, month = {March}, year = {2016} } -
Large Scale Graph Representations for Subgraph Census
pdf doi
abstract
A Subgraph Census (determining the frequency of smaller subgraphs in a network) is an important computational task at the heart of several graph mining algorithms. Here we focus on the g-tries, an efficient state-of-the art data structure. Its algorithm makes extensive use of the graph primitive that checks if a certain edge exists. The original implementation used adjacency matrices in order to make this operation as fast as possible, as is the case with most past approaches. This representation is very expensive in memory usage, limiting the applicability. In this paper we study a number of possible approaches that scale linearly with the number of edges. We make an extensive empirical study of these alternatives in order to find an efficient hybrid approach that combines the best representations. We achieve a performance that is less than 50% slower than the adjacency matrix on average (almost 3 times more efficient than a naive binary search implementation), while being memory efficient and tunable for different memory restrictions.bib
@inproceedings{ribeiro-NETSCIX2016, author = {Pedro Paredes and Pedro Ribeiro}, title = {Large Scale Graph Representations for Subgraph Census}, booktitle = {International School and Conference on Network Science}, pages = {186--194}, publisher = {Springer}, doi = {10.1007/978-3-319-28361-6_16}, month = {January}, year = {2016} } -
Pairwise structural role mining for user categorization in information cascades
pdf doi
abstract
It is well known that many social networks follow the homophily principle, dictating that individuals tend to connect with similar peers. Past studies focused on non-topological properties, such as the age, gender, beliefs or educations. In this paper we focus precisely on the topology itself, exploring the possible existence of pairwise role dependency, that is, purely structural homophily. We show that while pairwise dependency is necessary for some structural roles, it may be misleading for others. We also present SR-Diffuse, a novel method for identifying the structural roles of nodes within a network. It is an iterative algorithm following an optimization model able to learn simultaneously from topological features and structural homophily, combining both aspects. For assessing our method, we applied it in a classification problem in information cascades, comparing its performance against several baseline methods. The experimental results with Flickr and Digg data show that SR-Diffuse can improve the quality of the discovered roles and can better represent the profile of the individuals, leading to a better prediction of social classes within information cascades.bib
@inproceedings{ribeiro-ASONAM2015, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Pairwise structural role mining for user categorization in information cascades}, booktitle = {IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining}, pages = {137--144}, publisher = {IEEE}, doi = {10.1145/2808797.2808909}, month = {August}, year = {2015} } -
Discovering weighted motifs in gene co-expression networks
pdf doi
abstract
An important dimension of complex networks is embedded in the weights of its edges. Incorporating this source of information on the analysis of a network can greatly enhance our understanding of it. This is the case for gene co-expression networks, which encapsulate information about the strength of correlation between gene expression profiles. Classical unweighted gene co-expression networks use thresholding for defining connectivity, losing some of the information contained in the different connection strengths. In this paper, we propose a mining method capable of extracting information from weighted gene co-expression networks. We study groups of differently connected nodes and their importance as network motifs. We define a subgraph as a motif if the weights of edges inside the subgraph hold a significantly different distribution than what would be found in a random distribution. We use the Kolmogorov-Smirnov test to calculate the significance score of the subgraph, avoiding the time consuming generation of random networks to determine statistic significance. We apply our approach to gene co-expression networks related to three different types of cancer and also to two healthy datasets. The structure of the networks is compared using weighted motif profiles, and our results show that we are able to clearly distinguish the networks and separate them by type. We also compare the biological relevance of our weighted approach to a more classical binary motif profile, where edges are unweighted. We use shared Gene Ontology annotations on biological processes, cellular components and molecular functions. The results of gene enrichment analysis show that weighted motifs are biologically more significant than the binary motifs.bib
@inproceedings{ribeiro-ACMSAC2015, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Discovering weighted motifs in gene co-expression networks}, booktitle = {25th ACM Symposium On Applied Computing - Data Mining Track}, pages = {10--17}, publisher = {ACM}, doi = {10.1145/2695664.2695773}, month = {March}, year = {2015} } -
A Scalable Parallel Approach for Subgraph Census Computation
pdf doi code
abstract
Counting the occurrences of small subgraphs in large networks is a fundamental graph mining metric with several possible applications. Computing frequencies of those subgraphs is also known as the subgraph census problem, which is a computationally hard task. In this paper we provide a parallel multicore algorithm for this purpose. At its core we use FaSE, an efficient network-centric sequential subgraph census algorithm, which is able to substantially decrease the number of isomorphism tests needed when compared to past approaches. We use one thread per core and employ a dynamic load balancing scheme capable of dealing with the highly unbalanced search tree induced by FaSE and effectively redistributing work during execution. We ass essed the scalability of our algorithm on a varied set of representative networks and achieved near linear speedup up to 32 cores while obtaining a high efficiency for the total 64 cores of our machine.bib
@inproceedings{ribeiro-MUCOCOS2014, author = {David Aparício and Pedro Paredes and Pedro Ribeiro}, title = {A Scalable Parallel Approach for Subgraph Census Computation}, booktitle = {7th International Workshop on Multi-/Many-Core Computing Systems}, pages = {194--205}, publisher = {Springer}, doi = {10.1007/978-3-319-14313-2_17}, month = {August}, year = {2014} } -
Parallel subgraph counting for multicore architectures
pdf doi code
abstract
Computing the frequency of small subgraphs on a large network is a computationally hard task. This is, however, an important graph mining primitive, with several applications, and here we present a novel multicore parallel algorithm for this task. At the core of our methodology lies a state-of-the-art data structure, the g-trie, which represents a collection of subgraphs and allows for a very efficient sequential search. Our implementation was done using Pthreads and can run on any multicore personal computer. We employ a diagonal work sharing strategy to dynamically and effectively divide work among threads during the execution. We assess the performance of our Pthreads implementation on a set of representative networks from various domains and with diverse topological features. For most networks, we obtain a speedup of over 50 for 64 cores and an almost linear speedup up to 32 cores, showcasing the flexibility and scalability of our algorithm. This paves the way for the usage of such counting algorithms on larger subgraph and network sizes without the obligatory access to a cluster.bib
@inproceedings{ribeiro-ISPA2014, author = {David Aparício and Pedro Ribeiro and Fernando Silva}, title = {Parallel subgraph counting for multicore architectures}, booktitle = {12th IEEE International Symposium on Parallel and Distributed Processing with Applications}, pages = {34--41}, publisher = {IEEE}, doi = {10.1109/ISPA.2014.14}, month = {August}, year = {2014} } -
Discovering Colored Network Motifs
pdf doi
abstract
Network motifs are small overrepresented patterns that have been used successfully to characterize complex networks. Current algorithmic approaches focus essentially on pure topology and disregard node and edge nature. However, it is often the case that nodes and edges can also be classified and separated into different classes. This kind of networks can be modeled by colored (or labeled) graphs and in this paper we present a definition of a colored motif and an algorithm that efficiently discovers this kind of motifs. We use g-tries, a specialized data-structure created for finding sets of subgraphs. G-Tries encapsulate common sub-structure, and with the aid of symmetry breaking conditions and a customized canonization methodology, we are able to efficiently search for several colored patterns at the same time. We apply our algorithm to a set of representative complex networks, showing that we can find colored motifs, outperforming previous methods.bib
@inproceedings{ribeiro-COMPLENET2014, author = {Pedro Ribeiro and Fernando Silva}, title = {Discovering Colored Network Motifs}, booktitle = {5th International Workshop on Complex Networks}, volume = {549}, pages = {107--118}, publisher = {Springer SCI}, doi = {10.1007/978-3-319-05401-8_11}, month = {March}, year = {2014} } -
Towards a Faster Network-Centric Subgraph Census
pdf doi
abstract
Determining the frequency of small subgraphs is an important computational task lying at the core of several graph mining methodologies, such as network motifs discovery or graphlet based measurements. In this paper we try to improve a class of algorithms available for this purpose, namely network-centric algorithms, which are based upon the enumeration of all sets of k connected nodes. Past approaches would essentially delay isomorphism tests until they had a finalized set of k nodes. In this paper we show how isomorphism testing can be done during the actual enumeration. We use a customized g-trie, a tree data structure, in order to encapsulate the topological information of the embedded subgraphs, identifying already known node permutations of the same subgraph type. With this we avoid redundancy and the need of an isomorphism test for each subgraph occurrence. We tested our algorithm, which we called FaSE, on a set of different real complex networks, both directed and undirected, showcasing that we indeed achieve significant speedups of at least one order of magnitude against past algorithms, paving the way for a faster network-centric approach.bib
@inproceedings{ribeiro-ASONAM2013, author = {Pedro Paredes and Pedro Ribeiro}, title = {Towards a Faster Network-Centric Subgraph Census}, booktitle = {IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining}, pages = {264--271}, publisher = {IEEE}, doi = {10.1145/2492517.2492535}, month = {August}, year = {2013} } -
Event Detection in Evolving Networks
pdf doi
abstract
This paper describes a methodology for finding and describing significant events in time evolving complex networks. We first group the nodes of the network in clusters, according to their similarity in terms of a set of local properties such as degree and clustering coefficient. We then monitor the behavior of these groups over time, looking for significant changes on the size of the groups. These events are notable since they show that the position of a number of nodes in the network has changed. We describe this evolution by extracting the correspondent transition patterns. We examined our methodology on three different real network datasets. Our experiments show that the discovered rules are significant and can describe the occurring events.bib
@inproceedings{ribeiro-CASON2012, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Event Detection in Evolving Networks}, booktitle = {4th International Conference on Computational Aspects of Social Networks}, pages = {26--32}, publisher = {IEEE}, doi = {10.1109/CASoN.2012.6412373}, month = {November}, year = {2012} } -
Motif Mining in Weighted Networks
pdf doi
abstract
Unexpectedly frequent subgraphs, known as motifs, can help in characterizing the structure of complex networks. Most of the existing methods for finding motifs are designed for unweighted networks, where only the existence of connection between nodes is considered, and not their strength or capacity. However, in many real world networks, edges contain more information than just simple node connectivity. In this paper, we propose a new method to incorporate edge weight information in motif mining. We think of a motif as a subgraph that contains unexpected information, and we define a new significance measurement to assess this subgraph exceptionality. The proposed metric embeds the weight distribution in subgraphs and it is based on weight entropy. We use the g-trie data structure to find instances of k-sized subgraphs and to calculate its significance score. Following a statistical approach, the random entropy of subgraphs is then calculated, avoiding the time consuming step of random network generation. The discrimination power of the derived motif profile by the proposed method is assessed against the results of the traditional unweighted motifs through a graph classification problem. We use a set of labeled ego networks of co-authorship in the biology and mathematics fields. The new proposed method is shown to be feasible, achieving even slightly better accuracy. Since it does not require the generation of random networks, it is also computationally faster, and because we are able to use the weight information in computing the motif importance, we can avoid converting weighted networks into unweighted ones.bib
@inproceedings{ribeiro-DAMNET2012, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Motif Mining in Weighted Networks}, booktitle = {2nd IEEE ICDM Workshop on Data Mining in Networks}, pages = {210--217}, publisher = {IEEE}, doi = {10.1109/ICDMW.2012.111}, month = {November}, year = {2012} } -
Comparison of Co-authorship Networks across Scientific Fields Using Motifs
pdf doi
abstract
Comparing scientific production across different research fields is commonly controversial and subject to disagreement. Different fields have different practices, but expectedly some fields such as Chemistry and Physics should be more comparable then they are to Mathematics or Computer Science. Such comparison is often based on quantitative indicators, such as papers per researcher, but data normalization is rather difficult to accomplish. Here, we focus on the comparison of different fields based on their research collaboration networks. Could it be that co-authorship patterns can characterize and differentiate various fields of research? We use co-authorship networks where nodes are researchers and the edges show the existing co-authorship relations between them. Our comparison methodology is based on network motifs fingerprints, that are over represented patterns or subgraphs in the network. We derive motif fingerprints for 22 research fields based on 29 motifs of size three to five found in the corresponding co-authorship networks. These fingerprints provide a quantitative measure for assessing similarity among research fields, and our analysis shows that the discrimination power of 29 motif types is not identical. We use a co-authorship dataset built from over 15,361 publications inducing a co-authorship network with over 32,842 researchers.bib
@inproceedings{ribeiro-ASONAM2012, author = {Sarvenaz Choobdar and Pedro Ribeiro and Sylwia Bugla and Fernando Silva}, title = {Comparison of Co-authorship Networks across Scientific Fields Using Motifs}, booktitle = {IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining}, pages = {147--152}, publisher = {IEEE}, doi = {10.1109/ASONAM.2012.34}, month = {August}, year = {2012} } -
Querying Subgraph Sets with G-Tries Best Paper Award
pdf doi
abstract
In this paper we present an universal methodology for finding all the occurrences of a given set of subgraphs in one single larger graph. Past approaches would either enumerate all possible subgraphs of a certain size or query a single subgraph. We use g-tries, a data structure specialized in dealing with subgraph sets. G-Tries store the topological information on a tree that exposes common substructure. Using a specialized canonical form and symmetry breaking conditions, a single non-redundant search of the entire set of subgraphs is possible. We give results of applying g-tries querying to different social networks, showing that we can efficiently find the occurrences of a set containing subgraphs of multiple sizes, outperforming previous methods.bib
@inproceedings{ribeiro-DBSOCIAL2012, author = {Pedro Ribeiro and Fernando Silva}, title = {Querying Subgraph Sets with G-Tries}, booktitle = {2nd ACM SIGMOD Workshop on Databases and Social Networks}, pages = {25--30}, publisher = {ACM}, doi = {10.1145/2304536.2304541}, month = {May}, year = {2012} } -
Network node label acquisition and tracking
pdf doi
abstract
Complex networks are ubiquitous in real-world and represent a multitude of natural and artificial systems. Some of these networks are inherently dynamic and their structure changes over time, but only recently has the research community been trying to better characterize them. In this paper we propose a novel general methodology to characterize time evolving networks, analyzing the dynamics of their structure by labeling the nodes and tracking how these labels evolve. Node labeling is formulated as a clustering task that assigns a classification to each node according to its local properties. Association rule mining is then applied to sequences of nodes’ labels to extract useful rules that best describe changes in the network. We evaluate our method using two different networks, a real-world network of the world annual trades and a synthetic scale-free network, in order to uncover evolution patterns. The results show that our approach is valid and gives insights into the dynamics of the network. As an example, the derived rules for the scale-free network capture the properties of preferential node attachment.bib
@inproceedings{ribeiro-EPIA2011, author = {Sarvenaz Choobdar and Fernando Silva and Pedro Ribeiro}, title = {Network node label acquisition and tracking}, booktitle = {15th Portuguese Conference on Artificial Intelligence}, pages = {418--430}, publisher = {Springer}, doi = {10.1007/978-3-642-24769-9_31}, month = {October}, year = {2011} } -
Efficient Parallel Subgraph Counting using G-Tries
pdf doi
abstract
Finding and counting the occurrences of a collection of subgraphs within another larger network is a computationally hard problem, closely related to graph isomorphism. The subgraph count is by itself a very powerful characterization of a network and it is crucial for other important network measurements. G-tries are a specialized data-structure designed to store and search for subgraphs. By taking advantage of subgraph common substructure, g-tries can provide considerable speedups over previously used methods. In this paper we present a parallel algorithm based precisely on g-tries that is able to efficiently find and count subgraphs. The algorithm relies on randomized receiver-initiated dynamic load balancing and is able to stop its computation at any given time, efficiently store its search position, divide what is left to compute in two halfs, and resume from where it left. We apply our algorithm to several representative real complex networks from various domains and examine its scalability. We obtain an almost linear speedup up to 128 processors, thus allowing us to reach previously unfeasible limits. We showcase the multidisciplinary potential of the algorithm by also applying it to network motif discovery.bib
@inproceedings{ribeiro-CLUSTER2010, author = {Pedro Ribeiro and Fernando Silva and Luís Lopes}, title = {Efficient Parallel Subgraph Counting using G-Tries}, booktitle = {IEEE International Conference on Cluster Computing}, pages = {217--226}, publisher = {IEEE}, doi = {10.1109/CLUSTER.2010.27}, month = {September}, year = {2010} } -
Efficient Subgraph Frequency Estimation with G-Tries
pdf doi
abstract
Many biological networks contain recurring overrepresented elements, called network motifs. Finding these substructures is a computationally hard task related to graph isomorphism. G-Tries are an efficient data structure, based on multiway trees, capable of efficiently identifying common substructures in a set of subgraphs. They are highly successful in constraining the search space when finding the occurrences of those subgraphs in a larger original graph. This leads to speedups up to 100 times faster than previous methods that aim for exact and complete results. In this paper we present a new efficient sampling algorithm for subgraph frequency estimation based on g-tries. It is able to uniformly traverse a fraction of the search space, providing an accurate unbiased estimation of subgraph frequencies. Our results show that in the same amount of time our algorithm achieves better precision than previous methods, as it is able to sustain higher sampling speeds.bib
@inproceedings{ribeiro-WABI2010, author = {Pedro Ribeiro and Fernando Silva}, title = {Efficient Subgraph Frequency Estimation with G-Tries}, booktitle = {10th International Workshop on Algorithms in Bioinformatics}, pages = {238--249}, publisher = {Springer}, doi = {10.1007/978-3-642-15294-8_20}, month = {September}, year = {2010} } -
G-Tries: an efficient data structure for discovering network motifs
pdf doi
abstract
In this paper we propose a novel specialized data structure that we call g-trie, designed to deal with collections of subgraphs. The main conceptual idea is akin to a prefix tree in the sense that we take advantage of common topology by constructing a multiway tree where the descendants of a node share a common substructure. We give algorithms to construct a g-trie, to list all stored subgraphs, and to find occurrences on another graph of the subgraphs stored in the g-trie. We evaluate the implementation of this structure and its associated algorithms on a set of representative benchmark biological networks in order to find network motifs. To assess the efficiency of our algorithms we compare their performance with other known network motif algorithms also implemented in the same common platform. Our results show that indeed, g-tries are a feasible, adequate and very efficient data structure for network motifs discovery, clearly outperforming previous algorithms and data structures.bib
@inproceedings{ribeiro-ACMSAC2010, author = {Pedro Ribeiro and Fernando Silva}, title = {G-Tries: an efficient data structure for discovering network motifs}, booktitle = {25th ACM Symposium On Applied Computing - Bioinformatics Track}, pages = {1559--1566}, publisher = {ACM}, doi = {10.1145/1774088.1774422}, month = {March}, year = {2010} } -
A Parallel Algorithm for Counting Subgraphs in Complex Networks
pdf doi
abstract
Many natural and artificial structures can be represented as complex networks. Computing the frequency of all subgraphs of a certain size can give a very comprehensive structural characterization of these networks. This is known as the subgraph census problem, and it is also important as an intermediate step in the computation of other features of the network, such as network motifs. The subgraph census problem is computationally hard and most associated algorithms for it are sequential. Here we present several increasingly efficient parallel strategies for, culminating in a scalable and adaptive parallel algorithm. We applied our strategies to a representative set of biological networks and achieved almost linear speedups up to 128 processors, paving the way for making it possible to compute the census for bigger networks and larger subgraph sizes.bib
@inproceedings{ribeiro-BIOSTEC2010, author = {Pedro Ribeiro and Fernando Silva and Luís Lopes}, title = {A Parallel Algorithm for Counting Subgraphs in Complex Networks}, booktitle = {3rd International Joint Conference on Biomedical Engineering Systems and Technologies, Revised Selected Papers}, pages = {380--393}, publisher = {Springer}, doi = {10.1007/978-3-642-18472-7_30}, year = {2010} } -
Strategies for Network Motifs Discovery
pdf doi
abstract
Complex networks from domains like Biology or Sociology are present in many e-Science data sets. Dealing with networks can often form a workflow bottleneck as several related algorithms are computationally hard. One example is detecting characteristic patterns or “network motifs” - a problem involving subgraph mining and graph isomorphism. This paper provides a review and runtime comparison of current motif detection algorithms in the field. We present the strategies and the corresponding algorithms in pseudo-code yielding a framework for comparison. We categorize the algorithms outlining the main differences and advantages of each strategy. We finally implement all strategies in a common platform to allow a fair and objective efficiency comparison using a set of benchmark networks. We hope to inform the choice of strategy and critically discuss future improvements in motif detection.bib
@inproceedings{ribeiro-ESCIENCE2009, author = {Pedro Ribeiro and Fernando Silva and Marcus Kaiser}, title = {Strategies for Network Motifs Discovery}, booktitle = {5th IEEE International Conference on e-Science}, pages = {80--87}, publisher = {IEEE}, doi = {10.1109/e-Science.2009.20}, month = {December}, year = {2009} }
Workshops and other conferences
-
Anti-Money Laundering Alert Optimization Using Machine Learning with Graphs
arXiv
abstract
Money laundering is a global problem that concerns legitimizing proceeds from serious felonies (1.7-4 trillion euros annually) such as drug dealing, human trafficking, or corruption. The anti-money laundering systems deployed by financial institutions typically comprise rules aligned with regulatory frameworks. Human investigators review the alerts and report suspicious cases. Such systems suffer from high false-positive rates, undermining their effectiveness and resulting in high operational costs. We propose a machine learning triage model, which complements the rule-based system and learns to predict the risk of an alert accurately. Our model uses both entity-centric engineered features and attributes characterizing inter-entity relations in the form of graph-based features. We leverage time windows to construct the dynamic graph, optimizing for time and space efficiency. We validate our model on a real-world banking dataset and show how the triage model can reduce the number of false positives by 80% while detecting over 90% of true positives. In this way, our model can significantly improve anti-money laundering operations.bib
@inproceedings{ribeiro-AIFS2022, author = {Ahmad Naser Eddin and Jacopo Bono and David Aparício and David Polido and João Tiago Ascensão and Pedro Bizarro and Pedro Ribeiro}, title = {Anti-Money Laundering Alert Optimization Using Machine Learning with Graphs}, booktitle = {AAAI-22 Workshop on AI in Financial Services: Adaptiveness, Resilience & Governance}, month = {February}, year = {2022} } -
Parallel Calculation of Subgraph Census in Biological Networks
abstract
Mining meaningful data from complex biological networks is a critical task in many areas of research. One important example is calculating the frequency of all subgraphs of a certain size, also known as the subgraph census problem. This can provide a very comprehensive structural characterization of a network and is also used as an intermediate step in the computation of network motifs, an important basic building block of networks, that try to bridge the gap between structure and function. The subgraph census problem is computationally hard and here we present several parallel strategies to solve this problem. Our initial strategies were refined towards achieving an efficient and scalable adaptive parallel algorithm. This algorithm achieves almost linear speedups up to 128 cores when applied to a representative set of biological networks from different domains and makes the calculation of census for larger subgraph sizes feasible.bib
@inproceedings{ribeiro-BIOINFORMATICS2010, author = {Pedro Ribeiro and Fernando Silva and Luís Lopes}, title = {Parallel Calculation of Subgraph Census in Biological Networks}, booktitle = {1st International Conference on Bioinformatics}, pages = {56--65}, publisher = {INSTICC}, month = {January}, year = {2010} } -
An autonomous hybrid robot system to navigate through unknown maze environments
pdf
abstract
This paper describes a fully complete autonomous hybrid robot system, named YAM (Yet Another Mouse), that is able to navigate through an unknown maze environment. YAM effectively tackles the problem of how to represent the environment using its sensor data to produce probability maps of the walls and beacons. Besides that, it is capable of computing long-term path plans using an adapted breadth-first search algorithm. It also shows how it is possible to model the actual motors behavior as a reactive task, using artificially created virtual short-term goals. We give real contest results, showing how YAM behaved on the “Ciber- Rato” robotics competition.bib
@inproceedings{ribeiro-ASC2007, author = {Pedro Ribeiro}, title = {An autonomous hybrid robot system to navigate through unknown maze environments}, booktitle = {11th IASTED International Conference on Artificial Intelligence and Soft Computing}, pages = {274--279}, month = {August}, year = {2007} } -
Plugging Computer Labs to the Grid
pdf
abstract
We present an architecture that allows the seamless configuration of computer labs to work as dedicated computing clusters duringperiods of user inactivity. The operation of the cluster is fully automated by making use of differentiated network booting and a job management system. We have prepared it to be plugged to a larger computational grid. We provide some preliminary performance results obtained.bib
@inproceedings{ribeiro-IBERGRID2007, author = {Pedro Ribeiro and Pedro Pereira and Luís Lopes and Fernando Silva}, title = {Plugging Computer Labs to the Grid}, booktitle = {1st Iberian GRID Infrastructure Conference}, pages = {393--396}, month = {May}, year = {2007} }
Other
-
preprint Transfer Learning for Evolving Domains
doi arXiv
abstract
Transfer learning explores how to leverage knowledge from various tasks or domains (sources) to enhance predictive performance in related tasks or domains (targets). Typically, transfer learning research is segmented into several isolated sub-areas (such as domain generalisation, domain adaptation, or multi-domain learning), each making distinct assumptions about target data availability, namely how much data and how many labels are available at training time. However, in many real-world applications, data availability is not fixed but evolves over time, as instances and labels are progressively collected from a new domain. Each of the classical settings then describes only a snapshot of a trajectory that a deployed system must traverse in full. We formalise this trajectory as a transfer learning problem in its own right, Transfer Learning for Evolving Domains (TrED), specified by a data availability process fixed by the environment, a learning protocol that the method is free to choose, and an evaluation criterion that scores the whole trajectory of models rather than a single one. Within this formalism, the classical settings are recovered as regimes that a learner may pass through, rather than as separate problems that TrED concatenates. We then examine the transfer learning literature to identify mechanisms that are promising building blocks for a solution, and find that most methods are tailored to a single regime and that even the strongest existing candidates do not yet optimise the whole trajectory. We argue that TrED is a well-posed and unsolved problem, and an important direction for future research.bib
@misc{ribeiro-ARXIV260913039, author = {Ricardo Ribeiro Pereira and Jacopo Bono and Hugo M. Ferreira and Pedro Ribeiro and Pedro Saleiro and Pedro Bizarro and Carlos Soares}, title = {Transfer Learning for Evolving Domains}, howpublished = {arXiv preprint arXiv:2609.13039}, doi = {10.48550/arXiv.2609.13039}, month = {September}, year = {2026} } -
preprint Do Deep Ensembles Actually Capture Uncertainty in Graph Neural Networks?
doi arXiv
abstract
While deep ensembles are widely considered to be the default method for uncertainty quantification in deep learning, their effectiveness for graph-structured data is often simply assumed based on successes in domains like computer vision. We investigate standard deep ensembles specifically for message-passing graph neural networks. Benchmarking across eight datasets representing varied tasks and complexities, we reveal that ensembles provide only marginal improvement over a single model. These marginal gains stem primarily from averaging out optimization noise in point predictions rather than from meaningfully better uncertainty estimates. Through an aleatoric-epistemic decomposition, we identify epistemic collapse: independently trained networks consistently converge to overly similar predictions. Because disagreement is the fundamental mechanism through which ensembles capture epistemic uncertainty, this lack of diversity neutralizes their key advantage. Towards explaining this phenomenon, we derive a bound on epistemic variance in terms of the graph topology and Dirichlet energy budget, linking epistemic collapse to the smoothing bias of message passing. Our results suggest that deep ensemble success does not seamlessly transfer to graph machine learning.bib
@misc{ribeiro-ARXIV260522593, author = {Pedro C. Vieira and Pedro Ribeiro and Viacheslav Borovitskiy}, title = {Do Deep Ensembles Actually Capture Uncertainty in Graph Neural Networks?}, howpublished = {arXiv preprint arXiv:2605.22593}, doi = {10.48550/arXiv.2605.22593}, month = {May}, year = {2026} } -
preprint Studying and Improving Graph Neural Network-based Motif Estimation
doi arXiv
abstract
Graph Neural Networks (GNNs) are a predominant method for graph representation learning. However, beyond subgraph frequency estimation, their application to network motif significance-profile (SP) prediction remains under-explored, with no established benchmarks in the literature. We propose to address this problem, framing SP estimation as a task independent of subgraph frequency estimation. Our approach shifts from frequency counting to direct SP estimation and modulates the problem as multitarget regression. The reformulation is optimised for interpretability, stability and scalability on large graphs. We validate our method using a large synthetic dataset and further test it on real-world graphs. Our experiments reveal that 1-WL limited models struggle to make precise estimations of SPs. However, they can generalise to approximate the graph generation processes of networks by comparing their predicted SP with the ones originating from synthetic generators. This first study on GNN-based motif estimation also hints at how using direct SP estimation can help go past the theoretical limitations that motif estimation faces when performed through subgraph counting.bib
@misc{ribeiro-ARXIV250615709, author = {Pedro C. Vieira and Miguel E. P. Silva and Pedro Ribeiro}, title = {Studying and Improving Graph Neural Network-based Motif Estimation}, howpublished = {arXiv preprint arXiv:2506.15709}, doi = {10.48550/arXiv.2506.15709}, month = {May}, year = {2025} } -
edited volume Network Science: 7th International Winter Conference, NetSci-X 2022, Porto, Portugal, February 8–11, 2022, Proceedings
doi
bib
@proceedings{ribeiro-NETSCIX2022, editor = {Pedro Ribeiro and Fernando Silva and José Fernando Mendes and Rosário Laureano}, title = {Network Science: 7th International Winter Conference, NetSci-X 2022, Porto, Portugal, February 8–11, 2022, Proceedings}, series = {Lecture Notes in Computer Science}, volume = {13197}, publisher = {Springer}, doi = {10.1007/978-3-030-97240-0}, year = {2022} } -
book chapter Querying Volatile and Dynamic Networks
doi 2nd ed. 2018
abstract
Many networks are intrinsically dynamic and change over time. These networks can be very volatile, with a significant number of edges and nodes appearing and disappearing. The majority of the existing network mining methodologies are however geared towards a more static scenario, with a single graph describing the topology of the system being analyzed. There is still a need for measurements and tools that allow the temporal dimension on network analysis to be fully and naturally incorporated. In this entry we deal precisely with volatile and dynamic networks and how to extract information from them. We take a general approach in which we track the structural role of nodes over time. By using a set of local properties, such as degree and clustering coefficients, we group similar nodes and we monitor the behavior of these groups over time, looking for significant changes. We are able to describe the evolution of the network in the form of transition patterns that explain how position of nodes change and how groups of nodes grow and shrink.bib
@inbook{ribeiro-ENCSNAM2014, author = {Sarvenaz Choobdar and Pedro Ribeiro and Fernando Silva}, title = {Querying Volatile and Dynamic Networks}, booktitle = {Encyclopedia of Social Network Analysis and Mining}, pages = {1456--1463}, publisher = {Springer}, doi = {10.1007/978-1-4614-6170-8_390}, month = {October}, year = {2014} } -
PhD thesis Efficient and Scalable Algorithms for Network Motifs Discovery
pdf
abstract
Networks are a powerful representation for a multitude of natural and artificial systems. They are ubiquitous in real-world systems, presenting substantial non-trivial topological features. These are called complex networks and have received increasing attention in recent years. In order to understand their design principles, the concept of network motifs emerged. These are recurrent over-represented patterns of inter-connections, conjectured to have some significance, that can be seen as basic building blocks of networks. Algorithmically, discovering network motifs is a hard problem related to graph isomorphism. The needed execution time grows exponentially as the size of networks or motifs increases, thus limiting their applicability. Since motifs are a fundamental concept, increasing the efficiency in its detection can lead to new insights in several areas of knowledge. To develop efficient and scalable algorithms for motifs discovery is precisely the main aim of this thesis. We provide a thorough survey of existing methods, complete with an associated chronology, taxonomy, algorithmic description and empirical evaluation and comparison. We propose a novel data-structure, g-tries, designed to represent a collection of graphs. Akin to a prefix tree, it takes advantage of common substructures to both reduce the memory needed to store the graphs, and to produce a new more efficient sequential algorithm to compute their frequency as subgraphs of another larger graph. We also introduce a sampling methodology for g-tries that successfully trades accuracy for faster execution times. We identify opportunities for parallelism in motif discovery, creating an associated taxonomy. We expose the whole motif computation as a tree based search and devise a general methodology for parallel execution with dynamic load balancing, including a novel strategy capable of efficiently stopping and dividing computation on the fly. In particular we provide parallel algorithms for ESU and g-tries. Finally, we extensively evaluate our algorithms on a set of diversified complex networks. We show that we are able to outperform all existing sequential algorithms and are able to scale our parallel algorithms up to 128 processors almost linearly. By combining the power of g-tries and parallelism, we speedup motif discovery by several orders of magnitude, thus effectively pushing the limits in its applicability.bib
@phdthesis{ribeiro-PHD2011, author = {Pedro Ribeiro}, title = {Efficient and Scalable Algorithms for Network Motifs Discovery}, school = {Faculty of Science of the University of Porto}, month = {June}, year = {2011} } -
Portuguese journal YAM (Yet Another Mouse) - Um Robot Virtual com Planeamento de Caminho a Longo Prazo
pdf
abstract
This article has a brief description of the internal functioning of the virtual robot YAM (Yet Another Mouse), which won the 2002 edition of the “Ciber-Rato” contest. The robot is caracterized by having a strong component of long term planning, since it uses the info given by the beacon sensor to discover the global position of the exit of the maze. In that way it can search the best path to the exit having in account the visited zones, avoiding paths that are locally “good”, but globally “bad”.bib
@article{ribeiro-YAM2002, author = {Pedro Ribeiro}, title = {YAM (Yet Another Mouse) - Um Robot Virtual com Planeamento de Caminho a Longo Prazo}, journal = {Electrónica e Telecomunicações}, volume = {3}, number = {7}, pages = {672--674}, month = {September}, year = {2002} }
No publications match.