Convolutional neural network emotion image classification method combining emotion category attention loss

A convolutional neural network and attention technology, applied in the field of emotional image classification of convolutional neural network combined with emotional category attention loss, can solve problems such as uniform distribution by category, no loss function design, and the number of emotional images cannot be achieved. , to achieve a good emotional classification effect and reduce the possible effect of misclassification

Pending Publication Date: 2021-04-06
BEIJING UNIV OF TECH
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although these studies consider the intra-bundle distance, there is no targeted loss function design for sentiment categories with unbalanced sample sizes, which is not enough in real social media environments.
In a real social media environment, the number of emotional images cannot be evenly distributed by category
This will make the commonly trained model unable to consider each emotion category in a targeted manner, resulting in the loss of classification performance.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Convolutional neural network emotion image classification method combining emotion category attention loss
  • Convolutional neural network emotion image classification method combining emotion category attention loss
  • Convolutional neural network emotion image classification method combining emotion category attention loss

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention proposes a convolutional neural network emotional image classification method combined with emotional category attention loss. Overall structure of the present invention is as figure 1 shown. The example of the present invention is simulated under the environment of win10 and JupyterNotebook, and the FI data set is used for training through the method of the present invention to obtain an image emotion classification model that can achieve high accuracy. After the model is obtained, the test image can be input into the model to obtain the sentiment classification result of the image. The concrete realization process of the present invention is as figure 2 As shown, the specific implementation steps are as follows:

[0019] Step 1: set up the emotion category weight vector of image: organize and divide the emotion image data set with label, regard the image of each class in the training set part as one-dimensional, obtain emotion category weight...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a convolutional neural network emotion image classification method combining emotion category attention loss, and relates to the technical field of intelligent media calculation and computer vision. The method comprises the following steps: firstly, performing category weight calculation on a training sample to obtain an emotion category attention weight vector; secondly, modifying a final classification layer and a loss function of the convolutional neural network according to the emotion category number and the emotion category attention loss; then preprocessing the training sample and then transmitting the preprocessed training sample into a network, so that the network achieves convergence after iterative updating of parameters by a loss function and an optimizer, and training is completed; and finally, sending the preprocessed test image into a network, and calculating the emotion image classification accuracy of the obtained model and the prediction category of the model for the test emotion image. According to the convolutional neural network emotion image classification method, when sentiment classification is carried out on the sentiment image through the convolutional neural network, a classification result more conforming to data set sample distribution characteristics can be obtained in a self-adaptive mode, and training and using of a sentiment classification algorithm in different actual application scenes are facilitated.

Description

technical field [0001] The invention belongs to the technical field of computer vision, and relates to a convolutional neural network emotional image classification method combined with emotional category attention loss. Background technique [0002] With the development of social media, people are more and more inclined to record and share their emotions by posting image information on the Internet. These pictures containing emotional information often also contain the publisher's emotional tendency and attitude towards a certain type of thing. Understanding the attitudes of user groups by learning people's emotional trends from massive images plays an important role in product recommendation, public opinion analysis, and social media management. Therefore, how to use computer algorithms to efficiently and automatically identify and analyze a large number of images containing emotional information is an urgent problem to be solved. [0003] Earlier sentiment analysis meth...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06K9/62G06N3/04G06N3/08
CPCG06N3/08G06N3/045G06F18/24
Inventor 毋立芳邓斯诺张恒石戈简萌相叶
Owner BEIJING UNIV OF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products