CN106102163A - WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm - Google Patents

WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm Download PDF

Info

Publication number
CN106102163A
CN106102163A CN201610393181.8A CN201610393181A CN106102163A CN 106102163 A CN106102163 A CN 106102163A CN 201610393181 A CN201610393181 A CN 201610393181A CN 106102163 A CN106102163 A CN 106102163A
Authority
CN
China
Prior art keywords
rss
reference point
sample
represent
sigma
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
CN201610393181.8A
Other languages
Chinese (zh)
Other versions
CN106102163B (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.)
Hangzhou Dianzi University
Original Assignee
Hangzhou Dianzi 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 Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN201610393181.8A priority Critical patent/CN106102163B/en
Publication of CN106102163A publication Critical patent/CN106102163A/en
Application granted granted Critical
Publication of CN106102163B publication Critical patent/CN106102163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/02Systems for determining distance or velocity not using reflection or reradiation using radio waves
    • G01S11/06Systems for determining distance or velocity not using reflection or reradiation using radio waves using intensity measurements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/0284Relative positioning

Abstract

The invention discloses a kind of WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm.The present invention, firstly the need of setting up off-line fingerprint database, arranges Q reference point in target localizing environment, is organizing RSS sample more and is carrying out Filtering Processing, generate the fingerprint database describing described reference point reference point collection.Location can be implemented afterwards at described environment, calculate real-time RSS data and the linearly dependent coefficient of described fingerprint database sample data that user terminal receives, choose reference point corresponding to k correlation coefficient of maximum, use secondary weighted centroid algorithm to estimate the final position of user.The present invention can reduce the impact on indoor position accuracy of the terminal hardware difference, is effectively improved stability and the accuracy of indoor locating system.

Description

WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm
Technical field
The present invention relates to indoor positioning technologies field, be specifically related to one based on RSS linear correlation and secondary weighted barycenter The WLAN fingerprint positioning method of algorithm.
Background technology
Along with the fast development of the widely available of wireless network He mobile intelligent terminal, location Based service is come by more The most concerns, at emergency relief, health care, social networks, navigate and the field such as monitoring has obtained and has been widely applied and opens up Huge market prospect is shown.Due to the high coverage rate of WLAN hot spot service, people are to keeping whenever and wherever possible connecting wireless service Demand grow with each passing day, this makes many research institutions both domestic and external and company expand about WLAN location fingerprint indoor The research work of location technology, relevant application is the most at the early-stage, such as: the companies such as Google, Nokia, Baidu all exploitation and Improve different WLAN indoor locating systems.And the main method of indoor positioning has time of arrival (toa) (TOA), signal to arrive at present Reach time difference (TDOA), direction of arrival degree (AOA), received signal strength (RSS) etc., but owing to the interior space is narrower The modes such as little, the circulation way of radio wave is extremely complex, reflection, transmission, scattering make the more difficult reality of most localization method Existing.The localization method of received signal strength (RSS) refers to that the rule changed with propagation distance change according to signal intensity is come real Now positioning, it is affected by environment compared to other localization method less, and development cost is low, is therefore that the indoor of current main flow are fixed Method for position.
It is broadly divided into two stages: off-line fingerprint base establishment stage and tuning on-line based on RSS location fingerprint localization method Stage.In off-line fingerprint base acquisition phase, in needing to be spaced in area to be targeted according to a certain distance, gather several references Point, records and sets up wireless fingerprint data base by positional information corresponding for reference point and RSS information.The tuning on-line stage, RSS data sample according to user's Real-time Collection, estimates user current location in conjunction with location algorithm.But current RSS refers to The deficiency of stricture of vagina localization method various degrees: (1) owing to indoor environment existing the impact of the reasons such as multipath effect, AP's RSS value has bigger fluctuation, this bigger undulatory property can affect the stability of location, thus reduces the essence of indoor positioning Degree;(2), when fingerprint base is set up, the RSS sample data of a lot of acquired original is taken average and serves as sample point fingerprint, the most do not fill Divide and utilize the RSS sample information gathered, thus affect positioning precision;(3) due to the variability issues of terminal so that collection Finger print data has obvious difference, thus reduces positioning precision;(4), when determining position location coordinate, most algorithm uses Similar multiple sample points are averaged or weighted average, but k the similitude finally determined is random distribution mostly, some Point distance users position deviation is relatively big, uses traditional mode can affect positioning precision.
Summary of the invention
The invention aims to solve existing localization method RSS sample data do not make full use of, different mobile The problems such as terminal poor robustness, final position location estimation error are bigger, thus keep indoor locating system stability and Higher positioning precision.
In order to overcome above-mentioned the deficiencies in the prior art, the invention provides one based on RSS linear correlation with secondary weighted The WLAN fingerprint positioning method of centroid algorithm, specifically includes that
1. Filtering Processing RSS sample
Owing to there is the impact of the reasons such as multipath effect in indoor environment, the RSS value gathering AP has bigger fluctuation, in order to Improve the precision of location, need to be filtered original RSS value processing.This method takes amplitude limit average filter method, is equivalent to " limit filtration method "+" recurrence average filter method ";The new data every time sampled first carries out amplitude limiting processing, then data is passed It is bulldozed equal Filtering Processing.
First 1.1 carry out limit filtration process, the RSS sample data collecting described reference point, first predetermined permission Maximum deflection difference value ε (empirical value sets according to different local RSS robustness, typically takes between 5 to 10), calculate same AP The value of delta of adjacent sample data RSSi=| rssi,K,P-rssj,K,P|, i=j+1, if δi> ε, then revise
rss i , K , P = 1 j Σ n = 1 j rss n , K , P
δiRepresenting adjacent sample RSS difference, i and j represents RSS sample data group number, rssi,K,PRepresent at described sampled point K The RSS value of P the AP that i & lt is measured;
RSS sample sequence after 1.2 pairs of limit filtration process process carries out recurrence average Filtering Processing again, obtaining continuously L sampled value regard a queue as, the length of queue is fixed as L, samples one group of new RSS data every time and puts into tail of the queue, and Throw away one group of RSS data (first in first out) of original head of the queue, L data in queue carried out arithmetic average computing:
RSS K , n = 1 L Σ i = 1 L RSS i
Serve as this RSS sample by calculated RSS information, after having processed, obtain the N group RSS by Filtering Processing Sample sequence { sK:RSSK,1 RSSK,2 … RSSK,N}。
L represents the length of described filtering queue, it is contemplated that the RSS limited sample size that tuning on-line stage terminal receives, The span of general L is 3 to 5, RSSiRepresent i-th group of RSS sample, RSSK,NRepresent the N group RSS sample of reference point K.
2. the foundation of off-line fingerprint database
2.1 arrange Q reference point in target localizing environment, gather the RSS sample data of different AP in reference point, with ginseng As a example by examination point K, the RSS sample data collecting reference point K carries out amplitude limit average filter method Filtering Processing, finally gives N group By the RSS sample sequence { s of Filtering ProcessingK:RSSK,1 RSSK,2 … RSSK,N};
K represents described reference point, and N represents the RSS sample group number collected by reference point K, sKRepresent the RSS sample of reference point K This sequence, RSSK,NRepresent the N group RSS sample of reference point K.
This sample sequence can be expressed as a matrix:
Wherein K is described reference point, and N is RSS sample group number, and P is AP quantity, rssP,N,KRepresent described reference point K N group The RSS value of P AP in RSS information.
The RSS robustness of 2.2 calculating reference point K, the RSS variance of each AP of first calculating reference point K, then to required P variance carries out average value processing, and P refers to the AP quantity collected by described reference point K, utilizes this result of calculation as described reference The weight w of some KK, the change of this reference point RSS value of the biggest expression of weights is the most violent.The computing formula of weights is as follows:
w K = 1 P N Σ n = 1 N Σ i = 1 P ( rss i , n , K - μ i , K ) 2 μ K = 1 N Σ n = 1 N RSS n , K , n = 1 , 2 , ... , M
Wherein, P represents gathered AP number, and N is RSS sample group number, RSSn,kRepresent n-th group in the sample of k-th position RSS sample, μKRepresent k-th position reference point RSS sample average.
2.3 for the linear dependence of Precise Representation fingerprint base sample Yu online RSS sample, to RSSKThe every a line of matrix RSS numerical value arranges in descending order, i.e. can get new one group RSS matrix RSS'K:
Matrix RSS'KIn, each row element meets rssi,j,k≥rssi,j+1,k, i=1,2 ... R j=1,2 ... N-1. RSS'KRepresent the RSS sample matrix processed in described reference point K, rss' through sequenceP,N,KRepresent described reference point K N group The RSS value of P AP in RSS information.
2.4 by RSS'KIt is divided into M submatrix, often capable the averaging of each submatrix is obtainedByMatrix represents the fingerprint matrices information at described position K.
The RSS matrix dimensionality that the value of described M needs with tuning on-line stage terminal receives is identical, and experiment shows the increasing of M Contribute to greatly promoting the precision of location, it is contemplated that the real-time of location, the value of M is the most beneficial excessive, and general value is 3 to 6.RSSM Represent m column RSS information in fingerprint matrices information.
3. calculate based on RSS linearly dependent coefficient
In 3.1 tuning on-line stages, terminal gathers the M group RSS sample sequence by Filtering Processing, is built into a P × M's RSS calculation matrix, a line every to RSS calculation matrix arranges in descending order, the i.e. available final online RSS matrix RSS needed*:
Wherein M represents RSS sample group number, and P represents AP quantity,Represent the RSS of P AP in M group RSS sample Value.
3.2 are multiplied by the online terminal of reference point RSS weight computing according to Pearson correlation coefficients formula receives sample and fingerprint The linearly dependent coefficient r of data base's sampleK:
r K = Σ i = 1 P Σ j = 1 M ( rss i , j , K - μ K ) ( rss i , j * - μ u s e r ) Σ i = 1 P Σ j = 1 M ( rss i , j , K - μ K ) 2 Σ i = 1 P Σ j = 1 M ( rss i , j * - μ u s e r ) w k , K = 1 , 2 , ... , Q
Wherein rssi,j,KWithIt is illustrated respectively in what k-th reference point fingerprint and online terminal in fingerprint database received The numerical value of the i-th row jth row of RSS calculation matrix, wkRepresent the weights of reference point, μ in fingerprint baseKRepresent K in fingerprint database The average of group fingerprint, μuserRepresent the average of online RSS matrix.μKThe formula that is calculated as follows:
μ K = 1 P × M Σ i = 1 P Σ j = 1 M rss i , j , K
3.3, by after good for described Q Calculation of correlation factor, carry out descending sort to it, choose corresponding to front k correlation coefficient Location point { P1 P2 … Pk, Pk=(xk yk rk)。
PkRepresent the reference point information corresponding to kth correlation coefficient after described Q correlation coefficient descending sort, xk yk It is the coordinate figure corresponding to kth correlation coefficient respectively, rkRepresenting kth correlation coefficient, in this method, the value of k should be greater than 3.
The most secondary weighted centroid algorithm location matches
4.1 by described PkBecome two arrays VX and VY
V X = [ vx 1 vx 2 ... vx k ] , vx k = ( x k r k ) V Y = [ vy 1 vy 2 ... vy k ] , vy k = ( y k r k )
VX and VY represents x coordinate array and y-coordinate array, vx in the reference point information corresponding to described k correlation coefficientk And vykRepresent x coordinate and the y-coordinate information of kth correlation coefficient correspondence reference point.
4.2 pairs of described k nodes of locations utilize centroid algorithm to carry out for the first time and calculate, calculate unknown node I'(x'y'); Centroid algorithm is as follows:
x ′ = Σ i = 1 k r i × x i Σ i = 1 k r i y ′ = Σ i = 1 k r i × y i Σ i = 1 k r i
The reference point quantity that k obtains after representing described Q correlation coefficient descending sort, riRepresent that i-th reference point institute is right The correlation coefficient answered, xi yiRepresenting the location coordinate information that i-th reference point is corresponding respectively, x'y' represents the position tried to achieve respectively Coordinate information.
4.3 is random distribution due to k linear correlation nodes of locations, and the unknown node coordinate that first centroid algorithm calculates is by mistake Difference is bigger.In VX array and VY array, deduct the coordinate figure of unknown node with coordinate figure in array respectively and carry out absolute value Process obtains Φx,k=| xk-x'|,Φy,k=| yk-y'|, obtains α Φ of maximumx,kAnd Φy,k, by corresponding coordinate information (value of α is relevant with k value, generally k/3) is deleted, available new number after delete processing in VX array with VY array Group VX' and VY';
VX' and VY' array carries out second time weighted mass center algorithm calculate, obtain final positioning result I (x y).
Compared with prior art, the present invention has the following advantages:
The present invention RSS sample to gathering uses amplitude limit average filter method to be filtered processing, and effectively enhances AP's RSS Almost Sure Sample Stability;When setting up off-line fingerprint base, by gathering many group RSS sample datas, and to its carry out descending sort and Being grouped process of averaging, the fingerprint finally given can fully describe the RSS information of this location point;In order to avoid changing violent position Putting and be a little difficult to mate, the present invention is that each point calculates a description and changes the time the weights of intensity of variation, and applied to fixed In the algorithm of position;Owing to the present invention uses space similarity to realize location, although different terminals receives the ability of AP signal intensity Difference, but the curve of cyclical fluctuations of RSS is similar, and i.e. the RSS sample changed curve of different terminals collection is similar, therefore adopts Different terminals variability issues can be prevented effectively from by the present invention;K the analogous location point owing to finally determining is random mostly Distribution, some location point distance users current location deviation is relatively big, uses traditional mode can affect positioning precision, therefore this Bright give secondary weighted centroid algorithm to calculate the final position of user.
The present invention proposes to carry out indoor positioning, by substantial amounts of reality based on RSS linear correlation and secondary weighted centroid algorithm Demonstrate feasibility and the accuracy of the present invention, precision and the enhancing of indoor positioning can be effectively improved by the present invention The stability of location.
Accompanying drawing explanation
Fig. 1 is WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm of the present invention Flow chart;
Fig. 2 be terminal receive a certain AP many groups RSS sample Filtering Processing before and Filtering Processing after schematic diagram;
Fig. 3 be different terminals same position point accept filter process after difference in signal strength opposite sex schematic diagram;
Fig. 4 is schematic diagram based on secondary weighted centroid algorithm location matches.
Detailed description of the invention
In Fig. 1, describe flow process based on RSS linear correlation Yu the WLAN fingerprint positioning method of secondary weighted centroid algorithm Figure, provides detailed description below in conjunction with Fig. 1.
Step S1, the foundation of off-line fingerprint database
1.1RSS sample collection
In target localizing environment, arrange Q reference point, gather the RSS sample data of different AP in reference point, with reference As a example by some K, the RSS sample data collecting reference point K carries out amplitude limit average filter method Filtering Processing, finally gives N group and leads to Cross the RSS sample sequence { s of Filtering ProcessingK:RSSK,1 RSSK,2 … RSSK,N};
K represents described reference point, and N represents the RSS sample group number collected by reference point K, sKRepresent the RSS sample of reference point K This sequence, RSSK,NRepresent the N group RSS sample of reference point K.
This sample sequence can be expressed as a matrix:
Wherein K is described reference point, and N is RSS sample group number, and P is AP quantity, rssP,N,KRepresent described reference point K N group The RSS value of P AP in RSS information.
The RSS robustness of 1.2 calculating reference point K
The RSS variance of each AP of first calculating reference point K, then carries out average value processing to P required variance, and P refers to institute State the AP quantity collected by reference point K, utilize this result of calculation as the weight w of described reference point KK, the biggest expression of weights The change of this reference point RSS value is the most violent.The computing formula of weights is as follows:
w K = 1 P N Σ n = 1 N Σ i = 1 P ( rss i , n , K - μ i , K ) 2 μ K = 1 N Σ n = 1 N RSS n , K , n = 1 , 2 , ... , M
Wherein, P represents gathered AP number, and N is RSS sample group number, RSSn,kRepresent n-th group in the sample of k-th position RSS sample, μKRepresent k-th position reference point RSS sample average.
1.3RSS sample process builds with fingerprint
For the linear dependence of Precise Representation fingerprint base sample Yu online RSS sample, to RSSKMatrix every a line RSS number Value arranges in descending order, i.e. can get new one group RSS matrix RSS'K:
Matrix RSS'KIn, each row element meets
rssi,j,k≥rssi,j+1,k, i=1,2 ... R j=1,2 ... N-1
RSS'KRepresent the RSS sample matrix processed in described reference point K, rss' through sequenceP,N,KRepresent described reference point The RSS value of P AP in K N group RSS information.
By RSS'KIt is divided into M submatrix, often capable the averaging of each submatrix is obtained:
RSS K n e w = RSS 1 RSS 2 ... RSS M P × M
ByMatrix represents the fingerprint matrices information at described position K.
The RSS matrix dimensionality that the value of described M needs with tuning on-line stage terminal receives is identical, and experiment shows the increasing of M Contribute to greatly promoting the precision of location, it is contemplated that the real-time of location, the value of M is the most beneficial excessive, and general value is 3 to 6.RSSM Represent m column RSS information in fingerprint matrices information.
Step S2, tuning on-line
2.1 build RSS calculation matrix
Terminal gathers the M group RSS sample sequence by Filtering Processing, is built into the RSS calculation matrix of a P × M, right The every a line of RSS calculation matrix arranges in descending order, the i.e. available final online RSS matrix RSS needed*:
Wherein M represents RSS sample group number, and P represents AP quantity,Represent the RSS of P AP in M group RSS sample Value.
2.2 calculate dependency
It is multiplied by the online terminal of reference point RSS weight computing according to Pearson correlation coefficients formula and receives sample and finger print data The linearly dependent coefficient r of storehouse sampleK:
r K = Σ i = 1 P Σ j = 1 M ( rss i , j , K - μ K ) ( rss i , j * - μ u s e r ) Σ i = 1 P Σ j = 1 M ( rss i , j , K - μ K ) 2 Σ i = 1 P Σ j = 1 M ( rss i , j * - μ u s e r ) w k , K = 1 , 2 , ... , Q
Wherein rssi,j,KWithIt is illustrated respectively in what k-th reference point fingerprint and online terminal in fingerprint database received The numerical value of the i-th row jth row of RSS calculation matrix, wkRepresent the weights of reference point, μ in fingerprint baseKRepresent K in fingerprint database The average of group fingerprint, μuserRepresent the average of online RSS matrix.μKThe formula that is calculated as follows:
μ K = 1 P × M Σ i = 1 P Σ j = 1 M rss i , j , K
After good for described Q Calculation of correlation factor, it is carried out descending sort, choose corresponding to front k correlation coefficient Location point { P1 P2 … Pk, Pk=(xk yk rk)。
PkRepresent the reference point information corresponding to kth correlation coefficient after described Q correlation coefficient descending sort, xk yk It is the coordinate figure corresponding to kth correlation coefficient respectively, rkRepresenting kth correlation coefficient, in this method, the value of k should be greater than 3.
2.3 secondary weighted value centroid methods carry out location matches
2.3.1 a centroid algorithm calculates
By described PkBecome two arrays VX and VY
V X = [ vx 1 vx 2 ... vx k ] , vx k = ( x k r k ) V Y = [ vy 1 vy 2 ... vy k ] , vy k = ( x k r k )
VX and VY represents x coordinate array and y-coordinate array, vx in the reference point information corresponding to described k correlation coefficientk And vykRepresent x coordinate and the y-coordinate information of kth correlation coefficient correspondence reference point.
Described k nodes of locations utilizes centroid algorithm carry out for the first time calculate, calculate unknown node I'(x'y');Barycenter Algorithm is as follows:
x ′ = Σ i = 1 k r i × x i Σ i = 1 k r i y ′ = Σ i = 1 k r i × y i Σ i = 1 k r i
The reference point quantity that k obtains after representing described Q correlation coefficient descending sort, riRepresent that i-th reference point institute is right The correlation coefficient answered, xi yiRepresenting the location coordinate information that i-th reference point is corresponding respectively, x'y' represents the position tried to achieve respectively Coordinate information.
2.3.2 two centroid algorithms calculate
Owing to k linear correlation nodes of locations is random distribution, the unknown node error of coordinate that first centroid algorithm calculates Bigger.In VX array and VY array, deduct the coordinate figure of unknown node with coordinate figure in array respectively and carry out at absolute value Reason obtains Φx,k=| xk-x'|,Φy,k=| yk-y'|, obtains α Φ of maximumx,kAnd Φy,k, corresponding coordinate information is existed VX array deletes (value of α is relevant with k value, generally k/3) with in VY array, available new array after delete processing VX' and VY';
VX' and VY' array carries out second time weighted mass center algorithm calculate, obtain final positioning result I (x y).
In step sl, as long as the RSS sample gathered is filtered processing, the present invention uses amplitude limit average filter method, Be equivalent to " limit filtration method "+" recurrence average filter method ";The new data every time sampled first carries out amplitude limiting processing, then by data Carry out recurrence average Filtering Processing.
Limit filtration processes: the RSS sample data collecting described reference point, the first predetermined maximum deflection difference value allowed ε (empirical value sets according to different local RSS robustness, typically takes between 5 to 10), calculates same AP adjacent sample data The value of delta of RSSi=| rssi,K,P-rssj,K,P|, i=j+1, if δi> ε, then revise
rss i , K , P = 1 j Σ n = 1 j rss n , K , P
δiRepresenting adjacent sample RSS difference, i and j represents RSS sample data group number, rssi,K,PRepresent at described sampled point K The RSS value of P the AP that i & lt is measured;
Recurrence average Filtering Processing: the RSS sample sequence after processing limit filtration process carries out recurrence average filtering again Processing, L the sampled value obtained continuously is regarded as a queue, the length of queue is fixed as L, samples one group of new RSS every time Data put into tail of the queue, and throw away one group of RSS data (first in first out) of original head of the queue, and L data in queue are carried out Arithmetic average computing:
RSS K , n = 1 L Σ i = 1 L RSS i
Serve as this RSS sample by calculated RSS information, after having processed, obtain the N group RSS by Filtering Processing Sample sequence { sK:RSSK,1 RSSK,2 … RSSK,N}。
L represents the length of described filtering queue, it is contemplated that the RSS limited sample size that tuning on-line stage terminal receives, The span of general L is 3 to 5, RSSiRepresent i-th group of RSS sample, RSSK,NRepresent the N group RSS sample of reference point K.
Effect after Filtering Processing is as shown in Figure 2.
In step s 2, the present invention proposes secondary weighted centroid algorithm and calculates for final position matching, is used for reducing matter Center algorithm calculates produced error, and the schematic diagram of secondary weighted centroid algorithm is as shown in Figure 4.It is analyzed Fig. 4 understanding, as Fruit replaces distance unknown node Q node to be farther out weighted barycenter computing with nearer node, can subtract to a certain extent The little impact the most first marking node, reduces position error further.Based on this thought, it is first according to standardized centroid algorithm first Secondary calculating, after trying to achieve barycenter, contrasts each nodes of locations X, Y distance calculating respectively, and removal X and Y is apart from farthest value respectively, Such that it is able to obtain a new nodes of locations.Calculate it is carried out secondary weighted mass center algorithm, try to achieve final estimation Location point.
Describe in figure 3 different mobile terminal (MT) same position point accept filter process after the difference in signal strength opposite sex show It is intended to, observes curve chart and find that the RSS sample changed trend of end the most of the same race reception is roughly the same, say, that they are linear phases Close.Make a concrete analysis of below:
To concrete AP, MT combination, it is assumed that P (d) and P (d0) represent respectively with AP at a distance of any distance d and apart Reference distance d0The received signal strength at place.According to Lognormal shadowing model, have:
[ P ( d ) P ( d 0 ) ] = - 10 β l o g ( d d 0 ) + X d B
Wherein, Part I is path loss part (β is path-loss factor), and Part II is then that a normal state is random VariableAbove formula also can be write as:
P ( d ) | d B m = P ( d 0 ) | d B m - 10 β l o g ( d d 0 ) + X d B = 10 log ( P A P G A P G M T λ 2 16 π 2 d 0 2 l ) - 10 β log ( d d 0 ) + X d B
Wherein PAPIt it is the transmit power of AP;GAPIt it is the antenna gain of AP;GMTIt it is the antenna gain of mobile terminal MT;L is to be System fissipation factor;λ is the wavelength of wireless signal.From formula, the RSS obtained at AP distance d depends on the hard of AP and MT Part parameter.
Two different terminals are as follows to the RSS observation of some AP at same position:
P ( d ) 1 | d B m = 10 log ( P A P G A P G M T 1 λ A P 2 16 π 2 d 0 2 l 1 ) - 10 β 1 log ( d d 0 ) + [ X 1 ] d B
P ( d ) 2 | d B m = 10 l o g ( P A P G A P G M T 2 λ A P 2 16 π 2 d 0 2 l 2 ) - 10 β 2 l o g ( d d 0 ) + [ X 2 ] d B
By P (d)1-P(d)2Can obtain:
P ( d ) 1 | d B m - P ( d ) 2 | d B m = 10 l o g ( G M T 1 l 2 G M T 2 l 1 ) - 10 l o g ( d d 0 ) ( β 1 - β 2 ) + [ X 1 - X 2 ] d B
As can be seen from the above equation, different terminals RSS value is done after the recovery, result and AP configuration the most unrelated, although result is subject to To factor impacts such as terminal antenna gain G, system loss factor l, path-loss factor β, stochastic variable X, but work as different terminals Being under the ideal conditions that external condition is identical gathering RSS, these configurations are all to maintain constant, therefore, and the difference of different terminals Value is to tend to a constant.It follows that in the case of different terminals, the RSS sample value that each terminal is gathered is linear It is correlated with, as shown in Figure 3.Therefore the calculating during employing linear correlation carries out tuning on-line is to reduce to a certain extent The impact of different terminals.
From Fig. 3, it is also possible to analyzing when RSS is stronger, this dependency is obvious, when RSS is more weak, dependency Less obvious, therefore at positioning stage, it should carry out the selection of AP, abandon those more weak AP, be so favorably improved indoor Setting accuracy.

Claims (4)

1. WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm, it is characterised in that concrete steps As follows:
1) off-line fingerprint database establishment step:
A) in target localizing environment, arrange Q reference point, gather the RSS sample data of different AP in reference point, to reference point K The RSS sample data collected carries out amplitude limit average filter, obtains the N group RSS sample sequence by Filtering Processing, as follows:
{sK:RSSK,1 RSSK,2 … RSSK,N}
N represents the RSS sample group number collected by reference point K, sKRepresent the RSS sample sequence of reference point K, RSSK,NRepresent reference point The N group RSS sample of K;
B) the RSS robustness of described reference point K is calculated;The RSS variance of each AP of first calculating reference point K, then to required P Individual variance carries out average value processing, and P refers to the AP quantity collected by described reference point K, utilizes this result of calculation as described reference The weight w of some KK, the change of this reference point RSS value of the biggest expression of weights is the most violent;
C) to described RSS sample sequence sKBuild sample matrix RSSK, to described RSSKSample matrix every a line RSS numerical value is by fall Sequence arranges, and obtains matrix
Each row element meets rssi,j,k≥rssi,j+1,k, i=1,2 ... R j=1,2 ... N-1;
RSS'KRepresent the RSS sample matrix processed in described reference point K, rss' through sequenceP,N,KRepresent described reference point K N The RSS value of P AP in group RSS information;
Matrix is divided into M submatrix, often capable the averaging of each submatrix is obtained ByMatrix represents the fingerprint matrices information at described position K;RSSMRepresent m column RSS information in fingerprint matrices information;
2) tuning on-line realizes step:
2.1) linear dependence calculates:
A) terminal gathers the M group RSS sample sequence by Filtering Processing, is built into the RSS calculation matrix of a P × M, to RSS The every a line of calculation matrix arranges in descending order;
B) the linearly dependent coefficient r of computation and measurement matrix reference point fingerprint matrices different from fingerprint baseK;By Q correlation coefficient meter Calculate good after, it is carried out descending sort, chooses the location point { P corresponding to front k correlation coefficient1 P2 … Pk, Pk=(xk yk rk);
PkRepresent the reference point information corresponding to kth correlation coefficient after described Q correlation coefficient descending sort, xk ykRespectively It is the coordinate figure corresponding to kth correlation coefficient, rkRepresent kth correlation coefficient;
2.2) realization of secondary weighted centroid algorithm position matching:
A) by described PkBecome two arrays VX and VY
V X = vx 1 vx 2 ... vx k , vx k = x k r k V Y = vy 1 vy 2 ... vy k , vy k = y k r k
VX and VY represents x coordinate array and y-coordinate array, vx in the reference point information corresponding to described k correlation coefficientkAnd vyk Represent x coordinate and the y-coordinate information of kth correlation coefficient correspondence reference point;
K nodes of locations utilizes centroid algorithm carry out for the first time calculate, calculate unknown node I'(x'y');
B) in VX array and VY array, deduct the coordinate figure of unknown node with coordinate figure in array respectively and carry out at absolute value Reason obtains Φx,k=| xk-x'|,Φy,k=| yk-y'|, obtains α Φ of maximumx,kAnd Φy,k, corresponding coordinate information is existed VX array and VY array are deleted, available new array VX' and VY' after delete processing;
VX' and VY' array carries out second time weighted mass center algorithm calculate, obtain final positioning result I (x y).
WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm the most according to claim 1, It is characterized in that, described amplitude limit average filter method that RSS sample data is carried out, specifically:
A) limit filtration process is first carried out, the RSS sample data that reference point is collected, the first predetermined maximum deviation allowed Value ε, calculates the value of delta of same AP adjacent sample data RSSi=| rssi,K,P-rssj,K,P|, i=j+1, if δi> ε, then revise
rss i , K , P = 1 j Σ n = 1 j rss n , K , P
δiRepresenting adjacent sample RSS difference, i and j represents RSS sample data group number, rssi,K,PRepresent and survey in sampled point K i & lt The RSS value of P AP of amount;
B) the RSS sample sequence after processing limit filtration process carries out recurrence average Filtering Processing again, L obtained continuously Sampled value regards a queue as, and the length of queue is fixed as L, samples one group of new RSS data every time and puts into tail of the queue, and throws away former Carry out one group of RSS data of head of the queue, L data in queue carried out arithmetic average computing:
RSS K , n = 1 L Σ i = 1 L RSS i
Serve as this RSS sample by calculated RSS information, after having processed, obtain the N group RSS sample by Filtering Processing Sequence { sK:RSSK,1 RSSK,2 … RSSK,N, wherein L represents the length of described filtering queue.
WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm the most according to claim 1, It is characterized in that, described linear dependence rkIt is calculated as follows:
r K = Σ i = 1 P Σ j = 1 M ( rss i , j , K - μ K ) ( rss i , j * - μ u s e r ) Σ i = 1 P Σ j = 1 M ( rss i , j , K - μ K ) 2 Σ i = 1 P Σ j = 1 M ( rss i , j * - μ u s e r ) w k , K = 1 , 2 , ... , Q
Wherein rssi,j,KWithIt is illustrated respectively in the RSS that in fingerprint database, k-th reference point fingerprint receives with online terminal The numerical value of the i-th row jth row of calculation matrix, wkRepresent the weights of reference point, μ in fingerprint basekRepresent K group in fingerprint database The average of fingerprint, μuserRepresent the average of online RSS matrix.
WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm the most according to claim 1, It is characterized in that, the secondary weighted centroid algorithm of described employing does final position matching, and the centroid algorithm used in twice calculating is public Formula:
X = Σ i = 1 k r i × x i Σ i = 1 k r i Y = Σ i = 1 k r i × y i Σ i = 1 k r i
The reference point quantity that k obtains after representing described Q correlation coefficient descending sort, riRepresent the phase corresponding to i-th reference point Close coefficient, xi yiRepresenting the location coordinate information that i-th reference point is corresponding respectively, X Y represents that the position finally tried to achieve is sat respectively Mark information.
CN201610393181.8A 2016-06-03 2016-06-03 WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm Active CN106102163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610393181.8A CN106102163B (en) 2016-06-03 2016-06-03 WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610393181.8A CN106102163B (en) 2016-06-03 2016-06-03 WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm

Publications (2)

Publication Number Publication Date
CN106102163A true CN106102163A (en) 2016-11-09
CN106102163B CN106102163B (en) 2019-07-12

Family

ID=57448288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610393181.8A Active CN106102163B (en) 2016-06-03 2016-06-03 WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm

Country Status (1)

Country Link
CN (1) CN106102163B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714296A (en) * 2016-11-24 2017-05-24 南京邮电大学 Indoor positioning method based on steepest descent method
CN107064866A (en) * 2017-04-05 2017-08-18 河南师范大学 A kind of generation method in the dynamic fingerprint storehouse based on iBeacon indoor positionings
CN107708068A (en) * 2017-09-29 2018-02-16 深圳奇迹智慧网络有限公司 Indoor orientation method, system, computer-readable storage medium and server
CN107995684A (en) * 2017-12-26 2018-05-04 武汉创驰蓝天信息科技有限公司 The WLAN indoor position accuracy method and system of raised position fingerprint
CN108900970A (en) * 2018-07-06 2018-11-27 中国民航大学 A kind of terminal indoor orientation method returning Kernel discriminant analysis based on spectrum
CN109738863A (en) * 2019-04-08 2019-05-10 江西师范大学 A kind of WiFi fingerprint indoor positioning algorithms and system merging confidence level
CN110049442A (en) * 2019-05-23 2019-07-23 江西师范大学 Indoor WiFi fingerprint location automatic calibration method and system based on smart phone
CN111335056A (en) * 2020-02-10 2020-06-26 浙江工业大学 Tension sensing and data processing device for multi-strand cable twisting device
CN114423076A (en) * 2021-12-27 2022-04-29 深圳云天励飞技术股份有限公司 Fingerprint data generation method and device, electronic equipment and storage medium
CN115032585A (en) * 2022-08-11 2022-09-09 电子科技大学 RSS ranging and ray tracing technology-based non-line-of-sight scene positioning method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638889A (en) * 2012-03-21 2012-08-15 浙江大学 Indoor wireless terminal positioning method based on Bayes compression sensing
CN102802260A (en) * 2012-08-15 2012-11-28 哈尔滨工业大学 WLAN indoor positioning method based on matrix correlation
CN105242239A (en) * 2015-10-19 2016-01-13 华中科技大学 Indoor subarea positioning method based on crowdsourcing fingerprint clustering and matching
CN105828435A (en) * 2016-05-30 2016-08-03 天津大学 Distance correction weighted centroid localization method based on reception signal intensity optimization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638889A (en) * 2012-03-21 2012-08-15 浙江大学 Indoor wireless terminal positioning method based on Bayes compression sensing
CN102802260A (en) * 2012-08-15 2012-11-28 哈尔滨工业大学 WLAN indoor positioning method based on matrix correlation
CN105242239A (en) * 2015-10-19 2016-01-13 华中科技大学 Indoor subarea positioning method based on crowdsourcing fingerprint clustering and matching
CN105828435A (en) * 2016-05-30 2016-08-03 天津大学 Distance correction weighted centroid localization method based on reception signal intensity optimization

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李虎俊 等: "基于二次质心的无线传感器网络定位算法", 《现代电子技术》 *
栾声扬: "基于飞机散射信号的干扰源定位算法", 《系统工程与电子技术》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714296A (en) * 2016-11-24 2017-05-24 南京邮电大学 Indoor positioning method based on steepest descent method
CN107064866A (en) * 2017-04-05 2017-08-18 河南师范大学 A kind of generation method in the dynamic fingerprint storehouse based on iBeacon indoor positionings
CN107708068A (en) * 2017-09-29 2018-02-16 深圳奇迹智慧网络有限公司 Indoor orientation method, system, computer-readable storage medium and server
CN107995684B (en) * 2017-12-26 2020-06-12 武汉创驰蓝天信息科技有限公司 WLAN indoor positioning precision method and system for improving position fingerprints
CN107995684A (en) * 2017-12-26 2018-05-04 武汉创驰蓝天信息科技有限公司 The WLAN indoor position accuracy method and system of raised position fingerprint
CN108900970A (en) * 2018-07-06 2018-11-27 中国民航大学 A kind of terminal indoor orientation method returning Kernel discriminant analysis based on spectrum
CN109738863A (en) * 2019-04-08 2019-05-10 江西师范大学 A kind of WiFi fingerprint indoor positioning algorithms and system merging confidence level
CN110049442A (en) * 2019-05-23 2019-07-23 江西师范大学 Indoor WiFi fingerprint location automatic calibration method and system based on smart phone
CN110049442B (en) * 2019-05-23 2021-02-09 江西师范大学 Indoor WiFi fingerprint positioning automatic calibration method and system based on smart phone
CN111335056A (en) * 2020-02-10 2020-06-26 浙江工业大学 Tension sensing and data processing device for multi-strand cable twisting device
CN111335056B (en) * 2020-02-10 2021-08-03 浙江工业大学 Tension sensing and data processing device for multi-strand cable twisting device
CN114423076A (en) * 2021-12-27 2022-04-29 深圳云天励飞技术股份有限公司 Fingerprint data generation method and device, electronic equipment and storage medium
CN114423076B (en) * 2021-12-27 2024-03-22 深圳云天励飞技术股份有限公司 Fingerprint data generation method and device, electronic equipment and storage medium
CN115032585A (en) * 2022-08-11 2022-09-09 电子科技大学 RSS ranging and ray tracing technology-based non-line-of-sight scene positioning method

Also Published As

Publication number Publication date
CN106102163B (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN106102163A (en) WLAN fingerprint positioning method based on RSS linear correlation Yu secondary weighted centroid algorithm
CN108696932B (en) Outdoor fingerprint positioning method using CSI multipath and machine learning
CN104684081B (en) The Localization Algorithm for Wireless Sensor Networks of anchor node is selected based on distance cluster
CN109672973B (en) Indoor positioning fusion method based on strongest AP
CN106093852A (en) A kind of method improving WiFi fingerprint location precision and efficiency
CN106851573A (en) Joint weighting k nearest neighbor indoor orientation method based on log path loss model
CN106793082A (en) A kind of positioning of mobile equipment method in WLAN/ bluetooth heterogeneous network environments
CN105163282A (en) Indoor positioning system and positioning method based on Bluetooth location fingerprint
CN107087256A (en) A kind of fingerprint cluster method and device based on WiFi indoor positionings
CN106597363A (en) Pedestrian location method in indoor WLAN environment
CN103209478A (en) Indoor positioning method based on classified thresholds and signal strength weight
CN105933975A (en) WiFi fingerprint-based accuracy improved indoor positioning method
CN109068267B (en) Indoor positioning method based on LoRa SX1280
CN112637950B (en) Fingerprint positioning method based on angle similarity
Xu et al. Self-adapting multi-fingerprints joint indoor positioning algorithm in WLAN based on database of AP ID
CN105954712A (en) Multi-target direct positioning method in communication with adio signal complex envelope and carrier phase information
CN104066179A (en) Improved method for positioning WSN nodes through adaptive iterative UKF
CN104540221A (en) WLAN indoor positioning method based on semi-supervised SDE algorithm
CN107071902A (en) One kind is based on mixed filtering and Power Exponent Mapping WIFI indoor orientation methods
CN115776724B (en) Sensor node layout optimization method and system for electromagnetic spectrum map mapping
CN104754735A (en) Construction method of position fingerprint database and positioning method based on position fingerprint database
CN106231549A (en) A kind of 60GHz pulse indoor orientation method based on restructing algorithm
Li et al. Unsupervised learning of indoor localization based on received signal strength
CN105652235A (en) Linear regression algorithm-based WLAN indoor positioning multi-user RSS (Received Signal Strength) fusion method
CN103152745A (en) Method of locating mobile node with strong adaptivity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20161109

Assignee: Hangzhou eddy current technology Co., Ltd

Assignor: Hangzhou Electronic Science and Technology Univ

Contract record no.: X2020330000008

Denomination of invention: WLAN (Wireless Local Area Network) fingerprint positioning method based on RSS (Really Simple Syndication) linear correlation and re-weighted centroid algorithm

Granted publication date: 20190712

License type: Common License

Record date: 20200117

EE01 Entry into force of recordation of patent licensing contract