← Latest papers
💬 NLP

Hybrid TF--IDF Logistic Regression and MLP Neural Baseline for Indonesian Three-Class Sentiment Analysis on Social Media Text

This paper demonstrates that a hybrid TF-IDF and metadata feature approach with a balanced Logistic Regression classifier outperforms a neural MLP baseline in terms of practical deployment for three-class sentiment analysis on a small, imbalanced Indonesian social media dataset.

Original authors: Allya Nurul Islami Pasha, Eka Fidiya Putri, Luluk Muthoharoh, Ardika Satria, Martin C. T. Manullang

Published 2026-05-11
📖 5 min read🧠 Deep dive

Original authors: Allya Nurul Islami Pasha, Eka Fidiya Putri, 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 trying to understand the mood of a crowded, noisy Indonesian social media party. People are shouting, using slang, abbreviations, and emojis, making it hard to tell if they are happy, angry, or just indifferent. This paper is like a recipe book for building a "mood detector" that can sort these messy messages into three buckets: Positive, Negative, or Neutral.

Here is the story of how the authors built this detector, explained simply:

1. The Messy Ingredients (The Data)

The authors started with a jar of 732 social media posts. However, the jar was full of duplicates, empty bottles, and confusing labels. Originally, the posts had 191 different "emotion" labels (like "joy," "grief," "surprise," "nostalgia").

To make the task manageable, they cleaned the jar and simplified the labels. They mashed those 191 complex emotions down into just three buckets:

  • Positive (Happy, grateful, excited)
  • Negative (Angry, sad, frustrated)
  • Neutral (Curious, confused, indifferent)

The Problem: The jar was very unbalanced. It was packed with "Positive" notes (459 of them), had a decent amount of "Negative" notes (188), but was almost empty of "Neutral" notes (only 60). It's like trying to learn to identify a rare blue marble when your bag is 90% red marbles.

2. The Two Detectives (The Models)

The authors built two different "detectives" to sort these messages and compared them. Both detectives looked at the same clues, but they thought differently.

The Clues (Features):
Both detectives looked at:

  • The Words: They used a technique called TF-IDF, which is like a highlighter that marks the most important words in a sentence while ignoring common filler words.
  • The Context: They also looked at three simple numbers: how long the text was, how many "likes" or "retweets" it got, and how many hashtags were used.

Detective A: The Logical Accountant (Logistic Regression)

  • Style: This detective is simple, fast, and very logical. It draws straight lines to separate the happy posts from the angry ones.
  • Why use it? It's easy to understand (you can see exactly why it made a decision) and very fast to run on a computer.
  • Performance: It got about 80% of the answers right. It was good at spotting the happy posts but sometimes struggled with the rare "Neutral" ones because there weren't enough examples to learn from.

Detective B: The Shallow Neural Network (MLP)

  • Style: This detective is a small, two-layered brain. It tries to find more complex patterns and connections between the clues.
  • Performance: It was slightly smarter at getting the overall score right (about 84.5% accuracy). However, it didn't do much better than Detective A at spotting the tricky "Neutral" posts.
  • The Catch: It was a bit harder to explain why it made a decision and required more computing power.

3. The Verdict (Results)

The authors ran a race between the detectives and a few others (like a "Linear SVM" and a "Random Forest").

  • The Winner of the Race: A model called Linear SVM actually got the highest score overall.
  • The Chosen Champion: Even though the "Shallow Neural Network" (Detective B) was slightly more accurate, the authors decided to pick Detective A (Logistic Regression) as the official "production" model.

Why pick the "slower" detective?
Think of it like choosing a car. The Neural Network is a fast sports car that might win a race, but the Logistic Regression is a reliable, easy-to-fix sedan.

  • It's easier to install and run.
  • It's easier to explain to people why it made a choice.
  • It's stable and doesn't need a super-computer to run.

The authors concluded that for small, messy datasets like this, a well-tuned, simple model is often better than a complex one. The complex model (Neural Network) is great for experimenting, but the simple model is better for real-world use.

4. Where They Stumbled (The Neutral Problem)

Both detectives struggled with the Neutral bucket. Because there were so few neutral examples (only 60) and because "neutral" is a vague concept (is "curious" happy or sad?), the models often guessed wrong on these. It's like trying to teach a child to identify a specific shade of gray when you only show them a few examples.

Summary

This paper isn't about inventing a super-complex AI. Instead, it's a practical guide showing that for small, messy social media data in Indonesian:

  1. Cleaning the data and simplifying the labels is just as important as the math.
  2. Simple models (like Logistic Regression) can be just as good as complex ones if you balance the data correctly.
  3. Simplicity wins when you need a tool that is fast, explainable, and easy to deploy.

The authors suggest that while we can try fancier models in the future, for now, a careful, simple approach is the most practical way to understand Indonesian social media moods.

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 →