Automatic Student Affective State Detection from Plain Text

Authors

  • Dan O. Anne Kenyatta University, P. O. Box 7936-00100, Nairobi, Kenya
  • Agnes Chepkemoi Kenyatta University, Nairobi, Kenya
  • Elizaphan Maina Kenyatta University, Nairobi, Kenya

Keywords:

Affective state, e-learning, ISEAR data, Machine Learning

Abstract

We explore the concept of automatic detection of affective state of a learner in an e learning environment. We propose a model to detect the emotion from learners’ text. We employ machine learning algorithms with ISEAR data and twitter data from Kaggle data repository. We follow the conventional steps of natural language processing; text preparation, feature extraction and emotion detection and classification. For text preparation we use processes of tokenization and segmentation, noise removal and segmentation. We extract features using count vectors and term frequency -inverse document frequency. For classification compare varied machine leaning algorithms. Results show that Linear SVM using Count Vectors accuracy gave an accuracy of 79% which is encouraging. We deduce that we can extract the affective states of the learners automatically from text during their interaction with e-learning environment. This will help in understanding the learners needs and help in enhancing adaptability

References

M. Nakayama, H. Yamamoto, and R. Santiago, “Investigating the impact of learner characteristics on blended learning among Japanese Students,” Proc. Int. Conf. e-Learning, ICEL, vol. 2006-Janua, no. 3, pp. 361–370, 2006.

B. Ghirardini, E-learning methodologies: A guide for designing and developing e-learning courses. 2011.

M. (Dalton S. C. Zhou and D. (Dalton S. C. Brown, Educational learning theories (Second Edition). 2015.

A. Learning, A. I. Method, and O. Teaching, “Special Issue on Innovation 2018 Adaptive Learning : An Innovative Method for Online Teaching and,” vol. 56, no. 5, 2018.

D. Mykota, “The impact of learner characteristics on the multi-dimensional construct of social presence,” Turkish Online J. Educ. Technol., vol. 16, no. 2, pp. 137–144, 2017.

M. Feidakis, “A Review of Emotion-Aware Systems for e-Learning in Virtual Environments,” Form. Assessment, Learn. Data Anal. Gamification ICT Educ., no. March, pp. 217–242, 2016, doi: 10.1016/B978-0-12-803637-2.00011-7.

M. Saneiro, O. C. Santos, S. Salmeron-Majadas, and J. G. Boticario, “Towards emotion detection in educational scenarios from facial expressions and body movements through multimodal approaches,” Sci. World J., vol. 2014, 2014, doi: 10.1155/2014/484873.

N. Bosch, S. K. D’Mello, J. Ocumpaugh, R. S. Baker, and V. Shute, “Using video to automatically detect learner affect in computer-enabled classrooms,” ACM Trans. Interact. Intell. Syst., vol. 6, no. 2, 2016, doi: 10.1145/2946837.

L. B. Krithika and G. G. Lakshmi Priya, “Student Emotion Recognition System (SERS) for e-learning Improvement Based on Learner Concentration Metric,” Procedia Comput. Sci., vol. 85, no. Cms, pp. 767–776, 2016, doi: 10.1016/j.procs.2016.05.264.

M. El Kerdawy et al., “The automatic detection of cognition using eeg and facial expressions,” Sensors (Switzerland), vol. 20, no. 12, pp. 1–32, 2020, doi: 10.3390/s20123516.

N. Bosch et al., “Automatic detection of learning-centered affective states in the wild,” Int. Conf. Intell. User Interfaces, Proc. IUI, vol. 2015-Janua, no. October 2018, pp. 379–388, 2015, doi: 10.1145/2678025.2701397.

F. A. Khan, S. Graf, E. R. Weippl, and A. M. Tjoa, “Integrated Approach for the Detection of Learning Styles & Affective States Previous Research and Our Perspective.”

M. A. Razek and C. Frasson, “Text-Based Intelligent Learning Emotion System,” J. Intell. Learn. Syst. Appl., vol. 09, no. 01, pp. 17–20, 2017, doi: 10.4236/jilsa.2017.91002.

C. O. Alm, D. Roth, and R. Sproat, “Emotions from text,” no. October, pp. 579–586, 2005, doi: 10.3115/1220575.1220648.

J. Hammad, M. Hariadi, M. H. Purnomo, and N. Jabari, “E-learning and Adaptive E-learning Review,” IJCSNS Int. J. Comput. Sci. Netw. Secur., vol. 18, no. 2, pp. 48–55, 2018.

T. Jauhiainen, M. Lui, M. Zampieri, T. Baldwin, and K. Lindén, “Automatic language identification in texts: A survey,” arXiv, pp. 1–103, 2018, doi: 10.1613/jair.1.11675.

S. Minaee, N. Kalchbrenner, E. Cambria, N. Nikzad, M. Chenaghlu, and J. Gao, “Deep Learning Based Text Classification: A Comprehensive Review,” arXiv, vol. 1, no. 1, pp. 1–43, 2020.

R. Dipanjan Sarkar, “Text Wrangling & Pre-processing: A Practitioner’s Guide to NLP,” 2018. https://www.kdnuggets.com/2018/08/practitioners-guide-processing-understanding-text-2.html.

A. Toleu, G. Tolegen, and A. Makazhanov, “Character-based deep learning models for token and sentence segmentation,” V международная конференция по компьютерной обработке тюркских языков «TurkLang 2017», no. 1, pp. 100–112, 2017.

S. J. Putra, M. N. Gunawan, I. Khalil, and T. Mantoro, “Sentence boundary disambiguation for Indonesian language,” ACM Int. Conf. Proceeding Ser., pp. 587–590, 2017, doi: 10.1145/3151759.3156474.

X. Schmitt, S. Kubler, J. Robert, M. Papadakis, and Y. Letraon, “A Replicable Comparison Study of NER Software: StanfordNLP, NLTK, OpenNLP, SpaCy, Gate,” 2019 6th Int. Conf. Soc. Networks Anal. Manag. Secur. SNAMS 2019, no. September 2020, pp. 338–343, 2019, doi: 10.1109/SNAMS.2019.8931850.

W. Ben and A. Karaa, “A NEW STEMMER TO I MPROVE I NFORMATION RETRIEVAL,” Int. J. Netw. Secur. Its Appl. (IJNSA), Vol.5, No.4, July 2013, vol. 5, no. 4, pp. 143–154, 2013.

M. Bollmann, “A large-scale comparison of historical text normalization systems,” NAACL HLT 2019 - 2019 Conf. North Am. Chapter Assoc. Comput. Linguist. Hum. Lang. Technol. - Proc. Conf., vol. 1, pp. 3885–3898, 2019, doi: 10.18653/v1/n19-1389.

J. Kanerva, F. Ginter, and T. Salakoski, “Universal Lemmatizer: A sequence-to-sequence model for lemmatizing Universal Dependencies treebanks,” Nat. Lang. Eng., 2020, doi: 10.1017/S1351324920000224.

H. A. Almuzaini and A. M. Azmi, “Impact of Stemming and Word Embedding on Deep Learning-Based Arabic Text Categorization,” IEEE Access, vol. 8, pp. 127913–127928, 2020, doi: 10.1109/ACCESS.2020.3009217.

Y. A. Alhaj, J. Xiang, D. Zhao, M. A. A. Al-Qaness, M. Abd Elaziz, and A. Dahou, “A Study of the Effects of Stemming Strategies on Arabic Document Classification,” IEEE Access, vol. 7, pp. 32664–32671, 2019, doi: 10.1109/ACCESS.2019.2903331.

S. G. K. and S. S. Nandyal, “Survey on Parts of Speech Tagger Techniques,” Int. Conf. Curr. Trends Towar. Converging Technol. (ICCTCT), Coimbatore, 2018, pp. 1-6, doi 10.1109/ICCTCT.2018.8550884., 2018.

A. N. K. and I. Agustina, “Implementation of Information Retrieval Using Tf-Idf Weighting Method On Detik.Com’s Website,” 12th Int. Conf. Telecommun. Syst. Serv. Appl. (TSSA), Yogyakarta, Indones. 2018, pp. 1-4, doi 10.1109/TSSA.2018.8708744., 2018.

S. Qaiser and R. Ali, “Text Mining: Use of TF-IDF to Examine the Relevance of Words to Documents,” Int. J. Comput. Appl., vol. 181, no. 1, pp. 25–29, 2018, doi: 10.5120/ijca2018917395.

N. N. Amir Sjarif, N. F. Mohd Azmi, S. Chuprat, H. M. Sarkan, Y. Yahya, and S. M. Sam, “SMS spam message detection using term frequency-inverse document frequency and random forest algorithm,” Procedia Comput. Sci., vol. 161, pp. 509–515, 2019, doi: 10.1016/j.procs.2019.11.150.

H. Mohammadhassanzadeh, I. Sketris, R. Traynor, S. Alexander, B. Winquist, and S. A. Stewart, “Using Natural Language Processing to Examine the Uptake, Content, and Readability of Media Coverage of a Pan-Canadian Drug Safety Research Project: Cross-Sectional Observational Study,” JMIR Form. Res., vol. 4, no. 1, p. e13296, 2020, doi: 10.2196/13296.

J. Piskorski and G. Jacquet, “TF-IDF Character N-grams versus Word Embedding-based Models for Fine-grained Event Classification: A Preliminary Study,” Proc. Work. Autom. Extr. Socio-political Events from News 2020, no. May, pp. 26–34, 2020.

S. G. & A. K. Bhavya Mor, “A Systematic Review of Hidden Markov Models and Their Applications,” Arch. Comput. Methods Eng., 2020.

L. Lopes, R. Vieira, M. José, and D. Martins, “Extracting compound terms from domain corpora,” no. February 2015, 2010, doi: 10.1007/s13173-010-0020-4.

Y. Gao, C. M. Meyer, and I. Gurevych, Preference ‑ based interactive multi ‑ document summarisation, vol. 23, no. 6. Springer Netherlands, 2020.

R. Rajendran, S. Iyer, and S. Murthy, “Personalized affective feedback to address students frustration in ITS,” IEEE Trans. Learn. Technol., vol. XX, no. c, pp. 1–12, 2018, doi: 10.1109/TLT.2018.2807447.

A. Ansani et al., “Symposium on Emotion Modelling and Detection in Social Media and Online Interaction,” no. April, 2018, [Online]. Available: http://aisb2018.csc.liv.ac.uk/PROCEEDINGS AISB2018/Emotion Modelling and Detection in Social Media and Online Interaction - AISB2018.pdf.

A. Wahid and F. Rasheed, “Emotion Detection Using Unobtrusive methods: An Integrated Approach,” 2019 2nd Int. Conf. Intell. Comput. Instrum. Control Technol. ICICICT 2019, no. April 2020, pp. 1166–1171, 2019, doi: 10.1109/ICICICT46008.2019.8993118.

F. Calefato, F. Lanubile, and N. Novielli, “EmoTxt : A Toolkit for Emotion Recognition from Text,” vol. 1, no. July, pp. 3–4, 2017.

K. Sailunaz, M. Dhaliwal, J. Rokne, and R. Alhajj, “Emotion detection from text and speech: a survey,” Soc. Netw. Anal. Min., vol. 8, no. 1, pp. 1–8, 2018, doi: 10.1007/s13278-018-0505-2.

F. A. Acheampong, C. Wenyu, and H. Nunoo‐Mensah, “Text‐based emotion detection: Advances, challenges, and opportunities,” Eng. Reports, vol. 2, no. 7, pp. 1–24, 2020, doi: 10.1002/eng2.12189.

N. Kanger and G. Bathla, “Recognizing Emotion in Text using Neural Network and Fuzzy Logic,” vol. 10, no. March, pp. 10–15, 2017, doi: 10.17485/ijst/2017/v10i12/100526.

V. V. Ramalingam, A. Pandian, A. Jaiswal, and N. Bhatia, “Emotion detection from text,” J. Phys. Conf. Ser., vol. 1000, no. 1, 2018, doi: 10.1088/1742-6596/1000/1/012027.

P. Saigal and V. Khanna, “Multi-category news classification using Support Vector Machine based classifiers,” SN Appl. Sci., vol. 2, no. 3, pp. 1–12, 2020, doi: 10.1007/s42452-020-2266-6.

S. N. Devi M.D., “Misogynous Text Classification Using SVM and LSTM.,” Garg D., Wong K., Sarangapani J., Gupta S.K. Adv. Comput. IACC 2020. Commun. Comput. Inf. Sci. vol . Springer, Singapore. https//doi.org/10.1007/978-981-16-0401-0_26, vol. 1367, 2021.

J. Kolluri, S. Razia, and S. R. Nayak, “Text Classification Using Machine Learning and Deep Learning Models,” SSRN Electron. J., no. January, 2020, doi: 10.2139/ssrn.3618895.

P. Di and L. Duan, “New naive Bayes text classification algorithm,” Shuju Caiji Yu Chuli/Journal Data Acquis. Process., vol. 29, no. 1, pp. 71–75, 2014, doi: 10.11591/telkomnika.v12i2.4180.

X. Luo, “Efficient English text classification using selected Machine Learning Techniques,” Alexandria Eng. J., vol. 60, no. 3, pp. 3401–3409, 2021, doi: 10.1016/j.aej.2021.02.009.

M. Z. Islam, J. Liu, J. Li, L. Liu, and W. Kang, “A semantics aware random forest for text classification,” Int. Conf. Inf. Knowl. Manag. Proc., no. November, pp. 1061–1070, 2019, doi: 10.1145/3357384.3357891.

M. Savargiv, B. Masoumi, and M. R. Keyvanpour, “A new random forest algorithm based on learning automata,” Comput. Intell. Neurosci., vol. 2021, 2021, doi: 10.1155/2021/5572781.

K. Almohammadi and H. Hagras, “An adaptive fuzzy logic based system for improved knowledge delivery within intelligent E-learning platforms,” IEEE Int. Conf. Fuzzy Syst., pp. 1–8, 2013, doi: 10.1109/FUZZ-IEEE.2013.6622350.

A. Aajli and K. Afdel, “Generation of an adaptive e-learning domain model based on a fuzzy logic approach,” Proc. IEEE/ACS Int. Conf. Comput. Syst. Appl. AICCSA, pp. 1–8, 2017, doi: 10.1109/AICCSA.2016.7945708.

K. Almohammadi and H. Hagras, “An Interval Type-2 Fuzzy Logic Based System for Customised Knowledge Delivery within Pervasive E- Learning Platforms,” pp. 2878–2885, 2013, doi: 10.1109/SMC.2013.490.

K. Chrysafiadi and M. Virvou, “Fuzzy logic for adaptive instruction in an e-learning environment for computer programming,” IEEE Trans. Fuzzy Syst., vol. 23, no. 1, pp. 164–177, 2015, doi: 10.1109/TFUZZ.2014.2310242.

Z. Liu, Z. Wang, and Z. Fang, “An agent-based e-learning assessing and instructing system,” Proc. - 2006 10th Int. Conf. Comput. Support. Coop. Work Des. CSCWD 2006, pp. 1414–1419, 2006, doi: 10.1109/CSCWD.2006.253194.

A. A. Firte, C. V. Bratu, and C. Cenan, “Intelligent component for adaptive e-learning systems,” Proc. - 2009 IEEE 5th Int. Conf. Intell. Comput. Commun. Process. ICCP 2009, pp. 35–38, 2009, doi: 10.1109/ICCP.2009.5284788.

M. Guan, J. Jia, Y. Yang, and Q. Chen, “Research on adaptive e-Learning system using technology of learning navigation,” Proc. 8th Int. Conf. Comput. Sci. Educ. ICCSE 2013, no. Iccse, pp. 24–29, 2013, doi: 10.1109/ICCSE.2013.6553877.

M. Ueno and T. Okamoto, “Bayesian agent in e-learning,” Proc. - 7th IEEE Int. Conf. Adv. Learn. Technol. ICALT 2007, no. 1, pp. 282–284, 2007, doi: 10.1109/ICALT.2007.82.

B. Deeb, Z. Hassan, and M. Beseiso, “An adaptive HMM based approach for improving e-Learning methods,” 2014 World Congr. Comput. Appl. Inf. Syst. WCCAIS 2014, 2014, doi: 10.1109/WCCAIS.2014.6916638.

M. Rani, R. Vyas, and O. P. Vyas, “OPAESFH: Ontology-based personalized adaptive e-learning system using FPN and HMM,” IEEE Reg. 10 Annu. Int. Conf. Proceedings/TENCON, vol. 2017-Decem, pp. 2441–2446, 2017, doi: 10.1109/TENCON.2017.8228271.

K. Colchester, H. Hagras, and D. Alghazzawi, “A Survey of Artificial Intelligence Techniques Employed for Adaptive Educational Systems within E-Learning Platforms,” J. Artif. Intell. Soft Comput. Res., vol. 7, no. 1, pp. 47–64, 2017, doi: 10.1515/jaiscr-2017-0004.

H. Ahmed, I. Traore, and S. Saad, “Detection of Online Fake News Using N-Gram Analysis and Machine Learning Techniques,” Lect. Notes Comput. Sci. (including Subser. Lect. Notes Artif. Intell. Lect. Notes Bioinformatics), vol. 10618 LNCS, no. October, pp. 127–138, 2017, doi: 10.1007/978-3-319-69155-8_9.

Downloads

Published

2021-09-22

How to Cite

Anne , D. O. ., Chepkemoi, A. ., & Maina, E. . (2021). Automatic Student Affective State Detection from Plain Text. International Journal of Formal Sciences: Current and Future Research Trends, 10(01), 41–60. Retrieved from https://ijfscfrtjournal.isrra.org/index.php/Formal_Sciences_Journal/article/view/554

Issue

Section

Articles