Image recognition method based on improved Focal loss function

A loss function and image recognition technology, applied in the field of multi-label image recognition, can solve the problems of increasing cost, not fully utilizing all samples, and huge amount of calculation

Active Publication Date: 2021-05-18
NANJING UNIV OF POSTS & TELECOMM
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For some methods to solve the sample imbalance, some do not make full use of all samples, resulting in the lack of p...

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 recognition method based on improved Focal loss function
  • Image recognition method based on improved Focal loss function
  • Image recognition method based on improved Focal loss function

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to illustrate the technical solution of the present invention more clearly, the technical solution of the present invention is described in further detail below in conjunction with the accompanying drawings:

[0029] The present invention proposes an image recognition method based on an improved Focal loss function, such as figure 1 As shown, it specifically includes the following steps:

[0030] Step 1: First divide the sample into training set, test set and remaining sample set, and then use the training set to train the convolutional neural network model based on the improved Focal loss function.

[0031] Train an improved model M based on Focal loss, such as figure 2As shown, the convolutional neural network model has five hierarchical structures: input layer, convolutional layer, activation layer, pooling layer, and fully connected layer. In the convolutional neural network structure, the input layer inputs picture information, and the size of each pict...

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 recognition method based on an improved Focal loss function, and the method comprises the steps: improving a modulation factor of the Focal loss function on the basis of an existing Focal loss function, enabling the function to have higher attention to a difficult sample, and enabling the function to have relatively lower attention to a simple sample; and then, on the basis of the convolutional neural network model based on the Focal loss function, predicting the residual negative sample set, screening all difficult samples, dividing the samples into N equal parts, respectively adding the N equal parts into the original training set to form N new training sets, then training a plurality of models, and determining a final prediction picture label result according to voting selection of the N models. According to the method, on the basis of an original Focal loss function, the attention degree on a difficult sample is higher, and the model generalization ability is improved; and under the condition of excessive negative samples, difficult samples are screened out by utilizing the original model and added into the training set, so that the accuracy of the model is improved, available samples are fully utilized, and the calculation amount during model training is also reduced.

Description

technical field [0001] The invention belongs to the technical field of multi-label image recognition based on deep learning, and in particular relates to an image recognition method based on an improved Focal loss function. Background technique [0002] Convolutional Neural Network (CNN) is a neural network specially designed for image recognition problems. CNN can effectively obtain the features of the original image, and rarely go through the preprocessing process. Compared with traditional machine learning, convolutional neural network can automatically extract image features, which is derived from two important characteristics of convolutional neural network: sparse connection and value sharing. Sparse connection means that the nodes of the convolutional layer are only connected to some nodes of the previous layer, and are only used to learn local features. Weight sharing means that in the process of scanning a picture with a convolution kernel, each position in the pi...

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
IPC IPC(8): G06K9/62G06N3/04G06N3/08
CPCG06N3/04G06N3/08G06F18/241G06F18/214
Inventor 周世界孙广鹏
Owner NANJING UNIV OF POSTS & TELECOMM
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