Image emotion recognition method, device, equipment and storage medium

By decomposing the image emotion recognition model into a semantic network and an emotional network, and decoupling semantic information and emotional information, the problem of insufficient accuracy of image emotion recognition in the existing technology is solved, and a more efficient emotion recognition effect is achieved.

CN110852360BActive Publication Date: 2024-10-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201911046043.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-30
Publication Date
2024-10-18
Estimated Expiration
2039-11-06

AI Technical Summary

Technical Problem

Existing image emotion recognition methods based on deep learning have shortcomings in accuracy, mainly because it is difficult to effectively decouple image semantic information and emotional information, resulting in the inability of neural networks to accurately reflect complex emotional features, and the intra-class variance of the semantic label system is large. , The intersection between classes is large, which affects the recognition effect of the model.

Method used

By decomposing the image emotion recognition model into a semantic network and an emotion network, the semantic network is used for semantic category analysis and the emotion recognition sub-model is used for emotion category analysis respectively, and the correspondence between the semantic category and the emotion recognition sub-model is used for emotion recognition to achieve image semantics. Decoupling information and emotional information improves emotion recognition accuracy.

Benefits of technology

By decoupling semantic information and emotional information, it is easier for the algorithm to learn the emotional information of images, reducing the interference of semantic information, significantly improving the accuracy and effect of image emotion recognition, and being able to discover subtle differences in emotions among similar semantic features. feature.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110852360B_ABST
    Figure CN110852360B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and in particular to an image emotion recognition method, device, equipment and storage medium. The present invention decouples the semantic information of an image from the emotion information, and constructs a corresponding emotion recognition sub-model for each semantic category. When applied, the semantic category of the image is firstly recognized using the semantic recognition sub-model, and the target semantic category is determined according to the semantic category recognition result. Then, the target emotion recognition sub-model corresponding to the target semantic category is determined according to the correspondence between the semantic category and the emotion recognition sub-model. The target emotion recognition sub-model is used to perform emotion recognition, and the emotion recognition result of the image is obtained, which can greatly improve the image emotion recognition accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an image emotion recognition method, device, equipment and storage medium. Background Art

[0002] At present, the image emotion recognition method based on deep learning mainly replaces the image semantic labels with emotion labels, and then trains a neural network to fit these emotion labels, such as Figure 2 As shown, the process of image emotion recognition is the same as that of content recognition, the difference is that the semantic label is replaced by the emotion label, and its accuracy in image emotion recognition is not high. Summary of the invention

[0003] The present invention provides an image emotion recognition method, device, equipment and storage medium, which can greatly improve the image emotion recognition effect by decoupling the semantic information and emotion information of the image.

[0004] In one aspect, the present invention provides an image emotion recognition method, comprising:

[0005] Obtain an image to be recognized;

[0006] Inputting the image to be recognized into the image emotion recognition model, performing semantic category analysis on the image to be recognized through the semantic recognition submodel of the image emotion recognition model, and obtaining the deep image features of the image to be recognized and the probability that the image to be recognized belongs to each semantic category;

[0007] Determining the target semantic category to which the image to be identified belongs based on the probability that the image to be identified belongs to each semantic category;

[0008] Determine a target emotion recognition sub-model from a plurality of emotion recognition sub-models of the image emotion recognition model according to the target semantic category;

[0009] Inputting the target semantic category and the deep image features into the target emotion recognition sub-model to perform emotion category analysis, and obtaining the probability that the image to be recognized belongs to each emotion category;

[0010] The emotion recognition result of the image to be recognized is determined based on the probability that the image to be recognized belongs to each emotion category.

[0011] In another aspect, the present invention provides an image emotion recognition device, comprising:

[0012] An image acquisition module to be identified, used to acquire an image to be identified;

[0013] A semantic category analysis module, used to input the image to be identified into the image emotion recognition model, perform semantic category analysis on the image to be identified through the semantic recognition sub-model of the image emotion recognition model, and obtain the deep image features of the image to be identified and the probability that the image to be identified belongs to each semantic category;

[0014] A target semantic category determination module, used to determine the target semantic category to which the image to be identified belongs based on the probability that the image to be identified belongs to each semantic category;

[0015] A target emotion recognition sub-model determination module, used to determine a target emotion recognition sub-model from a plurality of emotion recognition sub-models of an image emotion recognition model according to the target semantic category;

[0016] The emotion type analysis module is used to input the target semantic category and the deep image features into the target emotion recognition sub-model to perform emotion category analysis, and obtain the probability that the image to be recognized belongs to each emotion category;

[0017] The emotion recognition result determination module is used to determine the emotion recognition result of the image to be recognized based on the probability that the image to be recognized belongs to each emotion category.

[0018] Preferably, the target semantic category determination module is further configured to determine a semantic category with the highest probability among the semantic categories to which the image to be identified belongs as the target semantic category.

[0019] Preferably, the target emotion recognition submodel determination module is further used to use the emotion recognition submodel corresponding to the semantic category that is the same as the target semantic category as the target emotion recognition submodel according to the mapping relationship between the semantic category and the emotion recognition submodel.

[0020] The emotion recognition result determination module is further used to sort the emotion categories to which the image to be recognized belongs according to probability, and select a preset number of emotion categories ranked first as the emotion recognition result of the image to be recognized.

[0021] Preferably, the image emotion recognition model is trained in the following manner:

[0022] Acquire a sample image set, wherein each sample image in the sample image set has a semantic category label and a sentiment category label;

[0023] Performing image semantic recognition training on the first initial deep learning model based on the sample image and the semantic category label of the sample image to obtain a semantic recognition sub-model;

[0024] Defining a corresponding second initial deep learning model for each semantic category;

[0025] Classifying the sample image set based on semantic category labels to obtain sample subsets corresponding to each semantic category;

[0026] A second initial deep learning model corresponding to the same semantic category as the sample subset is trained according to the sample subset to obtain an emotion recognition sub-model corresponding to the semantic category.

[0027] In a feasible implementation, the performing of image semantic recognition training on the first initial deep learning model based on the sample image and the semantic category label of the sample image to obtain a semantic recognition sub-model includes:

[0028] Inputting the sample image and the semantic category label of the sample image into a first initial deep learning model;

[0029] Performing forward calculation on the sample image to obtain a predicted probability that the sample image belongs to a semantic category;

[0030] Determining a semantic category prediction result of the sample image based on a predicted probability that the sample image belongs to a semantic category;

[0031] Comparing the semantic category prediction result with the semantic category label to calculate the semantic category loss value;

[0032] Back-propagating the semantic category loss value into the first initial deep learning model, and adjusting the weight parameters of the first initial deep learning model by stochastic gradient descent method;

[0033] Input the sample image and the semantic category label of the sample image into the first initial deep learning model after updating the weight parameters, and repeat the above step of adjusting the weight parameters until the first initial deep learning model with the current adjusted weight parameters meets the preset first convergence condition;

[0034] The first initial deep learning model after the current weight parameters are adjusted is used as the semantic recognition sub-model.

[0035] In a feasible implementation, the training of a second initial deep learning model corresponding to the same semantic category as the sample subset according to the sample subset to obtain an emotion recognition sub-model corresponding to the semantic category includes:

[0036] Determine a target sample image for each second initial deep learning model, where the target sample image is all sample images in a sample subset corresponding to the same semantic category as the second initial deep learning model;

[0037] Input the target sample image into the semantic recognition sub-model, and extract the output of the feature layer before the result output layer of the semantic recognition sub-model as the deep image feature of the target sample image;

[0038] Input the deep image features and emotion category labels of the target sample image into the corresponding second initial deep learning model; perform forward calculation on the deep image features of the target sample image to obtain the predicted probability that the target sample image belongs to the emotion category; determine the emotion category prediction result of the target sample image based on the predicted probability that the target sample image belongs to the emotion category; compare the emotion category prediction result with the emotion category label to calculate the emotion category loss value; back-propagate the emotion category loss value to the second initial deep learning model, and adjust the weight parameters of the second initial deep learning model by stochastic gradient descent; input the target sample image and the emotion category label of the target sample image into the second initial deep learning model after updating the weight parameters, and repeat the above adjustment of the weight parameters of the first initial deep learning model to meet the preset second convergence condition; use the second initial deep learning model after the current adjustment of the weight parameters as the emotion recognition sub-model corresponding to the emotion category;

[0039] Repeat the above steps of training the emotion recognition sub-models until all the second initial deep learning models are trained, and obtain multiple emotion recognition sub-models corresponding to the semantic categories one by one.

[0040] On the other hand, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the above-mentioned image emotion recognition method.

[0041] On the other hand, the present invention provides a computer-readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the above-mentioned image emotion recognition method.

[0042] The present invention provides an image emotion recognition method, device, equipment and storage medium, which have the following beneficial effects:

[0043] The present invention decouples the semantic information from the emotional information of the image, and constructs a corresponding emotion recognition submodel for each semantic category. When applied, the semantic recognition submodel is first used to recognize the semantic category of the image, and the target semantic category is determined according to the semantic category recognition result. Then, the target emotion recognition submodel corresponding to the target semantic category is determined according to the correspondence between the semantic category and the emotion recognition submodel, and the target emotion recognition submodel is used to perform emotion recognition to obtain the emotion recognition result of the image. The present invention decouples the semantic information from the emotional information, making it easier for the algorithm to learn the emotional information of the image without being disturbed by the semantic information, which can greatly improve the effect of image emotion recognition; using a special emotion recognition submodel for emotion recognition can find emotional features with subtle differences in similar semantic features, thereby improving the accuracy of emotion recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 It is a comparison of images with similar semantics but different emotions;

[0046] Figure 2 This is a schematic diagram of the existing image emotion recognition network architecture;

[0047] Figure 3 It is a schematic diagram of an implementation environment of an image emotion recognition method provided in an embodiment of the present application;

[0048] Figure 4 It is a flowchart of an image emotion recognition method provided by an embodiment of the present invention;

[0049] Figure 5 Schematic diagram of the training process of the image emotion recognition model provided by an embodiment of the present invention;

[0050] Figure 6 Schematic diagram of the training process of the semantic recognition sub-model provided by an embodiment of the present invention;

[0051] Figure 7 is a schematic diagram of the training process of the emotion recognition sub-model provided in an embodiment of the present invention;

[0052] Figure 8 is a schematic diagram of an image emotion recognition network architecture provided by an embodiment of the present invention;

[0053] Fig. 9This is a schematic diagram of an application scenario of the image emotion recognition method provided by an embodiment of the present invention;

[0054] Fig.10 is a schematic diagram of the structure of an image emotion recognition device provided by an embodiment of the present invention;

[0055] Fig.11 The present invention provides a hardware structure block diagram of a server. DETAILED DESCRIPTION

[0056] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0057] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0058] In order to facilitate the description of the advantages of the method in the embodiment of the present invention, at the beginning of the detailed description of the technical solution in the embodiment of the present invention, the relevant contents of the prior art are first analyzed:

[0059] The existing deep learning-based image emotion recognition pipeline is essentially the same as semantic content recognition. It mainly achieves the purpose of identifying image emotions by directly learning emotion labels. This method has a certain effect when there are sufficient training images and accurate annotations. However, although convolutional neural networks are good at extracting image content information, human emotions are complex and changeable. The correlation between image content and image emotions is extremely complex. Images with similar semantic features can often convey completely different emotions due to slight differences. As a result, the visual features extracted by the neural network cannot accurately reflect emotions, thus affecting the accuracy of the model. For example, Figure 1 In the first row, although they are all images of a mouse, the mouse on the left evokes positive emotions that make people feel cute, the one in the middle evokes neutral emotions, and the one on the right evokes negative emotions that make people feel disgusted and scared.

[0060] The reason is that convolutional neural networks extract visual features such as shape and texture that are strongly related to objective semantics, while emotions are subjective and complex: one emotion can correspond to many different semantic features, and one semantic feature can also be shared by multiple emotion types. Figure 1 As shown in the figure, the emotions of the horizontal images are positive on the left, neutral in the middle, and negative on the right, but the images with the same emotions in the vertical row can hardly find common visual features. This results in large intra-class variance and large crossover between classes in the emotion labeling system of the existing scheme, which makes the model unable to effectively learn significant emotion features and has limited recognition effect. Therefore, only by decoupling the complex emotion and semantic relationship of the image can we correctly identify the emotion features without being disturbed by irrelevant semantic features.

[0061] In view of the deficiencies of the prior art, an embodiment of the present invention provides an image emotion recognition solution, which adopts the idea of ​​decoupling image emotion and semantics, decomposes the network structure into a semantic network and an emotion network, and adopts different label systems respectively; first, the semantic network is used to predict the semantic label of the image (i.e., what the image contains); the pictures of the same type of semantic labels predicted in this way have similar semantic features; then, for the pictures in each semantic category, a special semantic emotion network is used to predict the emotion label, and the output of their feature layer before the semantic network classification layer is used as the input feature of the emotion network, and the feature layer can be a fully connected layer or a convolutional layer; the special semantic emotion network can find subtle differences in emotion features in similar semantic features, thereby improving recognition accuracy. The technical solution in the embodiment of the present invention is clearly and completely described below in conjunction with the accompanying drawings.

[0062] Figure 3 This is a schematic diagram of the implementation environment of an image emotion recognition method provided in an embodiment of the present application; please refer to Figure 3 , the implementation environment includes: client 01 and server 03.

[0063] The client 01 may include physical devices such as smart phones, tablet computers, laptop computers, digital assistants, smart wearable devices, and vehicle-mounted terminals, and may also include software running in physical devices, such as applications with image emotion recognition functions. The client 01 may be connected to the server 03 in a communication manner based on a browser / server mode (B / S) or a client / server mode (C / S).

[0064] The client 01 can send an image to be identified to the server 03. The server 03 can perform semantic category analysis on the image to be identified based on a preset image emotion recognition model using a semantic recognition submodel of the image emotion recognition model to obtain a target semantic category, and then determine a target emotion recognition submodel from multiple emotion recognition submodels of the image emotion recognition model according to the target semantic category, perform emotion category analysis using the target emotion recognition submodel, output an emotion recognition result of the image to be identified, and transmit the emotion recognition result to the client 01. In a preferred embodiment, the server 03 can also train an initial deep model based on a sample image set to obtain an image emotion recognition model.

[0065] The server 03 may include an independently operated server, or a distributed server, or a server cluster consisting of multiple servers.

[0066] Figure 4 is a flow chart of an image emotion recognition method provided by an embodiment of the present invention. The flow chart can be Figure 3 The server execution implementation shown in the figure, this specification provides the method operation steps as described in the embodiment or flowchart, but based on routine or non-creative work, more or fewer operation steps may be included. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only execution order. When the actual system or client product is executed, it can be executed in the order of the method shown in the embodiment or the figure or in parallel (for example, in a parallel processor or multi-threaded processing environment). Please refer to Figure 4 , the image emotion recognition method provided by the embodiment of the present application includes:

[0067] S401: Obtain an image to be recognized.

[0068] The images to be identified include images that can be associated with semantics and emotions, such as Figure 1 As shown in the images, the content presented in different images can be associated with different semantics and emotions.

[0069] S403: input the image to be recognized into an image emotion recognition model, perform semantic category analysis on the image to be recognized through a semantic recognition sub-model of the image emotion recognition model, and obtain deep image features of the image to be recognized and the probability that the image to be recognized belongs to each semantic category.

[0070] S405 : Determine the target semantic category to which the image to be identified belongs based on the probability that the image to be identified belongs to each semantic category.

[0071] In a feasible embodiment, determining the target semantic category to which the image to be recognized belongs may include: determining a semantic category with the highest probability among the semantic categories to which the image to be recognized belongs as the target semantic category.

[0072] S407: Determine a target emotion recognition sub-model from a plurality of emotion recognition sub-models of the image emotion recognition model according to the target semantic category.

[0073] Specifically, according to the mapping relationship between semantic categories and emotion recognition sub-models, the emotion recognition sub-model corresponding to the semantic category that is the same as the target semantic category can be used as the target emotion recognition sub-model.

[0074] S409: Input the target semantic category and the deep image features into the target emotion recognition sub-model to perform emotion category analysis, and obtain the probability that the image to be recognized belongs to each emotion category.

[0075] S411. Determine an emotion recognition result of the image to be recognized based on the probability that the image to be recognized belongs to each emotion category.

[0076] In a feasible embodiment, determining the emotion recognition result of the image to be recognized may include: sorting the emotion categories to which the image to be recognized belongs according to probability, and selecting a preset number of emotion categories ranked first as the emotion recognition result of the image to be recognized.

[0077] Figure 8 is a schematic diagram of the image emotion recognition network architecture provided by an embodiment of the present invention, such as Figure 8 As shown, the image emotion recognition model may include a semantic recognition sub-model, an activation selection module and an emotion recognition sub-model branch, wherein the semantic recognition sub-model is used to perform semantic recognition on the input image, and output the probability that the image belongs to each semantic category label among M semantic category labels and the deep image features of the image, and the activation selection module is used to determine the target semantic category label of the image based on the probability of each semantic category label, and determine the emotion recognition sub-model corresponding to the same semantic category as the target semantic category label from the M emotion recognition sub-models as the target emotion recognition sub-model, input the image features and the target semantic category label into the target emotion recognition sub-model, and output the emotion recognition result of the image.

[0078] Among them, the semantic recognition sub-model and the emotion recognition sub-model of the emotion recognition model both use deep convolutional neural networks. Deep convolutional neural networks are one of the most successful technologies in the field of computer vision and machine learning in recent years. Through multiple convolutional layers (including related pooling layers, batch normalization layers, activation function layers, residual layers, etc.), the spatial information of images (or feature maps) is extracted and multi-layer abstracted, which can achieve recognition effects far exceeding traditional computer vision methods. Deep convolutional neural networks learn features with good transferability, that is, the output of each layer before the classification layer or regression layer of the final output of the trained model can be used as the input feature of another machine learning task. Since deep features can extract highly abstract image information after being trained with big data, they can usually achieve better results than manual features.

[0079] Figure 5 is a schematic diagram of the training process of the image emotion recognition model provided by an embodiment of the present invention. Figure 5 , the image emotion recognition model can be trained in the following way:

[0080] S501. Obtain a sample image set, wherein each sample image in the sample image set has a semantic category label and a sentiment category label.

[0081] Different from traditional image emotion recognition, the present invention uses both emotion category labels and semantic category labels; emotion category labels can be divided into coarse-grained positive, neutral, and negative according to the application scenario, or they can be divided into fine-grained happiness, anger, awe, satisfaction, nausea, excitement, fear, sadness, etc.; semantic category labels can be manually labeled types with common visual features, such as people, animals, food, transportation, etc. When there is no conditional labeling, the training images can be clustered through clustering algorithms (such as k-means, spectral clustering, etc.) to automatically divide the semantic category labels with common visual features.

[0082] S503: Perform image semantic recognition training on the first initial deep learning model based on the sample image and the semantic category label of the sample image to obtain a semantic recognition sub-model.

[0083] The semantic recognition sub-model has two functions: 1) predicting the semantic category label of the input image, and 2) extracting the deep semantic features of the input image. By training with the cross entropy of the semantic category label as the objective function, the semantic recognition sub-model can learn discriminative semantic features, that is, there are large differences between the semantic features of pictures of different semantic classes, while the semantic features of pictures of the same semantic class are relatively similar. The semantic network used in the present invention uses the mainstream ResNet-50 architecture, which outputs the semantic features of the penultimate layer of 2048 dimensions, but any convolutional neural network can be used in practical applications or the semantic features of any layer can be extracted. Define the input image as x, the semantic network parameter as θ, and the output feature: s=f(x;θ)∈R n , where n is the dimension of the feature; the probability of the output semantic category label is expressed as z = p(x; θ) ∈ R M .

[0084] In a feasible embodiment, the semantic recognition sub-model can be Figure 6 The training process shown is obtained, see Figure 6 ,include:

[0085] S601, inputting the sample image and the semantic category label of the sample image into a first initial deep learning model;

[0086] S603, performing forward calculation on the sample image to obtain a predicted probability that the sample image belongs to a semantic category;

[0087] S605, determining a semantic category prediction result of the sample image based on the predicted probability that the sample image belongs to a semantic category;

[0088] S607, comparing the semantic category prediction result with the semantic category label, and calculating a semantic category loss value;

[0089] S609, back-propagating the semantic category loss value to the first initial deep learning model, and adjusting the weight parameters of the first initial deep learning model by stochastic gradient descent method;

[0090] Input the sample image and the semantic category label of the sample image into the first initial deep learning model after updating the weight parameters, and repeat the above step of adjusting the weight parameters until the first initial deep learning model with the current adjusted weight parameters meets the preset first convergence condition;

[0091] S611. Use the first initial deep learning model after adjusting the current weight parameters as the semantic recognition sub-model.

[0092] S505: Define a corresponding second initial deep learning model for each semantic category.

[0093] The embodiment of the present invention defines or clusters M semantic labels, requiring that the training images in the defined semantic labels have common semantic features visually, or clustering is performed so that the training images of each cluster cluster have common semantic features. A corresponding second initial deep learning model is set for each semantic category.

[0094] S507: Classify the sample image set based on the semantic category labels to obtain sample subsets corresponding to each semantic category.

[0095] S509: Train a second initial deep learning model of the same semantic category as the sample subset according to the sample subset to obtain an emotion recognition sub-model corresponding to the semantic category.

[0096] The present invention uses multiple isomorphic emotion recognition sub-model branches (that is, the architecture and output label system of all branches are exactly the same, only the network parameters are different) connected to the feature output layer of the semantic network through an activation selection layer, and each emotion recognition sub-model corresponds to a semantic category. When the image is input into the semantic recognition sub-model, the predicted semantic category label and image depth feature are output. According to the predicted semantic category label, the emotion recognition sub-model corresponding to the semantic category label with the highest activation probability is selected through the activation selection layer. The activated emotion recognition sub-model takes the output depth feature of the semantic recognition sub-model as input, and finally outputs the predicted emotion category label through the emotion recognition sub-model. The emotion recognition sub-model used in the present invention is a multi-layer perceptron containing two hidden layers, and the dimensions of the two hidden layers are 2048 and 1024 respectively, but any neural network architecture can be used in practical applications. Define the i-th emotion network branch q i The parameter is ω i , then the probability of the emotion category can be expressed as y = q i (s;ω i )∈R M ,

[0097] Figure 7 is a schematic diagram of the training process of the emotion recognition sub-model provided in an embodiment of the present invention, please refer to Figure 7 , the training process of the emotion recognition sub-model includes:

[0098] S701. Determine a target sample image for each second initial deep learning model, where the target sample images are all sample images in a sample subset corresponding to the same semantic category as the second initial deep learning model.

[0099] S703: Input the target sample image into the semantic recognition sub-model, and extract the output of the feature layer before the result output layer of the semantic recognition sub-model as the depth image feature of the target sample image.

[0100] S705: Input the deep image features and emotion category labels of the target sample image into the corresponding second initial deep learning model for emotion recognition training to obtain an emotion recognition sub-model corresponding to the emotion category.

[0101] In a feasible embodiment, the deep image features and emotion category labels of the target sample image can be input into the corresponding second initial deep learning model; the deep image features of the target sample image are forward calculated to obtain the predicted probability that the target sample image belongs to the emotion category; the emotion category prediction result of the target sample image is determined based on the predicted probability that the target sample image belongs to the emotion category; the emotion category prediction result is compared with the emotion category label to calculate the emotion category loss value; the emotion category loss value is back-propagated into the second initial deep learning model, and the weight parameters of the second initial deep learning model are adjusted by the stochastic gradient descent method; the target sample image and the emotion category label of the target sample image are input into the second initial deep learning model after the weight parameters are updated, and the first initial deep learning model with the weight parameters adjusted is repeated to meet the preset second convergence condition; the second initial deep learning model with the current adjusted weight parameters is used as the emotion recognition sub-model corresponding to the emotion category; the steps of training the emotion recognition sub-model are repeated until all the second initial deep learning models are trained to obtain the emotion recognition sub-model corresponding to the semantic category.

[0102] The embodiment of the present invention uses annotated or clustered semantic category labels to train the semantic recognition sub-model, and various standard training methods such as SGD, ADAM, etc. can be used, and the loss function is cross entropy. After the semantic recognition sub-model is trained, the corresponding emotion recognition sub-model is trained respectively according to the semantic category labels and image depth features output by it, that is, each semantic category label uses the depth features of the training image it contains and the emotion category label to train the corresponding emotion recognition sub-model, and various standard training methods such as SGD, ADAM, etc. can be used, and the loss function is cross entropy.

[0103] After adopting the solution of the present invention, the training difficulty of the image emotion recognition model can be effectively reduced and the prediction accuracy can be improved.

[0104] When users browse the recommended graphic content of applications or web pages, since images occupy a large proportion of the mobile phone screen, if images that cause negative emotions are incorrectly recommended, it will greatly affect the user experience. Fig. 9 In the screenshot image of the mobile phone, the framed area of ​​the page recommends uncomfortable pictures, which seriously affects the user experience. The solution of the present invention can be applied to the recognition of disgusting and offensive images in image review projects, helping to filter negative emotional images and recommend positive emotional images, such as filtering out Fig. 9The present invention can automatically review the images uploaded daily on applications or web pages, effectively filter out images that cause negative emotions such as nausea, fear, and disgust, improve the user experience of the product, and reduce the workload of manual review.

[0105] In recent years, deep learning has made great progress in the recognition of image content or semantic information, making this technology fully applied in Internet image-related businesses. However, the recognition of image emotional information, which is opposite to semantic information, has not been greatly improved by using deep learning. The reason is that the semantic content and visual features of image expression are strongly correlated, while the relationship between emotional content and visual features is more subtle and less obvious, resulting in the inability of deep learning algorithms to effectively learn visual features related to emotions, and thus unable to improve recognition effects.

[0106] In this regard, an embodiment of the present invention further provides an image emotion recognition device, Fig.10 is a schematic diagram of the structure of an image emotion recognition device provided by an embodiment of the present invention, such as Fig.10 As shown, the device comprises:

[0107] The to-be-recognized image acquisition module 1010 is used to acquire the to-be-recognized image;

[0108] The semantic category analysis module 1020 is used to input the image to be identified into the image emotion recognition model, perform semantic category analysis on the image to be identified through the semantic recognition sub-model of the image emotion recognition model, and obtain the deep image features of the image to be identified and the probability that the image to be identified belongs to each semantic category;

[0109] A target semantic category determination module 1030 is used to determine the target semantic category to which the image to be identified belongs based on the probability that the image to be identified belongs to each semantic category;

[0110] A target emotion recognition sub-model determination module 1040 is used to determine a target emotion recognition sub-model from a plurality of emotion recognition sub-models of an image emotion recognition model according to the target semantic category;

[0111] The emotion type analysis module 1050 is used to input the target semantic category and the deep image features into the target emotion recognition sub-model to perform emotion category analysis, and obtain the probability that the image to be recognized belongs to each emotion category;

[0112] The emotion recognition result determination module 1060 is used to determine the emotion recognition result of the image to be recognized based on the probability that the image to be recognized belongs to each emotion category.

[0113] Preferably, the target semantic category determination module 1030 is further configured to determine a semantic category with the highest probability among the semantic categories to which the image to be identified belongs as the target semantic category.

[0114] Preferably, the target emotion recognition submodel determination module 1040 is further used to use the emotion recognition submodel corresponding to the semantic category that is the same as the target semantic category as the target emotion recognition submodel according to the mapping relationship between the semantic category and the emotion recognition submodel.

[0115] The emotion recognition result determination module 1060 is further used to sort the emotion categories to which the image to be recognized belongs according to probability, and select a preset number of emotion categories ranked first as the emotion recognition result of the image to be recognized.

[0116] In a feasible embodiment, the image emotion recognition model is trained in the following manner:

[0117] Acquire a sample image set, wherein each sample image in the sample image set has a semantic category label and a sentiment category label;

[0118] Performing image semantic recognition training on the first initial deep learning model based on the sample image and the semantic category label of the sample image to obtain a semantic recognition sub-model;

[0119] Defining a corresponding second initial deep learning model for each semantic category;

[0120] Classifying the sample image set based on semantic category labels to obtain sample subsets corresponding to each semantic category;

[0121] A second initial deep learning model corresponding to the same semantic category as the sample subset is trained according to the sample subset to obtain an emotion recognition sub-model corresponding to the semantic category.

[0122] In a feasible implementation, the performing of image semantic recognition training on the first initial deep learning model based on the sample image and the semantic category label of the sample image to obtain a semantic recognition sub-model includes:

[0123] Inputting the sample image and the semantic category label of the sample image into a first initial deep learning model;

[0124] Performing forward calculation on the sample image to obtain a predicted probability that the sample image belongs to a semantic category;

[0125] Determining a semantic category prediction result of the sample image based on a predicted probability that the sample image belongs to a semantic category;

[0126] Comparing the semantic category prediction result with the semantic category label to calculate the semantic category loss value;

[0127] Back-propagating the semantic category loss value into the first initial deep learning model, and adjusting the weight parameters of the first initial deep learning model by stochastic gradient descent method;

[0128] Input the sample image and the semantic category label of the sample image into the first initial deep learning model after updating the weight parameters, and repeat the above step of adjusting the weight parameters until the first initial deep learning model with the current adjusted weight parameters meets the preset first convergence condition;

[0129] The first initial deep learning model after the current weight parameters are adjusted is used as the semantic recognition sub-model.

[0130] In a feasible implementation, the training of a second initial deep learning model corresponding to the same semantic category as the sample subset according to the sample subset to obtain an emotion recognition sub-model corresponding to the semantic category includes:

[0131] Determine a target sample image for each second initial deep learning model, where the target sample image is all sample images in a sample subset corresponding to the same semantic category as the second initial deep learning model;

[0132] Input the target sample image into the semantic recognition sub-model, and extract the output of the feature layer before the result output layer of the semantic recognition sub-model as the deep image feature of the target sample image;

[0133] Input the deep image features and emotion category labels of the target sample image into the corresponding second initial deep learning model; perform forward calculation on the deep image features of the target sample image to obtain the predicted probability that the target sample image belongs to the emotion category; determine the emotion category prediction result of the target sample image based on the predicted probability that the target sample image belongs to the emotion category; compare the emotion category prediction result with the emotion category label to calculate the emotion category loss value; back-propagate the emotion category loss value to the second initial deep learning model, and adjust the weight parameters of the second initial deep learning model by stochastic gradient descent; input the target sample image and the emotion category label of the target sample image into the second initial deep learning model after updating the weight parameters, and repeat the above adjustment of the weight parameters of the first initial deep learning model to meet the preset second convergence condition; use the second initial deep learning model after the current adjustment of the weight parameters as the emotion recognition sub-model corresponding to the emotion category;

[0134] Repeat the above steps of training the emotion recognition sub-models until all the second initial deep learning models are trained, and obtain multiple emotion recognition sub-models corresponding to the semantic categories one by one.

[0135] The image emotion recognition device and method embodiments are based on the same inventive concept.

[0136] The present invention decouples the semantic information from the emotional information of the image, and constructs a corresponding emotion recognition submodel for each semantic category. When applied, the semantic recognition submodel is first used to recognize the semantic category of the image, and the target semantic category is determined according to the semantic category recognition result. Then, the target emotion recognition submodel corresponding to the target semantic category is determined according to the correspondence between the semantic category and the emotion recognition submodel, and the target emotion recognition submodel is used to perform emotion recognition to obtain the emotion recognition result of the image. The present invention decouples the semantic information from the emotional information, making it easier for the algorithm to learn the emotional information of the image without being disturbed by the semantic information, which can greatly improve the effect of image emotion recognition; using a special emotion recognition submodel for emotion recognition can find emotional features with subtle differences in similar semantic features, thereby improving the accuracy of emotion recognition.

[0137] At present, when an application recommends graphic content to users, in addition to general review of the picture, it also takes whether the picture contains negative emotions (negative emotions such as nausea, disgust, fear, etc. that cause discomfort to people) as an important indicator. However, the application needs to process more than tens of millions of pictures every day, and it is very expensive and inefficient to rely entirely on manual review. The present invention is based on deep learning technology, which decouples the semantic information and emotional information of the image, making it easier for the algorithm to learn the emotional information of the image without being disturbed by the semantic information, greatly improving the effect of image emotion recognition. The present invention is applied to the recognition of disgusting and disgusting images in applications, which can greatly speed up the efficiency of image review, reduce operating costs, and improve user experience.

[0138] An embodiment of the present invention provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the image emotion recognition method provided in the above method embodiment.

[0139] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.

[0140] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal, a server or a similar computing device. Taking running on a server as an example, Fig.11 1 is a hardware structure diagram of a server provided by an embodiment of the present invention. Fig.11 As shown, the server 1100 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1110 (the processor 1110 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1130 for storing data, and one or more storage media 1120 (such as one or more mass storage devices) for storing application programs 1123 or data 1122. Among them, the memory 1130 and the storage medium 1120 can be short-term storage or permanent storage. The program stored in the storage medium 1120 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 1110 can be configured to communicate with the storage medium 1120 and execute a series of instruction operations in the storage medium 1120 on the server 1100. The server 1100 may also include one or more power supplies 1160, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1140, and / or one or more operating systems 1121, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0141] The input / output interface 1140 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 1100. In one example, the input / output interface 1140 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 1140 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0142] It can be understood by those skilled in the art that Fig.11 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.11 More or fewer components as shown, or with Fig.11 Different configurations are shown.

[0143] An embodiment of the present invention also provides a storage medium, which can be set in a server to store at least one instruction, at least one program, code set or instruction set related to an image emotion recognition method in a method embodiment. The at least one instruction, the at least one program, the code set or instruction set is loaded and executed by the processor to implement the image emotion recognition method provided by the above method embodiment.

[0144] Optionally, in this embodiment, the storage medium may be located in at least one of the plurality of network clients of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0145] It should be noted that the sequence of the embodiments of the present invention described above is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0146] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and server embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0147] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0148] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for image emotion recognition, characterized in that: include: Acquire an image to be identified, where the image to be identified is an image uploaded by a target application; Input the image to be recognized into the image emotion recognition model, perform semantic category analysis on the image to be recognized through the semantic recognition sub-model of the image emotion recognition model, obtain the first depth image feature and the probability that the image to be recognized belongs to each semantic category, wherein one semantic category indicates a type with common visual features, the first depth image feature is the depth image feature of the image to be recognized, and the depth image feature is the output of the feature layer before the result output layer of the semantic recognition sub-model; Determining the target semantic category to which the image to be identified belongs based on the probability that the image to be identified belongs to each semantic category; Determine a target emotion recognition sub-model from a plurality of emotion recognition sub-models of the image emotion recognition model according to the target semantic category; Inputting the target semantic category and the first depth image feature into the target emotion recognition sub-model to perform emotion category analysis, and obtaining the probability that the image to be recognized belongs to each emotion category; An emotion recognition result of the image to be recognized is determined based on the probability that the image to be recognized belongs to each emotion category, and the emotion recognition result is used to determine whether to recommend the image to be recognized to an access object of the target application.

2. The method according to claim 1, characterized in that The determining the target semantic category to which the image to be identified belongs based on the probability that the image to be identified belongs to each semantic category includes: The semantic category indicating the maximum probability among the semantic categories to which the image to be recognized belongs is determined as the target semantic category.

3. The method according to claim 1, characterized in that: The step of determining a target emotion recognition sub-model from a plurality of emotion recognition sub-models of the image emotion recognition model according to the target semantic category comprises: According to the mapping relationship between the preset semantic category and the emotion recognition sub-model, the emotion recognition sub-model corresponding to the preset semantic category which is the same as the target semantic category is used as the target emotion recognition sub-model.

4. The method according to claim 1, characterized in that: The determining the emotion recognition result of the image to be recognized based on the probability that the image to be recognized belongs to each emotion category includes: The emotion categories to which the image to be identified belongs are sorted according to probability, and a preset number of emotion categories that are ranked first are selected as emotion recognition results of the image to be identified.

5. The method according to claim 1, characterized in that The image emotion recognition model is trained in the following way: Acquire a sample image set, wherein each sample image in the sample image set carries a corresponding semantic category label and an emotional category label; Performing image semantic recognition training on a first initial deep learning model based on the sample image and the semantic category label carried by the sample image to obtain the semantic recognition sub-model; Define a corresponding second initial deep learning model for each of the semantic categories, where one of the semantic categories corresponds to one of the semantic category labels; Classifying the sample image set based on the semantic category label to obtain a sample subset corresponding to each semantic category; For each of the semantic categories, the second initial deep learning model corresponding to the semantic category is trained according to the sample subset corresponding to the semantic category to obtain the emotion recognition sub-model corresponding to the semantic category.

6. The method according to claim 5, characterized in that The step of performing image semantic recognition training on the first initial deep learning model based on the sample image and the semantic category label carried by the sample image to obtain the semantic recognition sub-model includes: Inputting the sample image and the semantic category label carried by the sample image into the first initial deep learning model; Performing forward calculation on the sample image to obtain the predicted probability that the sample image belongs to each semantic category; Determining a semantic category prediction result of the sample image based on the predicted probability that the sample image belongs to each semantic category; Comparing the semantic category prediction result with the semantic category label to calculate the semantic category loss value; Back-propagating the semantic category loss value into the first initial deep learning model, and adjusting the weight parameters of the first initial deep learning model by stochastic gradient descent method; Input the sample image and the semantic category label carried by the sample image into the first initial deep learning model after adjusting the weight parameters, and repeat the above step of adjusting the weight parameters until the first initial deep learning model after the current weight parameters are adjusted meets a preset first convergence condition; The first initial deep learning model after the current weight parameters are adjusted is used as the semantic recognition sub-model.

7. The method according to claim 5, characterized in that The target sample subset is the sample subset corresponding to the semantic category, the target second initial deep learning model is the second initial deep learning model corresponding to the semantic category, and the second initial deep learning model corresponding to the semantic category is trained according to the sample subset corresponding to the semantic category to obtain the emotion recognition submodel corresponding to the semantic category, including: For each target sample image, input the target sample image into the semantic recognition sub-model to obtain a second depth image feature, where the second depth image feature is the depth image feature of the target sample image, and the target sample image is any image in the target sample subset; Inputting the second deep image features and the emotion category label carried by the target sample image into the target second initial deep learning model; Performing forward calculation on the second depth image feature to obtain the predicted probability that the target sample image belongs to each emotion category; Determining the emotion category prediction result of the target sample image based on the prediction probability that the target sample image belongs to each emotion category; Compare the emotion category prediction result with the emotion category label carried by the target sample image, and calculate the emotion category loss value; Back-propagating the emotion category loss value into the target second initial deep learning model, and adjusting the weight parameters of the target second initial deep learning model by stochastic gradient descent method; Input the target sample image and the emotion category label carried by the target sample image into the target second initial deep learning model after adjusting the weight parameters, and repeat the above step of adjusting the weight parameters until the target first initial deep learning model after the current adjustment of the weight parameters meets the preset second convergence condition; The target second initial deep learning model after the current weight parameters are adjusted is used as the emotion recognition sub-model corresponding to the semantic category.

8. An image emotion recognition device, characterized in that: include: The image acquisition module to be identified is used to acquire the image to be identified, wherein the image to be identified is an uploaded image of the target application; A semantic category analysis module, used for inputting the image to be recognized into an image emotion recognition model, performing semantic category analysis on the image to be recognized through a semantic recognition sub-model of the image emotion recognition model, and obtaining a first depth image feature and a probability that the image to be recognized belongs to each semantic category, wherein one semantic category indicates a type having a common visual feature, the first depth image feature is a depth image feature of the image to be recognized, and the depth image feature is an output of a feature layer before the result output layer of the semantic recognition sub-model is extracted; A target semantic category determination module, used to determine the target semantic category to which the image to be identified belongs based on the probability that the image to be identified belongs to each semantic category; A target emotion recognition sub-model determination module, used to determine a target emotion recognition sub-model from a plurality of emotion recognition sub-models of the image emotion recognition model according to the target semantic category; An emotion type analysis module, used for inputting the target semantic category and the first depth image feature into the target emotion recognition sub-model to perform emotion category analysis, and obtain the probability that the image to be recognized belongs to each emotion category; The emotion recognition result determination module is used to determine the emotion recognition result of the image to be recognized based on the probability that the image to be recognized belongs to each emotion category, and the emotion recognition result is used to determine whether to recommend the image to be recognized to the access object of the target application.

9. The device according to claim 8, characterized in that The target semantic category determination module is further configured to determine the semantic category indicating the maximum probability among the semantic categories to which the image to be recognized belongs as the target semantic category.

10. The device according to claim 8, characterized in that The target emotion recognition submodel determination module is also used to use the emotion recognition submodel corresponding to the preset semantic category that is the same as the target semantic category as the target emotion recognition submodel according to the mapping relationship between the preset semantic category and the emotion recognition submodel.

11. The device according to claim 8, characterized in that The emotion recognition result determination module is also used to sort the emotion categories to which the image to be recognized belongs according to probability, and select a preset number of emotion categories ranked first as the emotion recognition result of the image to be recognized.

12. The device according to claim 8, characterized in that The image emotion recognition model is trained in the following way: Acquire a sample image set, wherein each sample image in the sample image set carries a corresponding semantic category label and an emotional category label; Performing image semantic recognition training on a first initial deep learning model based on the sample image and the semantic category label carried by the sample image to obtain the semantic recognition sub-model; Define a corresponding second initial deep learning model for each of the semantic categories, where one of the semantic categories corresponds to one of the semantic category labels; Classifying the sample image set based on the semantic category label to obtain a sample subset corresponding to each semantic category; For each of the semantic categories, the second initial deep learning model corresponding to the semantic category is trained according to the sample subset corresponding to the semantic category to obtain the emotion recognition sub-model corresponding to the semantic category.

13. The device according to claim 12, characterized in that The step of performing image semantic recognition training on the first initial deep learning model based on the sample image and the semantic category label carried by the sample image to obtain the semantic recognition sub-model includes: Inputting the sample image and the semantic category label carried by the sample image into the first initial deep learning model; Performing forward calculation on the sample image to obtain the predicted probability that the sample image belongs to each semantic category; Determining a semantic category prediction result of the sample image based on the predicted probability that the sample image belongs to each semantic category; Comparing the semantic category prediction result with the semantic category label to calculate the semantic category loss value; Back-propagating the semantic category loss value into the first initial deep learning model, and adjusting the weight parameters of the first initial deep learning model by stochastic gradient descent method; Input the sample image and the semantic category label carried by the sample image into the first initial deep learning model after adjusting the weight parameters, and repeat the above step of adjusting the weight parameters until the first initial deep learning model after the current weight parameters are adjusted meets a preset first convergence condition; The first initial deep learning model after the current weight parameters are adjusted is used as the semantic recognition sub-model.

14. The device according to claim 12, characterized in that The target sample subset is the sample subset corresponding to the semantic category, the target second initial deep learning model is the second initial deep learning model corresponding to the semantic category, and the second initial deep learning model corresponding to the semantic category is trained according to the sample subset corresponding to the semantic category to obtain the emotion recognition submodel corresponding to the semantic category, including: For each target sample image, input the target sample image into the semantic recognition sub-model to obtain a second depth image feature, where the second depth image feature is the depth image feature of the target sample image, and the target sample image is any image in the target sample subset; Inputting the second deep image features and the emotion category label carried by the target sample image into the target second initial deep learning model; Performing forward calculation on the second depth image feature to obtain the predicted probability that the target sample image belongs to each emotion category; Determining the emotion category prediction result of the target sample image based on the prediction probability that the target sample image belongs to each emotion category; Compare the emotion category prediction result with the emotion category label carried by the target sample image, and calculate the emotion category loss value; Back-propagating the emotion category loss value into the target second initial deep learning model, and adjusting the weight parameters of the target second initial deep learning model by stochastic gradient descent method; Input the target sample image and the emotion category label carried by the target sample image into the target second initial deep learning model after adjusting the weight parameters, and repeat the above step of adjusting the weight parameters until the target first initial deep learning model after the current adjustment of the weight parameters meets the preset second convergence condition; The target second initial deep learning model after the current weight parameters are adjusted is used as the emotion recognition sub-model corresponding to the semantic category.

15. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the image emotion recognition method as described in any one of claims 1-7.

16. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the image emotion recognition method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Facial expression recognition method and facial expression recognition device

    CN107358169A