XAI 시각화를 통한 감정 예측 메커니즘 이해
Understanding the Prediction Mechanism of Sentiments by XAI Visualization
Understanding the Prediction Mechanism of Sentiments by XAI Visualization
@misc{so2020understanding,
title = {Understanding the Prediction Mechanism of Sentiments by XAI Visualization},
author = {Chaehan So},
year = {2020},
eprint = {2003.01425},
archivePrefix = {arXiv},
primaryClass = {cs.HC},
url = {https://arxiv.org/abs/2003.01425}
}
So, C. (2020). Understanding the Prediction Mechanism of Sentiments by XAI Visualization [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2003.01425
SO C. Understanding the Prediction Mechanism of Sentiments by XAI Visualization[EB/OL]. (2020-03-03)[2026-11-29]. https://arxiv.org/abs/2003.01425.
초록
사람들은 종종 온라인 리뷰를 구매 결정에 의존한다. 본 연구는 설명 가능한 인공지능 (XAI) 방법론을 사용하여 온라인 호텔 리뷰에서 추출된 감정의 효과를 시각화함으로써 머신러닝 모델의 예측 메커니즘을 이해하는 데 목적이 있다. 연구 1 은 추출된 감정을 특징으로 사용하여 5 가지 머신러닝 알고리즘 (knn, CART 의사결정나무, 서포트 벡터 머신, 랜덤 포레스트, 그래디언트 부스팅 머신) 으로 리뷰 평점을 예측하고, 랜덤 포레스트를 가장 좋은 알고리즘으로 식별하였다. 연구 2 는 랜덤 포레스트 모델을 특징 중요도를 통해 분석하여 Joy, Disgust, Positive, Negative 가 가장 예측력 있는 특징임을 밝혔다. 또한, 가산 변수 귀인 (additive variable attributions) 과 그 예측 분포의 시각화는 5 별 평점의 경우 방향과 효과 크기가 올바르게 예측되었으나, 1 별 평점의 경우 방향이 부분적으로 잘못되고 효과 크기가 불충분함을 보여줌. 이러한 예측 세부 사항은 4 개의 상위 특징에 대한 what-if 분석을 통해 입증되었다. 결론적으로, 머신러닝 모델의 예측 메커니즘은 특정 관찰의 시각화를 통해 드러낼 수 있다. 대조적인 ground truth 값을 가진 인스턴스를 비교하면 예측 메커니즘에 대한 차별화된 그림을 그릴 수 있으며, 모델 개선을 위한 의사결정에 정보를 제공할 수 있다.
People often rely on online reviews to make purchase decisions. The present work aimed to gain an understanding of a machine learning model's prediction mechanism by visualizing the effect of sentiments extracted from online hotel reviews with explainable AI (XAI) methodology. Study 1 used the extracted sentiments as features to predict the review ratings by five machine learning algorithms (knn, CART decision trees, support vector machines, random forests, gradient boosting machines) and identified random forests as best algorithm. Study 2 analyzed the random forests model by feature importance and revealed the sentiments joy, disgust, positive and negative as the most predictive features. Furthermore, the visualization of additive variable attributions and their prediction distribution showed correct prediction in direction and effect size for the 5-star rating but partially wrong direction and insufficient effect size for the 1-star rating. These prediction details were corroborated by a what-if analysis for the four top features. In conclusion, the prediction mechanism of a machine learning model can be uncovered by visualization of particular observations. Comparing instances of contrasting ground truth values can draw a differential picture of the prediction mechanism and inform decisions for model improvement.