Image emotion classification method based on LSTM network and attention mechanism
A technology of emotion classification and attention, applied in the field of image processing, can solve the problem of low precision and achieve the effect of reducing the impact of semantic gap
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2019-09-20
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
Technical field
[0001] The present invention relates to the technical field of image processing, and more specifically, to an image emotion classification method based on an LSTM network and an attention mechanism. Background technique
[0002] At present, people at home and abroad have begun to research and explore image emotion classification. At present, the general way of image emotion classification is to select the image to be studied, extract the visual features of the image, establish the emotional space, and select the appropriate classifier to study. The images are trained first and then classified. However, in the visual task of image sentiment analysis, the attention system that affects humans is often the local area of the image rather than the overall area of the image, and the existing image sentiment classification model is mainly based on the overall area of the image, which leads to the unsatisfactory effect of emotion classification. . Summary of the in...
Examples
Embodiment 1
[0054] An image sentiment classification method based on LSTM network and attention mechanism, such as figure 1 , 2 As shown, including the following steps:
[0055] S1. Original image initialization: Obtain the original image from the image emotion database, divide the original image into a training image, a test image, and a target image, and initialize the original image to generate a corresponding image target area; Each of the original images corresponds to an emotional attribute and an emotional label; each image in the data set corresponds to an emotional attribute and an emotional label. This embodiment 1 uses the vso image emotion database, in which each picture corresponds to an emotion attribute and an emotion label; image 3 As shown, the happy baby in the upper left of the figure has an emotional attribute of happy and an emotional label of positive.