Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2019-09-20
GUANGDONG UNIV OF TECH
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the problem of low accuracy of existing image emotion classification methods, the present invention provides an image emotion classification method based on LSTM network and attention mechanism

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
  • Image emotion classification method based on LSTM network and attention mechanism
  • Image emotion classification method based on LSTM network and attention mechanism
  • Image emotion classification method based on LSTM network and attention mechanism

Examples

Experimental program
Comparison scheme
Effect test

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.

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 an image emotion classification method based on an LSTM network and an attention mechanism. The method comprises the steps of initializing an original image; setting an image emotion label classifier based on an LSTM network and an attention mechanism; training an image emotion label classifier; testing an image emotion label classifier; and performing sentiment classification on the target image by using the tested image sentiment label classifier to obtain a sentiment classification result. According to the method, image emotion attributes are introduced, an attention mechanism acts on a visual feature map of an image, weighted features of the emotion attributes and the visual features are obtained through calculation and serve as the initial state of an LSTM network, and therefore image emotion areas are accurately detected, and meanwhile multiple emotion areas of the image are focused as much as possible; and based on the image emotion regions, emotion classification is carried out on the image through a classifier, so that image emotion prediction is more accurate, and an image emotion classification result obtained through the method conforms to a human emotion standard.

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...

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/06
CPCG06N3/061G06F18/213G06F18/214Y02D10/00
Inventor 吴壮辉孟敏武继刚
Owner GUANGDONG UNIV OF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products