Comparative Analysis of Machine Learning Models for Text Emotion Classification

The categorisation of textual data, an essential Natural Language Processing (NLP) capability, drives practical implementations in domains such as affective computing, user interaction management, and digital content curation. This paper compares three machine learning models to evaluate their effectiveness in text emotion classification: Long Short-Term Memory (LSTM), Random Forest, and Multilayer Perceptron (MLP). The study focuses on identifying the most suitable model for handling sequential data and capturing complex text patterns. The LSTM model processes sequential text by embedding words into vectors, passing them through LSTM layers, and classifying the output, combining high-level semantic features with low-level details. In contrast, the Random Forest model leverages ensemble learning, and the Perceptron model employs a linear classifier. Experiments on a text emotion dataset show that the LSTM model outperforms traditional methods, achieving a test accuracy of 97.46%, compared to 64.88% for Random Forest and 52.85% for the Perceptron model. These results highlight the LSTM model's ability to capture temporal dependencies, making it highly effective for text emotion classification. This research contributes to the field by emphasising LSTM efficacy in handling sequential data, providing a foundation for future developments such as hybrid models and transfer learning applications.

Authors

Institutions

Publication Details

Journal
Applied and Computational Engineering
Published
2025-05-30
DOI
https://doi.org/10.54254/2755-2721/2025.gl23569
Primary Topic
Text and Document Classification Technologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Analysis of Machine Learning Models for Text Emotion Classification

Siyao Xiao
Applied and Computational Engineering
Text and Document Classification Technologies
article

Comparative Analysis of Machine Learning Models for Text Emotion Classification

Siyao Xiao
article en

Abstract

The categorisation of textual data, an essential Natural Language Processing (NLP) capability, drives practical implementations in domains such as affective computing, user interaction management, and digital content curation. This paper compares three machine learning models to evaluate their effectiveness in text emotion classification: Long Short-Term Memory (LSTM), Random Forest, and Multilayer Perceptron (MLP). The study focuses on identifying the most suitable model for handling sequential data and capturing complex text patterns. The LSTM model processes sequential text by embedding words into vectors, passing them through LSTM layers, and classifying the output, combining high-level semantic features with low-level details. In contrast, the Random Forest model leverages ensemble learning, and the Perceptron model employs a linear classifier. Experiments on a text emotion dataset show that the LSTM model outperforms traditional methods, achieving a test accuracy of 97.46%, compared to 64.88% for Random Forest and 52.85% for the Perceptron model. These results highlight the LSTM model's ability to capture temporal dependencies, making it highly effective for text emotion classification. This research contributes to the field by emphasising LSTM efficacy in handling sequential data, providing a foundation for future developments such as hybrid models and transfer learning applications.

Applied and Computational EngineeringVol. 155(1)
South China Agricultural University (CN)
Openalex Percentile: Top 94%
Text and Document Classification Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.