CN109068267B - Indoor positioning method based on LoRa SX1280 - Google Patents

Indoor positioning method based on LoRa SX1280 Download PDF

Info

Publication number
CN109068267B
CN109068267B CN201810876943.9A CN201810876943A CN109068267B CN 109068267 B CN109068267 B CN 109068267B CN 201810876943 A CN201810876943 A CN 201810876943A CN 109068267 B CN109068267 B CN 109068267B
Authority
CN
China
Prior art keywords
fingerprint
lora
special
coordinates
coordinate
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
CN201810876943.9A
Other languages
Chinese (zh)
Other versions
CN109068267A (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 CCRFID MICROELECTRONICS Co.,Ltd.
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 CN201810876943.9A priority Critical patent/CN109068267B/en
Publication of CN109068267A publication Critical patent/CN109068267A/en
Application granted granted Critical
Publication of CN109068267B publication Critical patent/CN109068267B/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
    • 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/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • 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

Abstract

The invention discloses an indoor positioning method based on LoRa SX 1280. The method comprises an off-line fingerprint acquisition modeling stage and an on-line real-time positioning stage. An off-line fingerprint acquisition modeling stage: firstly, special fingerprint features based on LoRa SX1280 are needed, wherein the special fingerprint features comprise ranging fingerprints and RSSI fingerprints; then, when the special fingerprint is input into the fingerprint library, the special fingerprint needs to be preprocessed by adopting a Gaussian filtering method, and finally, a positioning calculation model is obtained by utilizing an improved support vector regression method. And (3) an online real-time positioning stage: firstly, acquiring t times in an indoor area by utilizing a mobile node device and an anchor point device to form t groups of special fingerprint characteristics; secondly, a median filtering method is adopted for the t groups of special fingerprint features to obtain a unique fingerprint feature; and finally, substituting the unique fingerprint characteristic into the obtained calculation model, and calculating to obtain the position coordinate of the node to be positioned. The invention eliminates the problem that the fingerprint is easy to be interfered.

Description

Indoor positioning method based on LoRa SX1280
Technical Field
The invention relates to the technical field of Internet of things, in particular to an indoor positioning method based on LoRa SX 1280.
Background
The LoRa technology is an ultra-long distance wireless transmission scheme based on a spread spectrum technology adopted and popularized by Semtech corporation, and belongs to one of Low Power Wide Area Network (LPWAN) communication technologies. The LoRa technology is not limited by the compromise between transmission distance and power consumption, and a system which can realize long transmission distance, low power consumption and multiple nodes is provided for users, so that the system is developed into a network.
As the audience population for the LoRa technology increases, and as such, continues to evolve. Semtech subsequently introduced SX1280 chips, meaning the appearance of LoRa in the 2.4GHz band. The chip has a built-in ranging engine function, i.e. a Time Of Arrival (TOA) ranging engine based on Time-Of-flight (tof). The ranging function of SX1280 is based on the measurement of the round-trip time-of-flight of wireless signals between SX1280 transceivers. This process uses the LoRa modulation scheme and therefore benefits from all the advantages of long range and low power operation granted by LoRa.
With the continuous expansion and deepening of the application of the internet of things, the location-based service has wider and wider application. Indoor positioning has some specificity due to special environmental factors, such as lack of unified infrastructure, difficulty in obtaining consistency and universality of indoor positioning technology, and serious interference effect due to indoor environmental changes. Currently, indoor positioning methods mainly include a positioning method based on ranging and a positioning method based on fingerprints. The ranging-based location method has different methods such as TOA, time difference of arrival (TDOA), Received Signal Strength (RSSI), etc., according to the transmission model. In the methods, the RSSI-based ranging is widely applied due to low hardware cost and low calculation cost, but the positioning error is large due to poor RSSI ranging accuracy. Although SX1280 employs TOA ranging, practical tests show that the ranging error of SX1280 is also relatively large indoors. Therefore, the positioning error obtained by performing positioning calculation only according to the TOA ranging value of SX1280 is also relatively large. The fingerprint-based positioning method mainly utilizes the difference of the space positions of wireless signals, and physical position information corresponding to the position fingerprint of a target node is searched through a position fingerprint relation database and a matching algorithm so as to estimate the position of the node. Common matching algorithms are Nearest Neighbor (NN) algorithm, neural network algorithm, vector machine algorithm, K-nearest neighbor (KNN) algorithm, etc. The existing fingerprint positioning method mainly adopts RSSI fingerprint or magnetic field fingerprint and the like. In an actual indoor environment, due to the influences of multipath, shadow effect, personnel walking and the like, the RSSI values from the AP points at fixed positions often show complex time-varying statistical characteristics, which may reduce the positioning accuracy of the system and increase the complexity of the system.
Disclosure of Invention
The invention discloses an indoor system and a positioning method based on LoRa SX 1280.
The indoor positioning system used for solving the technical problem comprises: a mobile node device, an anchor point device, a gateway and a positioning server; wherein the mobile node device and the anchor point device are integrated with a LoRa SX1280 module.
The LoRa SX1280 module supports a LoRa communication mode and a LoRa ranging engine mode.
The mobile node apparatus can be configured on any mobile equipment, and the position of the mobile node apparatus is not fixed. The mobile node device adopts an SX1280 module, an independent antenna, a vibration sensor and a battery for power supply.
The anchor point device is a device which is placed at a position with known coordinates and is not changed, and is mainly used for assisting the mobile node device to complete the collection of fingerprint information. The anchor point device adopts an SX1280 module, an independent antenna and mains supply for power supply.
The gateway is mainly used for communication between the mobile node device and the positioning server.
The positioning server is used for performing positioning calculation after receiving a positioning request and relevant information of the mobile node device.
The technical scheme adopted by the invention for solving the technical problem comprises the following steps: an off-line fingerprint acquisition modeling stage and an on-line real-time positioning stage.
Firstly, an off-line fingerprint acquisition modeling stage comprises the following specific steps:
1-1, carrying out grid division on an area to be positioned, and acquiring special fingerprint characteristics based on LoRa SX1280 for each grid point area by utilizing a mobile node device and an anchor point device;
the special fingerprint features comprise ranging fingerprints obtained based on a LoRa SX1280 ranging engine mode and Received Signal Strength (RSSI) fingerprints obtained based on a LoRa SX1280 communication mode; the distance measurement fingerprint and the RSSI fingerprint are combined, and the dimensionality of the characteristic fingerprint is increased.
Further, let the center position coordinate of the ith grid point region be Pi=(xi,yi) Noting the ith grid point regionThe collected characteristic fingerprint matrix is
Figure BDA0001753515590000031
For the
Figure BDA0001753515590000032
When l is 2j-1 (odd column) represents a received signal strength RSSI fingerprint value obtained by the jth anchor point device based on the communication mode at the kth acquired mesh point region, and when l is 2j (even column) represents a ranging fingerprint value obtained by the jth anchor point device based on the ranging engine mode at the kth acquired mesh point region, where i is 1,2 … N, j is 1,2 … M, l is 1,2 … 2M, and k is 1,2 … T. RiThe number of columns of (2M) is the dimension of the feature fingerprint vector. In the above, N is the number of grid points in the region to be located, M is the number of anchor points, and T is the number of acquisition times at each grid point.
And 1-2, replacing the extreme data with a mean value by adopting a Gaussian filtering method aiming at the special fingerprint characteristics acquired by each grid point, and then storing the filtered special fingerprint characteristics and the two-dimensional coordinate position corresponding to the grid point into a fingerprint database.
And 1-3, taking the fingerprints in the fingerprint database as a training set, and then constructing a calculation model between the special fingerprint characteristics and the two-dimensional coordinates corresponding to the grid points by using an improved support vector regression algorithm.
Secondly, in an online real-time positioning stage, the specific steps include:
and 2-1, acquiring t times of special fingerprints at the position of the mobile node device (node to be positioned) to form t groups of special fingerprint characteristics.
2-2, obtaining a unique fingerprint feature by adopting a median filtering method for the t groups of special fingerprint features.
And 2-3, substituting the unique fingerprint characteristic into the calculation model obtained in the step 1-3, and calculating to obtain the position coordinate of the node to be positioned.
Further, the method for constructing the improved support vector regression calculation model in the step 1-3 and the method for calculating the position coordinates of the node to be positioned in the step 2-3 both adopt the improved support vector regression ISVR algorithm proposed in the literature [1 ].
The invention has the following beneficial effects:
the invention provides an indoor positioning system and method based on a LoRa SX1280 chip, which are essentially fingerprint-based indoor positioning system and method and can solve the problem of designing a high-precision indoor positioning system by using the LoRa SX1280 chip. The difference from the traditional fingerprint positioning method is that: the fingerprint adopts the fused fingerprint of the ranging value and the RSSI value, so that the problem that the fingerprint is easy to interfere is solved; the fingerprints are preprocessed in an off-line stage and an on-line stage, so that the consistency of the acquired fingerprints and the positions is improved; the ISVR provided by the inventor in the earlier stage is used for positioning calculation, so that the accuracy of a calculation model of fingerprint features and positions is improved. Due to the improvement of the three aspects, the positioning accuracy of the indoor positioning system and the indoor positioning method disclosed by the invention is higher than that of the traditional fingerprint positioning system and the fingerprint positioning method.
[1] The indoor positioning algorithm [ J ] based on improved support vector regression, the academic newspaper of instruments and meters, 2017,38(9): 84-91.
Drawings
FIG. 1(a) is a diagram of an indoor positioning system according to the present invention;
FIG. 1(b) is a diagram of an indoor positioning system according to the present invention;
FIG. 2 illustrates a particular fingerprint feature of the present invention;
fig. 3 is a schematic diagram of obtaining an RSSI fingerprint by using a LoRa communication mode according to the present invention;
FIG. 4 is a schematic diagram of a LoRa ranging engine mode for obtaining a ranging fingerprint according to the present invention;
FIG. 5 is a diagram illustrating the steps of a support vector regression positioning method of the present invention;
fig. 6 is a schematic diagram of an indoor positioning environment in an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Fig. 1(a) and (b) are device diagrams of an indoor positioning system based on LoRa SX1280 according to the present invention. Including both mobile node devices fig. 1(a) and fixed anchor point devices fig. 1 (b). And an LoRa module containing an SX1280 chip is required to be installed on the movable node device and the fixed anchor point device. The SX1280 chip of alt corporation of america possesses a LoRa communication mode and a LoRa ranging engine mode.
Fig. 2 shows a specific fingerprint feature based on LoRa SX1280 according to the present invention. Such fingerprint features include ranging fingerprints and RSSI fingerprints; as shown in fig. 2, the RSSI fingerprint value is combined with the distance measurement fingerprint value obtained based on the LoRa distance measurement engine mode, so as to increase the dimension of the eigenvector and improve the positioning accuracy.
Fig. 3 is a schematic diagram of obtaining an RSSI fingerprint by using the LoRa communication mode according to the present invention. The acquisition device of fig. 1 needs to be utilized, and a LoRa module containing an SX1280 chip is mounted on a movable node device and a fixed anchor device. The SX1280 chip itself possesses the LoRa communication mode and the LoRa ranging engine mode. In the communication mode, a mobile node device is used for broadcasting and paging anchor point devices (AP access points) fixed around, and the RSSI value of each anchor point is read after an anchor point reply is received.
Fig. 4 is a schematic diagram of obtaining a ranging fingerprint by using the LoRa ranging engine mode according to the present invention. After the RSSI fingerprint is acquired in the last step, the movable node device enters a ranging engine mode host mode, each anchor point device enters a ranging engine mode slave mode, the movable node device and each anchor point device perform ranging one by one, and ranging values between the movable node device and each anchor point are read out.
FIG. 5 is a step diagram of a location method based on LoRa SX1280 support vector regression according to the present invention;
the method comprises the following steps: s1 off-line acquisition stage; and carrying out grid division on the area to be positioned, and reasonably deploying the fixed anchor point device. And the special fingerprint characteristics containing the ranging value and the RSSI value are collected by utilizing the movable node device and the anchor point device. And then, carrying out data filtering on the initial fingerprint characteristics by using a Gaussian filtering method, namely, replacing the extreme data with the mean value by using the Gaussian filtering method for the fingerprint characteristics acquired at each reference point position. And then storing the characteristic sample and the corresponding coordinate position which are fused by the RSSI fingerprint and the ranging fingerprint after the Gaussian filtering method into a fingerprint database. And an off-line training model between the position coordinates and the reference point fingerprint features is constructed by utilizing an improved support vector regression algorithm. S2, an online real-time positioning stage; the method comprises the steps of utilizing a movable node device to collect wireless signal characteristics for t times in real time at a position to be positioned, and adopting a median filtering data preprocessing method, namely adopting a method of taking median in each dimension for the t fingerprint characteristics at the same position, and only selecting to obtain a unique fingerprint characteristic. And substituting the fingerprint characteristics into the offline training model obtained in the step S1, so as to calculate and obtain the position coordinates of the node to be positioned.
The specific implementation steps of the support vector regression positioning method based on LoRa SX1280 are as follows:
step 1:
and carrying out grid division according to the area in the area to be positioned, establishing a rectangular coordinate system, selecting N reference point areas and M LoRa access points, fixing each LoRa access point, and installing an anchor point device.
In the embodiment shown in fig. 6, an indoor environment of 16M by 12M is formed by meshing the areas with dotted lines, each mesh is a fingerprint reference point area, a black color × indicates the center of the reference point area, the coordinates of the point are the coordinates of the reference point, and a black triangle is a selected LoRa access point, and a fixed anchor device needs to be installed, where N is 48 and M is 4.
Step 2:
and acquiring the fingerprint vector signal characteristics with the movable node device for T times as 1 group of data in an evenly distributed mode at each reference point area position. The fingerprint vector signal characteristics comprise RSSI value fingerprints collected by the movable nodes and between surrounding fixed anchor point devices and ranging fingerprints based on an LoRa ranging engine mode. Specifically, we use the LoRa ranging engine mode, so we use the SX1280 chip from the alt corporation, which has built-in ranging engine function, i.e., Time of arrival (TOA) fusion ranging engine, and uses the Time-of-flight (tof) ranging method. The ranging function of SX1280 is based on a measurement of the round-trip time-of-flight between a pair of SX1280 transceivers (i.e., here the node to be located and the fixed anchor point). It is easy to understand that, training the feature vector combining the RSSI value and the ranging value in the positioning algorithm based on support vector regression can increase the dimensionality of the feature vector and improve the positioning accuracy.
Let the coordinate of the center position of the ith grid point region be Pi=(xi,yi) Recording the characteristic fingerprint matrix acquired from the ith grid point area as
Figure BDA0001753515590000071
For the
Figure BDA0001753515590000072
When l is 2j-1 (odd column) represents a received signal strength RSSI fingerprint value obtained by the jth anchor point device based on the communication mode at the kth acquired mesh point region, and when l is 2j (even column) represents a ranging fingerprint value obtained by the jth anchor point device based on the ranging engine mode at the kth acquired mesh point region, where i is 1,2 … N, j is 1,2 … M, l is 1,2 … 2M, and k is 1,2 … T. RiThe number of columns of (2M) is the dimension of the feature fingerprint vector. In the above, N is the number of grid points in the region to be located, M is the number of anchor points, and T is the number of acquisition times at each grid point. In practical applications, T is generally greater than 30 to achieve better positioning effect.
And step 3:
and performing initial signal preprocessing on the fingerprint vector signal characteristics uniformly distributed and collected in each reference point area. The initial signal preprocessing adopts a Gaussian filtering method, and specifically adopts the following principle: fingerprint matrix R acquired for each reference point of formula (1)iCalculating the average value μ of each dimension datal(mean of each column), where l ═ 1,2 …,2M, represents the dimension. Then setting a threshold probability lambdaIt means that the signal values are distributed in the interval [ mu ]llll]Wherein θ islAnd the data can be obtained through the acquired training set data and lambda. Specifically, assuming that each line of data in the acquired training set data obeys normal distribution, the probability density function is recorded as fl(x) Then thetalSatisfy the requirement of
Figure BDA0001753515590000081
Determining theta from equation (2)lThen R is obtainediIn each column of elements is in the reasonable range of [ mu ]llll]. Signal values within this range are considered reliable; conversely, if the signal value is not within this range, the signal value is deemed unreliable. Finally, for RiEach element of
Figure BDA0001753515590000082
If it is not
Figure BDA0001753515590000083
Retention
Figure BDA0001753515590000084
If not, then,
Figure BDA0001753515590000085
λ may be selected according to the actual environment, and may be 0.8, for example.
And 4, step 4:
using the fingerprint matrix R of each reference point after the preprocessing of step 3iEach line and position coordinate P ofi=(Xi,Yi) Establishing a fingerprint database D, Ri∈R2MAnd as a training sample set of the SVR algorithm, the total number of samples should be N × T.
And 5:
and constructing a nonlinear relation between the fingerprint vector and the coordinates of the reference point by utilizing an SVR algorithm. First by a non-linear mapping Φ:R2Minput space R → F2MMapping into a high-dimensional feature space F, and then constructing an optimal regression function of the position coordinates P and the fingerprint R in the F:
P=WT·Φ(R)+b。 (3)
wherein W is a weight coefficient, W ∈ F, b is an offset coefficient
To finally determine the parameters W and b in equation (5), the following convex quadratic programming problem can be solved according to the principle of minimization of structural risk.
Figure BDA0001753515590000086
Satisfies the following conditions:
Figure BDA0001753515590000087
wherein C is a penalty constant of ξi,
Figure BDA0001753515590000088
Is the relaxation variable.
The lagrange polynomial of the convex quadratic programming problem of equation (5) is:
Figure BDA0001753515590000091
in the formula:
Figure BDA0001753515590000092
lagrange multiplier, and need to satisfy
Figure BDA0001753515590000093
And according to the condition of the optimal solution, making L to W, b,
Figure BDA0001753515590000094
calculating the partial derivative as 0 can obtain:
Figure BDA0001753515590000095
by solving the dual optimization problem, the following can be obtained:
Figure RE-GDA0001845675140000097
satisfies the following conditions:
Figure RE-GDA0001845675140000098
0≤αi *i≤C
wherein κ (R)i,Rj) For kernel functions, the kernel functions are typically Gaussian kernel functions
Figure RE-GDA0001845675140000099
Wherein xi,xjRepresenting the input vector, σ is the gaussian kernel width.
Thereby, can obtain
Figure BDA0001753515590000099
The optimal penalty constant C and the kernel function width value σ can be obtained by performing a grid search using a support vector machine tool box LIBSVM.
Positioning based on the SVR algorithm, where only indoor plane positioning is considered, requires outputting two-dimensional coordinates (x, y) of the user, i.e., a prediction that multiple outputs are used. The outputs of the traditional SVR algorithm are all one-dimensional, and at the moment, the multiple outputs can be replaced by a plurality of single outputs to realize the multiple-output SVR algorithm. However, the indoor coordinate system is a two-bit related information, so that the two-dimensional coordinate vector obtained by training each coordinate individually can reduce the accuracy of the training model to some extent.
In order to reduce errors of independently constructing an x coordinate model and a y coordinate model and improve the correlation between two-dimensional position information and signal strength, a correction coordinate z which contains information of x and y can be additionally trained in a training stage.
Step 6:
and acquiring the wireless signal characteristics of the node to be positioned in real time by using the movable node device, and preprocessing data. The data preprocessing adopts a median filtering method, and specifically, t fingerprint characteristic vectors are continuously acquired by a movable node at a certain position to be positioned to obtain t records. The t records are recorded as
Figure BDA0001753515590000101
Wherein for
Figure BDA0001753515590000102
When l is 2j-1 (odd column), the RSSI fingerprint value from the jth anchor point acquired t time is represented, and when l is 2j (even column), the distance measurement fingerprint value obtained by the jth anchor point acquired t time based on the distance measurement engine mode is represented. Wherein l 1,2.. 2M, j 1,2.. M. Let the median of each column be RlThen the median vector for Z should be [ R "")1,R″2,...R″l…R″2M-1,R″2M]。
Specifically, let t records be as follows, t being 6:
Figure BDA0001753515590000103
the median vector for Z is [ -55, 8.35, -61, 5.25, -65, 4.58, -71, 10.5 ].
And 7:
and substituting the Z median vector after data preprocessing into the off-line training model constructed in the step 5.
Since in the training phase, 3 training models are constructed for x, y, and z, respectively. Therefore, the prediction result obtained has 3 sets of coordinate values, which are (x ', y'), (x ', z'/x '), (z'/y ', y'), respectively. After 3 groups of coordinate values are obtained by correcting the coordinates, if the obtained coordinate values are the same, the result can be directly output; on the contrary, if the obtained coordinate values are different, one set of coordinate output needs to be selected from the 3 sets of coordinates.
For this problem, a Weighted Inverse K Nearest Neighbor (WIKNN) method is adopted for selection: according to the obtained 3 groups of predicted position coordinate combinations, selecting k position coordinates with the nearest Euclidean distance by calculating the Euclidean distance between the coordinates of each position in the fingerprint database and the predicted position coordinates, and then multiplying fingerprint features corresponding to the selected k coordinates by a weighting coefficient and then summing to obtain the fingerprint feature vectors corresponding to the predicted positions.
In particular, the amount of the solvent to be used,
step 7.1, assuming the selected coordinates are (X ', y'), first calculate (X ', y') and coordinates in the fingerprint database (X) using equation (14)i,Yi) A distance d betweeniThen according to diSelecting the first k reference points from small to large, and calculating the mean vector R of the fingerprint feature vectors of the reference points in the fingerprint databaseiFinally, the k feature vectors are weighted by using the formula (15), so as to obtain the fingerprint feature vector R corresponding to the coordinates (x ', y').
Figure BDA0001753515590000111
Figure BDA0001753515590000112
In the formula:
Figure BDA0001753515590000113
and 7.2, calculating the Euclidean distance D (1) between the fingerprint feature vectors R and R 'by using the formula (16) according to the fingerprint feature vector R' acquired at the position (x ', y').
Figure BDA0001753515590000121
And 7.3, repeating the steps 7.1 and 7.2 for (x ', z'/x '), (z'/y ', y') respectively to obtain Euclidean distances D (2) and D (3) respectively.
And 7.4, sequencing the obtained Euclidean distances D (1), D (2) and D (3), selecting a coordinate corresponding to the D (i) with the minimum Euclidean distance, and taking the coordinate as a final position coordinate. Thereby estimating the actual location of the user.
Finally, the above-mentioned embodiments are not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. An indoor positioning method based on LoRa SX1280 is characterized by comprising an offline fingerprint acquisition modeling stage and an online real-time positioning stage, and is specifically realized as follows:
firstly, an off-line fingerprint acquisition modeling stage comprises the following specific steps:
1-1, carrying out grid division on an area to be positioned, and acquiring special fingerprint characteristics based on LoRa SX1280 for each grid point area by utilizing a mobile node device and an anchor point device;
the special fingerprint features comprise ranging fingerprints obtained based on a LoRa SX1280 ranging engine mode and Received Signal Strength (RSSI) fingerprints obtained based on a LoRaSX1280 communication mode; combining the ranging fingerprint with the RSSI fingerprint to increase the dimensionality of the characteristic fingerprint;
further, let the center position coordinate of the ith grid point region be Pi=(xi,yi) Recording the characteristic fingerprint matrix acquired from the ith grid point area as
Figure FDA0002438083970000011
For the
Figure FDA0002438083970000012
When l is 2j-1 (odd column) represents the k-th acquired data at the ith grid point regionA received signal strength RSSI fingerprint value obtained by the jth anchor point device based on the communication mode when l is 2j (even column) represents a ranging fingerprint value obtained by the jth anchor point device based on the ranging engine mode and acquired at the kth time at the ith grid point region, wherein i is 1,2.. N, j is 1,2.. M, l is 1,2.. 2M, k is 1,2.. T; riThe number of columns of (2) is the dimension 2M of the feature fingerprint vector; in the above, N is the number of grid points of the area to be positioned, M is the number of anchor points, and T is the number of acquisition times at each grid point;
1-2, aiming at the special fingerprint characteristics acquired at each grid point, replacing the data of the extreme points by a mean value by adopting a Gaussian filtering method, and then storing the filtered special fingerprint characteristics and the two-dimensional coordinate position corresponding to the grid point into a fingerprint database;
1-3, taking the fingerprints in the fingerprint database as a training set, and then constructing a calculation model between the special fingerprint characteristics and the two-dimensional coordinates corresponding to the grid points by using an improved support vector regression algorithm;
secondly, in an online real-time positioning stage, the specific steps include:
2-1, acquiring t times of special fingerprints at the position of the mobile node device to form t groups of special fingerprint characteristics;
2-2, obtaining a unique fingerprint characteristic by adopting a median filtering method for the t groups of special fingerprint characteristics;
2-3, substituting the unique fingerprint characteristic into the calculation model obtained in the step 1-3, and calculating to obtain the position coordinate of the node to be positioned;
the Gaussian filtering method is adopted to replace the extreme data with the mean value, and the method is specifically realized as follows:
fingerprint matrix R acquired for each reference point of formula (1)iCalculating the average value μ of each dimension datalWherein l 1, 2M, denotes dimension; setting a threshold probability lambda, wherein the threshold probability lambda represents the distribution of the signal value in the interval [ mu ]ll,μll]Wherein θ islObtaining the data through the acquired training set data and lambda;
let each column of the collected training set data be compliant withState distribution, with probability density function of fl(x) Then thetalSatisfy the requirement of
Figure FDA0002438083970000021
Determining theta from equation (2)lThen R is obtainediIn each column of elements is in the reasonable range of [ mu ]ll,μll](ii) a Signal values within this range are considered reliable; conversely, if the signal value is not within this range, the signal value is deemed unreliable;
for RiEach element of
Figure FDA0002438083970000022
If it is not
Figure FDA0002438083970000023
Retention
Figure FDA0002438083970000024
If not, then,
Figure FDA0002438083970000025
lambda is selected according to the actual environment.
2. The indoor positioning method based on LoRa SX1280 as claimed in claim 1, wherein the method for constructing the calculation model in step 1-3 and the method for calculating the position coordinates of the node to be positioned in step 2-3 both adopt an improved support vector regression ISVR algorithm.
3. The indoor positioning method based on LoRa SX1280 as claimed in claim 2, wherein the equipment required for implementing the method comprises a mobile node device, an anchor point device, a gateway, a positioning server; wherein mobile node device and anchor point device all integrate loRa SX1280 module, just loRa SX1280 module support loRa communication mode and loRa ranging engine mode.
4. The LoRa SX 1280-based indoor positioning method according to claim 3, wherein the mobile node device is configured on all mobile devices; the mobile node device adopts an SX1280 module, an independent antenna, a vibration sensor and a battery for power supply.
5. The LoRa SX 1280-based indoor positioning method according to claim 4, wherein the anchor point device is a device fixedly installed at a designated location, and is used for communication with the mobile node device and assisting in completing the collection of information related to positioning of the mobile node device; the anchor point device adopts an SX1280 module, an independent antenna and mains supply for power supply.
6. The LoRa SX 1280-based indoor positioning method according to claim 5, wherein the gateway is used for communication between the mobile node device and the positioning server; the positioning server is used for performing positioning calculation after receiving a positioning request of the mobile node device.
7. The indoor positioning method of claim 6, wherein the Improved Support Vector Regression (ISVR) algorithm is implemented as follows:
constructing a non-linear relationship between the fingerprint vector and the coordinates of the reference point:
first by a non-linear mapping Φ: r2MInput space R → F2MMapping into a high-dimensional feature space F, and then constructing an optimal regression function of the position coordinates P and the fingerprint R in the F:
P=WT·Φ(R)+b; (3)
wherein W is a weight coefficient, W ∈ F, b is an offset coefficient
In order to finally determine the parameters W and b in the formula (5), solving the following convex quadratic programming problem according to the minimum structural risk principle;
Figure FDA0002438083970000041
satisfies the following conditions:
Figure FDA0002438083970000042
wherein C is a penalty constant of ξi,ξi *Is a relaxation variable;
the lagrange polynomial of the convex quadratic programming problem of equation (5) is:
Figure FDA0002438083970000043
in the formula ηi
Figure FDA0002438083970000044
αi
Figure FDA0002438083970000045
Lagrange multiplier, and need to satisfy
Figure FDA0002438083970000046
Let L pair W, b, ξ according to the conditions under which the optimal solution existsi *Calculating the partial derivative as 0 can obtain:
Figure FDA0002438083970000047
by solving the dual optimization problem, the following can be obtained:
Figure FDA0002438083970000048
satisfies the following conditions:
Figure FDA0002438083970000049
wherein, κ (R)i,Rj) Selecting a Gaussian kernel function for the kernel function
κ(xi,xj)=exp(-||xi-xj||2/2σ2) (10)
Wherein xi,xjRepresenting the input vector, sigma is the width of a Gaussian kernel;
thereby obtaining
Figure FDA0002438083970000051
The optimal penalty constant C and the kernel function width value sigma are obtained by carrying out grid search by using a support vector machine tool box LIBSVM;
in order to reduce errors of independently constructing an x coordinate model and a y coordinate model and improve the correlation between two-dimensional position information and signal strength, a correction coordinate z which contains information of x and y is additionally trained in a training stage.
8. The indoor positioning method of claim 7, wherein the obtaining of the unique fingerprint feature by the median filtering method is specifically realized as follows:
continuously acquiring t fingerprint characteristic vectors by using a movable node at a certain position to be positioned to obtain t records Z:
Figure FDA0002438083970000052
wherein for
Figure FDA0002438083970000053
When l is 2j-1 (odd column), the signal strength indicator (RSSI) fingerprint value from the jth anchor point device acquired t time is represented, and when l is 2j (even column), the distance measurement fingerprint value obtained by the jth anchor point device from the jth anchor point device acquired t time based on the distance measurement engine mode is represented; wherein l 1,2.. 2M, j 1,2.. M; in each columnThe number of bits is R ″)lThen the median vector for Z should be [ R "")1,R″2,...R″l...R″2M-1,R″2M]。
9. The indoor positioning method based on LoRa SX1280 as claimed in claim 8, wherein the steps 2-3 are implemented as follows:
in the training stage, 3 training models are respectively constructed for x, y and z; therefore, the obtained prediction result has 3 groups of coordinate values which are (x ', y'), (x ', z'/x '), (z'/y ', y') respectively; obtaining 3 groups of coordinate values by correcting the coordinates, and if the obtained coordinate values are the same, directly outputting the result; on the contrary, if the obtained coordinate values are different, a group of coordinates needs to be selected and output by adopting a Weighted Inverse K Nearest Neighbor (WIKNN) method in the 3 groups of coordinates;
the method comprises the following specific steps:
① assuming the selected coordinates are (X ', y'), first (X ', y') and coordinates in the fingerprint database (X) are calculated using equation (14)i,Yi) A distance d betweeniThen according to diSelecting the first k reference points from small to large, and calculating the mean vector R of the fingerprint feature vectors of the reference points in the fingerprint databaseiFinally, weighting the k eigenvectors by using a formula (15) to obtain fingerprint eigenvectors R corresponding to coordinates (x ', y');
Figure FDA0002438083970000061
Figure FDA0002438083970000062
in the formula:
Figure FDA0002438083970000063
② calculating the Euclidean distance D (1) between the fingerprint feature vectors R and R 'by using the formula (16) according to the fingerprint feature vector R' acquired at (x ', y');
Figure FDA0002438083970000064
③ repeating steps ① and ② above for (x ', z'/x '), (z'/y ', y'), respectively, resulting in Euclidean distances D (2) and D (3), respectively;
④ the Euclidean distances D (1), D (2) and D (3) obtained above are sorted, and the coordinate corresponding to D (i) with the smallest Euclidean distance is selected and used as the final position coordinate.
CN201810876943.9A 2018-08-03 2018-08-03 Indoor positioning method based on LoRa SX1280 Active CN109068267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810876943.9A CN109068267B (en) 2018-08-03 2018-08-03 Indoor positioning method based on LoRa SX1280

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810876943.9A CN109068267B (en) 2018-08-03 2018-08-03 Indoor positioning method based on LoRa SX1280

Publications (2)

Publication Number Publication Date
CN109068267A CN109068267A (en) 2018-12-21
CN109068267B true CN109068267B (en) 2020-06-23

Family

ID=64833168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810876943.9A Active CN109068267B (en) 2018-08-03 2018-08-03 Indoor positioning method based on LoRa SX1280

Country Status (1)

Country Link
CN (1) CN109068267B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109581286B (en) * 2018-12-28 2020-12-04 皖西学院 Two-dimensional fingerprint distribution indoor positioning method and structure
US10761200B1 (en) 2019-02-27 2020-09-01 Osram Gmbh Method for evaluating positioning parameters and system
CN111641939A (en) * 2019-03-01 2020-09-08 阿里巴巴集团控股有限公司 Positioning, object-searching and tracking method, system and device
CN110826524B (en) * 2019-11-18 2022-08-16 广东博智林机器人有限公司 Fingerprint library generation method and device, electronic equipment and storage medium
CN111065046B (en) * 2019-11-21 2020-12-11 东南大学 LoRa-based outdoor unmanned aerial vehicle positioning method and system
CN110996387B (en) * 2019-12-02 2021-05-11 重庆邮电大学 LoRa positioning method based on TOF and position fingerprint fusion
CN113051976A (en) * 2019-12-27 2021-06-29 广东博智林机器人有限公司 Fingerprint positioning method and device, electronic equipment and storage medium
CN117872269A (en) * 2024-03-13 2024-04-12 电子科技大学 High-precision positioning method for self-adaptive data processing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625447A (en) * 2012-03-14 2012-08-01 东南大学 Heuristic node localization method in wireless sensor network
CN105530702A (en) * 2016-01-25 2016-04-27 杭州电子科技大学 Wireless sensing network mobile node positioning method based on self-organizing mapping
CN107124698A (en) * 2017-04-28 2017-09-01 深圳市亿兆互联技术有限公司 A kind of vertical space positioner based on LoRa technologies, method and system
CN107333238A (en) * 2017-07-03 2017-11-07 杭州电子科技大学 A kind of indoor fingerprint method for rapidly positioning based on support vector regression
KR20180064682A (en) * 2016-12-06 2018-06-15 에이티온 주식회사 SYSTEM MEASURING POSITION WITH SMALL POWER USING LoRa NETWORK AND METHOD THEREOF
CN108318860A (en) * 2017-12-29 2018-07-24 谷米科技有限公司 LORA method of locating terminal, system and LORA Internet of Things management platforms

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625447A (en) * 2012-03-14 2012-08-01 东南大学 Heuristic node localization method in wireless sensor network
CN105530702A (en) * 2016-01-25 2016-04-27 杭州电子科技大学 Wireless sensing network mobile node positioning method based on self-organizing mapping
KR20180064682A (en) * 2016-12-06 2018-06-15 에이티온 주식회사 SYSTEM MEASURING POSITION WITH SMALL POWER USING LoRa NETWORK AND METHOD THEREOF
CN107124698A (en) * 2017-04-28 2017-09-01 深圳市亿兆互联技术有限公司 A kind of vertical space positioner based on LoRa technologies, method and system
CN107333238A (en) * 2017-07-03 2017-11-07 杭州电子科技大学 A kind of indoor fingerprint method for rapidly positioning based on support vector regression
CN108318860A (en) * 2017-12-29 2018-07-24 谷米科技有限公司 LORA method of locating terminal, system and LORA Internet of Things management platforms

Also Published As

Publication number Publication date
CN109068267A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN109068267B (en) Indoor positioning method based on LoRa SX1280
KR102116824B1 (en) Positioning system based on deep learnin and construction method thereof
CN108650628B (en) Indoor positioning method combining distance measurement and fingerprint based on Wi-Fi network
CN106093852A (en) A kind of method improving WiFi fingerprint location precision and efficiency
CN106793082A (en) A kind of positioning of mobile equipment method in WLAN/ bluetooth heterogeneous network environments
Xu et al. An efficient indoor localization method based on the long short-term memory recurrent neuron network
CN104038901A (en) Indoor positioning method for reducing fingerprint data acquisition workload
CN104540221A (en) WLAN indoor positioning method based on semi-supervised SDE algorithm
Du et al. KF-KNN: Low-cost and high-accurate FM-based indoor localization model via fingerprint technology
Yang et al. Localization algorithm in wireless sensor networks based on semi-supervised manifold learning and its application
CN112616184B (en) Mobile equipment position estimation method based on multi-base station channel state information fusion
CN105208651A (en) Wi-Fi position fingerprint non-monitoring training method based on map structure
Kotrotsios et al. Accurate gridless indoor localization based on multiple bluetooth beacons and machine learning
CN100433902C (en) Positioning method based on communicating network
CN109541537B (en) Universal indoor positioning method based on ranging
Zhao et al. An efficient radio map updating algorithm based on K-means and Gaussian process regression
CN110580552A (en) Universal regional environment information mobile sensing and predicting method
CN111757257B (en) Dynamic fuzzy matching indoor positioning method for overcoming equipment difference
Fahama et al. An Experimental Comparison of RSSI-Based Indoor Localization Techniques Using ZigBee Technology
CN104821854A (en) Multidimensional spectrum sensing method for multiple main users based on random sets
CN109803234B (en) Unsupervised fusion positioning method based on weight importance constraint
CN112526572A (en) Network switching method and positioning system for indoor and outdoor seamless navigation
CN113645565B (en) Indoor positioning method based on hexagonal closest packing structure
Zeng et al. An improved method for indoor positioning of WIFI based on location fingerprint
CN108462940A (en) A kind of indoor orientation method based on Wi-Fi hotspot

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201216

Address after: 314500 Tongxiang, Jiaxing, Zhejiang, Wutong Street East Road (East) 55, Tongxiang chamber of Commerce Building 1 unit 1702, 1703 room -A-227

Patentee after: Jiaxing Tongzhi Electromechanical Equipment Co.,Ltd.

Address before: 310016 Tongxiang, Hangzhou, Zhejiang, Wutong Street East Road (East) 55, Tongxiang chamber of Commerce Building 1 unit 1702, 1703 room -A-227

Patentee before: Zhejiang Zhiduo Network Technology Co.,Ltd.

Effective date of registration: 20201216

Address after: 310016 Tongxiang, Hangzhou, Zhejiang, Wutong Street East Road (East) 55, Tongxiang chamber of Commerce Building 1 unit 1702, 1703 room -A-227

Patentee after: Zhejiang Zhiduo Network Technology Co.,Ltd.

Address before: 310018 No. 2 street, Xiasha Higher Education Zone, Hangzhou, Zhejiang

Patentee before: HANGZHOU DIANZI University

TR01 Transfer of patent right

Effective date of registration: 20210205

Address after: 310051 rooms 103 and 105, building 4, No.1 Weiye Road, Puyan street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: HANGZHOU CCRFID MICROELECTRONICS Co.,Ltd.

Address before: 314500 Tongxiang, Jiaxing, Zhejiang, Wutong Street East Road (East) 55, Tongxiang chamber of Commerce Building 1 unit 1702, 1703 room -A-227

Patentee before: Jiaxing Tongzhi Electromechanical Equipment Co.,Ltd.

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: An indoor location method based on Lora sx1280

Effective date of registration: 20210604

Granted publication date: 20200623

Pledgee: China Minsheng Banking Corp Hangzhou branch

Pledgor: HANGZHOU CCRFID MICROELECTRONICS Co.,Ltd.

Registration number: Y2021330000513

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220315

Granted publication date: 20200623

Pledgee: China Minsheng Banking Corp Hangzhou branch

Pledgor: HANGZHOU CCRFID MICROELECTRONICS Co.,Ltd.

Registration number: Y2021330000513

PC01 Cancellation of the registration of the contract for pledge of patent right