Hostname: page-component-74656f9884-8rzl6 Total loading time: 0 Render date: 2026-11-06T11:05:22.972Z Has data issue: false hasContentIssue false

Tackling challenges of neural purchase stage identification from imbalanced twitter data

Published online by Cambridge University Press:  15 August 2019

Heike Adel*
Affiliation:
Institute for Natural Language Processing, University of Stuttgart, Pfaffenwaldring 5b, 70569Stuttgart, Germany
Francine Chen
Affiliation:
FX Palo Alto Laboratory, 3174 Porter Dr, Palo Alto, CA94304, USA
Yan-Ying Chen
Affiliation:
FX Palo Alto Laboratory, 3174 Porter Dr, Palo Alto, CA94304, USA
*
*Corresponding author. Email: heike.adel@ims.uni-stuttgart.de
Rights & Permissions [Opens in a new window]

Abstract

Twitter and other social media platforms are often used for sharing interest in products. The identification of purchase decision stages, such as in the AIDA model (Awareness, Interest, Desire, and Action), can enable more personalized e-commerce services and a finer-grained targeting of advertisements than predicting purchase intent only. In this paper, we propose and analyze neural models for identifying the purchase stage of single tweets in a user’s tweet sequence. In particular, we identify three challenges of purchase stage identification: imbalanced label distribution with a high number of non-purchase-stage instances, limited amount of training data, and domain adaptation with no or only little target domain data. Our experiments reveal that the imbalanced label distribution is the main challenge for our models. We address it with ranking loss and perform detailed investigations of the performance of our models on the different output classes. In order to improve the generalization of the models and augment the limited amount of training data, we examine the use of sentiment analysis as a complementary, secondary task in a multitask framework. For applying our models to tweets from another product domain, we consider two scenarios: for the first scenario without any labeled data in the target product domain, we show that learning domain-invariant representations with adversarial training is most promising, while for the second scenario with a small number of labeled target examples, fine-tuning the source model weights performs best. Finally, we conduct several analyses, including extracting attention weights and representative phrases for the different purchase stages. The results suggest that the model is learning features indicative of purchase stages and that the confusion errors are sensible.

Information

Type
Article
Copyright
© Cambridge University Press 2019
Figure 0

Table 1 Sample purchase decision stage tweets.

Figure 1

Table 2 Examples of tweets that were difficult for both annotators to label.

Figure 2

Table 3 Confusion matrix of single annotator errors on mobile device data.

Figure 3

Table 4 Statistics of the annotated data.

Figure 4

Table 5 Mobile device dataset statistics after preprocessing.

Figure 5

Figure 1 Hierarchical model of tweets and a user’s tweet sequence.

Figure 6

Figure 2 (Color online) Tweet model: The words are represented by word embeddings and a CNN with multiple filters, possibly with different widths (blue: filter width = 1, red: filter width = 2, green: filter width = 3), is used to create a tweet representation.

Figure 7

Figure 3 Purchase stage model: A GRU models a user’s tweet sequence and a ranking layer determines the most probable outputs.

Figure 8

Figure 4 Model for multitask learning. The black part (tweet representation) is shared between both tasks, the blue part (top left) is evaluated for sentiment data, and the red part (top right) is evaluated for purchase stage prediction instances.

Figure 9

Figure 5 Model for adversarial training. The shared feature extractor is depicted in black, the domain classifier in blue, and the purchase stage classifier in red. The green backwards lines illustrate the gradient flow. Note that there is only one feature extractor (tweet model) which is applied to each example tweet. Thus, the updates from the domain classifier and the purchase stage model affect the same tweet model.

Figure 10

Table 6 Number of distinct purchase stages per tweet sequence (in percent).

Figure 11

Table 7 Number of transitions between purchase stages.

Figure 12

Table 8 Macro $F_1$ scores (in percent) for different tweet representation models; rep = representation, emb = embeddings, att = attention; in all neural cases: GRU as tweet sequence model trained with cross entropy loss without class weights.

Figure 13

Table 9 Macro $F_1$ (in percent) for various methods of dealing with class imbalance; CE = cross entropy, SH = squared hinge; GRU as tweet sequence model for neural models.

Figure 14

Table 10 Macro F1 scores (in percent) for different tweetsequence models.

Figure 15

Table 11 Macro F1 of models when testing on data with or without N class.

Figure 16

Table 12 Confusion matrix on the test set for the best model (CNN + unidirectional GRU + ranking).

Figure 17

Table 13 Class-wise and macro $F_1$ scores (in percent) on test data for different tweet representation models and multitask learning; bidirectional GRU with ranking layer was used as sequence model for main task.

Figure 18

Table 14 Car dataset statistics after preprocessing to reduce imbalanced labels.

Figure 19

Table 15 Macro $F_1$ comparing three methods for adapting a purchase stage prediction model to a new product category.

Figure 20

Figure 6 Macro $F_1$ of domain adaptation w.r.t. the number of labeled target samples.

Figure 21

Table 16 Confusion matrices on the car test set for the CNN + bidir GRUmodel.

Figure 22

Table 17 Macro $F_1$ on test for different n-gram sizes for two models: (1) SVM + BOW and (2) CNN + unidirectional GRU with different filter sizes.

Figure 23

Table 18 Most frequent trigrams and occurrence count in test data for each predicted IDA + U class.

Figure 24

Figure 7 Heat maps: exemplary attention weights for randomly selected examples from the IDA + U classes.