원시데이터 수집 시스템
선정목록으로

Predicting Emotion From Color Present in Images and Video Excerpts by Machine Learning

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. A. Wędołowska — Faculty of Electronics, Telecommunications and Informatics, Gdańsk University of Technology, Gdańsk, Poland
  2. Dawid Weber — Department of Multimedia Systems, Faculty of Electronics, Telecommunications and Informatics, Gdańsk University of Technology, Gdańsk, Poland
  3. Boz̊ena Kostek — Audio Acoustics Laboratory, Faculty of Electronics, Telecommunications, Informatics, Gdańsk University of Technology, Gdańsk, Poland
DOI
10.1109/access.2023.3289713
저널
IEEE Access
발행년도
2023
발행기관
Institute of Electrical and Electronics Engineers
피인용수
7
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2023.3289713
토픽
Color Science and Applications
OpenAlex ID
W4382138577

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

This work aims at predicting emotion based on the colors present in images and video excerpts using a machine-learning approach.The purpose of this paper is threefold: (a) to develop a machine-learning algorithm that classifies emotions based on the color present in an image, (b) to select the best-performing algorithm from the first phase and apply it to film excerpt emotion analysis based on colors, (c) to design an online survey to check the accuracy of the annotations of the collected film data.In the first, three approaches to color extraction are tested, namely clustering colors into a palette of predefined colors, assigning colors to the RYB (Red, Yellow, Blue) model, and extracting a histogram of colors present in an image.This is based on image datasets containing color and emotion annotations.Classification is conducted using several algorithms, both deep learning and baseline artificial intelligence algorithms.The obtained results, under different configurations of parameters and training sets, are then presented.In the second part, the bestperforming algorithm from the first phase is applied to film excerpt emotion analysis based on colors.This is followed by the third part, which is an online survey created to check the accuracy of the algorithm's annotations to the collected film data by the questionnaire respondents.Further, a discussion of the results achieved is presented.Conclusions contain a summary of the results and further direction for improving the performance of the created algorithm.

본문 63,314자

본문 펼치기
This work aims at predicting emotion based on the colors present in images and video excerpts using a machine-learning approach. The purpose of this paper is threefold: (a) to develop a machine-learning algorithm that classifies emotions based on the color present in an image, (b) to select the best-performing algorithm from the first phase and apply it to film excerpt emotion analysis based on colors, (c) to design an online survey to check the accuracy of the annotations of the collected film data. In the first, three approaches to color extraction are tested, namely clustering colors into a palette of predefined colors, assigning colors to the RYB (Red, Yellow, Blue) model, and extracting a histogram of colors present in an image. This is based on image datasets containing color and emotion annotations. Classification is conducted using several algorithms, both deep learning and baseline artificial intelligence algorithms. The obtained results, under different configurations of parameters and training sets, are then presented. In the second part, the best-performing algorithm from the first phase is applied to film excerpt emotion analysis based on colors. This is followed by the third part, which is an online survey created to check the accuracy of the algorithm's annotations to the collected film data by the questionnaire respondents. Further, a discussion of the results achieved is presented. Conclusions contain a summary of the results and further direction for improving the performance of the created algorithm.INDEX TERMS Color, emotion, machine learning, qualitative research, survey appraisal. I. INTRODUCTION Many factors affect human emotions when viewing images or watching films, one of which is the colors present in a scene. The work aims to develop a framework for predicting emotions based on colors in images, photography artwork, and film excerpts employing machine learning. Even though emotion and cognition, as well as predicting emotions by machine learning, may be treated as separate areas, when they interact, all these domains can benefit. Moreover, cognition understood as memory, attention, language, problem-solving, and reasoning processes, has all these factors in common with state-of-the-art machine learning algorithms [1]. I. INTRODUCTION There are a variety of definitions of emotion, as its derivation depends on the application field. The lack of an explicit the cause of emotional arousal is easier to recognize than what measures should be employed to label it. Even more challenging is how to evaluate emotional states. This also concerns affective analysis, in which sensory signals should be measured and considered in the feedback loop regarding the activity performed [4]. Moreover, another challenge is to map user experience based on emotion recognition and then adapt it to the current emotional state in an affective feedback loop [5]. I. INTRODUCTION Artists try to arouse emotions in the viewer by using a mixture of many elements, color being one of them. After popularizing color films, screenwriters began using the medium to give viewers additional information about the story they wanted to tell [6]. Recognizing what emotions a scene in a film should evoke is a complicated process and, again, depends on many factors, including color. The color scheme of an environment refers significantly to the mood of an entire scene and, therefore, the emotions it is trying to evoke. I. INTRODUCTION The effect of colors on emotions is a topic that many researchers have explored, so it is worthwhile to look at recent solutions that aim to identify and predict emotions based on colors. These works concern abstract images [7], Iran-Islamic paintings [8], collecting images for exploration [9], creating an emotional movie database, psychophysiological assessing evoked emotions [10], employing, and analyzing human emotion changes quantitatively over time [11]. One interesting work is related to classifying emotions based on one feature only, i.e., a histogram with the Optimized RUSboosted Tree (CORT). The robustness of the CORT method was validated on three image datasets, and the method proved to be better than state-of-the-art prediction results [12]. I. INTRODUCTION Baveye et al.'s work refers to affective computing based on video content analysis [13]. Their work provides an overview of video databases used in movie content analysis, showing an accuracy of emotion recognition in the range of approx. 41% to 64%, depending on the dataset, number of annotators, emotion model, and method used. It also presents examples of measures related to, e.g., violence detection. Values of accuracy or agreement may be as low as 52.63% or as high as 85.5%. It should, however, be noted that a direct comparison between studies is difficult, as they differ in methods, emotion models, datasets, annotation quality, etc. I. INTRODUCTION Wei et al. proposed a key frame-based extraction algorithm based on affective saliency estimation [14]. Key frames were extracted to avoid emotion-independent frames biasing the recognition results. It should be noted that this phase included object and semantic features from pre-trained ResNet-101 [15] and DeepSentiBank [16] models and combined them [14]. The emotion recognition was based on Support Vector Machines (SVM), Random Forests (RF), and Convolutional Neural Networks (CNN), as well as a hybrid fusion method proposed by the authors. For classification, six labels of emotions (anger, disgust, fear, joy, sadness, and surprise) were used. Experiments were performed on two datasets (Ekman-6 and VideoEmotion-8) with an average recognition for the fusion methods equaling 59.51% and 52.85%, respectively [14]. I. INTRODUCTION Another approach to Video Affective Content Analysis (VACA), i.e., automatic prediction of the emotional response of the viewers to a video, was proposed by Dudzik et al. [17]. They collected a crowd-sourced-based dataset called Mementos, which contains detailed information about viewers' responses to a series of music videos. This dataset includes descriptions of emotions of the watched videos and free-text descriptions of memories that were triggered while watching them. Two models were explored, i.e., the Early Fusion model employing feature vector containing memory-, visual-, and audio-based parameters fed to a Support Vector Regressor (SVR), and the Late Fusion approach with two separate SVRs for predictions using audio and visual features along with a Random Forest Regressor employing memory descriptions. The first experiment performed by these researchers was based on training the two proposed models with only memory descriptions. In contrast, the second experiment used different sources for training and test the models. For each experiment, the final predictions were for pleasure, arousal, and dominance. For that purpose, the R 2 (variance) score was calculated. It was found that an average value of R 2 for audiovisual tracks combined with memories has a greater value for each label (pleasure, arousal, and dominance). In conclusion, these authors showed that analyzing viewers' responses provided additional context for personalizing prediction in VACA, independent of the fusion strategy [17]. I. INTRODUCTION Chua et al. presented another approach to emotion prediction from music and video [18]. For this purpose, the researchers prepared a new dataset called MuVi, which is available in the public domain. The MuVi dataset consists of music videos in three modalities: audiovisual (original music videos), music-only, and visual (muted video only). The annotations were taken from the extended version of the Geneva Emotional Music Scale (GEMS-25 and GEMS-28). Moreover, there was additional annotation for the dataset in the arousal and valence space. Also, for GEMS annotations and arousal/valence, a contingency Chi-square statistical test was performed to check whether the frequency distribution of the emotion labels is significantly different for media stimuli presented in different modalities. For each media item, a set of audio and video features windowed over 500 ms without overlapping was extracted. The OpenSmile library extracted audio features, including MFCCs, pitch, spectral, zero-crossing rate, etc. [19]. For video features, six types of visual features were used, e.g., color, lighting key, facial expression, scene, and objects. The last three features were extracted using deep neural networks: a pre-trained model of VGG19, ResNet50, and Yolov5. For classification, multimodal architectures based on a unimodal architecture were used; all models were based on LSTM (Long Short-Term Memory) networks. Three stages of neural network models were proposed: early fusion based on two separate inputs 66358 VOLUME 11, 2023 Authorized licensed use limited to the terms of the applicable license agreement with IEEE. Restrictions apply. I. INTRODUCTION of audio and visual features, late fusion with a fully connected layer for prediction, and finally, PAIR (Predictive models Augmented with Isolated modality Ratings) with a pre-trained LSTM model and fine-tuning the weights of the multimodal audiovisual modality. The RMSE (Root Mean Squared Error) and CCC (Concordance Correlation Coefficient), i.e., their mean and standard deviation values, were calculated. For arousal, the best score of CCC was achieved only for the music modality, i.e., 0.4062 ± 0.32 and for valence, the best score of CCC was achieved on the visual modality, i.e., 0.3115 ± 0.32 [18]. Muszynski et al. proposed emotion data description on the (−1 to 1) range in the Valence/Arousal space [20]. For this purpose, the Continuous LIRIS-ACCEDE dataset, which contains 442 minutes of film fragments, was used. The machine learning models used audio-video parameters, high-level lexical parameters of text, and emotion annotations from film excerpts. Audio-video parameters were extracted with the openSMILE tool, and then the RelieF algorithm was used to reduce the openSMILE features to 100 audio and 100 video parameters. 63 text features were prepared with Natural Language Toolkit. In addition, six features related to aesthetics were extracted. The LSTM network was used as the primary deep-learning model for classification. Then the LSTM accuracy was compared to the SVM and DBN (Deep Belief Network) models. The MSE values were calculated for each model, including for audio and video. The LSTM network achieved 0.045 for A-MES and 0.057 for V-MSEs [20]. I. INTRODUCTION Another proposal for using audio and video was described in Wang et al.'s work [21]. 31 audio and three visual features based on the MediaEval2017 dataset were used, described by arousal and valence values in the [-1 to 1] range. For classification, the Multimodal Regression Bayesian Network (MMRBN) was used and then compared to other methods. First, single RBN models were trained using audiovisual features. This was followed by stacking them into the form of two networks. The results of the MMRBN were compared to other methods used in the MediaEval task within the same conditions. The proposed MMDRBN showed relatively good performance on three datasets. Specifically, on the MediaE-val2015 dataset, the accuracy was 44 [21]. I. INTRODUCTION The present work aims to develop and apply machine learning algorithms that predict emotions based on the colors present in images and film excerpts. The structure of this work is threefold, as presented in Figure 1. The starting point is to test the accuracy of the algorithms in extracting color from images. Three approaches are tested, namely clustering colors into a palette of predefined colors, assigning colors to the RYB (Red, Yellow, Blue) model, and extracting a histogram of colors present in an image. For this purpose, datasets containing color and emotion annotations are employed. Four convolutional neural networks (CNNs), namely VGG16, VGG19, ResNet50, and DenseNet201, three types of baseline classifiers (logistic regression, decision tree, and random forest), as well as a recurrent neural network with an LSTM (Long Short-Term Memory) layer (keras.applications), were adopted for this study. The performance of the algorithms used is examined. The best-performing algorithm is then employed for predicting emotion in film excerpts according to the color extraction schemes tested on images. I. INTRODUCTION Further, a survey is constructed to see to what degree the algorithm prediction agrees with the respondents' annotations. This is followed by a discussion of the results obtained and overall conclusions from the conducted experiments. Finally, possibilities for developing the framework proposed toward its more robust applicability are outlined. II. EMOTIONS VS COLOR ANALYSIS A. COLOR PERCEPTION Color perception is possible through electromagnetic waves that are reflected, transmitted, or emitted by an object. Sensitivity to the length of these wavelengths makes it possible to distinguish colors. Human vision can see only a narrow range of electromagnetic wavelengths. Humans possess trichromatic vision, meaning that light is perceived through three types of cones located in the retina [22], [23], [24]. Each type of cone is made up of cells sensitive to different wavelengths of light. This results in the human recognition of three primary colors − red, green, and blue. Newton's theory of light states that white light in the visible spectrum is a combination of all other colors. White light can be split into seven primary colors: red, orange, yellow, green, blue, indigo, and violet [22], using a prism. Combining these colors in varying proportions enables humans to discern other colors [25]. It is worth noting, however, that 12% of women can perceive colors with an additional cone (tetrachromacy) [26]. II. EMOTIONS VS COLOR ANALYSIS A. COLOR PERCEPTION Color vision can be described in three perceptual dimensions − hue, saturation, and brightness. Hue is the most distinctive feature as a healthy human eye can distinguish more than 200 colors. Colors that have hue are called chromatic colors. While those that do not are called achromatic. Examples of achromatic colors are white, gray, and the color created when a black surface is illuminated with white light. Chromatic and achromatic colors both have dark and light colors [27]. Of the existing colors, red, green, blue, and yellow are not mixtures of others [28]. The remaining colors (called binary) are combinations of the following pairs: II. EMOTIONS VS COLOR ANALYSIS A. COLOR PERCEPTION • green-yellow and yellow-green colors are mixtures of green and yellow, II. EMOTIONS VS COLOR ANALYSIS A. COLOR PERCEPTION • orange is a mixture of yellow and red, VOLUME 11, 2023 • colors such as magenta or purple are the result of a combination of red and blue, II. EMOTIONS VS COLOR ANALYSIS A. COLOR PERCEPTION • green-blue and blue-green colors are mixtures of green and blue. In contrast to hue, saturation -the perceived purity of color, and brightness -the perceived intensity, as opposed to colorfulness, i.e., the absolute color intensity of a light stimulus, are relatively neglected in color labeling [28]. They are also less frequent in color-emotion-based analysis [29]. In this context, a question arises concerning what features of color are salient and should be used when correlating them with emotion. B. ASSIGNING EMOTION TO COLOR In everyday life, people very often unconsciously connect their emotions with colors. Examples include sayings such as ''black thoughts,'' ''look at/see something through rosecolored/tinted glasses,'' and ''act like a red rag to a bull.'' From these, one can draw simple conclusions about the meanings of colors: black -> sad, pink -> happy, red -> angry. Another use of colors to show emotion is emoticons -sending a message with a red icon tells of aggressive feelings, and in most cases, a green emoticon tells of disgust. B. ASSIGNING EMOTION TO COLOR Takei and Imaizumi examined how the color-emotion association affects perceptual evaluation [30]. Moreover, they considered temporal proximity between color and facial stimuli interacting with these effects. They found that when the background color (yellow or red) corresponded to the given emotion (happiness or anger), it facilitated recognition of facial expressions. However, this effect occurred only when the background color was presented simultaneously with facial stimuli. Another color-emotion association described in the experiments was blue/gray -> sadness; however, it was evaluated as weak [30]. B. ASSIGNING EMOTION TO COLOR It should, however, be remembered that colors do not affect everyone in the same way. The personality and mental state of the subject can affect emotions. In an article by Bleicher, the effects of red and non-red colors in the Holtzman Inkblot Technique (HIT) were studied on five groups of people, namely: healthy, those suffering from neurotic disorders, borderline personality disorder, and acute and chronic schizophrenics [31]. The HIT technique involves testing patients' associations to ink blots [32]. Sets of ink blot cards are selected in HIT, taking into account whether the blot chosen is capable of arousing the subject's perception of detail, space, color, or shadows. The rule of thumb during HIT is to limit the patient to one response for each card. It was noted that people with schizophrenia distinguished themselves from the other groups when comparing responses for colored and black-and-white cards. In most groups, color on the cards resulted in different reactions than for cards without color. People with schizophrenia did not change their answers about emotions when color was introduced into the cards. B. ASSIGNING EMOTION TO COLOR A person's mental state can affect the perception of colors and the emotions that come from them, but it is not the only factor. The culture the person surveyed belongs to plays a massive role in color-emotion associations. For example, in European culture, black is associated with death and mourning, but nowadays, it is also regarded as a color associated with elegance. In China, black is the color of happiness and youth, while in ancient Egypt and India, it was the color of life. In Japan, black signifies mastery, hence the origin of the black belt in martial arts that speaks of the highest rank, while the white belt represents a beginner. Such differences are also associated with red, white, and even blue and violet. B. ASSIGNING EMOTION TO COLOR Park and Guerin performed a series of experiments to prove the difference in color perception across cultures. Most of the results of these analyses supported the hypothesis that different cultures perceive colors differently, with the descriptive words of one palette differing by 93% across cultures [33]. B. ASSIGNING EMOTION TO COLOR Luscher's Psychological Color Test is also visible in the literature on color-emotion perception [34]. The first step in the Lüscher test is to prepare eight color cards. These cards are dark blue, blue-green, orange-red, bright yellow, purple, brown, black, and gray. Each card has a number written on the back. Each card has a meaning, which is analyzed later in the test. Colors are divided into primary (e.g., dark blue) and secondary (e.g., violet). It is necessary to choose a color that, without associations, evokes a positive reaction in the respondent. The test is repeated several times, and the results are grouped to assign the following meanings: favorite colors, the current state of the respondent, character traits not active at this time in life, and colors disliked by the respondent. This test seems complicated; it is, however, frequently used in emotion-color exploration; e.g., Ranjgar employed the Lüscher test to classify eight emotions that are evoked in the observer by Iranian-Islamic abstract paintings [8]. However, several modifications were introduced in the test preparation. The colors in the palette were arranged according to their frequency of occurrence in the image. Since background colors are not insignificant, they can affect the perception of the overall picture. For this reason, Ranjgar approached the problem using two perspectives, looking at the whole image and a portion of it [8]. B. ASSIGNING EMOTION TO COLOR In another study, the use of fuzzy color histograms to study the correlation between the color in an abstract painting and the emotions it evokes was proposed [7]. Ten colors were used to categorize the emotions evoked by an image. The colors selected were black, dark gray, red, brown, yellow, green, blue, cyan, magenta, and white. Eight emotion types were employed to describe the images − amusement, anger, awe, contentment, disgust, excitement, fear, and sadness. An algorithm was created to study the relationship between emotion and color based on two main components − a color vector obtained from the survey data and an emotion vector. The emotion vector, a 10-color category histogram, built employing fuzzy logic, was used to obtain the color vector. Hibadullah confirmed a high correlation between the color black and the feeling of fear [7]. Also, cyan was highly correlated with contentment, yellow with amusement, and blue with disgust. Some colors (brown and green) showed no significant correlation with any emotion from the list. In addition, some emotions were not strongly linked to any colors from the palette (e.g., rage and contentment). The remaining colors and emotions were linked to each other with a significant value of p<0.05 or p<0.01 [7]. B. ASSIGNING EMOTION TO COLOR Liu and Pei used a convolutional neural network and color transfer to colorize images based on user-defined emotions [9]. The algorithm has two paths. One possibility is to upload a reference image along with the target image. From the reference image, the main colors and texture features are extracted. Based on these features, emotion extraction then takes place. Another scenario is to skip the reference image and upload, along with the target image, the word associated with the emotion. Once the emotion is known (either resulting from the image or as annotated input), it is converted into color. This color is then used to change the color scheme of the target image so its color palette matches the emotion previously received. The authors decided not to use color histograms, as they only show the distribution of colors. Instead, they used harmonic models that demonstrate the hue distribution and can determine the relative relationship between colors. Considering the texture present in the image as an additional factor for analysis improved the results. They also showed that image segmentation plays a vital role in extracting the main colors. When a color is segmented, each image unit is treated as a whole, not resulting in scattered units [9]. B. ASSIGNING EMOTION TO COLOR To evaluate the performance of the created method, Liu and Pei designed a model that calculated the emotion evoked by the final image and checked the similarity of this emotion to the input value. Comparing the algorithm's performance with state-of-the-art methods showed much better correspondence between emotions and color when employing seven-color models. This is because for images with multiple colors, three-and five-color models may be insufficient. So, this is one of the important conclusions derived from this study [9]. III. METHOD A. DATA EMPLOYED In the work carried out, it was necessary to prepare a set of images and film excerpts to develop to perform color analysis and automatically assign them to the appropriate emotion classes. In addition, a survey was created to collect respondents' emotion label assignment to the film excerpts, aiming at discovering color-emotion associations. B. IMAGES AND PHOTOGRAPHY SETS The WikiArt emotions dataset is a subset of WikiArt [35] that consists of a collection of more than 150,000 images of artworks in 14 different styles, including modern art, Japanese art, Korean art, and Western Renaissance art. The database contains works by 195 artists, which can be divided into 168 categories (for example, manga, portrait, sculpture, or flower paintings). The emotion subset contains 4,105 artworks from the WikiArt database. These are primarily paintings from 22 categories (for example, realism or impressionism) and four styles − Renaissance art, post-Renaissance art, contemporary art, and custom art. B. IMAGES AND PHOTOGRAPHY SETS The annotations on the collection were made through crowdsourcing − a process involving a large group of people working on a specific task. Each artwork in the database was annotated by a minimum of 10 people. Annotations were made in three scenarios: B. IMAGES AND PHOTOGRAPHY SETS • presentation of only the image (without the title) and B. IMAGES AND PHOTOGRAPHY SETS asking what emotions the image evokes in the viewer; B. IMAGES AND PHOTOGRAPHY SETS • presentation of only the title of the artwork (without the painting) and asking what emotions the title evokes in the viewer; B. IMAGES AND PHOTOGRAPHY SETS • presentation of the entire work of art, the painting with the title, and the question of what emotions the workas a whole -evokes. The annotations of each painting in the database include the following information: the style of the artwork depicted; the category into which the image falls; the name of the artist; the title of the artwork; the year the work originated; the average rating by the respondents; etc. B. IMAGES AND PHOTOGRAPHY SETS An additional dataset analyzed in our work contains images from a collection incorporating three datasets. These are the International Affective Picture System (IAPS), artistic photography searched by keywords in a photo-sharing forum, and a set of abstract images rated against emotions by a group of people. The collections label eight emotions: amusement, anger, awe, contentment, disgust, excitement, fear, and sadness [36]. This dataset was also used by Machajdik and Hanbury [37]. C. IMAGE DATA PREPARATION Pre-processing was required to use the data collected. Operations performed on the images included cleaning data, cropping the image, extracting the dominant color and color palette from the image, clustering the image to the dominant or predefined main colors found in the image, and extracting color information using histograms. C. IMAGE DATA PREPARATION The original annotations in the WikiArt emotions database had emotion ratings after seeing the image, presenting the title itself, and seeing the entire artwork (image and title). There are 20 emotions labeled in the WikiArt database. C. IMAGE DATA PREPARATION The decision on the emotion model or the number of emotions contained in experiments typically constitutes the first step of experiments or while creating a survey [38], [39], [40], [41]. In our study, to build a classifier of satisfactory effectiveness, we propose to map the original emotion assignment into three baseline categories -positive, negative, and neutral, as shown in Table 1. Overall, 1,427 positive, 553 negative, and 1,196 neutral labels were obtained. The difference in the original number of images and the number of images used in the experiments is because 929 images had no tags in the image-only rating category. D. EXTRACTION OF DOMINANT COLORS The ColorThief library was used to extract the dominant color and the palette of the dominant colors in the image. This library has two methods corresponding to [42]: D. EXTRACTION OF DOMINANT COLORS • getColor, which accepts a quality argument affecting the quality of the result. The value of this parameter can be in the range of 1-10, where one means the best quality, but it increases the image analysis time. D. EXTRACTION OF DOMINANT COLORS The method returns a tuple with color values in the (R, G, B) format, D. EXTRACTION OF DOMINANT COLORS • getPalette, which takes a colorCount parameter in addition to the quality argument, specifying how many colors the returned palette should contain. The result of the method is a list of tuples in the same format as for the getColor function. E. CLUSTERING INTO A PALLET OF IMAGE COLORS Clustering, or cluster analysis, allows similar data points to be grouped into clusters. One of the efficient cluster analysis methods is the K-means algorithm, an unsupervised machine-learning method (keras.app). The algorithm requires a predefined number of clusters for it to create. The K-means algorithm from the sklearn.cluster library was used to analyze the clusters in the original image and transform it into an image containing only a certain number of colors. The method takes many parameters, of which one of the most important is n_clusters, specifying the number of clusters to be created. The values returned are associated with labels assigned to each pixel and the coordinates of the centers of the clusters. E. CLUSTERING INTO A PALLET OF IMAGE COLORS An example of the results of the cluster analysis for the three-and five-image clusters is shown in Figure 2. F. CLUSTERING INTO A PREDEFINED COLOR SPACE The previous method describes the clustering of image pixels to the main colors present in the image. This approach transformed each image after clustering into one with a color palette unique to the given image. Another way of clustering is to analyze and assign image pixels to predefined clusters of colors. Clustering into eight colors was chosen according to the RYB color space often used in art. Therefore, the primary colors (red, yellow, and blue), secondary (orange, purple, and green), and black and white, as the ones that augment a spectrum of colors when mixed with the primary colors, were selected. F. CLUSTERING INTO A PREDEFINED COLOR SPACE To perform such a cluster analysis, KNN (K-nearest neighbors), one of the most popular supervised learning methods, was employed [12]. The principle of the algorithm is to find the best match to the test data. The KNN method was implemented using the OpenCV library and the KNearest_create and findNearest methods. An example of the results of clustering into the main predefined color is shown in Figure 3. G. HISTOGRAMS Histograms were used as one of the methods of color extraction. The first step in extracting image features was to cluster up to five clusters using the K-means method described earlier [43]. The information about these clusters was then sent to the process responsible for creating the histogram. This was implemented using NumPy's histogram function, whose parameters are the colors obtained by clustering and the number of rectangles of the histogram. Then the histogram was normalized by dividing it by the sum of all the components. G. HISTOGRAMS The created and normalized histogram was then passed to a function whose task is to extract five parameters of color information and store them in a CSV file. This information is as follows: G. HISTOGRAMS • average value of R (red color), • average value of G (green color), • average value of B (blue color), • color distribution, • variance of brightness, • saturation variance. H. FILM EXCERPTS 30-second-long excerpts of films collected at the Gdansk University of Technology annotated with five different emotions were also employed [44]. These are excerpts from 30 film productions (see Table 2). The annotations were based on surveys of color-emotion associations, the context of the film, and the literature description. The tagged emotions are happiness, fear, excitement, sadness, and aggression, as well as ''none assigned.'' The last case refers to contradictions met while assigning emotion to the film. VOLUME 11, 2023 I. FILM DATA PREPARATION One of the operations required for film-based data was segmentation, which was performed to obtain single frames. Segmentation of the videos from MP4 format into JPG (Joint Photographic Experts Group) format frames was performed using the VideoCapture method from the OpenCV library [45]. I. FILM DATA PREPARATION Since some of the video excerpts contained black frames around the video image, image cropping was applied so the algorithm could remove unwanted areas and focus on the actual colors present in the scene. The image cropping was performed using the OpenCV library and the cv.threshold function. I. FILM DATA PREPARATION The process of cropping images for each video excerpt was as follows: I. FILM DATA PREPARATION • Uploading the selected grayscale frame of the video; • Sending the uploaded image to the thresholding method; • Returning the image cropped by the thresholding method to the dimensions of the created mask; I. FILM DATA PREPARATION • Checking the correctness of the performed thresholding and possibly changing the parameters of the method. If the thresholding for each frame in the analyzed excerpt is performed correctly, then it is performed as follows: I. FILM DATA PREPARATION • uploading the frame, • applying the thresholding function, • saving the image after thresholding. An example of the thresholding operation working on a frame of ''The Godfather'' film is shown in Figure 4. J. SURVEY -COLLECTING FEEDBACK FROM RESPONDENTS The survey aimed to verify the correctness of the emotion annotation on the collected video. It notes the color the user chose as relevant to the emotion felt. J. SURVEY -COLLECTING FEEDBACK FROM RESPONDENTS The survey was created in the form of a web page. The start screen includes instructions for using the questionnaire form, explains the purpose of collecting user responses, and illustrates a sample response to a question. J. SURVEY -COLLECTING FEEDBACK FROM RESPONDENTS The presentation of the operation and handling of the survey is shown in Figure 5 in the form of a use case diagram executed in UML (Unified Modeling Language). J. SURVEY -COLLECTING FEEDBACK FROM RESPONDENTS When entering the survey, the user sees the start page and can begin filling in the survey by clicking the appropriate button − a page with the first question then appears. It explains the purpose of data collection and a sample answer to the survey questions (see Figure 6). At any time, it is possible to return to the main page or an additional tab with more detailed information about the project. J. SURVEY -COLLECTING FEEDBACK FROM RESPONDENTS As explained on the survey's start screen, after pressing ''Start the questionnaire,'' the respondent is taken to a screen where 15 questions are displayed sequentially, each containing three scenes from a randomly selected movie, a place to choose an emotion, and one to choose a color. The emotion selection field is a mandatory single-choice field in the form of a disjoint list. The color selection has a default value set as black, and when the users click on the area, they can select any color stored in hex format. To choose a color, the respondent can use the cursor in the color map, type RGB values into the appropriate fields, or hover the cursor over the image and click to select the appropriate color directly from the image. The view of the selected areas in the survey is presented in Figure 7. J. SURVEY -COLLECTING FEEDBACK FROM RESPONDENTS After answering all the questions, the respondent is taken to a thank you page where there is also a request for further distribution of the survey. J. SURVEY -COLLECTING FEEDBACK FROM RESPONDENTS The database used in the survey is relatively small. It is a single table storing the response ID, the video's name, the emotion, and the color selected by the user. IV. EXPERIMENTS A. ALGORITHMS Several experiments were conducted on available deeplearning models; however, they were modified according to the needs of the study. Their implementation was facilitated by the keras.applications library, which provides deep learning algorithms along with pre-trained weights. Also, three baseline algorithms were implemented for comparison of color-emotion assignment effectiveness. Finally, two types of convolutional neural networks and a deep model consisting of a recurrent neural network augmented with an LSTM (Long Short-Term Memory) layer completed the investigation. IV. EXPERIMENTS A. ALGORITHMS • VGG16 (keras.app) -The VGG16 model with weights transferred was applied to classify three color classes. The weights used were those obtained from training on the imagenet set (Image database). Freezing the weights was performed by setting the trainable parameter to False for all the original model layers. This results in no training of these layers, which speeds up the training time and reduces the resources needed for training. However, four new layers were added to the model, i.e., Flatten, Dropout, and two Dense layers. The activation function of the last layer was softmax. IV. EXPERIMENTS A. ALGORITHMS • VGG19 (keras.app) − The implementation of the VGG19 network proceeded similarly to the VGG16 model − four new layers were added, freezing the weights of the layers already contained in the model. IV. EXPERIMENTS A. ALGORITHMS • ResNet50 (keras.app) − The ResNet50 model was also implemented with the transfer of weights but without freezing the training of the original model layers. Also, as in previous models, weights from the imagenet-based training were used. In the implementation of this model, six new layers were added − GlobalAveragePooling2D, two Dropout layers, and three Dense layers. IV. EXPERIMENTS A. ALGORITHMS • DenseNet201 (keras.app) − In the implementation of the DenseNet201 model, the last original layers were removed in the model development; the initial implementation left the include_top parameter equal to True. For this model, four new layers were added, i.e., Flatten, Dropout, and two Dense layers. In addition, three baseline classifiers were implemented: decision tree, random forest, and logistic regression. IV. EXPERIMENTS A. ALGORITHMS • DecisionTreeClassifier [46] − To create a classifier, the DecisionTreeClassifier class was imported, and the fit and prediction methods were called. To evaluate the model, the accuracy_score method was imported from the sklearn.metrics library. The method used to find the best model parameters was GridSearchCV. The parameters searched were the maximum tree depth, the minimum number of samples needed to split a node, and the minimum number of samples required for a node to be a leaf. IV. EXPERIMENTS A. ALGORITHMS • Random Forest classifier [46] − Random forest was implemented by the RandomForestClassifier class from the sklearn.ensemble library. As in the decision tree implementation, GridSearchCV was used to improve the prediction results. The optimization consisted of finding the best hyperparameters for the number of estimators, the maximum depth of the tree, the minimum number of samples needed to split a node, and the minimum number of samples required for a node to be a leaf. IV. EXPERIMENTS A. ALGORITHMS • Logistic regression − Logistic regression was implemented by the LogisticRegression class from the sklearn.linear_model library. To improve the performance of the model, the L1 (performing a linear transformation on the weights) and L2 (adding a squared cost function to your loss function) regularization methods were used [47]. IV. EXPERIMENTS A. ALGORITHMS • CNN (convolutional neural network) model − As part of the experiments on image datasets, 1-dimensional and 2-dimensional CNNs were created. The algorithms were implemented using the Keras library. Convolutional networks intended for 1-dimensional data with one pooling layer using the L2 regularization method and a network for image data containing two pooling layers were further explored. IV. EXPERIMENTS A. ALGORITHMS • Recurrent model − It was also decided to use a recurrent approach to train the classification on the video excerpts. The scheme adopted in this case was feature extraction from the video frames, performed with the VGG16 model, and then the resulting information was used to train the model with the LSTM (Long Short-Term Memory) layer. The layers of the network with a recurrent layer are shown in Table 3. The activation functions for the Dense layers were the ReLu and Softmax functions. V. RESULTS A series of experiments were conducted on the algorithms described earlier. To obtain the highest accuracy, the training parameters were modified, followed by an analysis of the change in the score after transforming the training method. V. RESULTS The parameters modified during the experiments were: V. RESULTS • learning speed, • batch size (batch), • optimizer, • use (or not) weight transfer. V. RESULTS To analyze the results and compare the classification performed by the algorithms, four basic metrics were used: accuracy, precision, sensitivity, and F1 score measure [48]. V. RESULTS The experiments were divided into several stages based on the databases on which they were performed. The first was the WikiArt emotions database. As shown in Table 1 • image clustering to a palette of the five main colors in the image; V. RESULTS • image clustering to eight predefined colors (RYB model). Uploading the data to the input of the algorithms was carried out using the ImageDataGenerator method, which retrieves the data from the specified folder while performing the defined data augmentation. The parameters for augmentation used during the data download are: V. RESULTS • shear range, • zoom range, • horizontal image rotation, • rotation range, • width change range, • height change range. The results obtained were not overly satisfying. Nonetheless, here are the best results. For the VGG16 and VGG19 models, the average accuracy was approx. 64% for the threeand five-color classes, with an average F1 score of 41.46%. For the RYB-based predefined classes, VGG16 and VGG19 returned an average accuracy of approx. 61%. The results for DenseNet201 and ResNet50 were even less satisfying. Moreover, the other calculated measures were not satisfactory. However, when analyzing the results of precision and sensitivity, a relationship between them was observed − these measures have smaller values for classes with fewer objects. V. RESULTS When the classification process was repeated for the original images from WikiArt (without any processing), the average accuracy increased by about 3 percentage points, with the highest accuracy of 67.09 for VGG19. This may be due to the larger amount of data used for training and testing. V. RESULTS Deep learning network training was also conducted on the artistic photography dataset that contained images grouped into one of three categories: positive emotions (class no. 1), negative emotions (class no. 2), and neutral (class no. 3). The distribution of data into classes for the test set was as follows: V. RESULTS • class 1: 61 images, • class 2: 80 images, • class 3: 22 images. The results of training the neural networks on the original images of the database of photographs and abstract images were comparable to those obtained on the WikiArt emotions. The average accuracy for VGG16 and VGG19 was approx. 64%, whereas the DenseNet201 and ResNet50 models decreased to about 50%. When color scheme division was performed, the results decreased to about 60% for the VGG models. V. RESULTS Images from a database of photographs and abstract images and images from the WikiArt emotions database were used to train and test the baseline algorithms and CNN networks created with the Keras library. The results were even worse − the algorithms stopped learning at accuracy values of about 50%. V. RESULTS Finally, the most interesting part of the exploration was devoted to color classification on film excerpts. To analyze the colors and their change throughout the video, the algorithm on which the classification experiments for the video fragments were performed included a recursive layer. V. RESULTS Three experiments were conducted to test the effect of the training data on the algorithm's performance: V. RESULTS • the network was trained on the original frames with different training parameters; V. RESULTS • the network was trained on the original frames with a different division of the data into training and test sets; V. RESULTS • the network was trained on frames after the clustering operations defined earlier. Due to the small amount of film excerpt data and insufficient variety of their emotion denotations, a simplified division of emotions into categories was used. Thus, emotions were divided into positive (happiness, excitement) and negative (fear, sadness, aggression), resulting in a binary division. Three training sets of video excerpts were created according to the class assignment, as shown in Table 4. First, training and prediction were performed with different sets of hyperparameters. The results of the experiments with three sets of hyperparameters are shown in Table 5. In addition, the classification results depending on the data division into training and test sets based on three collection sets are contained in Table 6. Highlighted values in Tables 5 and 6 refer to the best scores. The above experiments were conducted on the original film frames without performing clustering operations. Further, two types of clustering were performed on the images -to the main colors of the image (palettes of three and five colors) and clustering to eight colors (RYB model). The experiments were carried out on test set no. 1, and the results are shown in Table 7. Note that the highlighted value refers to the best score. V. RESULTS Data obtained from the color histogram were also used to analyze the film data. The mean values of the R, G, and B components, along with the color distribution, brightness variance, and saturation variance, were trained using the following algorithms: decision tree, random forest, logistic regression, and convolutional network (CNN). The prediction results on dataset no. 1 are shown in Table 8. The best score is indicated in bold font. However, the model that achieves the best results on film data is RNN (augmented with LSTM) trained after clustering the images into RYB model-based colors and binary emotion division. With such a variant, the maximum accuracy reached the optimum and was higher than 95%. Plots of the accuracy values and the loss function during training for this model are shown in Figure 8. V. RESULTS Due to the high result obtained for the RNN model on the binary prediction of the film excerpts, training was also performed on splitting the data into the original five emotions. The results of the classification are shown in Table 9. As seen in Table 9, the results are not satisfactory apart from those obtained for happiness (indicated in bold font). VI. DISCUSSION The experiments were first performed on WikiArt emotions databases and a collection of photographs and abstract images. Both datasets were divided into three categories of emotions: positive, neutral, and negative. A problem of class inequality was observed in both databases − the WikiArt emotions set contained a relatively small number of images evoking negative emotions. In contrast, the photography and abstract images database lacked images in the neutral category. The image databases were used to test both baseline and deep-learning algorithms. Based on the results obtained, it can be said that both VGG models outperformed the baseline and more complex models. The deep nature of DenseNet and ResNet makes them more prone to overlearning, especially with such a small amount of data as used in the experiments. However, it is difficult to compare the two VGG models -the results of their prediction are similar to each other. VI. DISCUSSION A series of experiments were conducted to train algorithms on film data. Due to the problem of contradiction in data labeling, the film set was divided into two categories of emotions -positive and negative. The average accuracy value received from different dataset collections, contained in Table 4, is 67.66%, as shown in Table 6. VI. DISCUSSION A further experiment was performed to reduce the amount of information in the image and focus only on the colors and their distribution in the scene. Clustering methods were used for this, and the results presented in Table 5 show that using each of the implemented clustering variants improves the accuracy of emotion prediction. Clustering the images into the RYB color model, or a palette of colors, improved the algorithm's ability to classify emotions. An average accuracy of over 81% was achieved when grouping images into a palette of three colors. Clustering into RYB model-based colors, compared with the original video frames, raised the accuracy value by 20%, which translates into equally high precision, sensitivity, and F1 score values. VI. DISCUSSION Further reducing the amount of information used in training was done using only the color values obtained from histogram-based processing. During the training, only information describing the colors and not their location in an image is given to the algorithm's input. As a result, baseline machine learning algorithms achieved results of less than 60% before the optimization operation. After optimization, two algorithms, i.e., decision tree and random forest, increased the prediction accuracy by about 8%. Using CNN for training on histogram color data resulted in better results. Compared to the machine learning algorithms, the increase in accuracy was more than 10% (as shown in Table 8). The final experiment consisting of training and testing with the division of film data into five emotions achieved satisfactory results for happiness and the least for aggression (Table 9). A. SURVEY RESULTS The database of films used had color and emotion designations. To check the accuracy of the initial (originally labeled) assignments, a survey was created with random questions about 15 of 30 films. Each question includes three scenes from a given film excerpt and a question about the emotions these scenes evoke in the respondent. In addition, there is a question about identifying the color whose presence in the scene supports the feeling of that emotion. A. SURVEY RESULTS The questionnaire was completed by 45 people. Tables 10-14 compare the initial labels of the set of films with the tags obtained from the survey results. The tables are divided by the initial emotion assigned to the films. In Tables 10-14, the emotion that received the highest number of votes in the survey conducted is given in the TABLE 11. Comparison of initial labels with labels resulting from the survey when the initial emotion is excitement. TABLE 12. Comparison of initial labels with labels resulting from the survey when the initial emotion is happiness. TABLE 12. columns with the survey results. In cases where two emotions received the same number of votes, both were entered in the table. For example, regarding the ''Joker'' movie, seven respondents voted for the emotion ''Excitement,'' and the other seven people for ''Happiness.' ' TABLE 13. Comparison of initial labels with labels resulting from the survey when the initial emotion is sadness. TABLE 14. Comparison of initial labels with labels resulting from the survey when the initial emotion is anger. TABLE 14. Of the 27 films initially labeled, 18 were tagged the same way by the respondents, which represents 66.6% correctness with the original labels. However, there are cases where respondents voted for two opposite emotions in parallel (for example, fear and excitement in ''Pirates of the Caribbean''). TABLE 14. Nine film excerpts were classified differently by respondents than according to the original labels; for example, ''Gladiator,'' according to the users, evokes the emotion of fear or sadness, even though the original label is excitement. The highest ambiguity in the tags can be seen in Table 14, which shows the results of excerpts where the original label is anger. Only one of the five films with this label was correctly classified as a scene that arouses the emotion of aggression in the viewer. TABLE 14. The concordance of the emotions selected by the respondents compared to the original annotations is higher than the accordance of the colors chosen. For example, in Table 10, ''Maleficent'' and ''Into the Wild'' are the only ones of the six where respondents chose green as the color influencing the emotion. However, even in this example, this color was chosen equally to black in the case of the ''Maleficent'' movie. The highest agreement of annotations of initial colors and those collected through the survey was found with purple and red. Figures 9 and 10 show sample frames from the film to collect respondents' answers regarding the color present in the scene that influenced their chosen emotion. TABLE 14. The film database shows a direct color-emotion relationship that does not always agree with the respondents' responses. For example, in the original annotations, scenes in which the presence of red predominated have emotion labels of ''aggression.'' In reality, only one in five films with this emotion was classified this way by the respondents On the contrary, films originally classified for the emotions of fear and happiness were labeled the same way by the respondents. These results have a logical explanation − scenes intended to induce fear or happiness usually straightforwardly show this, while emotions such as sadness can take many different forms. Assigning a color to a particular emotion may also not always be correct − for example, in the film ''The Shining,'' the use of large amounts of red was to evoke fear. Even if the very source of the color red resulted from aggression in the film, it should instill fear in the viewer. VII. CONCLUSION Based on the analysis of the results obtained on WikiArt, it can be concluded that reducing the amount of information in the image solely to the color and its location does not significantly change the classification results. Furthermore, none of the three clustering variants improved the algorithm's performance. Moreover, when observing the training of even the best algorithms, instability in training is to be noticed, which may be caused by the limited amount of data. When referring to the literature, the average accuracy of image and emotion classification can vary depending on several factors, such as the type of images used for the classification task, the emotions being predicted, the method used for annotation, the algorithms used for classification, and the evaluation measure employed. Thus, a direct comparison is not possible. However, in general, the accuracy of image and emotion classification can range from around 50% to 70%, or higher, depending on the complexity of the task and the quality of the data. The accuracy of these models can be improved by using more diverse and larger datasets. Overall, the results achieved in the study are in accordance with the state-of-the-art. VII. CONCLUSION Training on film excerpts data, as presented in the ''Results'' section, differs from experiments on image databases. A division into two categories of emotions was required here, and other simplified approaches were also used due to the limited amount of data. In contrast to training on image datasets, reducing the amount of information in the video to colors and their location through clustering improved the performance of the algorithms regardless of the type of color clustering scheme. However, clustering to the RYB model-based colors improved the results twice as much as clustering to the image color palette. Such good results may be due to the close relationship noted in Tables 10-14 between the color present in the video excerpt and the tagged emotion. VII. CONCLUSION Understanding how people react to movie excerpts required the creation of an online survey to collect the emotions aroused by scenes in a movie. The results of this survey provided a perspective on looking at emotions and colors. However, the problem of the subjectivity of viewers' emotions is visible. Indeed, it can be solved by increasing the number of people surveyed. Also, a more comprehensive range of viewers' labeling of emotions in film excerpts may help with the contradiction that may exist due to the small sample of survey participants. Another solution is to use movies from less popular productions − a lack of knowledge of the context of the film excerpt may result in the viewer's labeled emotions being the result of only the scene watched. In such a case, observation of the dominant color may also be more focused, resulting in a higher correlation between the color and the emotion assigned. VII. CONCLUSION The above summary may be checked against the literature findings. Modern neuropsychology defines 'color cognition' as a field of science encompassing perception and memory, so there is a clear link between mental representations and the knowledge/memory of objects [49]. Moreover, the basis of color perception is due to Isaac Newton, who, in the 17th century, explained that light is colorless and ''the waves themselves are not colored.'' According to that statement, color is the interpretation of physical phenomena by the human brain based on complex processes, i.e., color has to be perceived inside our brains. Indeed, color perception is of high interest to psychologists, especially in terms of emotion-and behavior-evoking [50]. In a 2020 study, several thousand people responded to a survey that associated color with emotions. They assigned black to sadness, white to relief, red to love, green to contentment, brown to disgust, etc. It should, however, be pointed out that even though 68% of respondents associate red with love, only 36% link brown to disgust. Moreover, some relevant correlations were found by González-Martín et al. at the level of color and emotion, such as the relationships between black and fear. Some colors, i.e., red, violet, and blue, correlate highly with excitement compared to other color-emotion combinations [51]. This shows that one should not expect a uniform association between color and emotion, notwithstanding some colors may have a universal identity. Hence, we expect an adequate recognition of color-emotion association by machine learning when this process is not universal for people, depending on culture, background, age, personality, color preference, etc. VII. CONCLUSION Also, a very interesting notion was brought up in a paper by González-Martín et al. indicating that color is not static when evoking the observer's emotion [51], so this is another factor in emotion evaluation, especially in the case of video. VII. CONCLUSION To summarize, there are several constraints related to our study; some of them are due to the space limit. Among them, insufficient data concerning video annotated excerpts seems the most important one. An answer to this may be to assign emotions to movie excerpts through crowdsourcing. This way, it would be possible to better understand how a movie fragment elicits emotions in people. Moreover, such a manner of data collection would be more reliable in the context of deep model training without concerns that the data would be imbalanced, or the model would be poorly overfitted. Another factor that might influence the outcome of our study is related to emotion convention description, as not all sentiment expressions contained in a prescribed dictionary have the same meaning for all people. So, another task for crowdsourcing could be finding the most frequent sentiment expressions. At the same time, the relationship between color and sentiment may differ between the annotators. However, this may be solved in a similar way by applying an Internet-based survey. Last but not least, there is a plethora of approaches to color analysis in movies. This is one of the future directions that will be pursued, especially as image color analysis translated to the color contained in a video may be problematic. This could be considered a long-term aim. We also believe that the outcome of the crowdsourcing sentiment assignment may identify additional challenges that are related not only to our work, but to more general research. VII. CONCLUSION Finally, when referring to the applicability of such works, studies of the relationship between color and emotion in video excerpts can be used in many areas. The emotions recognized can support both automatic prompts in advertising and marketing, as well as recommendation systems in the context of matching the user's expected emotions. However, this needs large, annotated datasets, even though social crowdsourcing annotations often result in contradictions. VII. CONCLUSION ALEKSANDRA WĘDOŁOWSKA received the B.Sc.Eng. degree, in 2021, and the M.Sc. degree in biomedical engineering with a specialization in artificial intelligence, in 2022. She was a Student of the Faculty of Electronics, Telecommunications and Informatics, Gdańsk University of Technology. She created an application that aimed to help Alzheimer's and dementia patients during the B.Sc.Eng. degree. The thesis was about developing a machine-learning algorithm for classifying emotions based on colors used in movie fragments. Her main research interests include computer vision, creating mobile applications, and connecting artificial intelligence technologies with everyday activities. VII. CONCLUSION DAWID WEBER was born in Toruń, in 1992. He received the degree from the Department of Multimedia Systems, Faculty of Electronics, Telecommunications and Informatics, in 2017. The subject of the engineering thesis concerned the guitar sound effects processor applied to a mobile device, while the M.Sc. thesis was devoted to music band recording using various microphone techniques, along with a subjective assessment of the resulting sound. His research interests include using machine learning techniques and algorithms to predict emotions from music and films. VII. CONCLUSION BOŻENA KOSTEK (Senior Member, IEEE) is currently a Professor with the Faculty of Electronics, Telecommunications and Informatics, Gdańsk University of Technology (GUT), Poland. She is also a Corresponding Member of the Polish Academy of Sciences. She has supervised more than 300 master's and engineering theses and 21 Ph.D. theses. She has also led a number of research projects. She has presented more than 600 scientific papers for journals and at international conferences. She has also published three books related to multimedia applications. Her main research interests include acoustics, psychoacoustics, multimedia, music information retrieval, cognitive and behavioral processing, as well as applications of machine learning to the mentioned domains. She is a fellow of the Audio Engineering Society and the Acoustical Society of America. She was a recipient of many prestigious awards for research, including those of the Prime Minister of Poland (twice), the Ministry of Science, and the Polish Academy of Sciences. She was the Editor-in-Chief of the Journal of the Audio Engineering Society as well as an Associate Editor of IEEE/ACM TRANSACTIONS ON AUDIO, SPEECH, AND LANGUAGE PROCESSING and the Guest Editor of JASA.

섹션 본문 114문단 · 60,482자

(제목 없음)

1This work aims at predicting emotion based on the colors present in images and video excerpts using a machine-learning approach. The purpose of this paper is threefold: (a) to develop a machine-learning algorithm that classifies emotions based on the color present in an image, (b) to select the best-performing algorithm from the first phase and apply it to film excerpt emotion analysis based on colors, (c) to design an online survey to check the accuracy of the annotations of the collected film data. In the first, three approaches to color extraction are tested, namely clustering colors into a palette of predefined colors, assigning colors to the RYB (Red, Yellow, Blue) model, and extracting a histogram of colors present in an image. This is based on image datasets containing color and emotion annotations. Classification is conducted using several algorithms, both deep learning and baseline artificial intelligence algorithms. The obtained results, under different configurations of parameters and training sets, are then presented. In the second part, the best-performing algorithm from the first phase is applied to film excerpt emotion analysis based on colors. This is followed by the third part, which is an online survey created to check the accuracy of the algorithm's annotations to the collected film data by the questionnaire respondents. Further, a discussion of the results achieved is presented. Conclusions contain a summary of the results and further direction for improving the performance of the created algorithm.INDEX TERMS Color, emotion, machine learning, qualitative research, survey appraisal.

I. INTRODUCTION

2Many factors affect human emotions when viewing images or watching films, one of which is the colors present in a scene. The work aims to develop a framework for predicting emotions based on colors in images, photography artwork, and film excerpts employing machine learning. Even though emotion and cognition, as well as predicting emotions by machine learning, may be treated as separate areas, when they interact, all these domains can benefit. Moreover, cognition understood as memory, attention, language, problem-solving, and reasoning processes, has all these factors in common with state-of-the-art machine learning algorithms [1].

3There are a variety of definitions of emotion, as its derivation depends on the application field. The lack of an explicit the cause of emotional arousal is easier to recognize than what measures should be employed to label it. Even more challenging is how to evaluate emotional states. This also concerns affective analysis, in which sensory signals should be measured and considered in the feedback loop regarding the activity performed [4]. Moreover, another challenge is to map user experience based on emotion recognition and then adapt it to the current emotional state in an affective feedback loop [5].

4Artists try to arouse emotions in the viewer by using a mixture of many elements, color being one of them. After popularizing color films, screenwriters began using the medium to give viewers additional information about the story they wanted to tell [6]. Recognizing what emotions a scene in a film should evoke is a complicated process and, again, depends on many factors, including color. The color scheme of an environment refers significantly to the mood of an entire scene and, therefore, the emotions it is trying to evoke.

5The effect of colors on emotions is a topic that many researchers have explored, so it is worthwhile to look at recent solutions that aim to identify and predict emotions based on colors. These works concern abstract images [7], Iran-Islamic paintings [8], collecting images for exploration [9], creating an emotional movie database, psychophysiological assessing evoked emotions [10], employing, and analyzing human emotion changes quantitatively over time [11]. One interesting work is related to classifying emotions based on one feature only, i.e., a histogram with the Optimized RUSboosted Tree (CORT). The robustness of the CORT method was validated on three image datasets, and the method proved to be better than state-of-the-art prediction results [12].

6Baveye et al.'s work refers to affective computing based on video content analysis [13]. Their work provides an overview of video databases used in movie content analysis, showing an accuracy of emotion recognition in the range of approx. 41% to 64%, depending on the dataset, number of annotators, emotion model, and method used. It also presents examples of measures related to, e.g., violence detection. Values of accuracy or agreement may be as low as 52.63% or as high as 85.5%. It should, however, be noted that a direct comparison between studies is difficult, as they differ in methods, emotion models, datasets, annotation quality, etc.

7Wei et al. proposed a key frame-based extraction algorithm based on affective saliency estimation [14]. Key frames were extracted to avoid emotion-independent frames biasing the recognition results. It should be noted that this phase included object and semantic features from pre-trained ResNet-101 [15] and DeepSentiBank [16] models and combined them [14]. The emotion recognition was based on Support Vector Machines (SVM), Random Forests (RF), and Convolutional Neural Networks (CNN), as well as a hybrid fusion method proposed by the authors. For classification, six labels of emotions (anger, disgust, fear, joy, sadness, and surprise) were used. Experiments were performed on two datasets (Ekman-6 and VideoEmotion-8) with an average recognition for the fusion methods equaling 59.51% and 52.85%, respectively [14].

8Another approach to Video Affective Content Analysis (VACA), i.e., automatic prediction of the emotional response of the viewers to a video, was proposed by Dudzik et al. [17]. They collected a crowd-sourced-based dataset called Mementos, which contains detailed information about viewers' responses to a series of music videos. This dataset includes descriptions of emotions of the watched videos and free-text descriptions of memories that were triggered while watching them. Two models were explored, i.e., the Early Fusion model employing feature vector containing memory-, visual-, and audio-based parameters fed to a Support Vector Regressor (SVR), and the Late Fusion approach with two separate SVRs for predictions using audio and visual features along with a Random Forest Regressor employing memory descriptions. The first experiment performed by these researchers was based on training the two proposed models with only memory descriptions. In contrast, the second experiment used different sources for training and test the models. For each experiment, the final predictions were for pleasure, arousal, and dominance. For that purpose, the R 2 (variance) score was calculated. It was found that an average value of R 2 for audiovisual tracks combined with memories has a greater value for each label (pleasure, arousal, and dominance). In conclusion, these authors showed that analyzing viewers' responses provided additional context for personalizing prediction in VACA, independent of the fusion strategy [17].

9Chua et al. presented another approach to emotion prediction from music and video [18]. For this purpose, the researchers prepared a new dataset called MuVi, which is available in the public domain. The MuVi dataset consists of music videos in three modalities: audiovisual (original music videos), music-only, and visual (muted video only). The annotations were taken from the extended version of the Geneva Emotional Music Scale (GEMS-25 and GEMS-28). Moreover, there was additional annotation for the dataset in the arousal and valence space. Also, for GEMS annotations and arousal/valence, a contingency Chi-square statistical test was performed to check whether the frequency distribution of the emotion labels is significantly different for media stimuli presented in different modalities. For each media item, a set of audio and video features windowed over 500 ms without overlapping was extracted. The OpenSmile library extracted audio features, including MFCCs, pitch, spectral, zero-crossing rate, etc. [19]. For video features, six types of visual features were used, e.g., color, lighting key, facial expression, scene, and objects. The last three features were extracted using deep neural networks: a pre-trained model of VGG19, ResNet50, and Yolov5. For classification, multimodal architectures based on a unimodal architecture were used; all models were based on LSTM (Long Short-Term Memory) networks. Three stages of neural network models were proposed: early fusion based on two separate inputs 66358 VOLUME 11, 2023 Authorized licensed use limited to the terms of the applicable license agreement with IEEE. Restrictions apply.

10of audio and visual features, late fusion with a fully connected layer for prediction, and finally, PAIR (Predictive models Augmented with Isolated modality Ratings) with a pre-trained LSTM model and fine-tuning the weights of the multimodal audiovisual modality. The RMSE (Root Mean Squared Error) and CCC (Concordance Correlation Coefficient), i.e., their mean and standard deviation values, were calculated. For arousal, the best score of CCC was achieved only for the music modality, i.e., 0.4062 ± 0.32 and for valence, the best score of CCC was achieved on the visual modality, i.e., 0.3115 ± 0.32 [18]. Muszynski et al. proposed emotion data description on the (−1 to 1) range in the Valence/Arousal space [20]. For this purpose, the Continuous LIRIS-ACCEDE dataset, which contains 442 minutes of film fragments, was used. The machine learning models used audio-video parameters, high-level lexical parameters of text, and emotion annotations from film excerpts. Audio-video parameters were extracted with the openSMILE tool, and then the RelieF algorithm was used to reduce the openSMILE features to 100 audio and 100 video parameters. 63 text features were prepared with Natural Language Toolkit. In addition, six features related to aesthetics were extracted. The LSTM network was used as the primary deep-learning model for classification. Then the LSTM accuracy was compared to the SVM and DBN (Deep Belief Network) models. The MSE values were calculated for each model, including for audio and video. The LSTM network achieved 0.045 for A-MES and 0.057 for V-MSEs [20].

11Another proposal for using audio and video was described in Wang et al.'s work [21]. 31 audio and three visual features based on the MediaEval2017 dataset were used, described by arousal and valence values in the [-1 to 1] range. For classification, the Multimodal Regression Bayesian Network (MMRBN) was used and then compared to other methods. First, single RBN models were trained using audiovisual features. This was followed by stacking them into the form of two networks. The results of the MMRBN were compared to other methods used in the MediaEval task within the same conditions. The proposed MMDRBN showed relatively good performance on three datasets. Specifically, on the MediaE-val2015 dataset, the accuracy was 44 [21].

12The present work aims to develop and apply machine learning algorithms that predict emotions based on the colors present in images and film excerpts. The structure of this work is threefold, as presented in Figure 1. The starting point is to test the accuracy of the algorithms in extracting color from images. Three approaches are tested, namely clustering colors into a palette of predefined colors, assigning colors to the RYB (Red, Yellow, Blue) model, and extracting a histogram of colors present in an image. For this purpose, datasets containing color and emotion annotations are employed. Four convolutional neural networks (CNNs), namely VGG16, VGG19, ResNet50, and DenseNet201, three types of baseline classifiers (logistic regression, decision tree, and random forest), as well as a recurrent neural network with an LSTM (Long Short-Term Memory) layer (keras.applications), were adopted for this study. The performance of the algorithms used is examined. The best-performing algorithm is then employed for predicting emotion in film excerpts according to the color extraction schemes tested on images.

13Further, a survey is constructed to see to what degree the algorithm prediction agrees with the respondents' annotations. This is followed by a discussion of the results obtained and overall conclusions from the conducted experiments. Finally, possibilities for developing the framework proposed toward its more robust applicability are outlined.

II. EMOTIONS VS COLOR ANALYSIS A. COLOR PERCEPTION

14Color perception is possible through electromagnetic waves that are reflected, transmitted, or emitted by an object. Sensitivity to the length of these wavelengths makes it possible to distinguish colors. Human vision can see only a narrow range of electromagnetic wavelengths. Humans possess trichromatic vision, meaning that light is perceived through three types of cones located in the retina [22], [23], [24]. Each type of cone is made up of cells sensitive to different wavelengths of light. This results in the human recognition of three primary colors − red, green, and blue. Newton's theory of light states that white light in the visible spectrum is a combination of all other colors. White light can be split into seven primary colors: red, orange, yellow, green, blue, indigo, and violet [22], using a prism. Combining these colors in varying proportions enables humans to discern other colors [25]. It is worth noting, however, that 12% of women can perceive colors with an additional cone (tetrachromacy) [26].

15Color vision can be described in three perceptual dimensions − hue, saturation, and brightness. Hue is the most distinctive feature as a healthy human eye can distinguish more than 200 colors. Colors that have hue are called chromatic colors. While those that do not are called achromatic. Examples of achromatic colors are white, gray, and the color created when a black surface is illuminated with white light. Chromatic and achromatic colors both have dark and light colors [27]. Of the existing colors, red, green, blue, and yellow are not mixtures of others [28]. The remaining colors (called binary) are combinations of the following pairs:

16• green-yellow and yellow-green colors are mixtures of green and yellow,

17• orange is a mixture of yellow and red, VOLUME 11, 2023 • colors such as magenta or purple are the result of a combination of red and blue,

18• green-blue and blue-green colors are mixtures of green and blue. In contrast to hue, saturation -the perceived purity of color, and brightness -the perceived intensity, as opposed to colorfulness, i.e., the absolute color intensity of a light stimulus, are relatively neglected in color labeling [28]. They are also less frequent in color-emotion-based analysis [29]. In this context, a question arises concerning what features of color are salient and should be used when correlating them with emotion.

B. ASSIGNING EMOTION TO COLOR

19In everyday life, people very often unconsciously connect their emotions with colors. Examples include sayings such as ''black thoughts,'' ''look at/see something through rosecolored/tinted glasses,'' and ''act like a red rag to a bull.'' From these, one can draw simple conclusions about the meanings of colors: black -> sad, pink -> happy, red -> angry. Another use of colors to show emotion is emoticons -sending a message with a red icon tells of aggressive feelings, and in most cases, a green emoticon tells of disgust.

20Takei and Imaizumi examined how the color-emotion association affects perceptual evaluation [30]. Moreover, they considered temporal proximity between color and facial stimuli interacting with these effects. They found that when the background color (yellow or red) corresponded to the given emotion (happiness or anger), it facilitated recognition of facial expressions. However, this effect occurred only when the background color was presented simultaneously with facial stimuli. Another color-emotion association described in the experiments was blue/gray -> sadness; however, it was evaluated as weak [30].

21It should, however, be remembered that colors do not affect everyone in the same way. The personality and mental state of the subject can affect emotions. In an article by Bleicher, the effects of red and non-red colors in the Holtzman Inkblot Technique (HIT) were studied on five groups of people, namely: healthy, those suffering from neurotic disorders, borderline personality disorder, and acute and chronic schizophrenics [31]. The HIT technique involves testing patients' associations to ink blots [32]. Sets of ink blot cards are selected in HIT, taking into account whether the blot chosen is capable of arousing the subject's perception of detail, space, color, or shadows. The rule of thumb during HIT is to limit the patient to one response for each card. It was noted that people with schizophrenia distinguished themselves from the other groups when comparing responses for colored and black-and-white cards. In most groups, color on the cards resulted in different reactions than for cards without color. People with schizophrenia did not change their answers about emotions when color was introduced into the cards.

22A person's mental state can affect the perception of colors and the emotions that come from them, but it is not the only factor. The culture the person surveyed belongs to plays a massive role in color-emotion associations. For example, in European culture, black is associated with death and mourning, but nowadays, it is also regarded as a color associated with elegance. In China, black is the color of happiness and youth, while in ancient Egypt and India, it was the color of life. In Japan, black signifies mastery, hence the origin of the black belt in martial arts that speaks of the highest rank, while the white belt represents a beginner. Such differences are also associated with red, white, and even blue and violet.

23Park and Guerin performed a series of experiments to prove the difference in color perception across cultures. Most of the results of these analyses supported the hypothesis that different cultures perceive colors differently, with the descriptive words of one palette differing by 93% across cultures [33].

24Luscher's Psychological Color Test is also visible in the literature on color-emotion perception [34]. The first step in the Lüscher test is to prepare eight color cards. These cards are dark blue, blue-green, orange-red, bright yellow, purple, brown, black, and gray. Each card has a number written on the back. Each card has a meaning, which is analyzed later in the test. Colors are divided into primary (e.g., dark blue) and secondary (e.g., violet). It is necessary to choose a color that, without associations, evokes a positive reaction in the respondent. The test is repeated several times, and the results are grouped to assign the following meanings: favorite colors, the current state of the respondent, character traits not active at this time in life, and colors disliked by the respondent. This test seems complicated; it is, however, frequently used in emotion-color exploration; e.g., Ranjgar employed the Lüscher test to classify eight emotions that are evoked in the observer by Iranian-Islamic abstract paintings [8]. However, several modifications were introduced in the test preparation. The colors in the palette were arranged according to their frequency of occurrence in the image. Since background colors are not insignificant, they can affect the perception of the overall picture. For this reason, Ranjgar approached the problem using two perspectives, looking at the whole image and a portion of it [8].

25In another study, the use of fuzzy color histograms to study the correlation between the color in an abstract painting and the emotions it evokes was proposed [7]. Ten colors were used to categorize the emotions evoked by an image. The colors selected were black, dark gray, red, brown, yellow, green, blue, cyan, magenta, and white. Eight emotion types were employed to describe the images − amusement, anger, awe, contentment, disgust, excitement, fear, and sadness. An algorithm was created to study the relationship between emotion and color based on two main components − a color vector obtained from the survey data and an emotion vector. The emotion vector, a 10-color category histogram, built employing fuzzy logic, was used to obtain the color vector. Hibadullah confirmed a high correlation between the color black and the feeling of fear [7]. Also, cyan was highly correlated with contentment, yellow with amusement, and blue with disgust. Some colors (brown and green) showed no significant correlation with any emotion from the list. In addition, some emotions were not strongly linked to any colors from the palette (e.g., rage and contentment). The remaining colors and emotions were linked to each other with a significant value of p<0.05 or p<0.01 [7].

26Liu and Pei used a convolutional neural network and color transfer to colorize images based on user-defined emotions [9]. The algorithm has two paths. One possibility is to upload a reference image along with the target image. From the reference image, the main colors and texture features are extracted. Based on these features, emotion extraction then takes place. Another scenario is to skip the reference image and upload, along with the target image, the word associated with the emotion. Once the emotion is known (either resulting from the image or as annotated input), it is converted into color. This color is then used to change the color scheme of the target image so its color palette matches the emotion previously received. The authors decided not to use color histograms, as they only show the distribution of colors. Instead, they used harmonic models that demonstrate the hue distribution and can determine the relative relationship between colors. Considering the texture present in the image as an additional factor for analysis improved the results. They also showed that image segmentation plays a vital role in extracting the main colors. When a color is segmented, each image unit is treated as a whole, not resulting in scattered units [9].

27To evaluate the performance of the created method, Liu and Pei designed a model that calculated the emotion evoked by the final image and checked the similarity of this emotion to the input value. Comparing the algorithm's performance with state-of-the-art methods showed much better correspondence between emotions and color when employing seven-color models. This is because for images with multiple colors, three-and five-color models may be insufficient. So, this is one of the important conclusions derived from this study [9].

III. METHOD A. DATA EMPLOYED

28In the work carried out, it was necessary to prepare a set of images and film excerpts to develop to perform color analysis and automatically assign them to the appropriate emotion classes. In addition, a survey was created to collect respondents' emotion label assignment to the film excerpts, aiming at discovering color-emotion associations.

B. IMAGES AND PHOTOGRAPHY SETS

29The WikiArt emotions dataset is a subset of WikiArt [35] that consists of a collection of more than 150,000 images of artworks in 14 different styles, including modern art, Japanese art, Korean art, and Western Renaissance art. The database contains works by 195 artists, which can be divided into 168 categories (for example, manga, portrait, sculpture, or flower paintings). The emotion subset contains 4,105 artworks from the WikiArt database. These are primarily paintings from 22 categories (for example, realism or impressionism) and four styles − Renaissance art, post-Renaissance art, contemporary art, and custom art.

30The annotations on the collection were made through crowdsourcing − a process involving a large group of people working on a specific task. Each artwork in the database was annotated by a minimum of 10 people. Annotations were made in three scenarios:

31• presentation of only the image (without the title) and

32asking what emotions the image evokes in the viewer;

33• presentation of only the title of the artwork (without the painting) and asking what emotions the title evokes in the viewer;

34• presentation of the entire work of art, the painting with the title, and the question of what emotions the workas a whole -evokes. The annotations of each painting in the database include the following information: the style of the artwork depicted; the category into which the image falls; the name of the artist; the title of the artwork; the year the work originated; the average rating by the respondents; etc.

35An additional dataset analyzed in our work contains images from a collection incorporating three datasets. These are the International Affective Picture System (IAPS), artistic photography searched by keywords in a photo-sharing forum, and a set of abstract images rated against emotions by a group of people. The collections label eight emotions: amusement, anger, awe, contentment, disgust, excitement, fear, and sadness [36]. This dataset was also used by Machajdik and Hanbury [37].

C. IMAGE DATA PREPARATION

36Pre-processing was required to use the data collected. Operations performed on the images included cleaning data, cropping the image, extracting the dominant color and color palette from the image, clustering the image to the dominant or predefined main colors found in the image, and extracting color information using histograms.

37The original annotations in the WikiArt emotions database had emotion ratings after seeing the image, presenting the title itself, and seeing the entire artwork (image and title). There are 20 emotions labeled in the WikiArt database.

38The decision on the emotion model or the number of emotions contained in experiments typically constitutes the first step of experiments or while creating a survey [38], [39], [40], [41]. In our study, to build a classifier of satisfactory effectiveness, we propose to map the original emotion assignment into three baseline categories -positive, negative, and neutral, as shown in Table 1. Overall, 1,427 positive, 553 negative, and 1,196 neutral labels were obtained. The difference in the original number of images and the number of images used in the experiments is because 929 images had no tags in the image-only rating category.

D. EXTRACTION OF DOMINANT COLORS

39The ColorThief library was used to extract the dominant color and the palette of the dominant colors in the image. This library has two methods corresponding to [42]:

40• getColor, which accepts a quality argument affecting the quality of the result. The value of this parameter can be in the range of 1-10, where one means the best quality, but it increases the image analysis time.

41The method returns a tuple with color values in the (R, G, B) format,

42• getPalette, which takes a colorCount parameter in addition to the quality argument, specifying how many colors the returned palette should contain. The result of the method is a list of tuples in the same format as for the getColor function.

E. CLUSTERING INTO A PALLET OF IMAGE COLORS

43Clustering, or cluster analysis, allows similar data points to be grouped into clusters. One of the efficient cluster analysis methods is the K-means algorithm, an unsupervised machine-learning method (keras.app). The algorithm requires a predefined number of clusters for it to create. The K-means algorithm from the sklearn.cluster library was used to analyze the clusters in the original image and transform it into an image containing only a certain number of colors. The method takes many parameters, of which one of the most important is n_clusters, specifying the number of clusters to be created. The values returned are associated with labels assigned to each pixel and the coordinates of the centers of the clusters.

44An example of the results of the cluster analysis for the three-and five-image clusters is shown in Figure 2.

F. CLUSTERING INTO A PREDEFINED COLOR SPACE

45The previous method describes the clustering of image pixels to the main colors present in the image. This approach transformed each image after clustering into one with a color palette unique to the given image. Another way of clustering is to analyze and assign image pixels to predefined clusters of colors. Clustering into eight colors was chosen according to the RYB color space often used in art. Therefore, the primary colors (red, yellow, and blue), secondary (orange, purple, and green), and black and white, as the ones that augment a spectrum of colors when mixed with the primary colors, were selected.

46To perform such a cluster analysis, KNN (K-nearest neighbors), one of the most popular supervised learning methods, was employed [12]. The principle of the algorithm is to find the best match to the test data. The KNN method was implemented using the OpenCV library and the KNearest_create and findNearest methods. An example of the results of clustering into the main predefined color is shown in Figure 3.

G. HISTOGRAMS

47Histograms were used as one of the methods of color extraction. The first step in extracting image features was to cluster up to five clusters using the K-means method described earlier [43]. The information about these clusters was then sent to the process responsible for creating the histogram. This was implemented using NumPy's histogram function, whose parameters are the colors obtained by clustering and the number of rectangles of the histogram. Then the histogram was normalized by dividing it by the sum of all the components.

48The created and normalized histogram was then passed to a function whose task is to extract five parameters of color information and store them in a CSV file. This information is as follows:

49• average value of R (red color), • average value of G (green color), • average value of B (blue color), • color distribution, • variance of brightness, • saturation variance.

H. FILM EXCERPTS

5030-second-long excerpts of films collected at the Gdansk University of Technology annotated with five different emotions were also employed [44]. These are excerpts from 30 film productions (see Table 2). The annotations were based on surveys of color-emotion associations, the context of the film, and the literature description. The tagged emotions are happiness, fear, excitement, sadness, and aggression, as well as ''none assigned.'' The last case refers to contradictions met while assigning emotion to the film. VOLUME 11, 2023

I. FILM DATA PREPARATION

51One of the operations required for film-based data was segmentation, which was performed to obtain single frames. Segmentation of the videos from MP4 format into JPG (Joint Photographic Experts Group) format frames was performed using the VideoCapture method from the OpenCV library [45].

52Since some of the video excerpts contained black frames around the video image, image cropping was applied so the algorithm could remove unwanted areas and focus on the actual colors present in the scene. The image cropping was performed using the OpenCV library and the cv.threshold function.

53The process of cropping images for each video excerpt was as follows:

54• Uploading the selected grayscale frame of the video; • Sending the uploaded image to the thresholding method; • Returning the image cropped by the thresholding method to the dimensions of the created mask;

55• Checking the correctness of the performed thresholding and possibly changing the parameters of the method. If the thresholding for each frame in the analyzed excerpt is performed correctly, then it is performed as follows:

56• uploading the frame, • applying the thresholding function, • saving the image after thresholding. An example of the thresholding operation working on a frame of ''The Godfather'' film is shown in Figure 4.

J. SURVEY -COLLECTING FEEDBACK FROM RESPONDENTS

57The survey aimed to verify the correctness of the emotion annotation on the collected video. It notes the color the user chose as relevant to the emotion felt.

58The survey was created in the form of a web page. The start screen includes instructions for using the questionnaire form, explains the purpose of collecting user responses, and illustrates a sample response to a question.

59The presentation of the operation and handling of the survey is shown in Figure 5 in the form of a use case diagram executed in UML (Unified Modeling Language).

60When entering the survey, the user sees the start page and can begin filling in the survey by clicking the appropriate button − a page with the first question then appears. It explains the purpose of data collection and a sample answer to the survey questions (see Figure 6). At any time, it is possible to return to the main page or an additional tab with more detailed information about the project.

61As explained on the survey's start screen, after pressing ''Start the questionnaire,'' the respondent is taken to a screen where 15 questions are displayed sequentially, each containing three scenes from a randomly selected movie, a place to choose an emotion, and one to choose a color. The emotion selection field is a mandatory single-choice field in the form of a disjoint list. The color selection has a default value set as black, and when the users click on the area, they can select any color stored in hex format. To choose a color, the respondent can use the cursor in the color map, type RGB values into the appropriate fields, or hover the cursor over the image and click to select the appropriate color directly from the image. The view of the selected areas in the survey is presented in Figure 7.

62After answering all the questions, the respondent is taken to a thank you page where there is also a request for further distribution of the survey.

63The database used in the survey is relatively small. It is a single table storing the response ID, the video's name, the emotion, and the color selected by the user.

IV. EXPERIMENTS A. ALGORITHMS

64Several experiments were conducted on available deeplearning models; however, they were modified according to the needs of the study. Their implementation was facilitated by the keras.applications library, which provides deep learning algorithms along with pre-trained weights. Also, three baseline algorithms were implemented for comparison of color-emotion assignment effectiveness. Finally, two types of convolutional neural networks and a deep model consisting of a recurrent neural network augmented with an LSTM (Long Short-Term Memory) layer completed the investigation.

65• VGG16 (keras.app) -The VGG16 model with weights transferred was applied to classify three color classes. The weights used were those obtained from training on the imagenet set (Image database). Freezing the weights was performed by setting the trainable parameter to False for all the original model layers. This results in no training of these layers, which speeds up the training time and reduces the resources needed for training. However, four new layers were added to the model, i.e., Flatten, Dropout, and two Dense layers. The activation function of the last layer was softmax.

66• VGG19 (keras.app) − The implementation of the VGG19 network proceeded similarly to the VGG16 model − four new layers were added, freezing the weights of the layers already contained in the model.

67• ResNet50 (keras.app) − The ResNet50 model was also implemented with the transfer of weights but without freezing the training of the original model layers. Also, as in previous models, weights from the imagenet-based training were used. In the implementation of this model, six new layers were added − GlobalAveragePooling2D, two Dropout layers, and three Dense layers.

68• DenseNet201 (keras.app) − In the implementation of the DenseNet201 model, the last original layers were removed in the model development; the initial implementation left the include_top parameter equal to True. For this model, four new layers were added, i.e., Flatten, Dropout, and two Dense layers. In addition, three baseline classifiers were implemented: decision tree, random forest, and logistic regression.

69• DecisionTreeClassifier [46] − To create a classifier, the DecisionTreeClassifier class was imported, and the fit and prediction methods were called. To evaluate the model, the accuracy_score method was imported from the sklearn.metrics library. The method used to find the best model parameters was GridSearchCV. The parameters searched were the maximum tree depth, the minimum number of samples needed to split a node, and the minimum number of samples required for a node to be a leaf.

70• Random Forest classifier [46] − Random forest was implemented by the RandomForestClassifier class from the sklearn.ensemble library. As in the decision tree implementation, GridSearchCV was used to improve the prediction results. The optimization consisted of finding the best hyperparameters for the number of estimators, the maximum depth of the tree, the minimum number of samples needed to split a node, and the minimum number of samples required for a node to be a leaf.

71• Logistic regression − Logistic regression was implemented by the LogisticRegression class from the sklearn.linear_model library. To improve the performance of the model, the L1 (performing a linear transformation on the weights) and L2 (adding a squared cost function to your loss function) regularization methods were used [47].

72• CNN (convolutional neural network) model − As part of the experiments on image datasets, 1-dimensional and 2-dimensional CNNs were created. The algorithms were implemented using the Keras library. Convolutional networks intended for 1-dimensional data with one pooling layer using the L2 regularization method and a network for image data containing two pooling layers were further explored.

73• Recurrent model − It was also decided to use a recurrent approach to train the classification on the video excerpts. The scheme adopted in this case was feature extraction from the video frames, performed with the VGG16 model, and then the resulting information was used to train the model with the LSTM (Long Short-Term Memory) layer. The layers of the network with a recurrent layer are shown in Table 3. The activation functions for the Dense layers were the ReLu and Softmax functions.

V. RESULTS

74A series of experiments were conducted on the algorithms described earlier. To obtain the highest accuracy, the training parameters were modified, followed by an analysis of the change in the score after transforming the training method.

75The parameters modified during the experiments were:

76• learning speed, • batch size (batch), • optimizer, • use (or not) weight transfer.

77To analyze the results and compare the classification performed by the algorithms, four basic metrics were used: accuracy, precision, sensitivity, and F1 score measure [48].

78The experiments were divided into several stages based on the databases on which they were performed. The first was the WikiArt emotions database. As shown in Table 1 • image clustering to a palette of the five main colors in the image;

79• image clustering to eight predefined colors (RYB model). Uploading the data to the input of the algorithms was carried out using the ImageDataGenerator method, which retrieves the data from the specified folder while performing the defined data augmentation. The parameters for augmentation used during the data download are:

80• shear range, • zoom range, • horizontal image rotation, • rotation range, • width change range, • height change range. The results obtained were not overly satisfying. Nonetheless, here are the best results. For the VGG16 and VGG19 models, the average accuracy was approx. 64% for the threeand five-color classes, with an average F1 score of 41.46%. For the RYB-based predefined classes, VGG16 and VGG19 returned an average accuracy of approx. 61%. The results for DenseNet201 and ResNet50 were even less satisfying. Moreover, the other calculated measures were not satisfactory. However, when analyzing the results of precision and sensitivity, a relationship between them was observed − these measures have smaller values for classes with fewer objects.

81When the classification process was repeated for the original images from WikiArt (without any processing), the average accuracy increased by about 3 percentage points, with the highest accuracy of 67.09 for VGG19. This may be due to the larger amount of data used for training and testing.

82Deep learning network training was also conducted on the artistic photography dataset that contained images grouped into one of three categories: positive emotions (class no. 1), negative emotions (class no. 2), and neutral (class no. 3). The distribution of data into classes for the test set was as follows:

83• class 1: 61 images, • class 2: 80 images, • class 3: 22 images. The results of training the neural networks on the original images of the database of photographs and abstract images were comparable to those obtained on the WikiArt emotions. The average accuracy for VGG16 and VGG19 was approx. 64%, whereas the DenseNet201 and ResNet50 models decreased to about 50%. When color scheme division was performed, the results decreased to about 60% for the VGG models.

84Images from a database of photographs and abstract images and images from the WikiArt emotions database were used to train and test the baseline algorithms and CNN networks created with the Keras library. The results were even worse − the algorithms stopped learning at accuracy values of about 50%.

85Finally, the most interesting part of the exploration was devoted to color classification on film excerpts. To analyze the colors and their change throughout the video, the algorithm on which the classification experiments for the video fragments were performed included a recursive layer.

86Three experiments were conducted to test the effect of the training data on the algorithm's performance:

87• the network was trained on the original frames with different training parameters;

88• the network was trained on the original frames with a different division of the data into training and test sets;

89• the network was trained on frames after the clustering operations defined earlier. Due to the small amount of film excerpt data and insufficient variety of their emotion denotations, a simplified division of emotions into categories was used. Thus, emotions were divided into positive (happiness, excitement) and negative (fear, sadness, aggression), resulting in a binary division. Three training sets of video excerpts were created according to the class assignment, as shown in Table 4. First, training and prediction were performed with different sets of hyperparameters. The results of the experiments with three sets of hyperparameters are shown in Table 5. In addition, the classification results depending on the data division into training and test sets based on three collection sets are contained in Table 6. Highlighted values in Tables 5 and 6 refer to the best scores. The above experiments were conducted on the original film frames without performing clustering operations. Further, two types of clustering were performed on the images -to the main colors of the image (palettes of three and five colors) and clustering to eight colors (RYB model). The experiments were carried out on test set no. 1, and the results are shown in Table 7. Note that the highlighted value refers to the best score.

90Data obtained from the color histogram were also used to analyze the film data. The mean values of the R, G, and B components, along with the color distribution, brightness variance, and saturation variance, were trained using the following algorithms: decision tree, random forest, logistic regression, and convolutional network (CNN). The prediction results on dataset no. 1 are shown in Table 8. The best score is indicated in bold font. However, the model that achieves the best results on film data is RNN (augmented with LSTM) trained after clustering the images into RYB model-based colors and binary emotion division. With such a variant, the maximum accuracy reached the optimum and was higher than 95%. Plots of the accuracy values and the loss function during training for this model are shown in Figure 8.

91Due to the high result obtained for the RNN model on the binary prediction of the film excerpts, training was also performed on splitting the data into the original five emotions. The results of the classification are shown in Table 9. As seen in Table 9, the results are not satisfactory apart from those obtained for happiness (indicated in bold font).

VI. DISCUSSION

92The experiments were first performed on WikiArt emotions databases and a collection of photographs and abstract images. Both datasets were divided into three categories of emotions: positive, neutral, and negative. A problem of class inequality was observed in both databases − the WikiArt emotions set contained a relatively small number of images evoking negative emotions. In contrast, the photography and abstract images database lacked images in the neutral category. The image databases were used to test both baseline and deep-learning algorithms. Based on the results obtained, it can be said that both VGG models outperformed the baseline and more complex models. The deep nature of DenseNet and ResNet makes them more prone to overlearning, especially with such a small amount of data as used in the experiments. However, it is difficult to compare the two VGG models -the results of their prediction are similar to each other.

93A series of experiments were conducted to train algorithms on film data. Due to the problem of contradiction in data labeling, the film set was divided into two categories of emotions -positive and negative. The average accuracy value received from different dataset collections, contained in Table 4, is 67.66%, as shown in Table 6.

94A further experiment was performed to reduce the amount of information in the image and focus only on the colors and their distribution in the scene. Clustering methods were used for this, and the results presented in Table 5 show that using each of the implemented clustering variants improves the accuracy of emotion prediction. Clustering the images into the RYB color model, or a palette of colors, improved the algorithm's ability to classify emotions. An average accuracy of over 81% was achieved when grouping images into a palette of three colors. Clustering into RYB model-based colors, compared with the original video frames, raised the accuracy value by 20%, which translates into equally high precision, sensitivity, and F1 score values.

95Further reducing the amount of information used in training was done using only the color values obtained from histogram-based processing. During the training, only information describing the colors and not their location in an image is given to the algorithm's input. As a result, baseline machine learning algorithms achieved results of less than 60% before the optimization operation. After optimization, two algorithms, i.e., decision tree and random forest, increased the prediction accuracy by about 8%. Using CNN for training on histogram color data resulted in better results. Compared to the machine learning algorithms, the increase in accuracy was more than 10% (as shown in Table 8). The final experiment consisting of training and testing with the division of film data into five emotions achieved satisfactory results for happiness and the least for aggression (Table 9).

A. SURVEY RESULTS

96The database of films used had color and emotion designations. To check the accuracy of the initial (originally labeled) assignments, a survey was created with random questions about 15 of 30 films. Each question includes three scenes from a given film excerpt and a question about the emotions these scenes evoke in the respondent. In addition, there is a question about identifying the color whose presence in the scene supports the feeling of that emotion.

97The questionnaire was completed by 45 people. Tables 10-14 compare the initial labels of the set of films with the tags obtained from the survey results. The tables are divided by the initial emotion assigned to the films. In Tables 10-14, the emotion that received the highest number of votes in the survey conducted is given in the TABLE 11. Comparison of initial labels with labels resulting from the survey when the initial emotion is excitement.

TABLE 12.

98Comparison of initial labels with labels resulting from the survey when the initial emotion is happiness.

99columns with the survey results. In cases where two emotions received the same number of votes, both were entered in the table. For example, regarding the ''Joker'' movie, seven respondents voted for the emotion ''Excitement,'' and the other seven people for ''Happiness.' ' TABLE 13. Comparison of initial labels with labels resulting from the survey when the initial emotion is sadness.

TABLE 14.

100Comparison of initial labels with labels resulting from the survey when the initial emotion is anger.

101Of the 27 films initially labeled, 18 were tagged the same way by the respondents, which represents 66.6% correctness with the original labels. However, there are cases where respondents voted for two opposite emotions in parallel (for example, fear and excitement in ''Pirates of the Caribbean'').

102Nine film excerpts were classified differently by respondents than according to the original labels; for example, ''Gladiator,'' according to the users, evokes the emotion of fear or sadness, even though the original label is excitement. The highest ambiguity in the tags can be seen in Table 14, which shows the results of excerpts where the original label is anger. Only one of the five films with this label was correctly classified as a scene that arouses the emotion of aggression in the viewer.

103The concordance of the emotions selected by the respondents compared to the original annotations is higher than the accordance of the colors chosen. For example, in Table 10, ''Maleficent'' and ''Into the Wild'' are the only ones of the six where respondents chose green as the color influencing the emotion. However, even in this example, this color was chosen equally to black in the case of the ''Maleficent'' movie. The highest agreement of annotations of initial colors and those collected through the survey was found with purple and red. Figures 9 and 10 show sample frames from the film to collect respondents' answers regarding the color present in the scene that influenced their chosen emotion.

104The film database shows a direct color-emotion relationship that does not always agree with the respondents' responses. For example, in the original annotations, scenes in which the presence of red predominated have emotion labels of ''aggression.'' In reality, only one in five films with this emotion was classified this way by the respondents On the contrary, films originally classified for the emotions of fear and happiness were labeled the same way by the respondents. These results have a logical explanation − scenes intended to induce fear or happiness usually straightforwardly show this, while emotions such as sadness can take many different forms. Assigning a color to a particular emotion may also not always be correct − for example, in the film ''The Shining,'' the use of large amounts of red was to evoke fear. Even if the very source of the color red resulted from aggression in the film, it should instill fear in the viewer.

VII. CONCLUSION

105Based on the analysis of the results obtained on WikiArt, it can be concluded that reducing the amount of information in the image solely to the color and its location does not significantly change the classification results. Furthermore, none of the three clustering variants improved the algorithm's performance. Moreover, when observing the training of even the best algorithms, instability in training is to be noticed, which may be caused by the limited amount of data. When referring to the literature, the average accuracy of image and emotion classification can vary depending on several factors, such as the type of images used for the classification task, the emotions being predicted, the method used for annotation, the algorithms used for classification, and the evaluation measure employed. Thus, a direct comparison is not possible. However, in general, the accuracy of image and emotion classification can range from around 50% to 70%, or higher, depending on the complexity of the task and the quality of the data. The accuracy of these models can be improved by using more diverse and larger datasets. Overall, the results achieved in the study are in accordance with the state-of-the-art.

106Training on film excerpts data, as presented in the ''Results'' section, differs from experiments on image databases. A division into two categories of emotions was required here, and other simplified approaches were also used due to the limited amount of data. In contrast to training on image datasets, reducing the amount of information in the video to colors and their location through clustering improved the performance of the algorithms regardless of the type of color clustering scheme. However, clustering to the RYB model-based colors improved the results twice as much as clustering to the image color palette. Such good results may be due to the close relationship noted in Tables 10-14 between the color present in the video excerpt and the tagged emotion.

107Understanding how people react to movie excerpts required the creation of an online survey to collect the emotions aroused by scenes in a movie. The results of this survey provided a perspective on looking at emotions and colors. However, the problem of the subjectivity of viewers' emotions is visible. Indeed, it can be solved by increasing the number of people surveyed. Also, a more comprehensive range of viewers' labeling of emotions in film excerpts may help with the contradiction that may exist due to the small sample of survey participants. Another solution is to use movies from less popular productions − a lack of knowledge of the context of the film excerpt may result in the viewer's labeled emotions being the result of only the scene watched. In such a case, observation of the dominant color may also be more focused, resulting in a higher correlation between the color and the emotion assigned.

108The above summary may be checked against the literature findings. Modern neuropsychology defines 'color cognition' as a field of science encompassing perception and memory, so there is a clear link between mental representations and the knowledge/memory of objects [49]. Moreover, the basis of color perception is due to Isaac Newton, who, in the 17th century, explained that light is colorless and ''the waves themselves are not colored.'' According to that statement, color is the interpretation of physical phenomena by the human brain based on complex processes, i.e., color has to be perceived inside our brains. Indeed, color perception is of high interest to psychologists, especially in terms of emotion-and behavior-evoking [50]. In a 2020 study, several thousand people responded to a survey that associated color with emotions. They assigned black to sadness, white to relief, red to love, green to contentment, brown to disgust, etc. It should, however, be pointed out that even though 68% of respondents associate red with love, only 36% link brown to disgust. Moreover, some relevant correlations were found by González-Martín et al. at the level of color and emotion, such as the relationships between black and fear. Some colors, i.e., red, violet, and blue, correlate highly with excitement compared to other color-emotion combinations [51]. This shows that one should not expect a uniform association between color and emotion, notwithstanding some colors may have a universal identity. Hence, we expect an adequate recognition of color-emotion association by machine learning when this process is not universal for people, depending on culture, background, age, personality, color preference, etc.

109Also, a very interesting notion was brought up in a paper by González-Martín et al. indicating that color is not static when evoking the observer's emotion [51], so this is another factor in emotion evaluation, especially in the case of video.

110To summarize, there are several constraints related to our study; some of them are due to the space limit. Among them, insufficient data concerning video annotated excerpts seems the most important one. An answer to this may be to assign emotions to movie excerpts through crowdsourcing. This way, it would be possible to better understand how a movie fragment elicits emotions in people. Moreover, such a manner of data collection would be more reliable in the context of deep model training without concerns that the data would be imbalanced, or the model would be poorly overfitted. Another factor that might influence the outcome of our study is related to emotion convention description, as not all sentiment expressions contained in a prescribed dictionary have the same meaning for all people. So, another task for crowdsourcing could be finding the most frequent sentiment expressions. At the same time, the relationship between color and sentiment may differ between the annotators. However, this may be solved in a similar way by applying an Internet-based survey. Last but not least, there is a plethora of approaches to color analysis in movies. This is one of the future directions that will be pursued, especially as image color analysis translated to the color contained in a video may be problematic. This could be considered a long-term aim. We also believe that the outcome of the crowdsourcing sentiment assignment may identify additional challenges that are related not only to our work, but to more general research.

111Finally, when referring to the applicability of such works, studies of the relationship between color and emotion in video excerpts can be used in many areas. The emotions recognized can support both automatic prompts in advertising and marketing, as well as recommendation systems in the context of matching the user's expected emotions. However, this needs large, annotated datasets, even though social crowdsourcing annotations often result in contradictions.

112ALEKSANDRA WĘDOŁOWSKA received the B.Sc.Eng. degree, in 2021, and the M.Sc. degree in biomedical engineering with a specialization in artificial intelligence, in 2022. She was a Student of the Faculty of Electronics, Telecommunications and Informatics, Gdańsk University of Technology. She created an application that aimed to help Alzheimer's and dementia patients during the B.Sc.Eng. degree. The thesis was about developing a machine-learning algorithm for classifying emotions based on colors used in movie fragments. Her main research interests include computer vision, creating mobile applications, and connecting artificial intelligence technologies with everyday activities.

113DAWID WEBER was born in Toruń, in 1992. He received the degree from the Department of Multimedia Systems, Faculty of Electronics, Telecommunications and Informatics, in 2017. The subject of the engineering thesis concerned the guitar sound effects processor applied to a mobile device, while the M.Sc. thesis was devoted to music band recording using various microphone techniques, along with a subjective assessment of the resulting sound. His research interests include using machine learning techniques and algorithms to predict emotions from music and films.

114BOŻENA KOSTEK (Senior Member, IEEE) is currently a Professor with the Faculty of Electronics, Telecommunications and Informatics, Gdańsk University of Technology (GUT), Poland. She is also a Corresponding Member of the Polish Academy of Sciences. She has supervised more than 300 master's and engineering theses and 21 Ph.D. theses. She has also led a number of research projects. She has presented more than 600 scientific papers for journals and at international conferences. She has also published three books related to multimedia applications. Her main research interests include acoustics, psychoacoustics, multimedia, music information retrieval, cognitive and behavioral processing, as well as applications of machine learning to the mentioned domains. She is a fellow of the Audio Engineering Society and the Acoustical Society of America. She was a recipient of many prestigious awards for research, including those of the Prime Minister of Poland (twice), the Ministry of Science, and the Polish Academy of Sciences. She was the Editor-in-Chief of the Journal of the Audio Engineering Society as well as an Associate Editor of IEEE/ACM TRANSACTIONS ON AUDIO, SPEECH, AND LANGUAGE PROCESSING and the Guest Editor of JASA.

참고문헌 42건

  1. Color Vision Theory Elsevier eBooks · Elsevier BV · 2001 10.1016/b0-08-043076-7/00666-5
  2. DeepSentiBank: Visual Sentiment Concept Classification with Deep Convolutional Neural Networks arXiv (Cornell University) · Cornell University · 2014 10.48550/arxiv.1410.8586
  3. Eliciting positive, negative and mixed emotional states: A film library for affective scientists Cognition & Emotion · Taylor & Francis · 2015 10.1080/02699931.2015.1031089
  4. Meaning and Preference of Interior Color Palettes among Four Cultures Journal of Interior Design · SAGE Publishing · 2002 10.1111/j.1939-1668.2002.tb00370.x
  5. Linking Recognition Accuracy and User Experience in an Affective Feedback Loop IEEE Transactions on Affective Computing · Institute of Electrical and Electronics Engineers · 2014 10.1109/taffc.2014.2326870
  6. Affective image classification using features inspired by psychology and art theory Proceedings of the 30th ACM International Conference on Multimedia · 2010 10.1145/1873951.1873965
  7. Feature selection, <i>L</i><sub>1</sub> vs. <i>L</i><sub>2</sub> regularization, and rotational invariance 2004 10.1145/1015330.1015435
  8. The Influence of Color on Emotions in the Holtzman Inkblot Technique European Journal of Psychological Assessment · Hogrefe Verlag · 2004 10.1027/1015-5759.20.2.116
  9. The interaction between cognition and emotion Chinese Science Bulletin · Springer Nature · 2009 10.1007/s11434-009-0632-2
  10. Why did we think we dreamed in black and white? Studies in History and Philosophy of Science Part A · Elsevier BV · 2002 10.1016/s0039-3681(02)00033-x
  11. What are emotions? And how can they be measured? Social Science Information · SAGE Publishing · 2005 10.1177/0539018405058216
  12. The dimensionality of color vision in carriers of anomalous trichromacy Journal of Vision · Association for Research in Vision and Ophthalmology · 2010 10.1167/10.8.12
  13. Affect Detection: An Interdisciplinary Review of Models, Methods, and Their Applications IEEE Transactions on Affective Computing · Institute of Electrical and Electronics Engineers · 2010 10.1109/t-affc.2010.1
  14. Emotional category data on images from the international affective picture system Behavior Research Methods · Springer Science+Business Media · 2005 10.3758/bf03192732
  15. The Emotional Movie Database (EMDB): A Self-Report and Psychophysiological Study Applied Psychophysiology and Biofeedback · Springer Science+Business Media · 2012 10.1007/s10484-012-9201-6
  16. Assessing the effectiveness of a large database of emotion-eliciting films: A new tool for emotion researchers Cognition & Emotion · Taylor & Francis · 2009 10.1080/02699930903274322
  17. Emotion elicitation using films Cognition & Emotion · Taylor & Francis · 1995 10.1080/02699939508408966
  18. Colour-emotion association study on abstract art painting 2015 10.1109/icmlc.2015.7340605
  19. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  20. Affective Video Content Analysis: A Multidisciplinary Insight IEEE Transactions on Affective Computing · Institute of Electrical and Electronics Engineers · 2017 10.1109/taffc.2017.2661284
  21. The Genetic and Evolutionary Drives behind Primate Color Vision Frontiers in Ecology and Evolution · Frontiers Media · 2017 10.3389/fevo.2017.00034
  22. Color and emotion: effects of hue, saturation, and brightness Psychological Research · Springer Science+Business Media · 2017 10.1007/s00426-017-0880-8
  23. Texture-Aware Emotional Color Transfer Between Images IEEE Access · Institute of Electrical and Electronics Engineers · 2018 10.1109/access.2018.2844540
  24. Precision-Recall versus Accuracy and the Role of Large Data Sets Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2019 10.1609/aaai.v33i01.33014039
  25. Recognizing Induced Emotions of Movie Audiences from Multimodal Information IEEE Transactions on Affective Computing · Institute of Electrical and Electronics Engineers · 2019 10.1109/taffc.2019.2902091
  26. Knowledge-Augmented Multimodal Deep Regression Bayesian Networks for Emotion Video Tagging IEEE Transactions on Multimedia · Institute of Electrical and Electronics Engineers · 2019 10.1109/tmm.2019.2934824
  27. A Novel Method for Emotion Extraction From Paintings Based on Luscher’s Psychological Color Test: Case Study Iranian-Islamic Paintings IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2936896
  28. Emotion, biology, and culture. 2007
  29. Red, yellow, green, and blue are not particularly colorful Journal of Vision · Association for Research in Vision and Ophthalmology · 2019 10.1167/19.14.27
  30. Recognizing Induced Emotions With Only One Feature: A Novel Color Histogram-Based System IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2975174
  31. Unsupervised K-Means Clustering Algorithm IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2988796
  32. Eliciting emotion ratings for a set of film clips: A preliminary archive for research in emotion The Journal of Social Psychology · Taylor & Francis · 2020 10.1080/00224545.2020.1758016
  33. User-generated video emotion recognition based on key frames Multimedia Tools and Applications · Springer Science+Business Media · 2021 10.1007/s11042-020-10203-1
  34. A Study on the Prediction of Emotion from Image by Time-flow depend on Color Analysis 2021 International Conference on Computational Science and Computational Intelligence (CSCI) · 2020 10.1109/csci51800.2020.00141
  35. Cognition through color Choice Reviews Online · Association of College and Research Libraries · 1991 10.5860/choice.29-2387
  36. Classifying Emotions in Film Music—A Deep Learning Approach Electronics · Multidisciplinary Digital Publishing Institute · 2021 10.3390/electronics10232955
  37. AttendAffectNet–Emotion Prediction of Movie Viewers Using Multimodal Fusion with Self-Attention Sensors · Multidisciplinary Digital Publishing Institute · 2021 10.3390/s21248356
  38. Predicting emotion from music videos: exploring the relative contribution of visual and auditory information to affective responses arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2202.10453
  39. Effects of color–emotion association on facial expression judgments Heliyon · Elsevier BV · 2022 10.1016/j.heliyon.2022.e08804
  40. Rhodopsin Elsevier eBooks · Elsevier BV · 2009 10.1016/b978-008045046-9.00922-0
  41. Color Theory and Its Application in Art and Design Springer series in optical sciences/SPringer series in optical sciences · Springer Nature · 1979 10.1007/978-3-662-15801-2
  42. Analysis of the Use of Color and Its Emotional Relationship in Visual Creations Based on Experiences during the Context of the COVID-19 Pandemic Sustainability · Multidisciplinary Digital Publishing Institute · 2022 10.3390/su142012989