← Latest papers
💻 computer science

A Comparison of Traditional Machine Learning Algorithms and LSTM-Based Deep Learning Models for Email Sentiment Analysis

This study compares traditional machine learning algorithms and LSTM-based deep learning models for email sentiment analysis, finding that while LSTM offers strong recall for spam detection, Support Vector Machines with linear kernels achieve the optimal balance of high accuracy (98.74%) and processing efficiency.

Original authors: Virdio Samuel Saragih, Baruna Abirawa, Kartini Lovian Simbolon, Luluk Muthoharoh, Ardika Satria, Martin C. T. Manullang

Published 2026-05-06
📖 4 min read☕ Coffee break read

Original authors: Virdio Samuel Saragih, Baruna Abirawa, Kartini Lovian Simbolon, Luluk Muthoharoh, Ardika Satria, Martin C. T. Manullang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are the manager of a busy office where thousands of emails arrive every day. Your job is to sort them into two piles: "Ham" (real, important messages from friends and colleagues) and "Spam" (annoying junk, scams, and malware). Doing this by hand is impossible, so you hire four different "digital assistants" to do the sorting for you.

This paper is a report card comparing how well these four assistants performed the job.

The Four Assistants

  1. The Three "Traditional" Assistants (Machine Learning):

    • SVM (Support Vector Machine): Think of this assistant as a sharp-eyed librarian. It looks at the words in an email and tries to draw a perfect line in the sand to separate the "good" books from the "bad" ones. It's known for being very precise and fast.
    • Logistic Regression: This is like a statistician who calculates the odds. It looks at the words and says, "Based on the numbers, there is a 90% chance this is spam." It's reliable but can be a bit slower at crunching the numbers.
    • Naive Bayes: This assistant is a quick guesser. It assumes every word in an email acts independently (like rolling dice). It's very fast but sometimes makes mistakes because it doesn't look at how words work together in a sentence.
  2. The "Deep Learning" Assistant (LSTM):

    • LSTM (Long Short-Term Memory): This is a super-smart detective who has a great memory. Unlike the others who just look at individual words, this detective remembers the order of the words and how they relate to each other over time. It's like reading a whole story to understand the context, rather than just scanning a list of keywords. However, this detective takes a long time to think and needs a lot of energy (computing power) to do the job.

The Training Ground (The Dataset)

To test these assistants, the researchers gave them a giant stack of 2,620 emails written in Indonesian.

  • The Cleaning: Before the assistants could read, the researchers scrubbed the emails clean. They removed links, email addresses, and boring words like "and" or "the" that don't help distinguish spam from real mail.
  • The Translation: They turned the words into numbers (using something called Word2Vec). Imagine turning every word into a specific coordinate on a map. Words with similar meanings end up close together on this map.

The Race Results

The assistants were tested on a new batch of emails they had never seen before to see who was the best.

1. The Winner: The Sharp-Eyed Librarian (SVM)

  • Performance: The SVM assistant was the clear champion. It got 98.74% of the emails correct.
  • Speed: It finished the job in less than a second (0.9 seconds).
  • Why it won: The researchers found that when you turn words into those "map coordinates" (Word2Vec), the SVM's ability to draw a straight line between good and bad emails worked perfectly. It didn't need to overthink; it just saw the pattern clearly.

2. The Runner-Up: The Statistician (Logistic Regression)

  • Performance: It did very well too, getting about 97.5% correct.
  • Speed: It was slower, taking about 2.7 seconds. It was a strong second place but couldn't beat the librarian's speed and accuracy combo.

3. The Third Place: The Quick Guesser (Naive Bayes)

  • Performance: It got about 94.5% correct.
  • Why it lost: It struggled a bit with the "map coordinates" the researchers used. It was too simple for this specific type of data.

4. The Deep Thinker (LSTM)

  • Performance: The super-smart detective did a great job, getting 97% correct. It was particularly good at catching spam (it missed very few), which is great for security.
  • The Catch: It took significantly longer to train and run than the traditional assistants. It's like having a genius who solves the puzzle perfectly but takes 30 minutes to do it, while the librarian solves it in a second.

The Final Verdict

The paper concludes that for this specific task—sorting emails using these specific "word maps"—you don't need the super-complex, slow detective.

The SVM (the sharp-eyed librarian) offered the best balance. It was incredibly accurate (almost perfect) and lightning fast. While the deep learning detective (LSTM) was impressive and had a great memory, the traditional method was simply more efficient for this job.

In short: If you want to build a system to filter emails quickly and accurately, the old-school, fast method (SVM) is currently the best tool for the job, beating out the fancy, slow deep-learning models in this specific scenario.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →