PBPedro Bizarro

Pedro Bizarro

*This is an algorithmically generated author record based on publicly available information.

Pedro Bizarro has a total of 16 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    StreamPerf: Predicting SLA breaches at different latency percentiles in mission critical stream processing

    by Diogo Pacheco, Rodrigo Rodrigues, Paolo Romano, João Barreto, Ana Sofia Gomes, Alberto Ferreira, Pedro Bizarro

    Mission-critical stream processing systems, ranging from fraud detection to smart-grid management and industrial automation, demand strict maximum latencies at high tail percentiles (e.g., a maximum 100-millisecond latency at the 99.9th percentile). Because SLA breaches in these domains incur massive costs, pre-deployment performance modeling is essential. However, existing models only estimate average latencies, failing to capture the tail behavior critical for high-stakes environments. In this paper, we report on our experience at Feedzai in addressing this challenge within Railgun, a stream processing engine used in ML-based fraud detection used globally across hundreds of pipelines. We propose a machine learning-based performance prediction pipeline designed to proactively assess capacity and SLA compliance before a new setup is deployed. We developed a novel workload characterization methodology that builds a generalizable feature set directly from sample stream datasets and Railgun configurations. These features are then used to train an XGBoost regression model capable of understanding the complex stateful streaming behaviors that contribute to the performance of a processing unit. Our evaluation demonstrates that this ML-based approach significantly outperforms analytical white-box solutions and linear baselines, predicting maximum sustainable throughput with a Mean Absolute Percentage Error (MAPE) of 7.64%. Furthermore, the model accurately reconstructs the throughput-latency curve, pinpointing the saturation cliff where latency degrades exponentially, and achieves an 85.5% accuracy in detecting SLA breaches.

  • Open Access

    Lessons Learned while Running ML Models in Harsh Environments

    by Pedro Bizarro

    Once a very large payment processor client told us: 'if we are down for 5 minutes, we open the evening news - so don't screw up'. Processing billions of dollars per day, many financial institutions, need to continuously fight organized crime in the form of transaction fraud, stolen cards, anti-money laundering, account opening fraud, impersonations scams, phishing, and many other exotic and ever changing attacks from organized crime groups worldwide. In fact, it is estimated that in 2023 the global losses in fraud scams and bank fraud reached 485.6 billion. However, in addition to having very good detection rates and very low false positive rates, financial institutions also need to maintain very high availability rates, very low latencies, very high throughputs, automatic fault tolerance, auto scale up and down, and more. In this talk we cover some lessons related to running ML models in harsh, mission critical environments. We describe data issues, scale issues, ethical issues, system issues, security issues, compliance issues, business and regulation issues, and some architectural tradeoffs and architectural evolutions.

  • Open Access

    The GANfather: Controllable generation of malicious activity to improve defence systems

    by Ricardo Ribeiro Pereira, Jacopo Bono, João Tiago Ascensão, David Aparício, Pedro Ribeiro, Pedro Bizarro

    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.


  • Open Access

    From random-walks to graph-sprints: a low-latency node embedding framework on continuous-time dynamic graphs

    by Ahmad Naser Eddin, Jacopo Bono, David Aparício, Hugo Ferreira, João Tiago Ascensão, Pedro Ribeiro, Pedro Bizarro


  • Open Access

    Weakly Supervised Multi-task Learning for Concept-based Explainability

    by Catarina Belém, Vladimir Balayan, Pedro Saleiro, Pedro Bizarro

    In ML-aided decision-making tasks, such as fraud detection or medical diagnosis, the human-in-the-loop, usually a domain-expert without technical ML knowledge, prefers high-level concept-based explanations instead of low-level explanations based on model features. To obtain faithful concept-based explanations, we leverage multi-task learning to train a neural network that jointly learns to predict a decision task based on the predictions of a precedent explainability task (i.e., multi-label concepts). There are two main challenges to overcome: concept label scarcity and the joint learning. To address both, we propose to: i) use expert rules to generate a large dataset of noisy concept labels, and ii) apply two distinct multi-task learning strategies combining noisy and golden labels. We compare these strategies with a fully supervised approach in a real-world fraud detection application with few golden labels available for the explainability task. With improvements of 9.26% and of 417.8% at the explainability and decision tasks, respectively, our results show it is possible to improve performance at both tasks by combining labels of heterogeneous quality.