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 では、ランダムフォレストモデルの特徴量重要度を用いて分析し、予測力が高い特徴量として喜び、嫌悪、肯定的、否定的な感情を明らかにした。さらに、加算的変数帰属とその予測分布の可視化により、5 星評価については予測の方向性と効果量が正しく、1 星評価については方向性が部分的に誤り、効果量が不十分であることが示された。これらの予測の詳細は、上位 4 つの特徴量に対する what-if 分析によって裏付けられた。結論として、機械学習モデルの予測メカニズムは、特定の観察結果の可視化によって解明できる。対照的な真実値を持つインスタンスを比較することで、予測メカニズムの差分図を描き、モデル改善のための意思決定に資する。
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.