基于二维动态时间规整算法的矩阵相似性研究
首发时间:2019-04-18
摘要:在模式识别中距离作为一种常用的度量工具,被广泛应用于聚类、分类等算法中。随着矩阵样本的大量出现,以及样本内容的不断复杂化,传统的距离算法在度量矩阵相似性时存在一定局限性。对此文章提出一种二维动态时间规整算法(2D-DTW)。算法利用欧式距离构建矩阵样本间距离体,并通过切割累加方式构建距离矩阵,最后通过传统DTW算法求解矩阵间的相似度。通过构建距离体并引入对齐机制,算法在计算矩阵之间距离时更准确。经CIFAR-10图像数据库验证,2D-DTW距离在比较图像中前景目标相似性时优于传统欧式距离,并能将计算时间控制在一个合理范围内。经MNIST数据集的手写数字识别验证,2D-DTW算法识别准确率比传统欧式距离识别准确率高21.50%。同时,在实体指纹实验中,2D-DTW算法效果更好。
For information in English, please click here
Research on Matrix Similarity Based on Two-Dimensional Dynamic Time Warping Algorithm
Abstract:As a commonly used similarity measure in pattern recognition, distance is widely used in clustering and classification algorithms. With the extensive applications of matrixes, traditional algorithms have limitations in measuring similarity of matrixes which has more and more complex content. Aiming at this problem, the two-dimensional dynamic time warping algorithm (2D-DTW) is proposed. In 2D-DTW algorithm, Euclidean distance is used to construct the distance-cuboid between matrixes, and then the distance-matrix is defined by cutting and accumulating the distance-cuboid, finally, the traditional DTW algorithm is used to calculate the similarity between matrixes. By constructing distance-cuboid and introducing alignment mechanisms, 2D-DTW algorithm can improve the accuracy in calculating the distance between matrixes. The experimental result of CIFAR-10 database verifies that the 2D-DTW distance is superior to the traditional Euclidean distance in comparing the foreground target in the image. What\'s more, 2D-DTW algorithm can control the calculation time within a reasonable range. In addition, in the handwritten digit recognition experiment of the MNIST dataset, the recognition accuracy of the 2D-DTW algorithm is 21.50% higher than that of the traditional Euclidean distance. At the same time, the 2D-DTW algorithm works better in the physical fingerprint experiment.
Keywords: Pattern Recognition Similarity Distance Dynamic Programming DTW
基金:
引用
No.****
同行评议
勘误表
基于二维动态时间规整算法的矩阵相似性研究
评论
全部评论