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

ClassPrecisionRecallF1Test reviews
Negative0.7000.5830.63624
Neutral0.7500.6000.6675
Positive0.9540.9760.965211
Confusion matrix on the 240-review test set. Negative: 14 correct, 1 predicted Neutral, 9 predicted Positive. Neutral: 1 predicted Negative, 3 correct, 1 predicted Positive. Positive: 5 predicted Negative, 206 correct.

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.

ConditionModelAccuracyMacro F1Weighted F1
(a) BaselineNaive Bayes87.9%0.3120.823
Logistic Regression88.3%0.3620.839
Decision Tree88.8%0.5160.878
SVM90.4%0.4730.880
Random Forest88.8%0.3850.848
XGBoost89.2%0.4220.862
(b) SMOTE onlyNaive Bayes84.6%0.6110.868
Logistic Regression92.9%0.7560.926
Decision Tree88.3%0.4880.882
SVM91.7%0.5160.898
Random Forest89.6%0.5330.869
XGBoost88.8%0.4250.862
(c) SMOTE + GridSearchCVNaive Bayes85.8%0.4950.869
Logistic Regression92.5%0.6880.917
Decision Tree86.7%0.4530.864
SVM92.1%0.5290.904
Random Forest89.6%0.5330.869
XGBoost89.2%0.4290.866
(d) Ensemble - Bagging-styleRF + XGBoost (Voting / Bagging-style)89.2%0.4290.866
(e) Ensemble - Boosting-styleRF + XGBoost (Stacking / Boosting-style)89.2%0.4210.860
Bar charts of test accuracy and weighted F1 for all 20 results. Logistic Regression with SMOTE only is the tallest bar on both.

Single model vs ensembles (McNemar's test)

Comparisonp-valueSignificant at 0.05?
Logistic Regression (tuned) vs RF+XGBoost Voting (bagging-style)0.039Yes
Logistic Regression (tuned) vs RF+XGBoost Stacking (boosting-style)0.021Yes

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.