← Latest papers
💬 NLP

Benchmarking LightGBM and BiLSTM for Sentiment Analysis on Indonesian E-Commerce Reviews

This study benchmarks Machine Learning and Deep Learning approaches on an Indonesian e-commerce sentiment analysis dataset, finding that a BiLSTM model outperforms LightGBM and other ML algorithms with 98.87% accuracy, though LightGBM remains a highly efficient alternative.

Original authors: Lidia Natasyah Marpaung, Vania Claresta, Iqfina Haula Halika, Luluk Muthoharoh, Ardika Satria, Martin Clinton Tosima Manullang

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

Original authors: Lidia Natasyah Marpaung, Vania Claresta, Iqfina Haula Halika, Luluk Muthoharoh, Ardika Satria, Martin Clinton Tosima 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 owner of a massive online store in Indonesia. Every day, thousands of customers leave reviews about your products. Some are happy, some are angry, and some are just indifferent. But here's the catch: Indonesian internet slang is messy. People mix languages, use abbreviations, and sometimes say the opposite of what they mean (like saying "Great, you tricked me!" when they are actually furious).

You need a computer program to read these thousands of reviews and sort them into three piles: Happy, Sad, or Meh.

This paper is a "race" between two different types of computer brains trying to do this sorting job.

The Two Contenders

1. The Speedy Scout (Machine Learning / LightGBM)
Think of this approach as a very fast, efficient scout. It uses a tool called PyCaret (which is like a smart assistant that picks the best rules for you automatically).

  • How it works: It looks at the reviews and counts how often certain words appear. It's like a librarian who knows that if the word "broken" appears, the review is likely negative. It uses a specific algorithm called LightGBM (a type of decision-making tree) to make its guesses.
  • The Analogy: Imagine a detective who has a checklist. If they see "bad," they mark it negative. If they see "good," they mark it positive. It's incredibly fast and doesn't need to think too deeply about the order of the words.

2. The Contextual Reader (Deep Learning / BiLSTM)
Think of this approach as a thoughtful, bilingual reader who reads every sentence twice.

  • How it works: This uses a BiLSTM (Bidirectional Long Short-Term Memory). "Bi" means it reads the sentence from left-to-right and right-to-left at the same time.
  • The Analogy: Imagine reading a sarcastic joke. If you only read the first half, you might think it's a compliment. But if you read the whole thing and look back at the beginning, you realize, "Oh, they were being sarcastic!" The BiLSTM is like a reader who understands that the word "great" at the end of a sentence changes the meaning of the word "terrible" at the start. It understands the story of the sentence, not just the individual words.

The Race Results

The researchers fed both computers a dataset of 15,000 real Indonesian e-commerce reviews. Here is how they performed:

  • The Speedy Scout (LightGBM):

    • Speed: It was lightning fast. It finished the entire training process in about 5 seconds.
    • Accuracy: It got about 98.2% of the reviews right.
    • Verdict: It's a fantastic, efficient worker. If you need to sort reviews instantly, this is a great choice.
  • The Contextual Reader (BiLSTM):

    • Speed: It took a bit longer, about 3.7 minutes to train.
    • Accuracy: It got about 98.9% of the reviews right.
    • Verdict: It was the winner. Because it could read the context and understand sarcasm better, it made fewer mistakes.

The Big Takeaway

The paper concludes that while the "Speedy Scout" (LightGBM) is impressive for how fast it is, the "Contextual Reader" (BiLSTM) is the true champion for this specific job.

Why? Because Indonesian reviews are tricky. They are full of slang, mixed languages, and sarcasm. The BiLSTM's ability to look at the whole sentence in both directions allowed it to catch the subtle nuances that the faster model missed.

In simple terms: If you want a robot that sorts reviews instantly, use the first one. But if you want the robot that understands the true feeling behind the words—even when the customer is being sarcastic—use the second one. The researchers proved that for Indonesian e-commerce, the "Contextual Reader" is the best tool for the job.

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 →