← Latest papers
💬 NLP

Benchmarking Logistic Regression, SVM, and LightGBM Against BiLSTM with Attention for Sentiment Analysis on Indonesian Product Reviews

This paper benchmarks traditional machine learning algorithms (Logistic Regression, SVM, and LightGBM) against a BiLSTM with Attention model for Indonesian sentiment analysis, finding that the best-performing ML model (Logistic Regression) slightly outperforms the deep learning approach while offering greater computational efficiency.

Original authors: Razin Hafid Hamdi, Ivana Margareth Hutabarat, Hanna Gresia Sinaga, Luluk Muthoharoh, Ardika Satria, Martin C. T. Manullang

Published 2026-04-29
📖 4 min read☕ Coffee break read

Original authors: Razin Hafid Hamdi, Ivana Margareth Hutabarat, Hanna Gresia Sinaga, 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 running a massive online store in Indonesia. Every day, thousands of customers leave reviews about your products. Some say, "This is amazing!" and others say, "This is terrible!" Reading every single one manually is like trying to drink from a firehose—it's impossible, slow, and you might get tired and make mistakes.

To solve this, the authors of this paper built two different "digital assistants" to read these reviews and tell you if they are happy or unhappy. They wanted to see which assistant was better: the Old-School Detective (Machine Learning) or the High-Tech Brain (Deep Learning).

Here is how they set up the race and what happened.

The Contestants

1. The Old-School Detective (Machine Learning)
This team used a smart toolkit called PyCaret. Think of this as a super-efficient filing cabinet. It takes the messy reviews, cleans them up, and turns them into a neat list of keywords (like "good," "bad," "fast," "slow").

  • The Tools: They tested three types of detectives:
    • Logistic Regression: A straightforward, logical thinker that looks for simple patterns.
    • SVM: A strict judge that draws a sharp line between "good" and "bad" reviews.
    • LightGBM: A fast, powerful calculator that builds many small decision trees to find the answer.
  • The Strategy: They gave these tools 15,782 reviews to study and then tested them on a fresh batch of 3,946 reviews they hadn't seen before.

2. The High-Tech Brain (Deep Learning)
This team built a BiLSTM with Attention using PyTorch. Imagine this as a super-intelligent robot that doesn't just read words; it reads the whole sentence from start to finish and then from finish to start.

  • The "Attention" Superpower: This robot has a special ability called "Attention." It's like having a magnifying glass that instantly zooms in on the most important words in a sentence (like "not" or "love") and ignores the boring ones. It tries to understand the context and feelings behind the words, not just the words themselves.

The Race Conditions

  • The Track: They used a dataset of 19,728 Indonesian product reviews.
  • The Balance: The track was perfectly fair. Exactly half the reviews were positive, and half were negative. This meant neither assistant had an unfair advantage.
  • The Prep: Before the race, they cleaned the text. They removed links, hashtags, and converted slang (like changing "bgt" to "banget") so both assistants were reading the same clear language.

The Results: Who Won?

You might expect the High-Tech Brain to crush the Old-School Detective because it's more complex and "smarter." But the results were a surprise!

  • The Old-School Detective (Logistic Regression):

    • Score: 97.26% accuracy.
    • Speed: It was incredibly fast, finishing its training in about 12 seconds per round.
    • Verdict: It was the winner by a tiny, tiny margin.
  • The High-Tech Brain (BiLSTM + Attention):

    • Score: 97.24% accuracy.
    • Speed: It took much longer to train and required a powerful computer (GPU) to run.
    • Verdict: It came in a very close second, losing by just 0.02%.

What Does This Mean? (The "Aha!" Moment)

The authors found something interesting: Sometimes, a simple tool is better than a complex one.

Because the reviews were short and the difference between "happy" and "sad" was very clear (the data was "linearly separable"), the simple Logistic Regression model didn't need to overthink it. It just needed to count the right keywords, and it did that perfectly.

The High-Tech Brain was excellent at understanding context and didn't get confused by the balance of the data, but it was like using a Ferrari to drive to the corner store. It could do the job, but it was overkill and took much more energy.

The Bottom Line

If you have a huge pile of short product reviews in Indonesian and you need to sort them quickly:

  • Don't overcomplicate it. A simple, well-prepared Machine Learning model (like Logistic Regression) is just as good as a fancy Deep Learning model.
  • Save your resources. The simple model is faster, cheaper to run, and easier to explain.
  • The "Attention" mechanism in the complex model worked great to keep things balanced, but for this specific job, the simple model was already at the "ceiling" of performance.

In short: For this specific task, the simple, logical detective beat the high-tech robot by a hair's breadth, proving that you don't always need the most complex tool to get the job done.

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 →