[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109413578B - Indoor positioning method based on fusion of WIFI and PDR - Google Patents

Indoor positioning method based on fusion of WIFI and PDR Download PDF

Info

Publication number
CN109413578B
CN109413578B CN201811083050.5A CN201811083050A CN109413578B CN 109413578 B CN109413578 B CN 109413578B CN 201811083050 A CN201811083050 A CN 201811083050A CN 109413578 B CN109413578 B CN 109413578B
Authority
CN
China
Prior art keywords
positioning
rssi
pdr
wifi
vector
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.)
Active
Application number
CN201811083050.5A
Other languages
Chinese (zh)
Other versions
CN109413578A (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.)
Guilin University of Electronic Technology
Original Assignee
Guilin University of Electronic Technology
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 Guilin University of Electronic Technology filed Critical Guilin University of Electronic Technology
Priority to CN201811083050.5A priority Critical patent/CN109413578B/en
Publication of CN109413578A publication Critical patent/CN109413578A/en
Application granted granted Critical
Publication of CN109413578B publication Critical patent/CN109413578B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • 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/0257Hybrid positioning
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention discloses an indoor positioning method based on fusion of WIFI and PDR, relates to the technical field of indoor positioning of WIFI signals and pedestrian dead reckoning, and solves the technical problem of providing an indoor positioning method with high measurement precision, which comprises the following steps: (1) establishing a WIFI offline fingerprint database; (2) clustering the training samples to obtain clustering samples and corresponding categories; (3) obtaining a positioning coordinate through a weighted K nearest neighbor algorithm; (4) updating the state and the position by fusing PDR positioning; (5) using the fusion result as a correction source for the PDR; (6) and acquiring a correction factor correction PDR result through the evaluation parameters. The method shortens the WIFI positioning time, improves the positioning accuracy, has the characteristics of high positioning accuracy and low software computation amount, and meets the real-time positioning requirement on the premise of ensuring the positioning accuracy.

Description

Indoor positioning method based on fusion of WIFI and PDR
Technical Field
The invention relates to the technical field of indoor positioning of WIFI signals and pedestrian dead reckoning, in particular to an indoor positioning method based on fusion of WIFI and PDR.
Background
Statistically, 80% of a person's lifetime stays indoors, but GPS cannot be operated indoors. Industries such as trip navigation, intelligent manufacturing, intelligent service and the like also wait for people to review the value of indoor positions again. Indoor positioning technology has also become more and more important in recent years as a key to open an indoor location service door. The current mature indoor positioning comprises technologies such as ultrasonic positioning, UWB positioning, inertial navigation positioning, Radio Frequency Identification (RFID) positioning, Bluetooth positioning and WIFI positioning. Compared with other indoor wireless positioning technologies, WIFI has unique advantages, WIFI hotspots are distributed in all corners and building areas of a city, due to the ubiquitous nature of the WIFI, the deployment cost is low, hardware is easy to install, the WIFI is easy to combine with a smart phone for positioning, the coverage area is wide, the positioning accuracy is high, the WIFI is easy to achieve, and the WIFI hotspot is a research hotspot of the indoor positioning technology rapidly.
In the positioning process by utilizing the WIFI fingerprint, due to the complex indoor environment, the WIFI signal is easy to interfere, the signal intensity is easy to generate large-amplitude jump, and an area which cannot be covered by the WIFI signal exists, so that the WIFI positioning deviation is large. Therefore, indoor positioning by using the WIFI technology alone cannot meet the needs of people.
Utilize intelligent terminal to carry out indoor location in-process, because motion sensor such as gyroscope, acceleration sensor, electron compass are generally furnished with to mobile terminal, this makes mobile terminal's inertial navigation technique have better popularization nature, has advantages such as difficult environmental impact, stability height. However, the electronic compass is easily interfered by the environment, so that the course angle is deviated, the walking distance error is caused by the gait judgment error and the step length estimation error, the inertial system cannot be accurately positioned for a long time due to the accumulated error, and how to effectively eliminate the accumulated error becomes the key for solving the problem.
The invention CN 106610292A in china discloses an indoor positioning method combining WIFI and dead reckoning (PDR), which obtains an initial position of a target to be measured by using a WIFI positioning subsystem, and after obtaining the initial position of the target to be measured, two positioning subsystems in the system, namely the WIFI positioning subsystem and the PDR positioning subsystem, respectively output the position of the target to be measured. The system adopts a time window utility function to effectively and linearly weight the coordinates output by the WIFI positioning subsystem and the coordinates output by the PDR-based positioning subsystem, and after weighting, processing is carried out through Kalman filtering to obtain global positioning coordinates of mixed WIFI and PDR. The PDR fusion calibration is not considered in the positioning of the method, and due to the instability of WIFI positioning and the accumulated error of PDR positioning, the obtained positioning coordinate precision is still less accurate.
China CN 107302754A discloses a WIFI and PDR based indoor positioning simple method, which judges the motion state of a pedestrian through acceleration measured by an acceleration sensor by setting an initial position and a step length, carries out a WIFI positioning method through RSSI values, collects RSSI values of a plurality of reference nodes, calculates the current position by using an improved algorithm when the RSSI values are detected to exceed a threshold value, and carries out PDR positioning to carry out dead reckoning on the indoor pedestrian to obtain position estimation by taking the current position as an actual position value. The PDR initial position is self-positioning, calibration is not considered, and due to the instability of WIFI positioning and the accumulated error of PDR positioning, the accuracy of the obtained positioning coordinate is still less accurate.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides an indoor positioning method with high measurement precision.
In order to solve the technical problems, the technical scheme adopted by the invention is an indoor positioning method based on the fusion of WIFI and PDR, and the method comprises the following steps:
(1) establishing a WIFI offline fingerprint database: arranging M AP nodes for transmitting WIFI hotspots in a positioning area, dividing the positioning area into N nodes, calculating the actual position of each node, acquiring the RSSI of the signal strength from each AP node in the N nodes to obtain an RSSI training sample, corresponding the RSSI training sample to the actual position of the RSSI training sample, and establishing a fingerprint database I; the fingerprint data set I is represented as:
I={(r1,o1),(r2,o2),...,(ri,oi),...,(rN,oN)} (1)
wherein, the vector ri=(ri1,ri2,...,riM)∈RMRepresents RSSI, r from M APsi1Is RSSI, r from the 1 st WIFI hotspotiMFor RSSI of Mth AP, position vector oi=(x,y)∈R2Is represented by riThe position corresponding to the vector, x is the x-axis coordinate of the position, y is the y-axis coordinate of the position, and the RSSI vector r of the RSSI training sampleiAnd a position vector oiAre known, i ═ 1, 2.. N;
(2) clustering training samples to obtain cluster samplesThis and corresponding categories: clustering the fingerprint database I through a K-means algorithm, and dividing the fingerprint database I into V classes { c1,c2,.cv..cVEach class center vector is defined as { C }1,C2,...CVDividing RSSI training samples in the fingerprint database into V classes respectively to obtain a clustering sample data set:
L={(r1,cv1),(r2,cv2),...(ri,cvi),...,(rN,cvN)} (2),
wherein r isi=(ri1,ri2,...,riM)∈RMIndicates the RSSI of the M APs,
Figure GDA0002572594230000021
indicates the V category to which it belongs, cvClass is trained by p RSSI samples { rv1,rv2,...,rvpComposition of, for all cvC is obtained by averaging RSSI-like training samplesvClass center vector
Figure GDA0002572594230000022
(3) Obtaining positioning coordinates through a weighted K nearest neighbor algorithm: acquiring real-time RSSI samples on line, finding out a class most similar to the acquired real-time RSSI samples, predicting attribute values of the real-time RSSI samples acquired on line through K nearest neighbor samples, and weighting positions corresponding to the K RSSI training samples to acquire position coordinates of the RSSI training samples; the real-time RSSI sample obtained online is denoted as T ═ r ((r)j1,rj2,...,rjM) (x, y)), where the real-time RSSI samples r taken online are rj=(rj1,rj2,...,rjM)∈RMThe location vector o ═ (x, y) represents the location information of the online acquired real-time RSSI samples, where the online acquired RSSI vector is known and the location vector (x, y) is unknown;
first, r vector and V class center RSSI vectors { C are calculated1,C2,...CVThe similarity of the r vector, r, is determinedj1,rj2,...,rjMRSSI vector with the ith class center
Figure GDA0002572594230000031
The cosine similarity of (a) is defined as:
Figure GDA0002572594230000032
similarly, calculating the similarity between the r vector and the RSSI vectors of other categories, and obtaining V cosine similarities { Sim after V times of calculation1,Sim2,...,SimVIn which the category c corresponding to the maximum similarity isvIs the most similar class to the r vector;
determining the most similar class cvK samples r most similar to the r vectorK1,rK2,.rKi..,rKKSimilarity is respectively SimK1,SimK2,...,SimKK,
Figure GDA0002572594230000033
(xK1,yK1),(xK2,yK2),...,(xKK,yKK) Represents the corresponding coordinates, (r)i1,r12,...riM) Representing the most similar sample r selectedKiCorresponding RSSI samples, normalization processing similarity, defining the weight affecting the positioning result as { w }K1,wK2,...,wKK};
Figure GDA0002572594230000041
Weighting the sample coordinates to obtain the position coordinates of the on-line acquired RSSI:
x=wK1xK1+wK2xK2+...+wKKxKK(6),
y=wK1yK1+wK2yK2+...+wKKyKK(7),
(4) updating the state and the position by fusing PDR positioning: system model X for constructing pedestrian walkingkThe initial position coordinates of the PDR positioning are obtained through WIFI positioning, the WIFI positioning and the PDR positioning are fused to obtain an error threshold value, a walking step length is obtained through an acceleration sensor, the orientation angle variation after walking is obtained through a gyroscope arranged in the intelligent terminal, and a measurement equation Z is usedkUpdating the state information and the position information;
the pedestrian walking system model XkThe following were used:
Figure GDA0002572594230000042
wherein the number of steps of walking is represented by k, and the position information after walking is represented by xk,ykIs represented by thetakDenotes the azimuth angle after k steps, Wk-1The representation of the noise is represented by,
Figure GDA0002572594230000045
the step length model is adopted to match the result of the acceleration sensor for the step length average value, the step length is set to be 60cm,
Figure GDA0002572594230000043
is the orientation angle variation; measurement equation ZkAs follows:
Figure GDA0002572594230000044
wherein x isk,ykRepresenting a positioning result obtained through WIFI positioning; skRepresenting the average pedestrian walking step, obtained from the acceleration sensor results, Δ θkThe orientation angle variation of the pedestrian after walking can be acquired through a built-in gyroscope of the intelligent terminal, and thetakRepresenting the orientation angle of the pedestrian after walking; vkRepresenting noise.
(5) Using the fusion result as a correction source for the PDR;
setting PDR deviation thresholdpdrAnd if the deviation exceeds a set threshold value,correcting the positioning result to obtain a WIFI and PDR fusion positioning result, and using the WIFI and PDR fusion result as a correction source of the PDR, which is shown in a formula (9);
(6) acquiring a correction factor correction PDR result through the evaluation parameters;
obtaining an evaluation parameter by using data in an interval time period, namely [0, T ] time, wherein the evaluation parameter is shown in formula (13) and formula (14), obtaining a correction factor by the evaluation parameter, and the correction factor is shown in formula (15), and correcting the PDR result, wherein the specific process is as follows:
Figure GDA0002572594230000051
indicating the positioning result after positioning by fusion,
Figure GDA0002572594230000052
representing the PDR individual positioning result, wherein the PDR individual positioning result is obtained by the following formula
y2=y1+S12cosθ1(10),
x2=x1+S12sin θ1(11),
(x1,x2) Is PDR initial position, (x)2,y2) Coordinates are positioned for the PDR, the displacement S is obtained by matching a step length model with an acceleration sensor, the step length of the pedestrian is 60cm, the direction angle theta is obtained by the sensor and a gyroscope,
the positioning result difference is as follows:
Figure GDA0002572594230000053
given a [0, K ] time, the accumulated error is expressed as:
Figure GDA0002572594230000054
Figure GDA0002572594230000055
the characteristic is used as a correction factor for PDR positioning, and the correction principle is as follows:
if the error C is accumulatedxAnd CyThe absolute value is E [0, sigma ]1]The positioning error is negligible and does not need to be corrected;
if the error C is accumulatedxAnd CyAbsolute value ∈ [ σ ]12]The error evaluation requirement is met, and the positioning result is corrected;
if the error C is accumulatedxAnd CyAbsolute value ∈ [ σ ]2,∞]The error evaluation requirement is not met, the WIFI positioning error is large, the fusion positioning is carried out again,
because the PDR positioning result has accumulated error, the correction information is not corresponding, the correction capability is too weak, the correction scale factor alpha is set to represent the proportional relation between the error of the current time and the error of the previous time, and [0, K ] is used for solving the problem of the error of the PDR positioning result]Represents a time period, CN=αCkExpressing a proportional relation, smoothing a correction process in the M time period by the following formula, and solving the problem of mutation of the positioning result:
Figure GDA0002572594230000061
wherein j is ∈ [1, M ].
Compared with the prior art, the invention has the beneficial effects that:
the K-means algorithm is combined with the K nearest neighbor method, so that the WIFI positioning time is shortened, and the positioning precision is improved. And (5) utilizing the WIFI positioning result and the PDR to fuse and position, and correcting the positioning factor of the system by using the correction factor. The method has the characteristics of high positioning precision and low software computation, and realizes real-time requirements on the premise of ensuring the positioning precision.
Drawings
FIG. 1 is a flow chart of a method of the present invention;
fig. 2 is a fusion structure diagram of WIFI positioning and PDR positioning.
Detailed Description
The following further describes the embodiments of the present invention with reference to the drawings, but the present invention is not limited thereto.
Fig. 1 shows an indoor positioning method based on WIFI and PDR fusion, which includes the following steps:
(1) establishing a WIFI offline fingerprint database: arranging M AP nodes for transmitting WIFI hotspots in a positioning area, dividing the positioning area into N nodes, calculating the actual position of each node, acquiring the RSSI of the signal strength from each AP node in the N nodes to obtain an RSSI training sample, corresponding the RSSI training sample to the actual position of the RSSI training sample, and establishing a fingerprint database I; the fingerprint data set I is represented as:
I={(r1,o1),(r2,o2),...,(ri,oi),...,(rN,oN)} (1),
wherein, the vector ri=(ri1,ri2,...,riM)∈RMRepresents RSSI, r from M APsi1Is RSSI, r from the 1 st WIFI hotspotiMFor RSSI of Mth AP, position vector oi=(x,y)∈R2Is represented by riThe position corresponding to the vector, x is the x-axis coordinate of the position, y is the y-axis coordinate of the position, and the RSSI vector r of the RSSI training sampleiAnd a position vector oiAre known, i ═ 1, 2.. N;
(2) clustering the training samples to obtain clustering samples and corresponding categories: clustering the fingerprint database I through a K-means algorithm, and dividing the fingerprint database I into V classes { c1,c2,.cv..cVEach class center vector is defined as { C }1,C2,...CVDividing RSSI training samples in the fingerprint database into V classes respectively to obtain a clustering sample data set:
L={(r1,cv1),(r2,cv2),...(ri,cvi),...,(rN,cvN)} (2),
wherein r isi=(ri1,ri2,...,riM)∈RMIndicates the RSSI of the M APs,
Figure GDA0002572594230000071
indicates the V category to which it belongs, cvClass is trained by p RSSI samples { rv1,rv2,...,rvpComposition of, for all cvC is obtained by averaging RSSI-like training samplesvClass center vector
Figure GDA0002572594230000072
(3) Obtaining positioning coordinates through a weighted K nearest neighbor algorithm: acquiring real-time RSSI samples on line, finding out a class most similar to the acquired real-time RSSI samples, predicting attribute values of the real-time RSSI samples acquired on line through K nearest neighbor samples, and weighting positions corresponding to the K nearest neighbor training samples to acquire position coordinates of the real-time RSSI samples; the real-time RSSI sample obtained from the line is denoted as T ═ r ((r)j1,rj2,...,rjM) (x, y)), where the real-time RSSI samples r taken online are defined by rj=(rj1,rj2,...,rjM)∈RMIndicating RSSI for M APs received online, a location vector o ═ x, y indicating location information for real-time RSSI samples acquired online, where the RSSI vector acquired online is known and the location vector (x, y) is unknown,
first, r vector and V class center RSSI vectors { C are calculated1,C2,...CVThe similarity of the r vector, r, is determinedj1,rj2,...,rjMRSSI vector with the ith class center
Figure GDA0002572594230000073
The cosine similarity of (a) is defined as:
Figure GDA0002572594230000074
similarly, calculating the similarity between the r vector and the RSSI vectors of other categories, and obtaining V cosine similarities { Sim after V times of calculation1,Sim2,...,SimVIn which the category c corresponding to the maximum similarity isvIs the most similar class to the r vector;
determiningMost similar class cvK samples r most similar to the r vectorK1,rK2,..rKi.,rKKSimilarity is respectively SimK1,SimK2,...,SimKK,
Figure GDA0002572594230000075
(xK1,yK1),(xK2,yK2),...,(xKK,yKK) Represents the corresponding coordinates, (r)i1,r12,...riM) Representing the most similar sample r selectedKiCorresponding RSSI samples, normalization processing similarity, defining the weight affecting the positioning result as { w }K1,wK2,...,wKK};
Figure GDA0002572594230000081
Weighting the sample coordinates to obtain the position coordinates of the on-line acquired RSSI:
x=wK1xK1+wK2xK2+...+wKKxKK(6),
y=wK1yK1+wK2yK2+...+wKKyKK(7),
(4) updating the state and the position by fusing PDR positioning: system model X for constructing pedestrian walkingkThe initial position coordinates of the PDR positioning are obtained through WIFI positioning, the WIFI positioning and the PDR positioning are fused to obtain an error threshold value, a walking step length is obtained through an acceleration sensor, the orientation angle variation after walking is obtained through a gyroscope arranged in the intelligent terminal, and a measurement equation Z is usedkAnd updating state information and position information, wherein the system model of the pedestrian walking is as follows:
Figure GDA0002572594230000082
wherein the number of steps of walking is represented by k, and the position information after walking is represented by xk,ykIs represented by thetakDenotes the azimuth angle after k steps, Wk-1The representation of the noise is represented by,
Figure GDA0002572594230000085
is the step length average value, is obtained by an acceleration sensor,
Figure GDA0002572594230000083
for the variation of the orientation angle, measure the equation ZkAs follows:
Figure GDA0002572594230000084
wherein x isk,ykRepresenting a positioning result obtained through WIFI positioning; skRepresenting the average walking step length of the pedestrian, obtained by an acceleration sensor, Delta thetakRepresenting the variation of the orientation angle of the pedestrian after walking, and obtaining the variation through a built-in gyroscope of the intelligent terminalkRepresenting the orientation angle of the pedestrian after walking; vkRepresenting noise;
(5) using the fusion results as a correction source for PDR: setting PDR deviation thresholdpdrIf the deviation exceeds a set threshold value, correcting the positioning result to obtain a WIFI and PDR fusion positioning result, and using the WIFI and PDR fusion result as a PDR correction source, referring to a formula (9);
(6) obtaining correction factor corrected PDR results by evaluating parameters: obtaining evaluation parameters by using data in interval time periods, namely [0, T ] time, wherein the evaluation parameters are shown in formulas (13) and (14), and obtaining correction factors and correction factors by the evaluation parameters, namely formula (15), and correcting the PDR result; the specific process is as follows:
Figure GDA0002572594230000091
indicating the positioning result after positioning by fusion,
Figure GDA0002572594230000092
representing the PDR individual positioning result, the PDR individual positioning is obtained by the following formula,
y2=y1+S12cos θ1(10),
x2=x1+S12sin θ1(11),
(x1,x2) Is PDR initial position, (x)2,y2) Coordinates are positioned for the PDR, the displacement S is obtained by matching a step length model with an acceleration sensor, the step length of the pedestrian is 60cm, the direction angle theta is obtained by the sensor and a gyroscope,
the positioning result difference is as follows:
Figure GDA0002572594230000093
given a [0, K ] time, the accumulated error is expressed as:
Figure GDA0002572594230000094
Figure GDA0002572594230000095
the characteristic is used as a correction factor for PDR positioning, and the correction principle is as follows:
if the error C is accumulatedxAnd CyThe absolute value is E [0, sigma ]1]The positioning error is negligible and does not need to be corrected;
if the error C is accumulatedxAnd CyAbsolute value ∈ [ σ ]12]The error evaluation requirement is met, and the positioning result is corrected;
if the error C is accumulatedxAnd CyAbsolute value ∈ [ σ ]2,∞]If the error evaluation requirement is not met, the WIFI positioning error is large, and fusion positioning is carried out again;
because the PDR positioning result has the problems of accumulated error and the like, the correction information is not corresponding, the correction capability is too weak, and the correction scale factor alpha is set to represent the proportional relation between the error of the current time and the error of the previous time, [0, K]Represents a time period, CN=αCkPresentation ratioFor example, the correction process within the M time period is smoothed by the following formula to solve the problem of abrupt change in localization result:
Figure GDA0002572594230000101
wherein j is ∈ [1, M ].
Fig. 2 shows a fusion structure of WIFI positioning and PDR positioning, where an initial position coordinate of PDR positioning is obtained through WIFI positioning, and an error threshold is obtained by fusing WIFI positioning and PDR positioning; using a WIFI and PDR fusion result as a PDR correction source, setting a PDR deviation threshold, and correcting a positioning result if the deviation exceeds the set threshold; and acquiring an evaluation parameter by using the data of the interval time period, acquiring a correction factor by the evaluation parameter, and correcting the PDR result.
Compared with the prior art, the invention has the beneficial effects that:
the K-means algorithm is combined with the K nearest neighbor method, so that the WIFI positioning time is shortened, and the positioning precision is improved. And (5) utilizing the WIFI positioning result and the PDR to fuse and position, and correcting the positioning factor of the system by using the correction factor. The method has the characteristics of high positioning precision and low software computation, and realizes real-time requirements on the premise of ensuring the positioning precision.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention.

Claims (2)

1. An indoor positioning method based on WIFI and PDR fusion is characterized by comprising the following steps:
(1) establishing a WIFI offline fingerprint database: arranging M APs for transmitting WIFI hotspots in a positioning area, dividing the positioning area into N nodes, calculating the actual position of each node, acquiring the signal strength RSSI from each AP in the N nodes to obtain an RSSI training sample, corresponding the RSSI training sample to the actual position of the RSSI training sample, and establishing a fingerprint database I;
(2) clustering the training samples to obtain clustering samples and corresponding categories: clustering the fingerprint database I through a K-means algorithm, and dividing the fingerprint database I into V classes { c1,c2,.cv..cVEach class center vector is defined as { C }1,C2,...CVDividing RSSI training samples in the fingerprint database into V classes respectively to obtain a clustering sample data set:
L={(r1,cv1),(r2,cv2),...(ri,cvi),...,(rN,cvN)} (2),
wherein r isi=(ri1,ri2,...,riM)∈RMRSSI of M APs, their corresponding categories
Figure FDA0002637040420000011
Indicates the V category to which it belongs, cvClass is trained by p RSSI samples { rv1,rv2,...,rvpComposition of, for all cvC is obtained by averaging RSSI-like training samplesvClass center vector
Figure FDA0002637040420000012
(3) Obtaining positioning coordinates through a weighted K nearest neighbor algorithm: acquiring real-time RSSI samples on line, finding out a class which is most similar to the acquired real-time RSSI samples in a fingerprint database I, predicting attribute values of the real-time RSSI samples acquired on line through K nearest neighbor samples, and weighting positions corresponding to the K nearest neighbor samples to acquire position coordinates of the K nearest neighbor samples; the real-time RSSI sample obtained online is denoted as T ═ r ((r)j1,rj2,...,rjM) (x, y)), where the real-time RSSI samples r taken online are defined by rj=(rj1,rj2,...,rjM)∈RMIndicating RSSI of M APs received online, and a location vector o ═ x, y indicating location information of real-time RSSI samples acquired online, where the RSSI vector acquired online is known and the location vector (x, y) is unknown;
first, r vector and V class center RSSI vectors { C are calculated1,C2,...CVThe similarity of the r vector, r, is determinedj1,rj2,...,rjMRSSI vector with the ith class center
Figure FDA0002637040420000013
The cosine similarity of (a) is defined as:
Figure FDA0002637040420000014
similarly, calculating the similarity between the r vector and the RSSI vectors of other categories, and obtaining V cosine similarities { Sim after V times of calculation1,Sim2,...,SimVIn which the category c corresponding to the maximum similarity isvIs the most similar class to the r-vector,
determining the most similar class cvK samples r most similar to the r vectorK1,rK2,.rKi..,rKKSimilarity is respectively SimK1,SimK2,...,SimKK,
Figure FDA0002637040420000021
(xK1,yK1),(xK2,yK2),...,(xKK,yKK) Represents the corresponding coordinates, (r)i1,r12,...riM) Representing the most similar sample r selectedKiCorresponding RSSI samples, normalization processing similarity, defining the weight affecting the positioning result as { w }K1,wK2,...,wKK},
Figure FDA0002637040420000022
Weighting the sample coordinates to obtain the position coordinates of the on-line acquired RSSI:
x=wK1xK1+wK2xK2+...+wKKxKK(6),
y=wK1yK1+wK2yK2+...+wKKyKK(7),
(4) updating the state and the position by fusing PDR positioning;
system model X for constructing pedestrian walkingkAcquiring initial position coordinates of PDR positioning through WIFI positioning, acquiring an error threshold by fusing the WIFI positioning and the PDR positioning, acquiring a walking step length through an acceleration sensor, acquiring the variation of an orientation angle after walking through a gyroscope arranged in an intelligent terminal, and updating state information and position information by using a measurement equation;
(5) using the fusion results as a correction source for PDR: setting PDR deviation thresholdpdrIf the deviation exceeds a set threshold value, correcting the positioning result to obtain a WIFI and PDR fusion positioning result, and using the WIFI and PDR fusion result as a PDR correction source, referring to a formula (9);
(6) obtaining correction factor corrected PDR results by evaluating parameters: obtaining an evaluation parameter by using data in an interval time period, namely [0, T ] time, wherein the evaluation parameter is shown in formula (13) and formula (14), obtaining a correction factor by the evaluation parameter, and the correction factor is shown in formula (15), and correcting the PDR result, wherein the specific process is as follows:
Figure FDA0002637040420000031
indicating the positioning result after positioning by fusion,
Figure FDA0002637040420000032
representing the PDR individual positioning result, which is obtained by the following formula,
y2=y1+S12cosθ1(10),
x2=x1+S12sinθ1(11),
(x1,x2) Is PDR initial position, (x)2,y2) The coordinates are located for the PDR,the displacement S is obtained by matching the step length model with an acceleration sensor, the step length of the pedestrian is selected to be 60cm, and the direction angle theta is obtained through the sensor and a gyroscope;
the positioning result difference is as follows:
Figure FDA0002637040420000033
given a [0, K ] time, the accumulated error is expressed as:
Figure FDA0002637040420000034
Figure FDA0002637040420000035
the characteristic is used as a correction factor for PDR positioning, and the correction principle is as follows:
if the error C is accumulatedxAnd CyThe absolute value is E [0, sigma ]1]The positioning error is negligible and does not need to be corrected;
if the error C is accumulatedxAnd CyAbsolute value ∈ [ σ ]12]The error evaluation requirement is met, and the positioning result is corrected;
if the error C is accumulatedxAnd CyAbsolute value ∈ [ σ ]2,∞]If the error evaluation requirement is not met, the WIFI positioning error is large at the moment, fusion positioning is carried out again, a correction scale factor alpha is set to represent the proportional relation between the error of the current time and the error of the previous time, and [0, K ]]Represents a time period, CN=αCkExpressing a proportional relation, smoothing a correction process in the M time period by the following formula, and solving the problem of mutation of the positioning result:
Figure FDA0002637040420000036
wherein j belongs to [1, M ], and the system model of pedestrian walking is as follows:
Figure FDA0002637040420000041
wherein the number of steps of walking is represented by k, and the position information after walking is represented by xi,yiIs represented by thetakDenotes the azimuth angle after k steps, Wk-1The representation of the noise is represented by,
Figure FDA0002637040420000042
the step length is the average value, the result of the acceleration sensor is matched through a step length model, the step length is selected to be 60cm,
Figure FDA0002637040420000043
is the orientation angle variation; the measurement equation is as follows:
Figure FDA0002637040420000044
wherein x isk,ykRepresenting a positioning result obtained through WIFI positioning; skRepresenting the average walking step length of the pedestrian, obtained by an acceleration sensor, Delta thetakRepresenting the variation of the orientation angle of the pedestrian after walking, and obtaining the variation through a built-in gyroscope of the intelligent terminalkRepresenting the orientation angle of the pedestrian after walking; vkRepresenting noise.
2. The WIFI and PDR fusion based indoor positioning method according to claim 1, wherein in step (1), the number set of training samples is represented as:
I={(r1,o1),(r2,o2),...,(ri,oi),...,(rN,oN)} (1)
wherein, the vector ri=(ri1,ri2,...,riM)∈RMRepresents the RSSI vector, r, from M APsi1Is RSSI, r from the 1 st WIFI hotspotiMFor RSSI of Mth AP, position vector oi=(x,y)∈R2Is represented by riThe position corresponding to the vector, x isThe x-axis coordinate of the position, y is the y-axis coordinate of the position, and the RSSI vector r of the training sampleiAnd a position vector oiAre known, i ═ 1, 2.. N.
CN201811083050.5A 2018-11-02 2018-11-02 Indoor positioning method based on fusion of WIFI and PDR Active CN109413578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811083050.5A CN109413578B (en) 2018-11-02 2018-11-02 Indoor positioning method based on fusion of WIFI and PDR

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811083050.5A CN109413578B (en) 2018-11-02 2018-11-02 Indoor positioning method based on fusion of WIFI and PDR

Publications (2)

Publication Number Publication Date
CN109413578A CN109413578A (en) 2019-03-01
CN109413578B true CN109413578B (en) 2020-10-23

Family

ID=65464918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811083050.5A Active CN109413578B (en) 2018-11-02 2018-11-02 Indoor positioning method based on fusion of WIFI and PDR

Country Status (1)

Country Link
CN (1) CN109413578B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109982263A (en) * 2019-04-04 2019-07-05 中国矿业大学 A kind of WiFi fingerprint base update method based on inertia measurement tracing point
CN110231592A (en) * 2019-04-11 2019-09-13 深圳市城市交通规划设计研究中心有限公司 Indoor orientation method, device, computer readable storage medium and terminal device
CN110187308B (en) * 2019-06-20 2023-06-16 华南师范大学 Indoor positioning method, device, equipment and medium based on signal fingerprint library
CN110320495A (en) * 2019-08-01 2019-10-11 桂林电子科技大学 A kind of indoor orientation method based on Wi-Fi, bluetooth and PDR fusion positioning
CN110557829B (en) * 2019-09-17 2020-12-11 北京东方国信科技股份有限公司 Positioning method and positioning device for fusing fingerprint database
CN111970633A (en) * 2020-08-24 2020-11-20 桂林电子科技大学 Indoor positioning method based on WiFi, Bluetooth and pedestrian dead reckoning fusion
CN112637762A (en) * 2020-12-11 2021-04-09 武汉科技大学 Indoor fusion positioning method based on improved PDR algorithm
CN113645561A (en) * 2021-06-30 2021-11-12 南京邮电大学 Self-adaptive switching positioning method based on indoor area division
CN114353787B (en) * 2021-12-06 2024-05-10 理大产学研基地(深圳)有限公司 Multisource fusion positioning method
CN114554389B (en) * 2021-12-29 2023-06-20 重庆邮电大学 Pedestrian navigation positioning system fusion method
CN114501312A (en) * 2022-02-17 2022-05-13 北京工业大学 Indoor positioning method and system integrating WIFI and PDR positioning technologies
CN114743378A (en) * 2022-05-16 2022-07-12 青岛理工大学 Method and system for monitoring traffic flow in tunnel

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105588566A (en) * 2016-01-08 2016-05-18 重庆邮电大学 Indoor positioning system and method based on Bluetooth and MEMS (Micro-Electro-Mechanical Systems) fusion
CN107426687A (en) * 2017-04-28 2017-12-01 重庆邮电大学 The method for adaptive kalman filtering of positioning is merged in towards WiFi/PDR rooms
CN108303672A (en) * 2017-12-26 2018-07-20 武汉创驰蓝天信息科技有限公司 WLAN indoor positionings error correcting method based on location fingerprint and system
CN108632761A (en) * 2018-04-20 2018-10-09 西安交通大学 A kind of indoor orientation method based on particle filter algorithm

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105588566A (en) * 2016-01-08 2016-05-18 重庆邮电大学 Indoor positioning system and method based on Bluetooth and MEMS (Micro-Electro-Mechanical Systems) fusion
CN107426687A (en) * 2017-04-28 2017-12-01 重庆邮电大学 The method for adaptive kalman filtering of positioning is merged in towards WiFi/PDR rooms
CN108303672A (en) * 2017-12-26 2018-07-20 武汉创驰蓝天信息科技有限公司 WLAN indoor positionings error correcting method based on location fingerprint and system
CN108632761A (en) * 2018-04-20 2018-10-09 西安交通大学 A kind of indoor orientation method based on particle filter algorithm

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WiFi-PDR室内组合定位的无迹卡尔曼滤波算法;陈国良,张言哲,汪云甲,孟晓林;《测绘学报》;20151231;第44卷;第1-8页 *

Also Published As

Publication number Publication date
CN109413578A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109413578B (en) Indoor positioning method based on fusion of WIFI and PDR
Dinh et al. Smartphone-based indoor positioning using BLE iBeacon and reliable lightweight fingerprint map
Liu et al. Kalman filter-based data fusion of Wi-Fi RTT and PDR for indoor localization
CN109298389B (en) Indoor pedestrian combination pose estimation method based on multi-particle swarm optimization
CN106412839B (en) Based on secondary partition and the matched indoor positioning of fingerprint gradient and tracking
CN108534779B (en) Indoor positioning map construction method based on track correction and fingerprint improvement
CN111491367B (en) Indoor positioning method based on crowd sensing and multi-fusion technology
CN110958575B (en) Positioning method and system based on WiFi fusion prediction
Zhou et al. Activity sequence-based indoor pedestrian localization using smartphones
CN107396321B (en) Unsupervised indoor positioning method based on mobile phone sensor and iBeacon
Liu et al. Fusing similarity-based sequence and dead reckoning for indoor positioning without training
Du et al. CRCLoc: A crowdsourcing-based radio map construction method for WiFi fingerprinting localization
CN110320495A (en) A kind of indoor orientation method based on Wi-Fi, bluetooth and PDR fusion positioning
CN111970633A (en) Indoor positioning method based on WiFi, Bluetooth and pedestrian dead reckoning fusion
Lee et al. An experimental heuristic approach to multi-pose pedestrian dead reckoning without using magnetometers for indoor localization
CN108521627B (en) Indoor positioning system and method based on WIFI and geomagnetic fusion of HMM
CN107941211B (en) Multi-element fusion positioning method and device based on second-order cascade and electronic equipment
CN111901749A (en) High-precision three-dimensional indoor positioning method based on multi-source fusion
CN108156580B (en) Indoor floor positioning method based on smart phone
CN109211229A (en) A kind of personnel's indoor orientation method based on mobile phone sensor and WiFi feature
Hao et al. A multi-floor location method based on multi-sensor and WiFi fingerprint fusion
CN112729301A (en) Indoor positioning method based on multi-source data fusion
CN113566820B (en) Fused pedestrian positioning method based on position fingerprint and PDR algorithm
CN106197418B (en) A kind of indoor orientation method merged based on the fingerprint technique of sliding window with sensor
Zhou et al. Anonymous crowdsourcing-based WLAN indoor localization

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