Davy Baia
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Davy Baia has a total of 18 co-authors. Here are the top co-authors by number of shared publications:
- Baldoino Fonseca
Federal University of Alagoas, Maceió, Alagoas, Brazil
5 shared publications - Caio Barbosa
Departamento de Informática, Pontifical Catholic University of Rio de Janeiro (PUC-Rio), Rio de Janeiro, Brazil
2 shared publications - Durval Pereira Cesar
Universidade Federal de Alagoas
2 shared publications - Leonardo Leite
Universidade Federal de Alagoas
2 shared publications - Audrey Emmely Rodrigues Vasconcelos
Federal University of Alagoas, Maceió, Alagoas, Brazil
1 shared publication - Bruno B. P. Cafeo
UNICAMP
1 shared publication
Latest Publications
- Open Access
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 23-30
An Adversarial-Attack Approach to Assess Bias in Text-to-Image Models
- 12 April 2026
- Published by Association for Computing Machinery (ACM)
- p. 23-30
Open AccessAn Adversarial-Attack Approach to Assess Bias in Text-to-Image Models
- Open Access
- 20 January 2026
- Published by Sociedade Brasileira de Computação in Journal of the Brazilian Computer Society
- Vol. 32 (1) , 2305-2349
Ethics and Fairness in Machine Learning: Equity Guidelines for Brazilian Public Policies.
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.
- 20 January 2026
- Published by Sociedade Brasileira de Computação in Journal of the Brazilian Computer Society
- Vol. 32 (1) , 2305-2349
Open AccessEthics and Fairness in Machine Learning: Equity Guidelines for Brazilian Public Policies.
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
- 22 September 2025
- Published by Sociedade Brasileira de Computação
- p. 260-270
LSTM-based Forecasting for Non-linear Workloads in On-premises Software Systems
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.
- 22 September 2025
- Published by Sociedade Brasileira de Computação
- p. 260-270
Open AccessLSTM-based Forecasting for Non-linear Workloads in On-premises Software Systems
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
- 11 February 2025
- Published by Sociedade Brasileira de Computação in Journal of Software Engineering Research and Development
- Vol. 13 (1) , 13:207-13:217
Exploring Transfer Learning for Multilingual Software Quality: Code Smells, Bugs, and Harmful Code
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.
- 11 February 2025
- Published by Sociedade Brasileira de Computação in Journal of Software Engineering Research and Development
- Vol. 13 (1) , 13:207-13:217
Open AccessExploring Transfer Learning for Multilingual Software Quality: Code Smells, Bugs, and Harmful Code
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
- 7 November 2023
- Published by Association for Computing Machinery (ACM)
- p. 42-51
Is your code harmful too? Understanding harmful code through transfer learning
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.
- 7 November 2023
- Published by Association for Computing Machinery (ACM)
- p. 42-51
Open AccessIs your code harmful too? Understanding harmful code through transfer learning
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.