摘要
充分利用Focal损失函数具有挖掘困难样本和调节样本不平衡问题的特性,将其应用在基于神经网络的图像情感分析模型中。为了缓解训练数据集的类别样本不平衡问题,提升情感分类模型的训练效率,对Focal损失函数中参数设置进行了改进。该方法通过类别权重大小来确定平衡参数α,并在神经网络模型训练的不同阶段,采用渐增方式对聚焦因子γ进行调节,然后将改进的Focal损失函数应用于图像情感分析模型的神经网络训练中。仿真实验表明,相比于交叉熵损失函数,改进的Focal损失函数能够提升神经网络对图像情感分析的性能。实验结果表明,所采用方法的准确率、宏召回率、宏精准率分别提升了0.5~2.3个百分点、0.4~3.9个百分点、0.5~3.3个百分点。
Focal loss function, which has the characteristics of mining hard example and alleviating the imbalance problem of training data, is applied to the image emotion analysis model based on neural network in this paper. To alleviate the data imbalance problem in the training data set and improve the training efficiency of the emotion classification model,the parameters in Focal loss function are modified. The balance parameter α is decided by class weight value, and the focal parameter γ is modified in the different stage of training. Then the modified Focal loss is used in the training of emotion image analysis model. The experimental results show that the modified Focal loss function can improve the performance of emotion image analysis model, and the accuracy, the macro recall and the macro precision of model are promoted by 0.5-2.3 percentage points, 0.4-3.9 percentage points, 0.5-3.3 percentage points respectively.
作者
傅博文
唐向宏
肖涛
FU Bowen;TANG Xianghong;XIAO Tao(School of Communication Engineering,Hangzhou Dianzi University,Hangzhou 310018,China)
出处
《计算机工程与应用》
CSCD
北大核心
2020年第10期179-184,共6页
Computer Engineering and Applications