How Emotions and Perceived Course Value Relate to Performance in Introductory Programming Using an Online Judge

Authors

DOI:

https://doi.org/10.5753/rbie.2026.8415

Keywords:

Emotions, Course value, Online judge, Virtual Learning Environment

Abstract

In blended and online introductory programming courses, instructors have limited visibility into students’ affective states during problem solving, which can hinder timely support. This study investigates how students’ self-reported emotions and perceived course value relate to performance in practical tests conducted on an online judge platform (CodeBench). We analyzed data from 269 undergraduate students (2021–2023), combining repeated in-platform emotion prompts with a brief course value questionnaire and objective grades. Using linear mixed-effects modeling, we examined associations between emotions reported at the start and end of each test and students’ test scores, accounting for individual differences. Reporting positive emotions at the start of a test was associated with higher scores (up to +0.86), whereas reporting negative emotions was associated with lower scores (down to –1.49). The coefficients of variation of perceived course value and students’ grades showed a strong positive correlation (Pearson r = 0.84). These findings suggest that low-burden self-reports, combined with learning platform logs, can help identify students and course modules that may benefit from targeted instructional support. We recommend integrating lightweight affect and value monitoring into online judges to trigger timely pedagogical interventions (e.g., scaffolding, additional hints, and adaptive practice) when negative valence patterns persist.

Downloads

Download data is not yet available.

References

Altuwairqi, K., Jarraya, S. K., Allinjawi, A., & Hammami, M. (2021). Student behavior analysis to measure engagement levels in online learning environments. Signal, Image and Video Processing, p. 1-9, 15, 1387–1395. https://doi.org/10.1007/s11760-021-01869-7.[GS Search]

Arguedas, M., Xhafa, F., Casillas, L., Daradoumis, T., Peña, A., & Caballé, S. (2018). A model for providing emotion awareness and feedback using fuzzy logic in online learning. Soft Computing, 22(3), 963–977. https://doi.org/https://doi.org/10.1007/s00500-016-2399-0. [GS Search]

Benabbes, K. e. a. (2023). A new hybrid approach to detect and track learner’s engagement in elearning. IEEE Access, 11, 70912–70929. https://doi.org/10.1109/ACCESS.2023.3293827. [GS Search]

Bosch, N., Chen, Y., & D’Mello, S. (2014). It’s written on your face: detecting affective states from facial expressions while learning computer programming. International Conference on Intelligent Tutoring Systems. Springer International Publishing, 8474, 39–44. https ://doi.org/https://doi.org/10.1007/978-3-319-07221-0_5. [GS Search],

Bosch, N., & D’Mello, S. (2017). The affective experience of novice computer programmers. International journal of artificial intelligence in education, 27, 181–206. https://doi.org/10.1007/s40593-015-0069-5. [GS Search]

Cabada, R. Z., Estrada, M. L. B., Félix, J. M. R., & Hernández, G. A. (2020). A virtual environmentfor learning computer coding using gamification and emotion recognition Interactive Learning Environments, 28(8), 1048–1063. https://doi.org/https://doi.org/10.1080/10494820.2018.1558256. [GS Search]

Chilton, J. K., Hanks, S., & Watson, H. R. (2024). A blended future? A cross-sectional study demonstrating the impacts of the COVID-19 pandemic on student experiences of well-being, teaching and learning. European Journal of Dental Education, 28(1), 170–183. https://doi.org/https://doi.org/10.1111/eje.12934. [GS Search]

Clayton, K. E., Blumberg, F. C., & Anthony, J. A. (2018). Linkages between course status, perceived course value, and students’ preference for traditional versus non-traditional learning environments. Computers education, 125, 175–181. (https://doi.org/10.1016/j.compedu.2018.06.002). [GS Search]

Coelho, F. J. e. a. (2023). Learning Analytics in Introductory Programming Courses: a Showcase from the Federal University of Amazonas. Revista Brasileira de Informática na Educação, 31, 1089–1127. [GS Search]

De Moura, V. F., De Souza, C. A., & Viana, A. B. N. (2021). The use of Massive Open Online Courses (MOOCs) in blended learning courses and the functional value perceived by students. Computers Education, 161, 104077. [GS Search]

Du, Y., Crespo, R. G., & Martínez, O. S. (2023). Human emotion recognition for enhanced performance evaluation in e-learning. Progress in Artificial Intelligence, 12(2), 199–211. https://doi.org/https://doi.org/10.1007/s13748-022-00278-2. [GS Search]

Ekman, P. (1992). An argument for basic emotions. Cognition emotion, 6(3-2), 169–200. https://doi.org/10.1080/02699939208411068.

Ghaderi, E., Khoshnood, A., & Fekri, N. (2022). Achievement emotions of university students in on-campus and online education during the COVID-19 pandemic. Tuning Journal for Higher Education, 10(1), 319–336. https://doi.org/https://doi.org/10.18543/tjhe.2346. [GS Search]

Hamilton, N. J. e. a. (2023). Transforming the online learning experience. Teaching of Psychology, 50(4), 370–380. https://doi.org/10.1177/00986283211048939. [GS Search]

Hasnine, M. N. e. a. (2023). A Real-Time Learning Analytics Dashboard for Automatic Detection of Online Learners’ Affective States. Sensors, 23(9), 4243. https://doi.org/10.3390/s23094243. [GS Search]

Hirt, F., Werlen, E., Moser, I., & Bergamin, P. (2019). Measuring emotions during learning: lack /of coherence between automated facial emotion recognition and emotional experience. Open Computer Science, v. 9, n. 1, p. 308-317, 9(1), 308–317. https://doi.org/10.1515/comp-2019-0020. [GS Search]

Hoover, B. K. (2017). Relating student perceptions of course interest, enjoyment, value, and ease with academic achievement in university agriculture courses. NACTA Journal, 61(4), 324–328. [GS Search]

Imani, M., & Montazer, G. A. (2019). A survey of emotion recognition methods with emphasis on E-Learning environments. Elsevier, Journal of Network and Computer Applications, 147, 102423. https://doi.org/https://doi.org/10.1016/j.jnca.2019.102423. [GS Search]

Ismailov, M., & ONO, Y. (2021). Assignment design and its effects on Japanese college freshmen’s motivation in L2 emergency online courses: A qualitative study. The Asia-Pacific Education Researcher, 30(3), 263–278. [GS Search],

Kahu, E. e. a. (2015). Linking academic emotions and student engagement: Mature-aged distance students’ transition to university. Journal of Further and Higher Education, 39(4), 481–497. https://doi.org/https://doi.org/10.1080/0309877X.2014.895305. [GS Search]

Karyotis, C., Doctor, F., Iqbal, R., James, A., & Changc, V. (2018). A fuzzy computational model of emotion for cloud based sentiment analysis. Information Sciences, 433-434, 448–463. https://doi.org/https://doi.org/10.1016/j.ins.2017.02.004. [GS Search]

Kokoç, M., Akçapinar, G., & Hasnine, M. N. (2021). Unfolding students’ online assignment submission behavioral patterns using temporal learning analytics. Educational Technology Society, v. 24, n. 1, p. 223-235, 24(1), 223–235.Kolakowska, A., & Landowska, A. (2021). Keystroke Dynamics Patterns While Writing Positive and Negative Opinions. Sensors, 21(17), 5963. [GS Search]

Kolakowska, A., & Landowska, A. (2021). Keystroke Dynamics Patterns While Writing Positive and Negative Opinions. Sensors, 21(17), 5963. [GS Search]

Lee, D. M. C. e. a. (2011). Exploring the relationship between novice programmer confusion and achievement. International Conference on Affective Computing and Intelligent. IAffective Computing and Intelligent Interaction: 4th International Conference, ACII 2011, Memphis, TN, USA, October 9–12, 2011, Proceedings, Part I 4. Springer Berlin Heidelberg, 175–184. https://doi.org/https://doi.org/10.1007/978-3-642-24600-5_21. [GS Search]

Martinez, A., & Du, S. (2012). A model of the perception of facial expressions of emotion by humans: research overview and perspectives. Journal of Machine Learning Research, 13(5). [GS Search]

Mohanan, R., Stringfellow, C., & GUPTA, D. (2017). An emotionally intelligent tutoring system. Computing Conference. IEEE, 1099–1107. https://doi.org/10.1109/SAI.2017.8252228. [GS Search]

Montero Quispe, K. G. e. a. (2022). Applying self-supervised representation learning for emotion recognition using physiological signals. Sensors, 22, 9102. https://doi.org/https://doi.org/10.3390/s22239102 [GS Search]

Padgett, C., Moffitt, R. L., & Grieve, R. (2021). More than words: Using digital cues to enhance student perceptions of online assignment feedback. The Internet and Higher Education, v. 49, p. 100789, 49, 100789. https://doi.org/https://doi.org/10.1016/j.iheduc.2020.100789. [GS Search]

Parker, P. C., Perry, R. P., Hamm, J. M., Chipperfield, J. G., Pekrun, R., Dryden, R. P., Daniels, L. M., & Tze, V. M. (2021). A Motivation Perspective on Achievement Appraisals, Emotions, and Performance in an Online Learning Environment. International Journal of Educational Research, 108, 101772. https://doi.org/https://doi.org/10.1016/j.ijer.2021.101772. [GS Search]

Parsons, D. e. a. (2019). Development of a Self-Reporting Tool for Capturing Student Emotions during Programming Activities. Proceedings of the Twenty-First Australasian Computing Education Conference, 64–68. https://doi.org/https://doi.org/10.1145/3286960.3286968. [GS Search],

Pekrun, R., Frenzel, A. C., Goetz, T., & Perry, R. P. (2007). Chapter 2 - The Control-Value Theory of Achievement Emotions: An Integrative Approach to Emotions in Education (P. A. Schutz & R. Pekrun, Ed.). Academic Press, 13–36. https://doi.org/https://doi.org/10.1016/ B978-012372545-5/50003-4. [GS Search]

Pinheiro, J., & Bates, D. (2000). Mixed-effects models in S and S-PLUS. Springer science business media, (1). https://doi.org/https://doi.org/10.1007/b98882

Plutchik, R. (1980). Emotion: A psychoevolutionary synthesis. Harper and Row, New York. https://doi.org/10.2307/1422394.

Reis, H. M., Alvares, D., Jaques, P. A., & Isotani, S. (2021). A proposal of model of emotional regulation in intelligent learning environments. Informatics in Education, 20(2), 317–332. https://doi.org/10.15388/infedu.2021.15 [GS Search],

Russell, J. A. (1980). A circumplex model of affect. Journal of personality and social psychology, v. 39, n. 6, p. 1161, 39(6), 1161. https://doi.org/https://doi.org/10.1037/h0077714

Scharma, A., & Mansotra, V. (2019). Classroom Student Emotions Classification from Facial Expressions and Speech Signals using Deep Learning. International Journal of Recent Technology and Engineering (IJRTE), 8. [GS Search]

Seneviratne, I., Perera, B., Fernando, R., Siriwardana, L., & Rajapaksha, U. (2020). Student and Lecturer Performance Enhancement System using Artificial Intelligence. In: 2020 3rd International Conference on Intelligent Sustainable Systems (ICISS). IEEE, 88–93.https://doi.org/10.1109/ICISS49785.2020.9315981. [GS Search]

Stanworth, J. O., Yen, W.-H., & Warden, C. A. (2022). Conflicted about online learning?: Usingsentiment analysis to explore learner approach-avoidance motivation. Online Information Review, 47(2), 356–370. https://doi.org/https://doi.org/10.1108/OIR-09-2021-0463. [GS Search]

Sweeney, J. C., & Soutar, G. N. (2001). Consumer perceived value: The development of a multiple item scale. Journal of retailing, 77(2), 203–220. https://doi.org/10.1108/17506121211243086. [GS Search]

Theobald, M., Breitwieser, J., Murayama, K., & Brod, G. (2021). Achievement emotions mediate the link between goal failure and goal revision: Evidence from digital learning environments. Computers in Human Behavior, 119, 106726. https://doi.org/10.1016/j.chb.2021.106726. [GS Search]

Wang, H., & Lehman, J. D. (2021). Using achievement goal-based personalized motivational feedback to enhance online learning. Educational Technology Research and Development, 69(2), 553–581. https://doi.org/https://doi.org/10.1007/s11423-021-09940-3. [GS Search]

Wigfield, A., & Eccles, J. S. (2020). Chapter Five - 35 years of research on students’ subjective task values and motivation: A look back and a look forward (A. J. Elliot, Ed.). Elsevier, 7, 161–198. https://doi.org/https://doi.org/10.1016/bs.adms.2019.05.002.

Wundt, W. (1948). Principles of physiological psychology. In W. Dennis (Ed.), Readings in the history of psychology, Appleton-Century-Crofts, 248–250. https://doi.org/10.1037/11304-029.

Xu, J. (2022). A profile analysis of online assignment motivation: Combining achievement goal and expectancy-value perspectives. Computers Education, 117, 104367. https://doi.org/10.1109/ACCESS.2023.3293827.

Zeng, Y. e. a. (2023). The association between online class-related enjoyment and academic achievement of college students: a multi-chain mediating model. BMC psychology, 11(1), 349. https://doi.org/10.1186/s40359-023-01390-1. [GS Search],

Zhu, Y., Xu, S., Wang, W., Zhang, L., Liu, D., Liu, Z., & Xu, Y. (2022). The impact of Online and Offline Learning motivation on learning performance: the mediating role of positive academic emotion. Education and Information Technologies, 27, 8921–893. https://doi.org/10.1007/s10639-022-10961-5. [GS Search]

Published

2026-11-24

How to Cite

FELIX, T. G. C.; SANTOS, J. D. O. dos; SOUTO, E. . J. P.; OLIVEIRA, D. B. F. de; OLIVEIRA, E. H. T. de. How Emotions and Perceived Course Value Relate to Performance in Introductory Programming Using an Online Judge. Brazilian Journal of Computers in Education, [S. l.], v. 34, p. 1727–1753, 2026. DOI: 10.5753/rbie.2026.8415. Disponível em: https://journals-sol.sbc.org.br/index.php/rbie/article/view/8415. Acesso em: 1 dec. 2026.

Issue

Section

Articles

Most read articles by the same author(s)