Knowledge-Driven IDSS for Malaysian Kopi F&B SME Product Managers
Classify customer review sentiment and get an at-a-glance action recommendation.
About the active model
Logistic Regression with SMOTE, trained on 1,197 cleaned Kopi Kenangan app reviews with TF-IDF features (unigrams and bigrams) on a SMOTE-balanced training set, using default hyperparameters. In the dissertation's 20-result comparison this configuration beat the GridSearchCV-tuned version and both Random Forest + XGBoost ensembles.
Accuracy
92.9%
held-out test set, 240 reviews
Weighted F1
0.926
main selection criterion
Macro F1
0.756
treats each class equally
Per-class results
| Class | Precision | Recall | F1 | Test reviews |
|---|---|---|---|---|
| Negative | 0.700 | 0.583 | 0.636 | 24 |
| Neutral | 0.750 | 0.600 | 0.667 | 5 |
| Positive | 0.954 | 0.976 | 0.965 | 211 |

Neutral is the weakest class: only 26 of the 1,197 reviews were 3-star, so the model saw very few examples.
All 20 model-condition results
Six classifiers under baseline, SMOTE-only and SMOTE + GridSearchCV conditions, plus two Random Forest + XGBoost ensembles. The deployed model is highlighted.
| Condition | Model | Accuracy | Macro F1 | Weighted F1 |
|---|---|---|---|---|
| (a) Baseline | Naive Bayes | 87.9% | 0.312 | 0.823 |
| Logistic Regression | 88.3% | 0.362 | 0.839 | |
| Decision Tree | 88.8% | 0.516 | 0.878 | |
| SVM | 90.4% | 0.473 | 0.880 | |
| Random Forest | 88.8% | 0.385 | 0.848 | |
| XGBoost | 89.2% | 0.422 | 0.862 | |
| (b) SMOTE only | Naive Bayes | 84.6% | 0.611 | 0.868 |
| Logistic Regression | 92.9% | 0.756 | 0.926 | |
| Decision Tree | 88.3% | 0.488 | 0.882 | |
| SVM | 91.7% | 0.516 | 0.898 | |
| Random Forest | 89.6% | 0.533 | 0.869 | |
| XGBoost | 88.8% | 0.425 | 0.862 | |
| (c) SMOTE + GridSearchCV | Naive Bayes | 85.8% | 0.495 | 0.869 |
| Logistic Regression | 92.5% | 0.688 | 0.917 | |
| Decision Tree | 86.7% | 0.453 | 0.864 | |
| SVM | 92.1% | 0.529 | 0.904 | |
| Random Forest | 89.6% | 0.533 | 0.869 | |
| XGBoost | 89.2% | 0.429 | 0.866 | |
| (d) Ensemble - Bagging-style | RF + XGBoost (Voting / Bagging-style) | 89.2% | 0.429 | 0.866 |
| (e) Ensemble - Boosting-style | RF + XGBoost (Stacking / Boosting-style) | 89.2% | 0.421 | 0.860 |

Single model vs ensembles (McNemar's test)
| Comparison | p-value | Significant at 0.05? |
|---|---|---|
| Logistic Regression (tuned) vs RF+XGBoost Voting (bagging-style) | 0.039 | Yes |
| Logistic Regression (tuned) vs RF+XGBoost Stacking (boosting-style) | 0.021 | Yes |
Want to try your own data? The Streamlit version can retrain all six classifiers on any review export. Full method and code are on GitHub.