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

Authors

DOI:

https://doi.org/10.5753/jbcs.2026.6602

Keywords:

Fairness, Algorithmic Bias, Public Policy, Government Open Data, AI Ethics, Algorithmic Justice

Abstract

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.

Downloads

Download data is not yet available.

References

Al Husaini, Y., Alkishri, W., Abdulla, M., Mahmood, A.-B., and Abrar, M. (2025). Predicting student academic success using deep learning: A multi-factor approach to performance prediction. Journal of Logistics Informatics and Service Science, 12:263-283. DOI: 10.33168/JLISS.2025.0114.

Bagheri, S., Taridashti, S., Farahani, H., Watson, P., and Rezvani, E. (2023). Multilayer perceptron modeling for social dysfunction prediction based on general health factors in an iranian women sample. Frontiers in Psychiatry, 14:1283095. DOI: 10.3389/fpsyt.2023.1283095.

Beaulac, C. and Rosenthal, J. S. (2019). Predicting university students’ academic success and major using random forests. Research in Higher Education, 60(7):1048-1064. DOI: 10.1007/s11162-019-09546-y.

Bellamy, R. K., Dey, K., Hind, M., Hoffman, S. C., Houde, S., Kannan, K., Lohia, P., Martino, J., Mehta, S., Mojsilović, A., et al. (2019). Ai fairness 360: An extensible toolkit for detecting and mitigating algorithmic bias. IBM Journal of Research and Development, 63(4/5):4-1. DOI: 10.1147/jrd.2019.2942287.

Bird, S., Dudík, M., Edgar, R., Horn, B., Lutz, R., Milan, V., Sameki, M., Wallach, H., and Walker, K. (2020). Fairlearn: A toolkit for assessing and improving fairness in ai. Available at:[link].

Cadili, R. (2024). An introduction to the naive bayes classifier and how to use it. Medium.com. Available at:[link].

Cheng, L., Varshney, K. R., and Liu, H. (2021). Socially responsible ai algorithms: Issues, purposes, and challenges. Journal of Artificial Intelligence Research, 71:1137-1181. DOI: 10.1613/jair.1.12814.

Chouldechova, A. (2017). Fair prediction with disparate impact: A study of bias in recidivism prediction instruments. Big data, 5(2):153-163. DOI: 10.1089/big.2016.0047.

Du, Y. (2025). Reframing educational inquiry: Uncovering the value of decision tree analysis—a practical guide for educational researchers. DOI: 10.31219/osf.io/pcvbe_v1.

Dye, T. R. (1972). Understanding Public Policy. Prentice-Hall, Englewood Cliffs, NJ. DOI: 10.2307/975069.

Floridi, L., Cowls, J., Beltrametti, M., Chatila, R., Chazerand, P., Dignum, V., Luetge, C., Madelin, R., Pagallo, U., Rossi, F., et al. (2018). Ai4people—an ethical framework for a good ai society: Opportunities, risks, principles, and recommendations. Minds and machines, 28(4):689-707. DOI: 10.1007/s11023-018-9482-5.

Giraldo, C., Giraldo, I., Gomez-Gonzalez, J. E., and Uribe, J. M. (2023). An explained extreme gradient boosting approach for identifying the time-varying determinants of sovereign risk. Finance Research Letters, 57:104273. DOI: 10.1016/j.frl.2023.104273.

Hasan, R., Palaniappan, S., Raziff, A. R. A., Mahmood, S., and Sarker, K. U. (2018). Student academic performance prediction by using decision tree algorithm. In 2018 4th international conference on computer and information sciences (ICCOINS), pages 1-5. IEEE. DOI: 10.1109/iccoins.2018.8510600.

Huang, C., Zhang, Z., Mao, B., and Yao, X. (2022). An overview of artificial intelligence ethics. IEEE Transactions on Artificial Intelligence, 4(4):799-819. DOI: 10.1109/tai.2022.3194503.

Jesus, S., Saleiro, P., e Silva, I. O., Jorge, B. M., Ribeiro, R. P., Gama, J., Bizarro, P., and Ghani, R. (2024). Aequitas flow: Streamlining fair ml experimentation. Journal of Machine Learning Research, 25(354):1-7. DOI: 10.48550/arxiv.2405.05809.

Khyathi, G., Indumathi, K., Jumana Hasin, A., Lisa Flavin Jency, M., Krishnaprakash, G., LISA, F. J. M., et al. (2025). Support vector machines: A literature review on their application in analyzing mass data for public health. Cureus, 17(1). DOI: 10.7759/cureus.77169.

Kleinberg, J., Mullainathan, S., and Raghavan, M. (2016). Inherent trade-offs in the fair determination of risk scores. arXiv preprint arXiv:1609.05807. DOI: 10.4230/lipics.itcs.2017.43.

Li, B., Qi, P., Liu, B., Di, S., Liu, J., Pei, J., Yi, J., and Zhou, B. (2023). Trustworthy ai: From principles to practices. ACM Computing Surveys, 55(9):1-46. DOI: 10.1145/3555803.

Little, R. J. and Rubin, D. B. (2019). Statistical analysis with missing data. John Wiley & Sons. DOI: 10.2307/1533221.

Liu, H., Wang, Y., Fan, W., Liu, X., Li, Y., Jain, S., Liu, Y., Jain, A., and Tang, J. (2022). Trustworthy ai: A computational perspective. ACM Transactions on Intelligent Systems and Technology, 14(1):1-59. DOI: 10.1145/3546872.

Lynn, L. E. and Gould, S. G. (1980). Designing public policy: A casebook on the role of policy analysis: instructor's manual. (No Title). Book.

Mead, L. (1995). Public policy: vision, potential, limits. Policy Currents (Newsletter of the Public Policy Section, APSA), 68(3). Book.

Mehrabi, N., Morstatter, F., Saxena, N., Lerman, K., and Galstyan, A. (2021). A survey on bias and fairness in machine learning. ACM computing surveys (CSUR), 54(6):1-35. DOI: 10.1145/3457607.

Morley, J., Floridi, L., Kinsey, L., and Elhalal, A. (2020). From what to how: an initial review of publicly available ai ethics tools, methods and research to translate principles into practices. Science and engineering ethics, 26(4):2141-2168. DOI: 10.2139/ssrn.3830348.

MURAINA, I. O., Aiyegbusi, E., and Abam, S. (2022). Decision tree algorithm use in predicting students’ academic performance in advanced programming course. International Journal of Higher Education Pedagogies, 3(4):13-23. DOI: 10.33422/ijhep.v3i4.274.

Ortega-Bolaños, R., Bernal-Salcedo, J., Germán Ortiz, M., Galeano Sarmiento, J., Ruz, G. A., and Tabares-Soto, R. (2024). Applying the ethics of ai: a systematic review of tools for developing and assessing ai-based systems. Artificial Intelligence Review, 57(5):110. DOI: 10.1007/s10462-024-10740-3.

Ozturk Kiyak, E., Ghasemkhani, B., and Birant, D. (2023). High-level k-nearest neighbors (hlknn): A supervised machine learning model for classification analysis. Electronics, 12(18):3828. DOI: 10.3390/electronics12183828.

Pagano, T. P., Loureiro, R. B., Lisboa, F. V., Peixoto, R. M., Guimarães, G. A., Cruz, G. O., Araujo, M. M., Santos, L. L., Cruz, M. A., Oliveira, E. L., et al. (2023). Bias and unfairness in machine learning models: a systematic review on datasets, tools, fairness metrics, and identification and mitigation methods. Big data and cognitive computing, 7(1):15. DOI: 10.3390/bdcc7010015.

Peters, B. G. et al. (1986). American public policy. Chatham, NJ: Chatham House, pages 11-28. DOI: 10.1007/978-1-349-18388-3.

Pohan, S., Faisal, R. A., Nasution, F., Ramadani, P., and Hasibuan, A. I. Y. (2024). Application of svm to speed up and accurate nursing decisions for mentally disordered patients. International Journal of Health Engineering and Technology (IJHET), 3(4). DOI: 10.55227/ijhet.v4i1.277.

Ptr, A. F. L., Siregar, M. M., and Daniel, I. (2024). Analysis of gradient boosting, xgboost, and catboost on mobile phone classification. J. Comput. Networks, Archit. High Perform. Comput, 6(2):661-670. DOI: 10.47709/cnahpc.v6i2.3790.

Pyke, S. W. and Sheridan, P. M. (1993). Logistic regression analysis of graduate student retention. Canadian Journal of Higher Education, 23(2):44-64. DOI: 10.47678/cjhe.v23i2.183161.

Raschka, S. (2014). Naive bayes and text classification i-introduction and theory. arXiv preprint arXiv:1410.5329. DOI: 10.13140/2.1.2018.3049.

Saleiro, P., Kuester, B., Hinkson, L., London, J., Stevens, A., Anisfeld, A., Rodolfa, K. T., and Ghani, R. (2018). Aequitas: A bias and fairness audit toolkit. arXiv preprint arXiv:1811.05577. DOI: 10.48550/arxiv.1811.05577.

Souza, C. (2006). Políticas públicas: uma revisão da literatura. Sociologias, pages 20-45. DOI: 10.1590/s1517-45222006000200003.

Zhang, Z. (2016). Introduction to machine learning: k-nearest neighbors. Annals of translational medicine, 4(11):218. DOI: 10.21037/atm.2016.03.37.

Downloads

Published

2026-09-22

How to Cite

Barros, V. J. M., Souza, G. B., Fonseca, B., Baia, D., & Vieira, T. (2026). Ethics and Fairness in Machine Learning: Equity Guidelines for Brazilian Public Policies. Journal of the Brazilian Computer Society, 32(1), 2305–2349. https://doi.org/10.5753/jbcs.2026.6602

Issue

Section

Regular Issue