DBDavy Baia

Davy Baia

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

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Davy Baia has a total of 18 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    An Adversarial-Attack Approach to Assess Bias in Text-to-Image Models

    by Keya Gangadharan, Nathalia Nascimento, Paulo Alencar, Myron David Peixoto, Audrey Vasconcelos, Davy Baia, Baldoino Fonseca

  • Open Access

    Ethics and Fairness in Machine Learning: Equity Guidelines for Brazilian Public Policies.

    by Vicente Julião Mr Barros, George Brandão Souza, Baldoino Fonseca, Davy Baia, Tiago Vieira

    The application of machine learning technologies in public policy formulation represents a significant advance in contemporary government management, but raises critical issues related to equity, transparency, and algorithmic justice. The present study investigates the presence of systemic biases in data and predictive models applied in Brazilian public policy scenarios through a comprehensive audit using open government data. A pipeline-structured methodology was developed that covers ten social scenarios in critical areas such as education, health, work, and technology, using data from five Brazilian government agencies (IBGE, MS, MEC, INEP, CETIC.BR). Eight supervised binary classification algorithms were evaluated. To rigorously address the severe class imbalance inherent in public policy microdata, the final predictive models were selected strictly based on the highest 5-fold Cross-Validated Area Under the ROC Curve (CV AUC-ROC) rather than global accuracy. This unified criterion resulted in the selection of Gradient Boosting for seven social scenarios and Random Forest for three scenarios (Food Insecurity, Digital Inclusion, and Tech Vulnerability) as the most robust models, which were subsequently subjected to systematic fairness auditing. The results indicate the presence of consistent patterns of disparity among sensitive demographic groups, with frequent violations of established disparity limits, particularly in the Demographic Parity and Predictive Equality metrics. Because the reference group is the modal category of each sensitive attribute ---Brown individuals in every racial audit---the reported ratios express deviation from the predictive pattern of that group, and such deviations affect all contrasted categories: minority groups (black, yellow, and indigenous people) record the most extreme cases, including predictive collapses, while the white group registers some of the largest deviations in positive prediction and false positive rates. These patterns show concrete risks of algorithmic discrimination and perpetuation of historical inequalities. The Equal Opportunity metric suggests better equity for the gender sensitive attribute in eight of the ten scenarios analyzed, the exceptions being Poverty Prediction (CENSO) and Live Births Vulnerability (SINASC), where the metric fails against the sex reference of the respective dataset. This research contributes significantly to the field of ethical and responsible Artificial Intelligence in the Brazilian context, providing empirical evidence of the presence of systematic biases in government data and models and establishing a replicable protocol for fairness audit in automated decision support systems. The findings demonstrate the urgent need for the implementation of continuous audit practices in the life cycle of Machine Learning projects in the public sector. Furthermore, this study identifies a critical gap for future research and policy-making: the urgent necessity to formulate specific legal instruments and strengthen existing data protection frameworks (such as the LGPD in Brazil) to formally enforce algorithmic equity and regulate automated decision-making. By addressing this regulatory void, we propose guidelines for the development of more just and equitable Artificial Intelligence solutions that are rigorously aligned with democratic principles, legal accountability, and fundamental rights.

  • Open Access

    LSTM-based Forecasting for Non-linear Workloads in On-premises Software Systems

    by Rafael Xavier, Bruno Cafeo, Baldoino Fonseca, Davy Baia, Elder Cirilo

    Cloud computing has become a commonly adopted solution to increase business operations efficiency and scalability. However, costs related to cloud infrastructure are increasingly prohibitive for some organizations in long-term deployment scenarios. This expense barrier has led to the emergence of a cloud repatriation trend, where existing software systems are moved back to on-premises environments. Although this initiative enhances cost control management and autonomy, it reintroduces technical challenges. This work investigates, through an empirical study, the applicability of Long Short-Term Memory (LSTM) networks for workload prediction to support auto-scaling decisions in on-premises environments. Initially, we contrasted the prediction accuracy of LSTM with classical methods, utilizing both standard benchmark datasets and access logs collected from an industrial-grade software system. In the second phase, we examined how varying temporal resolutions affect precision and computational expense. Results show the LSTM consistently outperforms classical methods, reducing MAPE by up to 18.02% and RMSE by 8.77% on benchmark datasets. Considering the in-field dataset, it outperforms in long-term predictions, especially regarding MAE and MAPE. Throughout all analyzed temporal resolutions, the 10-minute resolution optimally balanced accuracy with efficiency. Moreover,we noted that LSTM requires less training time than classical methods, emphasizing its applicability for real-world scenarios. Therefore, the results indicate that LSTM emerges as a viable solution to enable proactive auto-scaling within on-premises environments, potentially reducing costs in the context of cloud repatriation.

  • Open Access

    Exploring Transfer Learning for Multilingual Software Quality: Code Smells, Bugs, and Harmful Code

    by Rodrigo Lima, Durval Pereira, Caio Barbosa, Leonardo Leite, Davy Baia, Baldoino Fonseca, Leopoldo Teixeira, Jairo Souza

    Code smells are indicators of poor design implementation and decision-making that can potentially harm the quality of software. Therefore, detecting these smells is crucial to prevent such issues. Some studies aim to comprehend the impact of code smells on software quality, while others propose rules or machine learning-based approaches to identify code smells. Previous research has focused on labeling and analyzing code snippets that significantly impair software quality using machine learning techniques. These snippets are classified as Clean, Smelly, Buggy, and Harmful Code. Harmful Code refers to smelly code segments that have one or more reported bugs, whether fixed or not. Consequently, the presence of a Harmful Code increases the risk of introducing new defects and/or design issues during the remediation process. We perform our study as an extension of the previous study, with the scope of 5 smell types. The total number of commits across all four tables (Java, C++, C#, and Python projects) is 641,736, versions of 91 open-source projects, 17,022 bugs, and 24,737 code smells. The findings revealed promising transferability of knowledge between Java and C# in the presence of various code smell types, while C++ and Python exhibited more challenging transferability. Also, our study discovered that a sample size of 32 demonstrated favorable outcomes for most harmful codes, underscoring the efficiency of transfer learning even with limited data. Moreover, the exploration of transfer learning between bugs and code smells represents a not-very-ineffective avenue within the realm of software engineering.


  • Open Access

    Is your code harmful too? Understanding harmful code through transfer learning

    by Durval Pereira Cesar, Caio Barbosa Vieira da Silva, Leonardo Pedrosa Leite, Baldoino Fonseca, Davy De Medeiros Baia

    Code smells are indicators of poor design implementation and decision-making that can potentially harm the quality of software. Therefore, detecting these smells is crucial to prevent such issues. Some studies aim to comprehend the impact of code smells on software quality, while others propose rules or machine learning-based approaches to identify code smells. Previous research has focused on labeling and analyzing code snippets that significantly impair software quality using machine learning techniques. These snippets are classified as Clean, Smelly, Buggy, and Harmful Code. Harmful Code refers to Smelly code segments that have one or more reported bugs, whether fixed or not. Consequently, the presence of a Harmful Code increases the risk of introducing new defects and/or design issues during the remediation process. While generating useful results for harmful code detection, none of the prior work has considered, through the use of transfer learning, train a model to identify harmful snippets in one programming language and being able to identify similar harmfulness in another programming language. We perform our study on this scope with 5 smell types, 258,035 versions of 23 open-source projects, 8,181 bugs and 11,506 code smells. The findings revealed promising transferability of knowledge between Java and C# in the presence of various code smells types, while C++ exhibited more challenging transferability. Also, our study discovered that a sample size of 32 demonstrated favorable outcomes for most harmful codes, underscoring the efficiency of transfer learning even with limited data.