Introduction
Extracting emotions from images has attracted much interest, in particular with the rapid development of social networks. The emotional impact is very important for understanding the intrinsic meanings of images. Despite many studies having been done, most existing methods focus on image content, but ignore the emotion of the user who published the image. One interesting question is: How does social effect correlate with the emotion expressed in an image? Specifically, can we leverage friends interactions (e.g., discussions) related to an image to help extract the emotions? In this paper, we formally formalize the problem and propose a novel emotion learning method by jointly modeling images posted by social users and comments added by their friends. One advantage of the model is that it can distinguish those comments that are closely related to the emotion expression for an image from the other irrelevant ones. Experiments on an open Flickr dataset show that the proposed model can significantly improve (+37.4% by F1) the accuracy for inferring user emotions. More interestingly, we found that half of the improvements are due to interactions between 1.0% of the closest friends.
Problem formulation

Codes
We develop a novel emotion learning method. Figure below demonstrate the graphical representation of our model. The purple block can be regarded as a mixture Gaussian, which describes the visual features of images. The yellow block can be seen as a LDA, which describes the comment information. The green block models how likely a comment will be influenced by the relevant image, which integrates images and comments into an uniform model. The green block considers social tie information. Particularly, one is more easily to understand her closed friends' emotional status, and will be more influenced.

Figure 1. Graphical representation of the proposed model.

Dataset
On this page, we share our Flickr dataset, which consists of 354,192 randomly downloaded images posted by 4,807 users. For each image, we also collect its tags and all comments. Thus we get 557,177 comments posted by 6,735 users in total. We also record the authors' profiles, including the authors' id, alias and their contact list. Furthermore, the contact list is a list of ids which the user follows on Flickr, so we are able to figure out the relationship between two users.
For training and evaluating the proposed model for inferring emotions, we firstly need to know the primary emotions of the images. Manually acquiring a large labeled image dataset for evaluation is time-consuming and tedious. Thus we follow a comprised method of using tags supplied by users. This method was also used in~\cite{xiepicture}~\cite{chen2013neil}~\cite{hwang2013discriminative}. Particularly, we first manually define the word list for each of the six emotion categories based on WordNet (http://wordnet.princeton.edu/) and HowNet (http://www.keenage.com/). Next we compare the adjective words in images' tags with the word lists. The emotion category whose word list has the most same words as the tag words is finally assigned to the image. This has left us six sets of images, consisting of 145,946, 33,854, 22,040, 9,491, 54,637 and 35,935 images each.
Results

Parameter Analysis. We study how the parameters of the proposed model influence the performance. Figure 2(a) shows the performance of the proposed model by varying the number of latent variables K from 2 to 10. In general, increasing K often obtain a performance improvement. However, when K is large enough (K > 5), the performance tends to be stable, which implies that K should not less than the number of categories in the emotion inference task. We then study how the hyper-parameter \alpha influences the performance. Figure 2(b) shows the performance of the proposed method with changing \alpha. We see the performance is stable, which indicates the proposed method is not sensitive to the hyper-parameter \alpha. Figure 2(c) shows how the performance is influenced by b1:b0. Overall, too small ratio of b1 and b0 hurts the performance by not leveraging comment information sufficiently, while too large valued ratio causes over-fitting. Indeed, how to find a best combination of b0 and b1 efficiently is a remaining challenge needed to be solved in our future work. We finally study the convergence of the proposed method. As Figure 2(d) shows, the proposed method converges within 80 iterations in all tasks.


Figure 2. Parameter analysis.Y-axis in all figures denote the F1-score in emotion inference.
Image Interpretations. Compared with traditional methods, a more clear interpretation of the correlations between images and emotions is one of the advantages of the proposed model. Table 3 demonstrates how each visual feature xt distributes over different emotions by the learned ut of the proposed model.
