Automated detection of academic anxiety levels: proposal of a machine learning-based expert system for educational and clinical settings

Main Article Content

Jose Manuel Sanchez Sordo

Abstract

Public speaking anxiety is a significant barrier to academic performance and social integration among university students. Despite its prevalence, research on targeted technological solutions remains limited. This study presents the development of an expert system designed to automatically classify academic anxiety levels related to oral expression using a supervised machine learning approach. A sample of 159 undergraduate students completed a 30-item psychometric questionnaire assessing cognitive dimensions associated with public speaking anxiety. Participants’ scores were standardized into Z-scores and categorized into three anxiety levels: Low, Normal, and High. The Naive Bayes algorithm was employed due to its simplicity, efficiency, and interpretability. Model parameters were estimated using Python 3.11 and the scikit-learn library, with performance assessed via stratified 10-fold cross-validation, achieving an overall accuracy of 95.6% and an AUC above 0.99 across all categories. The system was implemented in an interactive Streamlit application, linked to Airtable for automatic data storage. Results indicate that the expert system reliably detects characteristic response patterns associated with each anxiety level, offering immediate, personalized clinical interpretations to users. This study demonstrates the potential of integrating classical psychometric methods with machine learning to develop accessible, explainable, and ethically responsible digital tools for mental health assessment and early intervention in educational settings.

Article Details

Section
ICAIMH 2025 - Expanded Abstracts

References

A. W. Blöte, M. J. W. Kint, A. C. Miers, and P. M. Westenberg, "The relation between public speaking anxiety and social anxiety: A review," Journal of Anxiety Disorders, vol. 23, no. 3, pp. 305–313, 2009. doi: 10.1016/j.janxdis.2008.11.007 .

American Psychiatric Association, Diagnostic and Statistical Manual of Mental Disorders, 5th ed. Arlington, VA: American Psychiatric Publishing, 2013. doi: 10.1176/appi.books.9780890425596 .

A. Bados, "Trastorno de ansiedad social: Conceptualización y tratamiento psicológico," Análisis y Modificación de Conducta, vol. 35, no. 154, pp. 325–348, 2009.

S. Orejudo, M. Puyuelo, and T. Fernández-Turrado, "La ansiedad social en el aula y su relación con la comunicación académica," Revista de Psicodidáctica, vol. 13, no. 1, pp. 103–114, 2008.

J. Polo, "La comunicación oral en el aula universitaria: Dificultades de los alumnos y estrategias didácticas," Revista de Educación, no. 311, pp. 81–99, 1996.

Y. Pacheco Neiva, H. Rabelo Bezerra Ferreira, V. E. Moran, and L. Guimaraes Cardoso de Sa, "Adaptação brasileira do teste de ansiedade social para universitários (tasu)," Revista iberoamericana de psicología, vol. 14, no. 1, pp. 47–58, jan 2021.

A. Bados, Trastornos de ansiedad. Barcelona: Editorial UOC, 2008.

S. G. Hofmann, Cognitive Behavioral Therapy for Social Anxiety Disorder: Evidence-Based and Disorder-Specific Treatment Techniques. New York: Routledge, 2014. doi: 10.4324/9780203067659 .

M. M. Antony, "Anxiety disorders," in Handbook of Depression, 2nd ed., I. H. Gotlib and C. L. Hammen, Eds. New York: Guilford Press, 2010, pp. 628–644.

E. I. Pinargote Macías and L. C. Caicedo Guale, "La ansiedad y su relación en el rendimiento académico de los estudiantes de la carrera de psicología de la universidad técnica de manabí," Espirales Revista Multidisciplinaria de Investigación Científica, vol. 3, no. 28, 2019.

E. Y. Strahan, "The effects of social anxiety on academic performance," Journal of Social Psychology, vol. 143, no. 2, pp. 219–229, 2003. doi: 10.1080/00224540309598442 .

P. Sotomayor Soloaga, C. Burgos Videla, F. Martínez Nehme, and N. Caradeuc, "Desarrollo de la competencia de liderazgo en la educación superior: perspectivas de estudiantes, egresados y docentes en una universidad chilena," Perspectiva Educacional, vol. 63, no. 2, pp. 179–201, jul 2024.

A. Christy, Jufri, and Mukhaiyar, "The effect of speaking anxiety on students' performance in speech class," in Proceedings of the 9th International Conference on Language and Arts (ICLA 2020), 2021, pp. 241–245. doi: 10.2991/assehr.k.210325.043 .

M. Tillfors, T. Furmark, I. Marteinsdottir, H. Fischer, A. Pissiota, B. Långström, and M. Fredrikson, "Cerebral blood flow in subjects with social phobia during stressful speaking tasks: A pet study," The American Journal of Psychiatry, vol. 158, no. 8, pp. 1220–1226, 2001. doi: 10.1176/appi.ajp.158.8.1220 .

V. E. Caballo, Manual de técnicas de terapia y modificación de conducta. Madrid: Siglo XXI, 2007.

E. Fonseca-Pedrero et al., "Tratamientos psicológicos empíricamente apoyados para la infancia y adolescencia: Estado de la cuestión," Psicothema, vol. 33, no. 3, pp. 386–398, 2021. doi: 10.7334/psicothema2021.56 .

X. Liu et al., "A comparison of deep learning performance against healthcare professionals in detecting diseases from medical imaging: A systematic review and meta-analysis," The Lancet Digital Health, vol. 1, no. 6, pp. e271–e297, 2019. doi: 10.1016/S2589-7500(19)30123-2 .A. B. R. Shatte, D. M. Hutchinson, and S. J. Teague, "Machine learning in mental health: A scoping review of methods and applications," Psychological Medicine, vol. 49, no. 9, pp. 1426–1448, 2019. doi: 10.1017/S0033291719000151 .

C. M. Bishop, Pattern Recognition and Machine Learning. New York: Springer, 2006. doi: 10.1007/978-0-387-31073-2 .

J. M. Sánchez-Sordo, "Data mining techniques for the study of online learning from an extended approach," Multidisciplinary Journal for Education, Social and Technological Sciences, vol. 6, no. 1, pp. 1–24, 2019. doi: 10.4995/muse.2019.11482 .

H. Zhang, "The optimality of naive bayes," in Proceedings of the 17th International Florida Artificial Intelligence Research Society Conference, 2004, pp. 562–567.

J. M. Sánchez-Sordo and A. Pérez, "Tratamiento de ansiedad social con realidad virtual e inteligencia artificial," Poster presented at XLII Coloquio de Investigación, FES Iztacala, UNAM, Estado de México, México, aug 2024.