基于信号幅值分布的室内指纹定位算法
2018-05-15丁承君宇中强朱志辉
丁承君 宇中强 朱志辉



摘 要: 室内定位算法是基于位置服务领域研究的难点之一。针对室内定位应用场合和精度问题,提出了利用K?means和KNN融合算法对覆盖率广的WiFi信号进行指纹定位。WiFi指纹定位主要问题是前期指纹库数据的精确以及后期数据的匹配效果。首先,对WiFi信号的概率分布进行研究,弥补了一直以来由于K?means是无监督学习带来的k值的难以选取的缺陷,提高了指纹库的精确性,同时确保数据实时性。后期在线数据处理利用KNN分类算法进行后期在线定位过程的准确性。经多个实验场景测试结果表明,该算法在室内定位精度上3 m定位精度概率保持在78.4%,4 m精度保持在93.6%,基本上保证了室内定位精度的要求。
关键词: 信号幅值; 指纹定位; 概率分布; K?means; KNN分类算法; WiFi信号
中图分类号: TN911?34; TP393 文献标识码: A 文章编号: 1004?373X(2018)10?0039?04
Abstract: Indoor positioning algorithm is one of difficulties in location?based service field research. In allusion to the application scene and precision problems of indoor positioning, the view that using the K?means and KNN fusion algorithm to perform fingerprint positioning for wide?coverage WiFi signals is proposed. The main problems of WiFi fingerprint positioning lie in the data accuracy of the front?stage fingerprint database and the matching effect of late?stage data. The probability distribution of WiFi signals is studied to make up the defect that it is difficult to select the k value as K?means is an unsupervised learning for a long time, which can improve the accuracy of the fingerprint database, and meanwhile ensure the real?time performance of data. During the process of late?stage online data processing, the KNN classification algorithm is adopted to obtain the accuracy of the late?stage online positioning. The algorithm was tested in multiple experimental scenes. The results show that the 3 m positioning accuracy probability of the algorithm remains 78.4% in indoor positioning accuracy, and the 4 m positioning accuracy probability remains 93.6%, which can basically ensure the accuracy requirement of indoor positioning.
Keywords: signal amplitude; fingerprint positioning; probability distribution; K?means; KNN classification algorithm; WiFi signal
0 引 言
基于位置服务(Location Based Services,LBS)的其中一项内容是室内定位。由于室内布局和临时遮挡物的因素会造成信号不稳定,所以对于定位精度,室内定位较之于室外定位难度大[1]。现阶段国内外基于室内定位采取的技术手段中WiFi为最佳选择[2]。原因是成本低、覆盖范围广、精度高,用户的移动接收设备可直接用于定位,已覆盖WiFi的室内场所无需铺设其他硬件设备,可移植扩展[3]。定位方法有两种:一种是基于无线信号强度传播模型,将信号的幅值与距离进行公式化建模,例如经典的对数距离模型[4],然而在室内遮挡物较多且容易移动,模型会因无线信号受遮挡物影响衰减而变得不准确;另一种是基于位置?指纹进行定位。……
