Emotion Prediction Using Natural Language Processing: A Performance Evaluation of Supervised Machine Learning Models for Classification Tasks
Authors
Dennis S. Nava
La Consolacion University Philippines (PH)
Roman B. Villones
La Consolacion University Philippines (PH)
Article Information
DOI: 10.51583/IJLTEMAS.2026.150100052
Subject Category: Machine Learning
Volume/Issue: 15/1 | Page No: 590-599
Publication Timeline
Submitted: 2026-02-06
Published: 2026-02-06
Abstract
This study discusses the usage of machine learning algorithms in the detection of emotions. It helps to fill the gap between the human understanding of emotions and the artificial intelligence being developed, both in relation to technological progress and human-machine interactions. Applying the KDD process to NLP systematically involves identifying, preprocessing, mining patterns, and interpreting textual data. Techniques of Data Mining, like Logistic Regression, Linear SVC, and Multinomial Naïve Bayes, have been applied for the purpose, accompanied by metrics like Classification Reports for Precision, Recall, F1-score, and Accuracy and k-fold cross-validation for a very robust and accurate analysis of the unstructured text domain. Logistic Regression remained the most scoring model of 90%. Its score now was a few percentage points smaller than its training score. As expected, this time Linear SVC found itself in second place with an 88%, and Multinomial Naïve Bayes also stayed in third place on 86%. With cross-validation applied, Logistic Regression proves to be the most reliable model for this NLP study. It scores high and is quite generalizable and stable, thus suitable for deployment in scenarios where robustness and consistency are essential. Potential further improvements to such models could involve hyperparameter and fine-tuning. By trying them out on much larger and varied datasets, they can be put through several checks for testing capabilities and limits within applications. One other extension involves ensemble techniques to build even stronger, more reliable solutions by merging different model strengths together.
Keywords
Logistic Regression, Linear SVC, Multinomial Naïve Bayes, Machine Learning, Natural Language Processing
Downloads
References
1. Al Maruf, A., Khanam, F., Haque, M. M., Jiyad, Z. M., Mridha, M. F., & Aung, Z. (2024). Challenges and opportunities of text-based emotion detection: A survey. IEEE access, 12, 18416-18450. [Google Scholar] [Crossref]
2. Aldoseri, A., Al-Khalifa, K. N., & Hamouda, A. M. (2024). AI-powered innovation in digital transformation: Key pillars and industry impact. Sustainability, 16(5), 1790. [Google Scholar] [Crossref]
3. Álvarez-Carmona, M. Á., Aranda, R., Rodríguez-Gonzalez, A. Y., Fajardo-Delgado, D., Sánchez, M. G., Pérez-Espinosa, H., Martínez-Miranda, J., Guerrero-Rodríguez, R., Bustio-Martínez, L., & Díaz-Pacheco, Á. (2022). Natural language processing applied to tourism research: A systematic review and future research directions. Journal of king Saud university-computer and information sciences, 34(10), 10125-10144. [Google Scholar] [Crossref]
4. Almohimeed, A., Saad, R. M., Mostafa, S., El-Rashidy, N. M., Farrag, S., Gaballah, A., Elaziz, M. A., El-Sappagh, S. & Saleh, H. (2023). Explainable artificial intelligence of multi-level stacking ensemble for detection of Alzheimer’s disease based on particle swarm optimization and the sub-scores of cognitive biomarkers. Ieee Access, 11, 123173-123193. [Google Scholar] [Crossref]
5. Cowen, A. S., & Keltner, D. (2021). Semantic space theory: A computational approach to emotion. Trends in Cognitive Sciences, 25(2), 124-136. [Google Scholar] [Crossref]
6. Dhanya, V. G., Subeesh, A., Kushwaha, N. L., Vishwakarma, D. K., Kumar, T. N., Ritika, G., & Singh, A. N. (2022). Deep learning based computer vision approaches for smart agricultural applications. Artificial Intelligence in Agriculture, 6, 211-229. [Google Scholar] [Crossref]
7. Guo, Z., Lai, A., Thygesen, J. H., Farrington, J., Keen, T., & Li, K. (2024). Large language models for mental health applications: systematic review. JMIR mental health, 11(1), e57400. [Google Scholar] [Crossref]
8. Hung, L. P., & Alias, S. (2023). Beyond sentiment analysis: A review of recent trends in text based sentiment analysis and emotion detection. Journal of Advanced Computational Intelligence and Intelligent Informatics, 27(1), 84-95. [Google Scholar] [Crossref]
9. Kalateh, S., Estrada-Jimenez, L. A., Nikghadam-Hojjati, S., & Barata, J. (2024). A systematic review on multimodal emotion recognition: building blocks, current state, applications, and challenges. IEEE Access, 12, 103976-104019. [Google Scholar] [Crossref]
10. Kišjuhas, A. (2024). What holds society together? Emotions, social ties, and group solidarity in leisure interaction rituals. Leisure Studies, 43(3), 363-377. [Google Scholar] [Crossref]
11. Khan, A. A., Chaudhari, O., & Chandra, R. (2024). A review of ensemble learning and data augmentation models for class imbalanced problems: Combination, implementation and evaluation. Expert Systems with Applications, 244, 122778. [Google Scholar] [Crossref]
12. Mahfoudi, M. A., Meyer, A., Gaudin, T., Buendia, A., & Bouakaz, S. (2022). Emotion expression in human body posture and movement: A survey on intelligible motion factors, quantification and validation. IEEE Transactions on Affective Computing, 14(4), 2697-2721. [Google Scholar] [Crossref]
13. Nandwani, P., & Verma, R. (2021). A review on sentiment analysis and emotion detection from text. Social network analysis and mining, 11(1), 81. [Google Scholar] [Crossref]
14. Tapeh, A. T. G., & Naser, M. Z. (2023). Artificial intelligence, machine learning, and deep learning in structural engineering: a scientometrics review of trends and best practices. Archives of Computational Methods in Engineering, 30(1), 115-159. [Google Scholar] [Crossref]
15. Wankhade, M., Rao, A. C. S., & Kulkarni, C. (2022). A survey on sentiment analysis methods, applications, and challenges. Artificial Intelligence Review, 55(7), 5731-5780. [Google Scholar] [Crossref]
Metrics
Views & Downloads
Similar Articles
- Predictive Health Monitoring Systems for Electric Vehicle Powertrains Using Edge AI and CAN Bus Data
- Internship Portals: A Systematic Review of Current Platforms and Future Directions
- Towards Better Urban Mobility: A Comprehensive Assessment of Pedestrian Infrastructure in Naval, Biliran Province, Philippines
- An Affordable and Sustainable Efficient Color Sorting System Using Arduino and TCS3200 Sensor
- Financial Stress and Mobility Patterns: Implication for Transportation Policy Among Jeepney Passengers