Automatic identification of judges' speech in labor court hearings using machine learning: contributions to innovation consulting in the Judiciary and to the development of teaching cases
Keywords:
Labor Justice; Machine Learning; Speech Identification; MFCC; MLP.Abstract
The Brazilian Labor Justice faces significant challenges related to procedural delays, particularly in the analysis of hearing recordings that support the preparation of draft decisions and opinions at the appellate level. In this context, the use of Artificial Intelligence (AI) techniques emerges as an alternative to support document analysis activities and reduce the time spent by court staff in identifying relevant information. The Regional Labor Court of the 8th Region (TRT8) already uses the Degrava tool for automatic transcription of hearings; however, at the time of this research, it did not provide mechanisms capable of automatically identifying the judge as the speaker. Accordingly, this study proposes and evaluates an audio classification model for identifying judges’ speech in labor court hearings. The dataset was built from public recordings made available by TRT8 on YouTube, specifically from the playlist “Sessões da 1ª Turma”. The audio files were extracted, segmented, normalized, and processed using an automated methodology developed in this research, including acoustic feature extraction based on Mel-Frequency Cepstral Coefficients (MFCCs). The final dataset comprised five classes, each corresponding to a different judge. Several Machine Learning algorithms were evaluated, including Support Vector Machines (SVM), Logistic Regression, Random Forest, AdaBoost, and Multi-Layer Perceptron (MLP) neural networks. The results indicated high performance across all models, with accuracy above 94%, highlighting the MLP, which achieved accuracy close to 99% and balanced metrics among classes. The findings demonstrate that traditional models, combined with consistent preprocessing, are effective in noisy acoustic environments typical of labor court hearings. It is concluded that the automatic identification of judges’ speech is technically feasible, compatible with the computational infrastructure available at TRT8, and suitable for integration into the Degrava ecosystem, providing gains in efficiency, legal certainty, and potential expansion to the identification of other interlocutors. Beyond its technical contribution, the study presents practical utility for business and organizational consultancies focused on innovation in the public sector, especially in initiatives for digital transformation, workflow automation, and improvement of institutional efficiency. The findings can also support the development of teaching cases on the application of artificial intelligence in the legal context, allowing its use by teachers and facilitators in problem-based learning activities and case analysis.
Downloads
References
BERRAR, D. Cross-validation. In: RANGANATHAN, S.; GRIBSKOV, M.; NAKAI, K.; SCHÖNBACH, C.; CANNATARO, M. (ed.). Encyclopedia of bioinformatics and computational biology. Amsterdam: Elsevier, 2019. v. 1, p. 542-545.
CHU, S.; NARAYANAN, S.; KUO, C.-C. J. Environmental sound recognition with time–frequency audio features. IEEE Transactions on Audio, Speech, and Language Processing, v. 17, n. 6, p. 1142–1158, 2009.
CONSELHO NACIONAL DE JUSTIÇA (CNJ). Justiça em números 2024. Brasília: CNJ, 2024. Disponível em: https://www.cnj.jus.br/wp-content/uploads/2025/04/justica-em-numeros-2024.pdf.
GANCHEV, T.; FAKOTAKIS, N.; KOKKINAKIS, G. Comparative evaluation of various MFCC implementations on the speaker verification task. In: INTERNATIONAL CONFERENCE ON SPEECH AND COMPUTER (SPECOM), 10., 2005. Proceedings [...]. [S.l.: s.n.], 2005. v. 1, p. 191–194.
INAZAWA, P. et al. Projeto Victor. Computação Brasil, n. 39, p. 19–24, 2019. DOI: https://doi.org/10.5753/compbr.2019.39.
KINGMA, D. P.; BA, J. Adam: a method for stochastic optimization. arXiv preprint, arXiv:1412.6980, 2014.
OLIVEIRA, K. W. A. de; PINTO, S. P. da S. O.; TABORDA, E. M. P.; SILVA, R. dos P. S. da; CARVALHO, Z. V. de. Cabos ópticos ADSS em cidades inteligentes: perspectivas para a transformação digital e a transição energética — subsídios para consultoria em infraestrutura e suporte ao ensino de gestão urbana. Revista de Casos e Consultoria, Natal, v. 17, n. 1, e42760, 2026. Disponível em: https://periodicos.ufrn.br/casoseconsultoria/article/view/42760. Acesso em: 9 nov. 2026.
SANTOS, J. da S.; AMORIM, I. B. de. Interfaces sociais e saberes em ação: uma análise do estado do conhecimento e suas contribuições para prática em consultorias e ensino baseado em casos. Revista de Casos e Consultoria, Natal, v. 17, n. 1, e43038, 2026. Disponível em: https://periodicos.ufrn.br/casoseconsultoria/article/view/43038. Acesso em: 9 nov. 2026.
SILVA NETO, A. R.; SOUZA, E. F. da S. Aplicação de métodos de previsão de demanda como ferramenta de consultoria organizacional no centro cirúrgico de um hospital privado. Revista de Casos e Consultoria, Natal, v. 17, n. 1, e42710, 2026. Disponível em: https://periodicos.ufrn.br/casoseconsultoria/article/view/42710. Acesso em: 9 nov. 2026.
STAATS, J. L.; BOWLER, S.; HISKEY, J. T. Measuring judicial performance in Latin America. Latin American Politics and Society, v. 47, n. 4, p. 77–106, 2005. DOI: https://doi.org/10.1111/j.1548-2456.2005.tb00329.x.
TRT8. Painel de Monitoramento e-Gestão 2º Grau. 2025. Disponível em: https://app.powerbi.com/view?r=eyJrIjoiZjk1NDBjZjYtOGMxNC00OWY2LTg5MjktNDk4MzQzZmVmYWEzIiwidCI6ImNjZDk5MTdlLW. Acesso em: 16 ago. 2025.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Antonio Jhoseph Silva de Araújo, Adam Dreyton Ferreira dos Santos, Marcela Alves de Souza, Raphael Barros Teixeira

This work is licensed under a Creative Commons Attribution 4.0 International License.
Português (Brasil)
English
Español (España)