• •    

基于改进AP选择和KNN算法的室内定位技术

李新春,侯跃   

  1. 辽宁工程技术大学
  • 收稿日期:2017-05-04 修回日期:2017-06-27 发布日期:2017-06-27
  • 通讯作者: 侯跃

Indoor positioning technology based on improved AP selection and KNN algorithm

1,1,Yue HOU   

  • Received:2017-05-04 Revised:2017-06-27 Online:2017-06-27
  • Contact: Yue HOU

摘要: 针对复杂的室内环境和在传统K最近邻法(KNN)算法中认为信号差相等时物理距离就相等的两个问题,提出了一种新的接入点(AP)选择方法和基于缩放权重的KNN室内定位算法。首先改进AP的选择方法,使用箱形图过滤RSS的异常值,初步建立指纹库;剔除指纹库中丢失率高的AP;使用标准偏差分析接收信号强度(RSS)的变化,选择干扰较小的前n个AP。其次,在传统的KNN算法中引入缩放权重,构建一个基于RSS的缩放权重模型。最后,计算出获得最小有效信号距离的前K个参考点坐标,得到未知位置坐标。定位仿真实验中,仅对AP选择方法进行改进的算法平均定位误差比传统的KNN算法低1.28倍,引入缩放权重算法的平均定位误差为1.82m,比传统KNN低2.15倍。实验结果表明,在室内环境中该算法的定位精度都有明显的提高。

关键词: K最近邻法, 室内定位, 箱形图, 标准偏差, 缩放权重, 定位精度

Abstract: Since the complexity of the indoor environment and equal signal differences were assumed to equal physical distances in the traditional K nearest neighbor approach(KNN), a new access point (AP) selection method and KNN indoor location algorithm based on scaling weight were proposed. Firstly, an improved APs selection method used the box plot to filter RSS outliers and created a fingerprint database; the APs with the high loss rate in the fingerprint database were removed; the standard deviationwas used to analyze the RSS change, and select the TOP-N APs with less interference. Secondly, the scaling weight was introduced into the traditional KNN algorithm to construct a scaling weight model based on RSS. Finally, the algorithm calculated the coordinates of the first K reference points which obtained the minimum effective signal distance, and got the unknown position coordinates. In the localization simulation experiments, the mean of error distance by improved AP selection method is 1.28 times better than that by KNN. The mean of error distance by the algorithm which introduced scaling weight is 1.82 meters, it is 2.15 times better than that by KNN. The experiment results show that the positioning accuracy of the algorithm has been significantly improved in the indoor environment.

Key words: K nearest neighbor approach, indoor positioning, box plot, standard deviation, scaling weight, positioning accuracy

中图分类号: