Research Article

Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students

Volume: 17 Number: 1 April 1, 2026
EN

Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students

Abstract

The middle school period covers the beginning of the adolescent years of individuals. In this period, children display very complex and chaotic negative emotions such as anxiety, shyness, loneliness, guilt, depression, and anger intensely. Detecting these emotions accurately can help facilitate coping with the crises of this period and regulate emotions. It also can prevent potential suffering in later ages, reduce societal costs and prevent secondary diagnosis from developing. Emotions are by their nature at the center of literature and are better understood through the experience of writing or reading literary texts. Studies also show that the best type of written text to analyze for detection of emotions is informal texts. We believe the literary value and spontaneity of texts written by children without any given topic allow them to better channel their fundamental emotions into these texts without any reservations. In this study, we designed and developed a website for middle grade students to upload their literary works such as poems, fairytales, stories, etc. and collected and analyzed their texts to identify five fundamental emotions (anger, fear, disgust, sadness, and joy) using sentiment analysis methods and machine learning models. We use text representation techniques such as Bag-Of-Words, TF-IDF, and Word2Vector and neural network models such as Multi-layer Perceptrons (MLPs), and Convolutional Neural Networks (CNNs). We obtained the best results with TF-IDF + MLP model in terms of average f1-score, precision and recall metrics (0.73, 0.71, 0.83) and the best detected emotion is Joy while the worst detected is Disgust. We believe the accuracy of our models can increase with the inclusion of more data and promoting and making the website more accessible can allow us to enrich our dataset. Moreover, after the model is tested again with a larger sample, this system can be integrated with guidance and psychological counseling services, paving the way for psychosocial support needs analysis for students. A systematic monitoring mechanism could allow for the tracking of students' emotional changes over time and help develop early intervention strategies.

Keywords

Supporting Institution

Inanc Turkes Middle School

Ethical Statement

This is an observational study. The dataset was collected from a public website and no identifiable information was used. İnanç Türkeş Middle School administration has confirmed that no ethical approval is required.

References

  1. Acheampong, F. A., Nunoo-Mensah, H., & Chen, W. (2021). Transformer models for text-based emotion detection: A review. IEEE Access, 9, 182760–182777. https://doi.org/10.1109/ACCESS.2021.3112728
  2. Akın, A. A., & Akın, M. D. (2007). Zemberek: An open source NLP framework for Turkic languages. Structure, 10, 1–5. https://doi.org/10.1.1.556.69
  3. Bauer, D. (1976). An exploratory study of developmental changes in children's fears. Journal of child psychology and psychiatry, and allied disciplines, 17 1, 69-74. https://doi.org/10.1111/j.1469-7610.1976.tb00375.x.
  4. Bhargava, C., Poornima, S., Mahur, S., & Pushpalatha, M. (2021). Depression detection using sentiment analysis of tweets. Turkish Journal of Computer and Mathematics Education, 12(11), 5411–5418. https://turcomat.org/index.php/turkbilmat/article/view/6770
  5. Boyacıoğlu, N. E., & Küçük, L. (2011). How do irrational beliefs affect test anxiety during adolescence? Journal of Psychiatric Nursing, 2(1), 40–45. https://phdergi.org/jvi.aspx?un=PHD-03164&volume=2&issue=1
  6. Callaghan, B., Meyer, H., Opendak, M., Van Tieghem, M., Harmon, C., Li, A., Lee, F., Sullivan, R., & Tottenham, N. (2019). Using a Developmental Ecology Framework to Align Fear Neurobiology Across Species. Annual review of clinical psychology, 15, 345-369. https://doi.org/10.1146/annurev-clinpsy-050718-095727.
  7. Camacho-Morles, J., Slemp, G., Pekrun, R., Loderer, K., Hou, H., & Oades, L. (2021). Activity Achievement Emotions and Academic Performance: A Meta-analysis. Educational Psychology Review, 33, 1051 - 1095. https://doi.org/10.1007/s10648-020-09585-3.
  8. Charte, F., Rivera, A. J., del Jesús, M. J., & Herrera, F. (2015). MLSMOTE: Approaching imbalanced multilabel learning through synthetic instance generation. Knowledge-Based Systems, 89, 385–397. https://doi.org/10.1016/j.knosys.2015.07.019

Details

Primary Language

English

Subjects

Modelling

Journal Section

Research Article

Publication Date

April 1, 2026

Submission Date

May 3, 2025

Acceptance Date

December 26, 2025

Published in Issue

Year 2026 Volume: 17 Number: 1

APA
Yildirim, E., Koester, S., Şener, Ö., Yildirim, M., & Sahin, E. (2026). Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students. Journal of Measurement and Evaluation in Education and Psychology, 17(1), 1-23. https://izlik.org/JA23DF75JZ
AMA
1.Yildirim E, Koester S, Şener Ö, Yildirim M, Sahin E. Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students. JMEEP. 2026;17(1):1-23. https://izlik.org/JA23DF75JZ
Chicago
Yildirim, Esma, Stephanie Koester, Özlem Şener, Meral Yildirim, and Erhan Sahin. 2026. “Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students”. Journal of Measurement and Evaluation in Education and Psychology 17 (1): 1-23. https://izlik.org/JA23DF75JZ.
EndNote
Yildirim E, Koester S, Şener Ö, Yildirim M, Sahin E (April 1, 2026) Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students. Journal of Measurement and Evaluation in Education and Psychology 17 1 1–23.
IEEE
[1]E. Yildirim, S. Koester, Ö. Şener, M. Yildirim, and E. Sahin, “Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students”, JMEEP, vol. 17, no. 1, pp. 1–23, Apr. 2026, [Online]. Available: https://izlik.org/JA23DF75JZ
ISNAD
Yildirim, Esma - Koester, Stephanie - Şener, Özlem - Yildirim, Meral - Sahin, Erhan. “Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students”. Journal of Measurement and Evaluation in Education and Psychology 17/1 (April 1, 2026): 1-23. https://izlik.org/JA23DF75JZ.
JAMA
1.Yildirim E, Koester S, Şener Ö, Yildirim M, Sahin E. Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students. JMEEP. 2026;17:1–23.
MLA
Yildirim, Esma, et al. “Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students”. Journal of Measurement and Evaluation in Education and Psychology, vol. 17, no. 1, Apr. 2026, pp. 1-23, https://izlik.org/JA23DF75JZ.
Vancouver
1.Esma Yildirim, Stephanie Koester, Özlem Şener, Meral Yildirim, Erhan Sahin. Automated Detection of Fundamental Emotions from Literary Texts of Middle Grade Students. JMEEP [Internet]. 2026 Apr. 1;17(1):1-23. Available from: https://izlik.org/JA23DF75JZ