arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.04130cs.LGcs.AIeess.SP
收藏

基于知识蒸馏和定点quantization的动物行为分类

In-situ animal behavior classification using knowledge distillation and fixed-point quantization

CSIRO(联邦科学与工业研究组织)

Reza Arablouei, Liang Wang, Caitlin Phillips, Lachlan Currie, Jordan Yates, Greg Bishop-Hurley

摘要:

我们探索使用知识蒸馏(KD)学习紧凑和准确的模型,使动物行为的分类从可穿戴设备上的加速度计数据。为此,我们采用一个深度复杂的卷积神经网络,称为残差神经网络(ResNet),作为教师模型。ResNet是专为多变量时间序列分类而设计的。我们使用ResNet将动物行为分类数据集的知识提取到软标签中,软标签由每个数据点的每个类的预测伪概率组成。然后,我们使用软标签来训练我们的学生模型,它基于门控递归单元(GRU)和多层感知器(MLP)。使用两个真实世界动物行为分类数据集的评估结果表明,通过KD,学生GRU-MLP模型的分类精度明显提高,接近教师ResNet模型的分类精度。为了进一步减少使用通过KD训练的学生模型进行推理的计算和内存需求,我们通过适当修改所考虑模型的计算图来利用动态定点量化(DQ)。我们在我们特制的项圈和耳标设备的嵌入式系统上实现了所开发的基于KD的模型的非量化和量化版本,以原位和实时的对动物行为进行分类。我们的评估证实了KD和DQ在提高原位动物行为分类的准确性和效率方面的有效性。

英文摘要:

We explore the use of knowledge distillation (KD) for learning compact and accurate models that enable classification of animal behavior from accelerometry data on wearable devices. To this end, we take a deep and complex convolutional neural network, known as residual neural network (ResNet), as the teacher model. ResNet is specifically designed for multivariate time-series classification. We use ResNet to distill the knowledge of animal behavior classification datasets into soft labels, which consist of the predicted pseudo-probabilities of every class for each datapoint. We then use the soft labels to train our significantly less complex student models, which are based on the gated recurrent unit (GRU) and multilayer perceptron (MLP). The evaluation results using two real-world animal behavior classification datasets show that the classification accuracy of the student GRU-MLP models improves appreciably through KD, approaching that of the teacher ResNet model. To further reduce the computational and memory requirements of performing inference using the student models trained via KD, we utilize dynamic fixed-point quantization (DQ) through an appropriate modification of the computational graph of the considered models. We implement both unquantized and quantized versions of the developed KD-based models on the embedded systems of our purpose-built collar and ear tag devices to classify animal behavior in situ and in real time. Our evaluations corroborate the effectiveness of KD and DQ in improving the accuracy and efficiency of in-situ animal behavior classification.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑