CN109587627A - The indoor positioning algorithms of terminal heterogeneity are improved based on RSSI - Google Patents

The indoor positioning algorithms of terminal heterogeneity are improved based on RSSI Download PDF

Info

Publication number
CN109587627A
CN109587627A CN201811515688.1A CN201811515688A CN109587627A CN 109587627 A CN109587627 A CN 109587627A CN 201811515688 A CN201811515688 A CN 201811515688A CN 109587627 A CN109587627 A CN 109587627A
Authority
CN
China
Prior art keywords
data
rssi
test
distance
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811515688.1A
Other languages
Chinese (zh)
Other versions
CN109587627B (en
Inventor
王结太
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiaxing University
Original Assignee
Jiaxing University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiaxing University filed Critical Jiaxing University
Priority to CN201811515688.1A priority Critical patent/CN109587627B/en
Publication of CN109587627A publication Critical patent/CN109587627A/en
Application granted granted Critical
Publication of CN109587627B publication Critical patent/CN109587627B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Collating Specific Patterns (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

本发明公开了一种基于RSSI改进终端异质性问题的室内定位算法,包括以下步骤。步骤(1):确定好测试空间中的每个测试点,计算每个测试点到各个发送终端的距离。步骤(2):对每个测试点得到的多个距离数据做相同的组合,且组合数中的数据必须要大于等于3。本发明公开的基于RSSI改进终端异质性问题的室内定位算法,对数据作标准化的处理就不再需要知道A,n的值,在理论上就消除了设备差异和环境差异所带来的影响;指纹数据是通过对指纹坐标点到各个发送端的距离作处理得到的,并不需要人工采集,减少了人工损耗;标准化处理会拉低定位的速度,而指纹数据经过提前的准备,在一定程度上保证了定位的实时性。

The invention discloses an indoor positioning algorithm for improving terminal heterogeneity problem based on RSSI, comprising the following steps. Step (1): Determine each test point in the test space, and calculate the distance from each test point to each transmitting terminal. Step (2): Make the same combination of multiple distance data obtained from each test point, and the data in the number of combinations must be greater than or equal to 3. The indoor positioning algorithm based on RSSI to improve the problem of terminal heterogeneity disclosed by the invention does not need to know the values of A and n when the data is standardized, and theoretically eliminates the influence of equipment differences and environmental differences. ;Fingerprint data is obtained by processing the distance from the fingerprint coordinate point to each sender, and does not require manual collection, which reduces labor loss; standardized processing will reduce the speed of positioning, and fingerprint data is prepared in advance, to a certain extent The real-time positioning is guaranteed.

Description

基于RSSI改进终端异质性问题的室内定位算法Improved indoor positioning algorithm for terminal heterogeneity problem based on RSSI

技术领域technical field

本发明属于无线信号定位技术领域,具体涉及一种基于RSSI改进终端异质性问题的室内定位算法。The invention belongs to the technical field of wireless signal positioning, in particular to an indoor positioning algorithm based on RSSI to improve the problem of terminal heterogeneity.

背景技术Background technique

传统的基于RSSI的室内定位算法,例如指纹算法、极大似然估计算法、三边定位算法、极小极大值算法等等。在这些算法中都用到了RSSI测距原理,无线信号的接收信号强度和信号传输距离的关系,由式(1)表示,其中RSSI是接收信号强度,d是发射端和接收端之间的距离,n是信号传播因子,A是发射端和接收端相隔1米时接收端收到的信号强度绝对值。Traditional RSSI-based indoor positioning algorithms, such as fingerprint algorithm, maximum likelihood estimation algorithm, trilateral positioning algorithm, minimum maximum value algorithm, etc. The RSSI ranging principle is used in these algorithms. The relationship between the received signal strength of the wireless signal and the signal transmission distance is expressed by formula (1), where RSSI is the received signal strength, and d is the distance between the transmitter and the receiver. , n is the signal propagation factor, A is the absolute value of the signal strength received by the receiver when the transmitter and receiver are separated by 1 meter.

由式(1)中可以看出,常数A和n的值决定了接收信号强度和信号传输距离的关系。It can be seen from the formula (1) that the values of the constants A and n determine the relationship between the received signal strength and the signal transmission distance.

其中极大似然估计算法、三边定位算法以及极小极大值算法均是基于式(1)在确定了信号传输距离的情况下,再利用相应的算法进行定位,也就是在不同的环境以及不同的终端情况下,需要不断调试A,n的取值才能更好的定位。而指纹算法不同于其他三种算法,而是用到了RSSI之间的匹配,该方法有如下几个步骤:Among them, the maximum likelihood estimation algorithm, the trilateral positioning algorithm and the minimum maximum value algorithm are all based on the formula (1). When the signal transmission distance is determined, the corresponding algorithm is used for positioning, that is, in different environments And in different terminal situations, it is necessary to continuously debug the values of A and n to better locate. The fingerprint algorithm is different from the other three algorithms, but uses the matching between RSSIs. The method has the following steps:

1、通过一个接收终端,在测试空间中的每个测试点接收该空间中各个发送端的RSSI作为指纹数据;1. Through a receiving terminal, each test point in the test space receives the RSSI of each transmitter in the space as fingerprint data;

2、通过一个需要定位的接收终端在测试空间中某一位置接收各个发送端的RSSI作为测试数据;2. Receive the RSSI of each transmitter as the test data at a certain position in the test space through a receiver terminal that needs to be positioned;

3、通过k最近邻(knn)算法对测试数据与指纹数据进行匹配,匹配为最佳的测试点即为定位位置。3. The test data and the fingerprint data are matched by the k-nearest neighbor (knn) algorithm, and the test point with the best matching is the positioning position.

该算法并不完全依赖于式(1),不被复杂的环境所影响,准确度较高,但该算法相对于其他算法非常耗费人工,且指纹数据较依赖于某一接收端,一旦更改接收端的型号,相应的指纹数据就会有差异;或者改变了采集指纹时环境,相应的指纹数据也是会有差异的。本发明是在指纹算法的基础上做了数据处理的改进,在不需要耗费人工的前提下,不被环境以及不同接收终端所影响。The algorithm does not completely depend on formula (1), is not affected by the complex environment, and has high accuracy, but the algorithm is very labor-intensive compared with other algorithms, and the fingerprint data is more dependent on a certain receiver. Depending on the model of the terminal, the corresponding fingerprint data will be different; or if the environment when the fingerprint is collected is changed, the corresponding fingerprint data will also be different. The invention improves the data processing on the basis of the fingerprint algorithm, and is not affected by the environment and different receiving terminals under the premise of not needing labor.

发明内容SUMMARY OF THE INVENTION

本发明针对背景技术的不足,克服上述缺陷,提供一种基于RSSI改进终端异质性问题的室内定位算法,通过对数据进行处理之后再进行knn算法的匹配,有效排除了A,n所带来的影响,提高定位的准确性。Aiming at the shortcomings of the background technology, the present invention overcomes the above shortcomings, and provides an indoor positioning algorithm based on RSSI to improve the problem of terminal heterogeneity. to improve the positioning accuracy.

本发明采用以下技术方案,所述基于RSSI改进终端异质性问题的室内定位算法包括以下步骤:The present invention adopts the following technical solutions, and the indoor positioning algorithm for improving terminal heterogeneity problem based on RSSI includes the following steps:

步骤(1):确定好测试空间中的每个测试点,计算每个测试点到各个发送终端的距离;Step (1): determine each test point in the test space, calculate the distance from each test point to each transmitting terminal;

步骤(2):对每个测试点得到的多个距离数据做相同的组合,且组合数中的数据必须要大于等于3;Step (2): Make the same combination of multiple distance data obtained from each test point, and the data in the number of combinations must be greater than or equal to 3;

步骤(3):每个测试点选取相同一种组合,在该组合下,每一测试点的距离数据先作对数处理,然后作标准化处理,得到的数据作为该组合下的指纹数据,其中每一组合下每一测试点经过处理的数据都作为指纹数据;Step (3): each test point selects the same combination, and under this combination, the distance data of each test point is first processed logarithmically, and then standardized, and the obtained data is used as the fingerprint data under this combination, wherein each The processed data of each test point under a combination is used as fingerprint data;

步骤(4):在需要定位的位置点通过接收端采集到三个或以上发送端的信号强度值,对采集到的信号强度值绝对值作标准化处理作为测试数据;Step (4): collect the signal strength values of three or more transmitting ends through the receiving end at the position point that needs to be located, and standardize the absolute value of the collected signal strength values as test data;

步骤(5):对照测试数据对应的发送端序号,选择相应组合的指纹数据,利用k最近邻算法对测试数据与指纹数据进行匹配,匹配到的最优位置点即是所求定位点。Step (5): select the corresponding combination of fingerprint data according to the serial number of the transmitter corresponding to the test data, and use the k nearest neighbor algorithm to match the test data and the fingerprint data, and the matched optimal position point is the desired positioning point.

根据上述技术方案,步骤(1)中所述的距离为d_ij,其中i为第i个位置点,j为第j个发送端,d_ij表示第i个位置点到第j个发送端的距离。According to the above technical solution, the distance described in step (1) is d_ij, where i is the ith position, j is the jth transmitter, and d_ij represents the distance from the ith position to the jth transmitter.

根据上述技术方案,步骤(2)对数据作组合的具体情况为:假设在某一测试空间中有4个接收终端,那么每个位置点到各个接收端分别都会有4个距离di1,di2,di3,di4,其中i为第i个位置点,1,2,3,4为发射端序号,得到以下5种组合:(di1,di2,di3),(di1,di2,di4),(di1,di3,di4),(di2,di3,di4),(di1,di2,di3,di4)。According to the above technical solution, the specific situation of combining the data in step (2) is: assuming that there are 4 receiving terminals in a certain test space, then each position point to each receiving terminal will have 4 distances d i1 , d i2 , d i3 , d i4 , where i is the i-th position point, 1, 2, 3, and 4 are the serial numbers of the transmitters, and the following 5 combinations are obtained: (d i1 , d i2 , d i3 ), (d i1 , d i2 , d i4 ), (d i1 , d i3 , d i4 ), (d i2 , d i3 , d i4 ), (d i1 , d i2 , d i3 , d i4 ).

根据上述技术方案,步骤(3)中将数据作标准化处理的原理步骤如下:According to above-mentioned technical scheme, in step (3), the principle steps of standardizing data are as follows:

步骤a.由信号强度的距离公式可知:且A,n的值是固定但未知的,那么将等式右边部分转换成一次函数:Step a. It can be known from the distance formula of signal strength: And the value of A, n is fixed but unknown, then the right part of the equation is converted into a linear function:

其中,均为常数值;in, are constant values;

步骤b.了解数学期望与方差的性质,以及标准化的算法公式;Step b. Understand the properties of mathematical expectation and variance, as well as standardized algorithm formulas;

数学期望的性质:若有随机变量X,对于任意常数a,b,有:The property of mathematical expectation: if there is a random variable X, for any constant a, b, there are:

E(aX+b)=aE(X)+b,E(aX+b)=aE(X)+b,

方差的性质:若有随机变量X,对于任意常数a,b,有:The nature of variance: if there is a random variable X, for any constant a, b, there are:

Var(aX+b)=a2Var(X),Var(aX+b)=a 2 Var(X),

对应标准差为:The corresponding standard deviation is:

标准化算法公式:Standardized algorithm formula:

其中,xi为原数据,zi为标准化后的新数据,为原数据的平均值,s为原数据的标准差;Among them, xi is the original data, zi is the new standardized data, is the mean of the original data, and s is the standard deviation of the original data;

步骤c.选取在某一位置得到4个发射端的RSSI作为一组数据(rssi1,rssi2,rssi3,rssi4),联系步骤a的一次函数和步骤b的性质以及标准化公式得到:Step c. Select the RSSI of 4 transmitters obtained at a certain position as a set of data (rssi 1 , rssi 2 , rssi 3 , rssi 4 ), and link the linear function of step a with the properties of step b and the standardized formula to obtain:

其中,m,s分别为该组RSSI数据的均值和标准差,i=1,2,3,4;Among them, m and s are the mean and standard deviation of the group of RSSI data, i=1, 2, 3, 4;

步骤d.与步骤c选取的RSSI相对应,得到:Step d. Corresponding to the RSSI selected in step c, obtain:

根据上述技术方案,步骤(3)中的指纹数据来源步骤如下:According to the above-mentioned technical scheme, the fingerprint data source steps in step (3) are as follows:

第一步,(针对权利要求3中的情况)在5个组合中选取一种组合(di1,di2,di3);The first step, (for the situation in claim 3) select a combination (d i1 , d i2 , d i3 ) from 5 combinations;

第二步,作对数处理之后得到(log10di1,log10di2,log10di3);The second step is to obtain (log 10 d i1 , log 10 d i2 , log 10 d i3 ) after logarithmic processing;

第三步,将对数处理后的数据做标准化处理,得到:The third step is to standardize the logarithmically processed data to obtain:

其中,dm,ds分别为(log10di1,log10di2,log10di3)的平均值和标准差,将作为该组合下第i个位置点位置的指纹数据;Among them, dm and ds are the mean and standard deviation of (log 10 d i1 , log 10 d i2 , log 10 d i3 ), respectively. As the fingerprint data of the i-th position point position under the combination;

第四步,对测试空间中的每一位置点重复第二步和第三步,得到每一位置点的指纹数据,作为该组合下整个测试空间的指纹数据;The fourth step is to repeat the second step and the third step for each position point in the test space to obtain the fingerprint data of each position point as the fingerprint data of the entire test space under the combination;

第五步,对各个组合重复第四步,得到各个组合下的指纹数据作为最终的指纹数据。In the fifth step, the fourth step is repeated for each combination, and the fingerprint data under each combination is obtained as the final fingerprint data.

根据上述技术方案,步骤(5)中的数据匹配步骤如下:According to above-mentioned technical scheme, the data matching step in step (5) is as follows:

(ⅰ).根据权利要求5得到所有的指纹数据;(i). Obtain all fingerprint data according to claim 5;

(ⅱ).在需要定位的位置点接收到各个发送端的RSSI,将这组RSSI的绝对值作标准化处理得到新的数据组作为测试数据;(ii). Receive the RSSI of each sender at the position that needs to be positioned, and normalize the absolute value of this group of RSSI to obtain a new data group as the test data;

(ⅲ).针对(ⅱ)所接收到RSSI的发送端序号找到所有指纹数据中对应的组合下的指纹数据作为离线数据(iii). Find the fingerprint data in the corresponding combination of all fingerprint data according to the RSSI sender serial number received in (ii) as offline data

(ⅳ).计算离线数据中的各个坐标点下的新数据组与测试数据之间的距离;(iv). Calculate the distance between the new data group and the test data under each coordinate point in the offline data;

(ⅴ).按照距离递增次序排序,并选取距离最小的k个坐标点;(ⅴ). Sort in ascending order of distance, and select k coordinate points with the smallest distance;

(ⅵ).在该方法下选取k=1,以离线数据和测试数据距离最小的坐标点为定位所得坐标点。(ⅵ). Under this method, k=1 is selected, and the coordinate point with the smallest distance between offline data and test data is used as the coordinate point obtained by positioning.

本发明公开的基于RSSI改进终端异质性问题的室内定位算法,其有益效果在于,首先,对数据作标准化的处理就不再需要知道A,n的值,在理论上就消除了设备差异和环境差异所带来的影响;其次,指纹数据是通过对指纹坐标点到各个发送端的距离作处理得到的,并不需要人工采集,减少了人工损耗;另外,标准化处理会拉低定位的速度,而指纹数据经过提前的准备,在一定程度上保证了定位的实时性。The indoor positioning algorithm based on RSSI to improve the terminal heterogeneity problem disclosed by the present invention has the beneficial effect that, firstly, it is no longer necessary to know the values of A and n when the data is standardized, which theoretically eliminates equipment differences and The impact of environmental differences; secondly, the fingerprint data is obtained by processing the distance from the fingerprint coordinate point to each sender, which does not require manual collection, which reduces manual loss; in addition, the standardized processing will reduce the speed of positioning, The fingerprint data is prepared in advance to ensure the real-time positioning to a certain extent.

附图说明Description of drawings

图1是本发明的基本的逻辑流程图。Figure 1 is a basic logic flow diagram of the present invention.

图2是本发明的离线指纹数据的示意图。FIG. 2 is a schematic diagram of offline fingerprint data of the present invention.

图3是本发明的各个算法下不同情况A的平均定位误差示意图。FIG. 3 is a schematic diagram of the average positioning error of different cases A under each algorithm of the present invention.

图4是本发明的各个算法下不同情况n的平均定位误差示意图。FIG. 4 is a schematic diagram of the average positioning error of different situations n under each algorithm of the present invention.

图5是本发明的主要步骤示意图。Figure 5 is a schematic diagram of the main steps of the present invention.

具体实施方式Detailed ways

本发明公开了一种基于RSSI改进终端异质性问题的室内定位算法,下面结合优选实施例,对本发明的具体实施方式作进一步描述。The present invention discloses an indoor positioning algorithm based on RSSI to improve the terminal heterogeneity problem. The specific implementation of the present invention will be further described below with reference to the preferred embodiments.

参见附图的图1至图5,图1示出了所述基于RSSI改进终端异质性问题的室内定位算法的基本处理逻辑,图2示出了所述基于RSSI改进终端异质性问题的室内定位算法的离线指纹数据,图3示出了所述基于RSSI改进终端异质性问题的室内定位算法的各个算法在不同情况下A的平均定位误差,图4示出了所述基于RSSI改进终端异质性问题的室内定位算法的各个算法在不同情况下n的平均定位误差,图5示出了所述基于RSSI改进终端异质性问题的室内定位算法的主要步骤。Referring to FIG. 1 to FIG. 5 of the accompanying drawings, FIG. 1 shows the basic processing logic of the indoor positioning algorithm based on the RSSI-based improvement of the terminal heterogeneity problem, and FIG. 2 shows the RSSI-based improvement of the terminal heterogeneity problem. The offline fingerprint data of the indoor positioning algorithm, Figure 3 shows the average positioning error of each algorithm of the indoor positioning algorithm based on the RSSI improvement of the terminal heterogeneity problem under different conditions, and Figure 4 shows the improvement based on RSSI. The average positioning error of each algorithm of the indoor positioning algorithm for the terminal heterogeneity problem under different conditions, Figure 5 shows the main steps of the indoor positioning algorithm based on the RSSI improvement for the terminal heterogeneity problem.

优选地,根据上述优选实施例,所述基于RSSI改进终端异质性问题的室内定位算法包括以下步骤:Preferably, according to the above preferred embodiment, the RSSI-based indoor positioning algorithm for improving terminal heterogeneity includes the following steps:

步骤(1):确定好测试空间中的每个测试点,计算每个测试点到各个发送终端的距离;Step (1): determine each test point in the test space, calculate the distance from each test point to each transmitting terminal;

步骤(2):对每个测试点得到的多个距离数据做相同的组合,且组合数中的数据必须要大于等于3;Step (2): Make the same combination of multiple distance data obtained from each test point, and the data in the number of combinations must be greater than or equal to 3;

步骤(3):每个测试点选取相同一种组合,在该组合下,每一测试点的距离数据先作对数处理,然后作标准化处理,得到的数据作为该组合下的指纹数据,其中每一组合下每一测试点经过处理的数据都作为指纹数据;Step (3): each test point selects the same combination, and under this combination, the distance data of each test point is first processed logarithmically, and then standardized, and the obtained data is used as the fingerprint data under this combination, wherein each The processed data of each test point under a combination is used as fingerprint data;

步骤(4):在需要定位的位置点通过接收端采集到三个或以上发送端的信号强度值,对采集到的信号强度值绝对值作标准化处理作为测试数据;Step (4): collect the signal strength values of three or more transmitting ends through the receiving end at the position point that needs to be located, and standardize the absolute value of the collected signal strength values as test data;

步骤(5):对照测试数据对应的发送端序号,选择相应组合的指纹数据,利用k最近邻(knn)算法对测试数据与指纹数据进行匹配,匹配到的最优位置点即是所求定位点。Step (5): compare the serial number of the transmitter corresponding to the test data, select the fingerprint data of the corresponding combination, and use the k nearest neighbor (knn) algorithm to match the test data and the fingerprint data, and the matched optimal position point is the desired location. point.

进一步地,步骤(1)中所述的距离为dij,其中i为第i个位置点,j为第j个发送端,dij表示第i个位置点到第j个发送端的距离。Further, the distance described in step (1) is d ij , where i is the ith position point, j is the j th transmitting end, and d ij represents the distance from the ith position point to the j th transmitting end.

进一步地,步骤(2)对数据作组合的具体情况为:假设在某一测试空间中有4个接收终端,那么每个位置点到各个接收端分别都会有4个距离di1,di2,di3,di4,其中i为第i个位置点,1,2,3,4为发射端序号,得到以下5种组合:(di1,di2,di3),(di1,di2,di4),(di1,di3,di4),(di2,di3,di4),(di1,di2,di3,di4)。Further, the specific situation of combining the data in step (2) is: assuming that there are 4 receiving terminals in a certain test space, then each position point to each receiving terminal will have 4 distances d i1 , d i2 respectively, d i3 , d i4 , where i is the ith position point, 1, 2, 3, 4 are the serial numbers of the transmitter, and the following 5 combinations are obtained: (d i1 , d i2 , d i3 ), (d i1 , d i2 , d i4 ), (d i1 , d i3 , d i4 ), (d i2 , d i3 , d i4 ), (d i1 , d i2 , d i3 , d i4 ).

进一步地,步骤(3)中将数据作标准化处理的原理步骤如下:Further, in step (3), the principle steps of standardizing the data are as follows:

步骤a.由信号强度的距离公式可知:且A,n的值是固定但未知的,那么将等式右边部分转换成一次函数:Step a. It can be known from the distance formula of signal strength: And the value of A, n is fixed but unknown, then the right part of the equation is converted into a linear function:

其中,均为常数值;in, are constant values;

步骤b.了解数学期望与方差的性质,以及标准化的算法公式;Step b. Understand the properties of mathematical expectation and variance, as well as standardized algorithm formulas;

数学期望的性质:若有随机变量X,对于任意常数a,b,有:The property of mathematical expectation: if there is a random variable X, for any constant a, b, there are:

E(aX+b)=aE(X)+b,E(aX+b)=aE(X)+b,

方差的性质:若有随机变量X,对于任意常数a,b,有:The nature of variance: if there is a random variable X, for any constant a, b, there are:

Var(aX+b)=a2Var(X),Var(aX+b)=a 2 Var(X),

对应标准差为:The corresponding standard deviation is:

标准化算法公式:Standardized algorithm formula:

其中,xi为原数据,zi为标准化后的新数据,为原数据的平均值,s为原数据的标准差;Among them, xi is the original data, zi is the new standardized data, is the mean of the original data, and s is the standard deviation of the original data;

步骤c.选取在某一位置得到4个发射端的RSSI作为一组数据(rssi1,rssi2,rssi3,rssi4),联系步骤a的一次函数和步骤b的性质以及标准化公式得到:Step c. Select the RSSI of 4 transmitters obtained at a certain position as a set of data (rssi 1 , rssi 2 , rssi 3 , rssi 4 ), and link the linear function of step a with the properties of step b and the standardized formula to obtain:

其中,m,s分别为该组RSSI数据的均值和标准差,i=1,2,3,4;Among them, m and s are the mean and standard deviation of the group of RSSI data, i=1, 2, 3, 4;

步骤d.与步骤c选取的RSSI相对应,得到:Step d. Corresponding to the RSSI selected in step c, obtain:

同时,通过步骤c还可以看出,对数据组作标准化处理和对数据组|rssii|作标准化处理得到的新数据是相等的,再根据以上这四个等式。这也就是说,对数据组(log10d1,log10d2,log10d3,log10d4)作标准化处理和对数据组(|rssi1|,|rssi2|,|rssi3|,|rssi4|)作标准化处理得到的新数据是相同的。At the same time, it can also be seen from step c that for the data set The new data obtained by normalizing and normalizing the data set |rssi i | are equal, and then according to the above four equations. That is, normalizing the data sets (log 10 d 1 , log 10 d 2 , log 10 d 3 , log 10 d 4 ) and normalizing the data sets (|rssi 1 |, |rssi 2 |, |rssi 3 |, |rssi 4 |) and the new data obtained by normalization are the same.

进一步地,步骤(3)中的指纹数据来源步骤如下:Further, the fingerprint data source step in step (3) is as follows:

第一步,(针对权利要求3中的情况)在5个组合中选取一种组合(di1,di2,di3);The first step, (for the situation in claim 3) select a combination (d i1 , d i2 , d i3 ) from 5 combinations;

第二步,作对数处理之后得到(log10di1,log10di2,log10di3);The second step is to obtain (log 10 d i1 , log 10 d i2 , log 10 d i3 ) after logarithmic processing;

第三步,将对数处理后的数据做标准化处理,得到:The third step is to standardize the logarithmically processed data to obtain:

其中,dm,ds分别为(log10di1,log10di2,log10di3)的平均值和标准差,将作为该组合下第i个位置点位置的指纹数据;Among them, dm and ds are the mean and standard deviation of (log 10 d i1 , log 10 d i2 , log 10 d i3 ), respectively. As the fingerprint data of the i-th position point position under the combination;

第四步,对测试空间中的每一位置点重复第二步和第三步,得到每一位置点的指纹数据,作为该组合下整个测试空间的指纹数据;The fourth step is to repeat the second step and the third step for each position point in the test space to obtain the fingerprint data of each position point as the fingerprint data of the entire test space under the combination;

第五步,对各个组合重复第四步,得到各个组合下的指纹数据作为最终的指纹数据。In the fifth step, the fourth step is repeated for each combination, and the fingerprint data under each combination is obtained as the final fingerprint data.

进一步地,步骤(5)中的数据匹配步骤如下:Further, the data matching step in step (5) is as follows:

(ⅰ).根据权利要求5得到所有的指纹数据;(i). Obtain all fingerprint data according to claim 5;

(ⅱ).在需要定位的位置点接收到各个发送端的RSSI,将这组RSSI的绝对值作标准化处理得到新的数据组作为测试数据;(ii). Receive the RSSI of each sender at the position that needs to be positioned, and normalize the absolute value of this group of RSSI to obtain a new data group as the test data;

(ⅲ).针对(ⅱ)所接收到RSSI的发送端序号找到所有指纹数据中对应的组合下的指纹数据作为离线数据(iii). Find the fingerprint data in the corresponding combination of all fingerprint data according to the RSSI sender serial number received in (ii) as offline data

(ⅳ).计算离线数据中的各个坐标点下的新数据组与测试数据之间的距离;(iv). Calculate the distance between the new data group and the test data under each coordinate point in the offline data;

(ⅴ).按照距离递增次序排序,并选取距离最小的k个坐标点;(ⅴ). Sort in ascending order of distance, and select k coordinate points with the smallest distance;

(ⅵ).在该方法下选取k=1,以离线数据和测试数据距离最小的坐标点为定位所得坐标点。(ⅵ). Under this method, k=1 is selected, and the coordinate point with the smallest distance between offline data and test data is used as the coordinate point obtained by positioning.

值得一提的是,根据上述优选实施例的一变形实施例,所述基于RSSI改进终端异质性问题的室内定位算法还可包括以下步骤:It is worth mentioning that, according to a variant of the above preferred embodiment, the indoor positioning algorithm based on RSSI to improve the terminal heterogeneity problem may further include the following steps:

步骤1:与ap进行交互,获取到终端对应的ap与RSSI数据,并进行包含但不限于过滤RSSI、分组等预处理操作;Step 1: Interact with the AP, obtain the AP and RSSI data corresponding to the terminal, and perform preprocessing operations including but not limited to filtering RSSI and grouping;

步骤2:根据获取到的ap信息,选取ap所在区域的坐标使用本文所提到的方法构建离线指纹数据。具体的构建方法如下:Step 2: According to the obtained AP information, select the coordinates of the area where the AP is located, and use the method mentioned in this article to construct offline fingerprint data. The specific construction method is as follows:

(2.1)根据ap坐标获取需要构建指纹的测试空间区域,并对测试空间区域进行网格化;(2.1) Obtain the test space area where the fingerprint needs to be constructed according to the ap coordinates, and grid the test space area;

(2.2)对于每一个网格,采用前文提到的公式,利用该网格中心点到AP的距离进行标准化流程,获得离线指纹数据;(2.2) For each grid, adopt the formula mentioned above, and use the distance from the center point of the grid to the AP to carry out the standardization process to obtain offline fingerprint data;

步骤3:将ap对应的RSSI数据绝对值进行标准化处理之后带入到指纹信息中,进行KNN计算,获取数据距离最小的坐标点;Step 3: standardize the absolute value of RSSI data corresponding to ap and bring it into the fingerprint information, perform KNN calculation, and obtain the coordinate point with the smallest data distance;

步骤4:对获得的坐标进行二次处理,包括但不限于路径优化、点位过滤等操作,输出最终坐标值。Step 4: Perform secondary processing on the obtained coordinates, including but not limited to path optimization, point filtering and other operations, and output final coordinate values.

根据上述优选实施例的变形实施例,上述算法的其中一种描述如下。According to a variant embodiment of the above-mentioned preferred embodiment, one of the above-mentioned algorithms is described as follows.

需要说明的是,在上述的步骤描述中,为了便于描述,在获取到了信号强度数据后才进行离线指纹的构建操作,而由于离线的指纹数据本身的构建会比较消耗资源,在实际的生产环境中往往会预先构建出大部分可能组合的离线指纹数据,而少部分无法缓存到的指纹数据,则会在生成一次后进行缓存。从而大大提高本算法的运行速度。最终的运行速度可以和传统的定位算法相媲美。It should be noted that in the above step description, for the convenience of description, the offline fingerprint construction operation is performed after the signal strength data is obtained, and because the construction of the offline fingerprint data itself will consume more resources, in the actual production environment Most of the possible combinations of offline fingerprint data are often pre-built in the fingerprint system, and a small part of the fingerprint data that cannot be cached will be cached after being generated once. Thereby greatly improving the running speed of the algorithm. The final running speed is comparable to that of traditional localization algorithms.

同时,由于极大似然估计法和三边定位算法在不同A,n情况下的平均误差非常的大,该两种算法就没有在图3、图4中进行显示比较。通过图3、图4可以看出基于RSSI改进终端异质性问题的室内定位算法在不同的A,n情况下,对整体的平均定位误差变化不大,有效减轻了不同环境和不同设备所带来的误差。At the same time, since the average error of the maximum likelihood estimation method and the trilateral positioning algorithm is very large under different A and n cases, the two algorithms are not displayed and compared in Figure 3 and Figure 4. From Figure 3 and Figure 4, it can be seen that the indoor positioning algorithm based on RSSI to improve the terminal heterogeneity problem has little change in the overall average positioning error under different A and n conditions, effectively reducing the problems caused by different environments and different equipment. error to come.

对于本领域的技术人员而言,依然可以对前述各实施例所记载的技术方案进行修改,或对其中部分技术特征进行等同替换,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围。For those skilled in the art, the technical solutions described in the foregoing embodiments can still be modified, or some technical features thereof can be equivalently replaced. Any modifications made within the spirit and principles of the present invention, Equivalent replacements, improvements, etc., should all be included in the protection scope of the present invention.

Claims (6)

1. An indoor positioning algorithm for improving the problem of terminal heterogeneity based on RSSI (received signal strength indicator) is characterized by comprising the following steps:
step (1): determining each test point in the test space, and calculating the distance from each test point to each sending terminal;
step (2): the same combination is carried out on a plurality of distance data obtained by each test point, and the data in the combination number is required to be more than or equal to 3;
and (3): selecting the same combination from each test point, and under the combination, firstly carrying out logarithmic processing on the distance data of each test point, then carrying out standardized processing on the distance data to obtain data serving as fingerprint data under the combination, wherein the processed data of each test point under each combination is used as the fingerprint data;
and (4): acquiring signal intensity values of three or more transmitting ends at a position point to be positioned through a receiving end, and standardizing absolute values of the acquired signal intensity values to be used as test data;
and (5): and comparing the sending end serial numbers corresponding to the test data, selecting the fingerprint data of the corresponding combination, and matching the test data and the fingerprint data by using a k-nearest neighbor algorithm, wherein the matched optimal position point is the solved positioning point.
2. The indoor positioning algorithm for improving terminal heterogeneity problem based on RSSI of claim 1, wherein the distance in step (1) is d _ ij, where i is the ith position point, j is the jth sender, and d _ ij represents the distance from the ith position point to the jth sender.
3. The indoor positioning algorithm for improving terminal heterogeneity problem based on RSSI as claimed in claim 2, wherein the step (2) combines the data as follows: assuming that there are 4 receiving terminals in a certain test space, there are 4 distances d from each position point to each receiving terminal respectivelyi1,di2,di3,di4Wherein i is the ith position point, 1,2,3,4 are the serial number of the transmitting terminal, and the following 5 combinations are obtained: (d)i1,di2,di3),(di1,di2,di4),(di1,di3,di4),(di2,di3,di4),(di1,di2,di3,di4)。
4. The indoor positioning algorithm for improving terminal heterogeneity problem based on RSSI of claim 3, wherein the principle steps of normalizing the data in step (3) are as follows:
step a, obtaining a distance formula of signal intensity:and the value of a, n is fixed but unknown, then the right part of the equation is converted to a linear function:
wherein,are all constant values;
b, knowing the nature of mathematical expectation and variance, and a standardized algorithm formula;
mathematically desirable properties: if there is a random variable X, for any constant a, b, there are:
E(aX+b)=aE(X)+b,
the nature of the variance: if there is a random variable X, for any constant a, b, there are:
Var(aX+b)=a2Var(X),
the corresponding standard deviations are:
a normalized algorithm formula:
wherein x isiAs raw data, ziIn order to be able to normalize the new data,the average value of the original data is obtained, and s is the standard deviation of the original data;
c, selecting RSSI of 4 transmitting terminals obtained at a certain position as a group of numbersAccording to (rssi)1,rssi2,rssi3,rssi4) And connecting the linear function of the step a and the property of the step b and a standardized formula to obtain:
wherein m and s are the mean and standard deviation of the set of RSSI data, respectively, and i is 1,2,3, 4;
and d, corresponding to the RSSI selected in the step c, obtaining:
5. the indoor positioning algorithm for improving terminal heterogeneity problem based on RSSI of claim 3, wherein the fingerprint data source step in step (3) is as follows:
in a first step, a combination (d) is selected from 5 combinations (for the case of claim 3)i1,di2,di3);
Second, obtained after logarithmic treatment (log)10di1,log10di2,log10di3);
Thirdly, carrying out standardization processing on the data after logarithmic processing to obtain:
wherein dm and ds are (log)10di1,log10di2,log10di3) Average and standard deviation ofAs fingerprint data of the ith position point under the combination;
fourthly, repeating the second step and the third step for each position point in the test space to obtain the fingerprint data of each position point, and taking the fingerprint data as the fingerprint data of the whole test space under the combination;
and fifthly, repeating the fourth step for each combination to obtain the fingerprint data under each combination as final fingerprint data.
6. The indoor positioning algorithm for improving terminal heterogeneity problem based on RSSI of claim 3, wherein the data matching step in step (5) is as follows:
obtaining all fingerprint data according to claim 5;
(ii) receiving the RSSI of each sending end at a position point needing positioning, and carrying out standardization processing on the absolute values of the RSSI to obtain a new data set as test data;
finding fingerprint data under corresponding combination in all fingerprint data as offline data aiming at sending end serial numbers of received RSSI (received signal strength indicator) in (ii)
(iv) calculating the distance between the new data group and the test data under each coordinate point in the offline data;
(v) sorting according to the distance increasing order, and selecting k coordinate points with the minimum distance;
and (vi) selecting k as 1 under the method, and taking the coordinate point with the minimum distance between the offline data and the test data as the coordinate point obtained by positioning.
CN201811515688.1A 2018-12-12 2018-12-12 Indoor positioning method for improving terminal heterogeneity problem based on RSSI Expired - Fee Related CN109587627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811515688.1A CN109587627B (en) 2018-12-12 2018-12-12 Indoor positioning method for improving terminal heterogeneity problem based on RSSI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811515688.1A CN109587627B (en) 2018-12-12 2018-12-12 Indoor positioning method for improving terminal heterogeneity problem based on RSSI

Publications (2)

Publication Number Publication Date
CN109587627A true CN109587627A (en) 2019-04-05
CN109587627B CN109587627B (en) 2021-04-06

Family

ID=65929152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811515688.1A Expired - Fee Related CN109587627B (en) 2018-12-12 2018-12-12 Indoor positioning method for improving terminal heterogeneity problem based on RSSI

Country Status (1)

Country Link
CN (1) CN109587627B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011019125A1 (en) * 2009-08-12 2011-02-17 한국과학기술원 Participatory place recognition method and method for operating a wireless terminal using a wireless lan received signal strength indicator
CN102625447A (en) * 2012-03-14 2012-08-01 东南大学 A Heuristic Node Localization Method in Wireless Sensor Networks
CN103533650A (en) * 2013-10-28 2014-01-22 哈尔滨工业大学 Cosine-similarity-based indoor positioning method capable of improving positioning precision
CN103582119A (en) * 2013-10-12 2014-02-12 上海交通大学 Fingerprint database construction method of WiFi indoor positioning system
CN103945332A (en) * 2014-04-28 2014-07-23 清华大学 Received signal strength and multi-path information combined neural network indoor positioning method
CN103997717A (en) * 2014-06-12 2014-08-20 福建师范大学 Real-time indoor positioning system and method
CN104703128A (en) * 2014-11-10 2015-06-10 浙江大学城市学院 Indoor positioning system and method based on WLAN wireless signal strength
CN106658704A (en) * 2016-11-23 2017-05-10 上海斐讯数据通信技术有限公司 Positioning method and system of starting point of indoor positioning
CN106804059A (en) * 2017-01-18 2017-06-06 南京邮电大学 Terminal difference removing method in indoor positioning technologies based on signal intensity
CN107948930A (en) * 2017-12-31 2018-04-20 电子科技大学 Indoor positioning optimization method based on location fingerprint algorithm
EP3396400A1 (en) * 2017-04-27 2018-10-31 Deutsche Telekom AG A system and method for clustering wi-fi fingerprints for indoor-outdoor detection

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011019125A1 (en) * 2009-08-12 2011-02-17 한국과학기술원 Participatory place recognition method and method for operating a wireless terminal using a wireless lan received signal strength indicator
CN102625447A (en) * 2012-03-14 2012-08-01 东南大学 A Heuristic Node Localization Method in Wireless Sensor Networks
CN103582119A (en) * 2013-10-12 2014-02-12 上海交通大学 Fingerprint database construction method of WiFi indoor positioning system
CN103533650A (en) * 2013-10-28 2014-01-22 哈尔滨工业大学 Cosine-similarity-based indoor positioning method capable of improving positioning precision
CN103945332A (en) * 2014-04-28 2014-07-23 清华大学 Received signal strength and multi-path information combined neural network indoor positioning method
CN103997717A (en) * 2014-06-12 2014-08-20 福建师范大学 Real-time indoor positioning system and method
CN104703128A (en) * 2014-11-10 2015-06-10 浙江大学城市学院 Indoor positioning system and method based on WLAN wireless signal strength
CN106658704A (en) * 2016-11-23 2017-05-10 上海斐讯数据通信技术有限公司 Positioning method and system of starting point of indoor positioning
CN106804059A (en) * 2017-01-18 2017-06-06 南京邮电大学 Terminal difference removing method in indoor positioning technologies based on signal intensity
EP3396400A1 (en) * 2017-04-27 2018-10-31 Deutsche Telekom AG A system and method for clustering wi-fi fingerprints for indoor-outdoor detection
CN107948930A (en) * 2017-12-31 2018-04-20 电子科技大学 Indoor positioning optimization method based on location fingerprint algorithm

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JIE-TAI WANG: "A Parameter-Irrelevant Range-Based Normalized Wireless Positioning Algorithm", 《2018 11TH INTERNATIONAL SYMPOSIUM ON COMPUTATIONAL INTELLIGENCE AND DESIGN (ISCID)》 *

Also Published As

Publication number Publication date
CN109587627B (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN106851573B (en) Log path loss model-based joint weighting K nearest neighbor indoor positioning method
CN108989976B (en) Fingerprint positioning method and system in intelligent classroom
CN104185275B (en) A kind of indoor orientation method based on WLAN
CN103209478B (en) Based on the indoor orientation method of classification thresholds and signal strength signal intensity weight
CN112748397A (en) UWB positioning method based on self-adaptive BP neural network under non-line-of-sight condition
CN105491661B (en) Indoor positioning system and method based on improved Kalman filter algorithm
CN101695152B (en) Method and system for indoor positioning
CN105120479B (en) Signal strength difference correction method for Wi-Fi signals between terminals
CN110488222B (en) A UWB localization method combining SVM and barycentric coordinates under NLOS conditions
CN106941718A (en) A kind of mixing indoor orientation method based on signal subspace fingerprint base
CN109348416B (en) Fingerprint indoor positioning method based on bipartite k-means
CN108769907B (en) Indoor positioning method based on deep learning and integrating WiFi and iBeacon
CN108882363A (en) A kind of multi-direction acquisition combines the WiFi fingerprint indoor orientation method of cluster
CN114692665A (en) Radiation source open set individual identification method based on metric learning
CN112135248A (en) WIFI fingerprint positioning method based on K-means optimal estimation
CN109738863A (en) A WiFi Fingerprint Indoor Localization Algorithm and System Based on Confidence
CN108627798A (en) WLAN indoor positioning algorithms based on linear discriminant analysis and gradient boosted tree
CN106793078A (en) Bluetooth indoor orientation method based on RSSI correction value Dual positionings
CN112714493B (en) Object position positioning method and positioning system
CN107801242A (en) A kind of indoor orientation method based on adaptive Kalman filter
Sun et al. A novel GCN based indoor localization system with multiple access points
CN114364016A (en) Indoor positioning method, device and system based on AOA and RSSI weighted fingerprint feature matching
CN112330164B (en) Data quality management system and method based on message bus
CN109587627B (en) Indoor positioning method for improving terminal heterogeneity problem based on RSSI
CN111626324A (en) Seabed observation network data heterogeneous analysis integration method based on edge calculation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210406