Prediction of emotion distribution of images based on weighted K-nearest neighbor-attention mechanism
Existing methods for classifying image emotions often overlook the subjective impact emotions evoke in observers, focusing primarily on emotion categories. However, this approach falls short in meeting practical needs as it neglects the nuanced emotional responses captured within an image. This stud...
Main Author: | |
---|---|
Format: | Article |
Language: | English |
Published: |
Frontiers Media S.A.
2024-04-01
|
Series: | Frontiers in Computational Neuroscience |
Subjects: | |
Online Access: | https://www.frontiersin.org/articles/10.3389/fncom.2024.1350916/full |
_version_ | 1797203107105472512 |
---|---|
author | Kai Cheng |
author_facet | Kai Cheng |
author_sort | Kai Cheng |
collection | DOAJ |
description | Existing methods for classifying image emotions often overlook the subjective impact emotions evoke in observers, focusing primarily on emotion categories. However, this approach falls short in meeting practical needs as it neglects the nuanced emotional responses captured within an image. This study proposes a novel approach employing the weighted closest neighbor algorithm to predict the discrete distribution of emotion in abstract paintings. Initially, emotional features are extracted from the images and assigned varying K-values. Subsequently, an encoder-decoder architecture is utilized to derive sentiment features from abstract paintings, augmented by a pre-trained model to enhance classification model generalization and convergence speed. By incorporating a blank attention mechanism into the decoder and integrating it with the encoder's output sequence, the semantics of abstract painting images are learned, facilitating precise and sensible emotional understanding. Experimental results demonstrate that the classification algorithm, utilizing the attention mechanism, achieves a higher accuracy of 80.7% compared to current methods. This innovative approach successfully addresses the intricate challenge of discerning emotions in abstract paintings, underscoring the significance of considering subjective emotional responses in image classification. The integration of advanced techniques such as weighted closest neighbor algorithm and attention mechanisms holds promise for enhancing the comprehension and classification of emotional content in visual art. |
first_indexed | 2024-04-24T08:14:04Z |
format | Article |
id | doaj.art-88fa81b9fa71466ab6d69334ef8b7866 |
institution | Directory Open Access Journal |
issn | 1662-5188 |
language | English |
last_indexed | 2024-04-24T08:14:04Z |
publishDate | 2024-04-01 |
publisher | Frontiers Media S.A. |
record_format | Article |
series | Frontiers in Computational Neuroscience |
spelling | doaj.art-88fa81b9fa71466ab6d69334ef8b78662024-04-17T04:34:32ZengFrontiers Media S.A.Frontiers in Computational Neuroscience1662-51882024-04-011810.3389/fncom.2024.13509161350916Prediction of emotion distribution of images based on weighted K-nearest neighbor-attention mechanismKai ChengExisting methods for classifying image emotions often overlook the subjective impact emotions evoke in observers, focusing primarily on emotion categories. However, this approach falls short in meeting practical needs as it neglects the nuanced emotional responses captured within an image. This study proposes a novel approach employing the weighted closest neighbor algorithm to predict the discrete distribution of emotion in abstract paintings. Initially, emotional features are extracted from the images and assigned varying K-values. Subsequently, an encoder-decoder architecture is utilized to derive sentiment features from abstract paintings, augmented by a pre-trained model to enhance classification model generalization and convergence speed. By incorporating a blank attention mechanism into the decoder and integrating it with the encoder's output sequence, the semantics of abstract painting images are learned, facilitating precise and sensible emotional understanding. Experimental results demonstrate that the classification algorithm, utilizing the attention mechanism, achieves a higher accuracy of 80.7% compared to current methods. This innovative approach successfully addresses the intricate challenge of discerning emotions in abstract paintings, underscoring the significance of considering subjective emotional responses in image classification. The integration of advanced techniques such as weighted closest neighbor algorithm and attention mechanisms holds promise for enhancing the comprehension and classification of emotional content in visual art.https://www.frontiersin.org/articles/10.3389/fncom.2024.1350916/fullimage emotionsclassificationweighted closest neighbor algorithmemotional featuresabstract paintings |
spellingShingle | Kai Cheng Prediction of emotion distribution of images based on weighted K-nearest neighbor-attention mechanism Frontiers in Computational Neuroscience image emotions classification weighted closest neighbor algorithm emotional features abstract paintings |
title | Prediction of emotion distribution of images based on weighted K-nearest neighbor-attention mechanism |
title_full | Prediction of emotion distribution of images based on weighted K-nearest neighbor-attention mechanism |
title_fullStr | Prediction of emotion distribution of images based on weighted K-nearest neighbor-attention mechanism |
title_full_unstemmed | Prediction of emotion distribution of images based on weighted K-nearest neighbor-attention mechanism |
title_short | Prediction of emotion distribution of images based on weighted K-nearest neighbor-attention mechanism |
title_sort | prediction of emotion distribution of images based on weighted k nearest neighbor attention mechanism |
topic | image emotions classification weighted closest neighbor algorithm emotional features abstract paintings |
url | https://www.frontiersin.org/articles/10.3389/fncom.2024.1350916/full |
work_keys_str_mv | AT kaicheng predictionofemotiondistributionofimagesbasedonweightedknearestneighborattentionmechanism |