4.1. Experiments
To collect gaze distribution, experiments use an eye tracker, Tobii Pro Nano, connected to a laptop PC with a screen size of pixels. The PC collects gaze distribution with a proprietary software tool through the eye tracker. Calibrating the eye tracker for each subject, the collection tool acquires gaze coordinates on the screen. The calibration allows more accurate acquisition of gaze distribution, eliminating physical differences between subjects.
The study involved 15 subjects, consisting of 12 men and 3 women, aged 21 to 25, with no color blindness and corrected vision. The subjects are asked to fill out a questionnaire about their hobbies. Though some subjects share common hobbies, no two subjects give the same answer. The experiments take place in a space with constant indoor lighting. The subjects sitting at a desk are instructed to view 1,000 images using the collection tool with periodic calibration.
The experiment uses 1,000 images from the SALICON dataset. All subjects view all of these images, because different images presented to each subject would prevent us from determining whether changes in gaze are caused by individual interest or by the inherent characteristics of the image. Each subject participates in an experiment comprising 20 sets of 50 images each. Subjects take regular breaks between sets to maintain their concentration. Each experiment is conducted over one or two days, with a duration of approximately three to four hours per subject.
A total of 12,550 gaze distribution samples are obtained in the experiment. Among them, the study analyzes 8,000 samples of six men and two women, which provide sufficient gaze distribution for all 1,000 images used in the experiment.
4.2. Gaze Difference among Subjects
Let us explore the answer to our first research question: "Do individual users’ interests influence their gaze on each image?" If subjects with different interests present almost the same gaze for given images, it is meaningless to construct a model to predict personal interest from gaze.
Let us explore the answer to the first research question: "Do individual users’ interests affect how they view each image?"
The data obtained through the eye tracker consists of gaze coordinates and pupil diameters. The study converts the gaze coordinates into a saliency map using a Gaussian filter, following the SALICON dataset [
28].
Figure 4 shows, in monochrome, the distribution of all gaze coordinates for each of the eight subjects without considering the frequency of gaze occurrence at each coordinate. For all subjects, there are more gazes at the center of the image, while fewer at its edges. It is referred to as the central bias. It indicates that human gaze often converges on the center, while personal interests bring individual differences.
The differences between subjects are reflected in the cosine similarities for each subject, shown in
Figure 5. The values on the vertical and horizontal axes represent each subject number. The cosine similarities for subjects 1 and 6 are particularly high, at 0.9878. We can also see that subject 4 is relatively similar to all other subjects, while subject 7 is low in similarity. However, the lowest value in
Figure 5 is 0.9703, which means that the cosine similarities are high overall. The influence of the centeral bias is significant. We need to investigate whether there are any differences between subjects, excluding the center biases.
Figure 4, which does not reflect the frequency of gaze occurrence at each coordinate, does not tell us whether gazes are concentrated in a narrow area or spread over a wide area. Let us convert the gaze information into a PSM for each subject.
Figure 6 shows the gaze distribution as a heat map. As gazes are accumulated at the same coordinate, each coordinate is represented in a color ranging from deep blue to yellow. Subjects 1, 4, 5, and 6 rarely direct their gaze to the edge of the image, i.e., their gazes are mostly fixed on the center. On the other hand, the gaze of subjects 0, 2, and 3 gathers slightly above the center. Finally, subject 7 directs the gaze widely throughout the entire image.
It could come from the fact that the objects photographers intend to capture are located at the center of many photographs used in the experiments [
11]. The accuracy of the model trained using such datasets would get higher if its output is closer to the center. As evaluation metrics, the study should use sAUC (Shuffled AUC) and AUC-B (AUC-Borji), which can evaluate models while reducing the effects of the central bias [12].
Table 4 shows the accuracy of the PSM calculated from gaze data collected in the experiments, expressed as sAUC and AUC-B for each subject. In the table, even sAUC, which takes center bias into account, achieves a very high evaluation of 0.877. It indicates that the PSM collected in the experiments accurately represents the tendency for gaze to converge toward the center.
On the other hand, if the collected gaze distribution does not adequately represent differences between subjects, it is difficult to create a model that predicts individual gazes. The number of gaze coordinates the tool collects from each image is fixed to 300. As a result, the gaze distribution varies with subjects; the number of gazes around the center gets small, while the area where gazes gather will differ for each subject. It reduces central bias, which allows us to investigate individual gazes, including the influence of the unique characteristics of each image.
Let us compare PSMs between subjects.
Figure 7 shows the average cosine similarity between subject PSMs. The differences can be regarded as the one in gaze patterns between subjects. Compared to
Figure 5, the PSM similarity in
Figure 7 is low. Subjects 1, 4, 5, and 6, who have high cosine similarity in
Figure 5, also had relatively high cosine similarity in
Figure 7. It indicates that subjects tend to fixate on the same object, that is, they exhibit similar gaze movements even when the influence of the central bias is suppressed. However, the maximum cosine similarity and the minimum are 0.593 and 0.372, respectively. The values are low as a whole.
The PSMs show high similarity due to the central bias, but they also present differences in gaze tendencies between individuals for each image. When humans are interested, they focus their gaze on the object of interest [6]. In answer to the first research question, we can say that differences in interest affect gaze. However, note that the differences among subjects are extremely small, with a maximum of 0.221. It would be undesirable to use PSMs as labels for training a gaze prediction model. We should prepare user feature vectors to be used for the labels.
4.3. Change of Pupil Diameters
The experiments record changes in pupil diameter over time for each image.
Figure 8 shows a histogram of the pupil diameter for each subject after the standardization. If personal interests change the pupil diameter, the gaze distribution will differ from a Gaussian distribution, which represents randomness. It should result in gazes gathering in areas other than the average.
Figure 9 shows QQ plots of the samples in
Figure 8. The red line represents the normal distribution. For most subjects, both ends of the distribution deviate significantly from normality. It indicates that a significant number of samples are distributed far from the average.
To demonstrate that the pupil diameter distribution deviates from normality, an anomaly test based on the chi-squared distribution is applied to extract both sides of the distribution. Two significance levels, 1% and 10%, are used to determine which is more effective in extracting pupil diameters that deviate from normality. It allows us to determine the degree of their deviation suitable to detect personal interests.
The QQ plot for subject 7 has an unusual shape compared to the other subjects. It has two centers. It could be due to the difference in the number of days spent on the experiment. While most subjects complete their experiments in one day, subjects 1 and 7 take two days.
Figure 10 shows the pupil diameters of subjects 1 and 7, standardized by experiment day, in a histogram and QQ plot. They have the same shape as the distribution for the other subjects. Limited to subjects 1 and 7, the anomaly testing is applied to samples of each day to extract thresholds for their personal interests.
Figure 11 shows the pupil dilations for every subject at each significance level. The left and right graphs show the 1% significance level and 10% significance level, respectively. The vertical axis shows the identifiers of the 1,000 experimental images, while the horizontal axis shows the identifiers of each subject. In the graphs, if the pupil dilation is greater than the significance level for the image, it is depicted with the bright color, otherwise with the dark color. From the 1% significance level graph, we can see that pupil dilation depends on each subject. Greater pupil dilations are not uniformly distributed across all subjects. Some subjects barely present them. The bright areas of the 10% significance level cover those of the 1% significance level. However, even at the 10% significance level, there are images for which few subjects present pupil dilation.
The gaze collection tool used in the experiment measures pupil diameter approximately 300 times over 5 seconds. If pupil diameter changes randomly, regardless of the image, pupil dilation should be observed in almost all images. However, it is not the case in
Figure 11. It suggests that there is some factor behind the change in pupil diameter. It has been shown that human pupil size varies with interest [
29]. The pupil diameter is enlarged due to the subjects’ interest in the image’s characteristics. The paper regards the pupil dilation for each image as a user characteristic vector, which represents the interests of each subject.
Figure 12 shows the cosine similarity of interest for every pair of subjects at each significance level. The values on the vertical and horizontal axes represent each subject. Subjects 1 and 5 have high cosine similarity. It indicates that subjects 1 and 5 are often similar in interests, compared to other subjects. On the other hand, at a significance level of 1%, subject 4, whose gaze distribution is similar to those of the other subjects in
Figure 7, has a low cosine similarity with the other subjects. While subject 4 is similar to the other subjects in gaze distribution, the images that interest him are different from those of the other subjects. A similar gaze distribution does not necessarily mean a similarity in interest.
As shown in
Figure 11, when the significance level is set to 10%, subjects 3 and 5 judge most images as interesting. Their cosine similarity is 0.819, indicating a high similarity. On the other hand, when the significance level is set to 1%, there are few images judged as interesting by both subjects 3 and 5. Their cosine similarity is 0.132, indicating that they are no longer similar to each other. For all subjects, when the significance level is changed from 1% to 10%, the cosine similarity increases to a high value. The increase also occurs for subject 7, whose cosine similarity is low with all other subjects.
Indeed, user feature vectors at a significance level of 1% would strictly detect interest, but the strict detection of pupil diameters causes a risk of missing cases where the subject is interested. Actually, as shown in
Figure 11, when the significance level is set to 1%, most subjects find no images interesting. It makes no sense. On the other hand, as
Figure 11 shows, each subject presents individual interests in images when the significance level is set to 10%. It is plausible to adopt a 10% significance level to detect changes in pupil diameter that correspond to interest. Here, we should note that the detection of the significance level at 10% accounts for pupil diameter dilation due to image characteristics, which commonly affects many people.
4.4. A Model for Predicting General Gaze
A general gaze is a distribution of gazes that appear commonly among many people for a given image. Let us build a model to predict it. The study uses the SALICON dataset. Of the 10,000 training images, 1,000 have been used to identify user feature vectors and predict gazes. Using the remaining 9,000 images, a model is trained to predict general gazes. To reduce the model size and training costs, the input images are compressed to one-quarter their original size. As a result, the output images are also one-quarter the size.
The batch size during training is 32. The optimizer is Adam, with the learning rate 1.0-e5. To prevent overfitting, early stopping will take place if the loss on the validation data does not decrease for five consecutive iterations.
Table 5 shows the model’s performance, calculated on validation data from the SALICON dataset. The indices NSS and CC represent the saliency of gaze coordinates and the correlation between the predicted results and the ground truth map, respectively.
Table 5 shows that the model’s performance is comparable to that of SalGAN. It demonstrates sufficient gaze prediction. The results suggest that the model’s parameters adequately represent general gaze characteristics. The study trains a model to predict individual gaze, setting the parameter values as its initial values.
4.5. A Model for Predicting Personal Gaze
The model for predicting individual gaze takes two inputs: the user feature vector and the image used to create the PSM. These inputs produce an output. The model is trained to reduce the output error from the PSM corresponding to the model’s input image. The study makes a set of two inputs and one output to train the model with a total of 8,000 sets of data. The model has the same encoder and decoder structure as the general gaze prediction model, which enables the parameters of a general gaze prediction model to be directly substituted for those of the trained model.
Of the total 8000 data sets, 6400 are used for training and 1600 for validation. As with general gaze prediction models, the input images and PSM are compressed to 1/4 their original size, and the output size is also set to 1/4. The user characteristic vector at a significance level of 10% is labeled as 1. The training data and validation data are divided so that the number of images labeled with 1 is uniform for each subject.
Based on CvT [28], a model that incorporates CNN into a Transformer, the study adopts AdamW as the optimizer, with a weight of 0.05, and a learning rate of 1.0-e6. The model trains each image eight times within one epoch. For this reason, when calculating the average for each batch size, certain image characteristics become more pronounced. Therefore, the batch size is set to 1. As with general gaze prediction models, early stopping is applied if the loss on the validation data does not decrease for five consecutive times.
The Transformer model used in the user encoding mechanism is divided into a Transformer Encoder and a Transformer Decoder. Each of these can have any number of layers. It is necessary to determine the optimal combination of the number of layers for the Transformer Encoder and Transformer Decoder. Furthermore, the number of heads can be changed to account for multi-head attenuation in the Transformer model. The study first fixes the number of heads to 32 and the user feature vector at a significance level of 10% to determine the optimal combination of layers for the Transformer Encoder and Transformer Decoder that minimizes the error of the validation data. If the parameters of the model predicting general gaze are used as initial values, the influence of the mechanism encoding user features gets weak, which makes it difficult to observe differences in the number of Transformer layers. The study does not use the parameters of the model predicting general gaze to examine the number of layers.
Table 6 shows the number of layers and the corresponding loss function output. MSE is used as the loss function. Since the batch size is 1, the values in the table are simply the average MSE for all 1,600 validation data. Experimental results show that the error is minimized when the Transformer Encoder and Decoder have four and nine layers, respectively. The self-attention translates the user feature vector, which is input to the Transformer Encoder. The optimal number of layers differs between the Transformer Encoder and the Transformer Decoder because the more layers there are, the less the user feature vector represents the characteristics of the image features. It is necessary to limit the number of layers in the Transformer Encoder so that the user feature vector can represent the unique relationship of each individual with each pixel in the image.
Next, let us examine the effect of the number of multi-heads. Setting the Transformer Encoder to four layers and the Transformer Decoder to nine layers, the examination changes the number of heads to find the number that minimizes the error. The examination incorporates the parameters of a general gaze model into the learning process. It keeps the number of layers in the user encoding mechanism, as well as the encoder and decoder sections, in their optimal states, allowing us to investigate the effect of pure multi-heads.
Table 7 shows the results of the examination when the significance level for setting user feature vectors is 1% and 10%, and the number of heads for the Transformer Encoder and Transformer Decoder is changed to 32, 64, 128, and 256. The table shows that the error is minimized when the significance level for creating user feature vectors is 10%, and the number of heads is 256. Furthermore, as the number of heads increases, a gradual decrease in error can be observed in most cases. Let us add a case where the significance level is 10%, and the number of heads is 512. The table shows that the error increases when the number of heads is 512. It might occur because the number of heads assigned to each CNN filter in the Encoder section decreases as the number of heads increases. When the number of heads is 512, one head is assigned to each filter in the final layer, which means that the Transformer’s Query, Key, and Value become one-dimensional, making it difficult to represent individual characteristics properly.
The above shows that each element has a unique meaning in the user feature vector at a significance level of 10%. By paying attention to each element, the vector can clarify differences in individual subjects. However, it is interesting to note that the error is smaller at a significance level of 10% than at a significance level of 1%, and that the error increases when we pay attention to too few elements. At a significance level of 10%, attention includes factors common to more subjects. Factors are represented by multiple elements of the vector. If the elements are separated one by one, the vectors cannot fully represent the differences between subjects. It is consistent with the idea that we have better to consider image characteristics common to many people to detect pupil diameter dilation, as explained in
Section 4.3. User feature vectors should be designed with the influence of general image characteristics in mind.
Based on the above examination, the optimal model for predicting an individual’s gaze should use a user characteristic vector obtained at a significance level of 10%, taking into account the influence of general image characteristics. The model should have four layers of Transformer Encoder, nine layers of Transformer Decoder, and 256 heads.
Table 8 shows the performance of the model for predicting personal gaze at optimal parameter settings. Subject 7 has the lowest sAUC of 0.7145, while the average is 0.7758. The model can express the gaze of each subject. Among the subjects, the model has the highest prediction for subjects 1 and 6.
Figure 13 shows an example output. The top row shows the input image, the middle row shows the model prediction results, and the bottom row shows the saliency map obtained from the subject’s gaze. Below the saliency map are the loss values. It can be seen that the model output tracks the differences in the position and spread of the saliency map for each subject.