Compreendendo o Mecanismo de Previsão de Sentimentos por Visualização 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.
Resumo
As pessoas frequentemente recorrem a avaliações online para tomar decisões de compra. O presente trabalho teve como objetivo compreender o mecanismo de previsão de um modelo de aprendizado de máquina através da visualização do efeito dos sentimentos extraídos de avaliações de hotéis online, utilizando a metodologia de Inteligência Artificial Explicável (XAI). O Estudo 1 utilizou os sentimentos extraídos como características para prever as classificações das avaliações por cinco algoritmos de aprendizado de máquina (knn, árvores de decisão CART, máquinas de vetores de suporte, florestas aleatórias e máquinas de gradiente de aumento) e identificou as florestas aleatórias como o algoritmo mais eficaz. O Estudo 2 analisou o modelo de florestas aleatórias por meio da importância das características e revelou que os sentimentos de alegria, nojo, positivo e negativo são as características mais preditivas. Além disso, a visualização das atribuições de variáveis aditivas e sua distribuição de previsão mostrou previsão correta em direção e tamanho do efeito para a classificação de 5 estrelas, mas direção parcialmente incorreta e tamanho do efeito insuficiente para a classificação de 1 estrela. Esses detalhes de previsão foram corroborados por uma análise what-if para as quatro características principais. Em conclusão, o mecanismo de previsão de um modelo de aprendizado de máquina pode ser desvelado pela visualização de observações específicas. Comparar instâncias com valores de verdade fundamental contrastantes pode traçar um quadro diferencial do mecanismo de previsão e informar decisões para a melhoria do modelo.
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.