WO2017185828A1 - Fingerprint positioning method and apparatus - Google Patents

Fingerprint positioning method and apparatus Download PDF

Info

Publication number
WO2017185828A1
WO2017185828A1 PCT/CN2017/070501 CN2017070501W WO2017185828A1 WO 2017185828 A1 WO2017185828 A1 WO 2017185828A1 CN 2017070501 W CN2017070501 W CN 2017070501W WO 2017185828 A1 WO2017185828 A1 WO 2017185828A1
Authority
WO
WIPO (PCT)
Prior art keywords
fingerprint
point
similarity
reference points
signal strength
Prior art date
Application number
PCT/CN2017/070501
Other languages
French (fr)
Chinese (zh)
Inventor
向平叶
陈诗军
叶小仁
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017185828A1 publication Critical patent/WO2017185828A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • 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
    • 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

Definitions

  • the present disclosure relates to the field of mobile positioning technologies, for example, to a fingerprint positioning method and apparatus.
  • gyroscope positioning There is a problem of error accumulation based on the positioning of the gyroscope, which cannot be used for a long time.
  • Positioning systems based on time measurement generally require multiple base stations to be strictly time synchronized and require high-accuracy arrival time measurement of wireless signals.
  • the requirements for base station equipment are relatively high and difficult to implement.
  • Fingerprint positioning does not need to know the location of the base station and the accurate channel model, so it is superior to triangulation in terms of implementation and positioning performance.
  • Fingerprint positioning refers to testing the received signal strength (RSS) signal of all reference points in the positioning area and extracting the signal characteristics of the RSS signal, and storing the signal feature together with the position coordinates of the corresponding reference point into the location fingerprint database. Then, the same method is used to obtain the signal characteristics of the point to be located, and matching is performed according to a certain matching algorithm and the location fingerprint database, thereby obtaining an estimated position of the point to be located.
  • Common methods include the Nearest neighbor in signal space (NNSS), the K-nearest neighbor algorithm (KNNSS), and the like.
  • the reference fingerprint is selected by calculating the distance between the signal strength vector of the point to be located and the signal intensity value vector of all sample points in the fingerprint library, and the signal intensity of the fingerprint does not vary linearly with distance. It is difficult to guarantee the quality of the selected reference fingerprint, which in turn affects the accuracy and stability of the positioning result, so that the accuracy of the positioning result is seriously affected.
  • the present disclosure provides a fingerprint positioning method and apparatus, which can eliminate the diversity error of matching results. Improve fingerprint positioning accuracy.
  • the fingerprint positioning method provided by the present disclosure includes:
  • the signal feature is a received signal strength vector
  • the determining a plurality of optimal location fingerprint reference points includes:
  • the determining the n location fingerprint reference points with the highest similarity as the optimal location fingerprint reference points includes:
  • the similarity calculation is performed using a cosine similarity algorithm or a modified cosine similarity algorithm or a Pearson similarity algorithm.
  • the calculating the location coordinates of the to-be-located point by using the determined multiple optimal location fingerprint reference points includes:
  • the position coordinates of the point to be located are obtained by weighting the position coordinates of the plurality of optimal position fingerprint reference points.
  • a non-transitory computer readable storage medium provided in accordance with an embodiment of the present disclosure is stored by a computer executable program that can be used to perform the fingerprint positioning method described above.
  • the optimal fingerprint determining module is configured to perform a Euclidean distance matching process and a similarity matching process on the signal feature of the point to be located and the signal feature of the position fingerprint reference point in the location fingerprint database to determine a plurality of optimal position fingerprint reference points,
  • the plurality of optimal location fingerprint reference points are a plurality of location fingerprint reference points that are closest to the to-be-positioned point and have the highest similarity;
  • the to-be-positioned position determining module is configured to calculate the position coordinates of the to-be-positioned point by using the plurality of optimal position fingerprint reference points.
  • the signal feature is a received signal strength vector
  • the optimal fingerprint determining module may be configured to receive the received signal strength vector of the to-be-located point and the fingerprint reference point of each location in the location fingerprint database.
  • the signal strength vector is respectively subjected to the Euclidean distance matching process, and the N position fingerprint reference points with the smallest Euclidean distance are determined, and the received signal strength vector of the to-be-positioned point and the received signal strength vector of the N position fingerprint reference points are respectively performed.
  • the similarity matching processing determines the n position fingerprint reference points with the highest similarity as the optimal position fingerprint reference point, where 2 ⁇ n ⁇ N, N>3.
  • the optimal fingerprint determining module may be configured to separately calculate a similarity between the received signal strength vector of the to-be-located point and the received signal strength vector of the N position fingerprint reference points, to obtain N similarity values. And sorting the N similarity values to determine a maximum n similarity values and n position fingerprint reference points corresponding to the n similarity values.
  • the optimal fingerprint determination module may perform a similarity calculation by using a cosine similarity algorithm or a modified cosine similarity algorithm or a Pearson similarity algorithm.
  • the to-be-positioned position determining module may be configured to obtain a position coordinate of the to-be-positioned point by weighting the position coordinates of the plurality of optimal position fingerprint reference points.
  • the electronic device includes one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory when executed by one or more processors When the fingerprint positioning method described above is performed.
  • a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, The computer is caused to perform the fingerprint positioning method described above.
  • the location fingerprint reference point that is optimally similar to the location to be located can be selected to eliminate the diversity error of the matching result. Improve positioning accuracy.
  • FIG. 1 is a first flowchart of a fingerprint positioning method according to an embodiment of the present disclosure.
  • FIG. 2 is a schematic diagram of a first structure of a fingerprint positioning apparatus according to an embodiment of the present disclosure.
  • FIG. 3 is a second flowchart of a positioning method according to an embodiment of the present disclosure.
  • FIG. 4 is a flowchart of a positioning method provided by an embodiment of the present disclosure.
  • FIG. 5 is a schematic plan view of a shopping mall according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a second structure of a fingerprint positioning apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present disclosure.
  • FIG. 1 is a first flowchart of a fingerprint positioning method according to an embodiment. As shown in FIG. 1, the method may include S110-S120.
  • the signal feature of the point to be located and the signal feature of the position fingerprint reference point in the location fingerprint database are subjected to Euclidean distance matching processing and similarity matching processing to determine a plurality of optimal position fingerprint reference points, and the plurality of optimal positions
  • the fingerprint reference point may refer to a plurality of location fingerprint reference points that are closest to the point to be located and have the highest similarity.
  • the above signal characteristic may be a received signal strength vector (which may be power information).
  • the received signal strength vector of the point to be located and the received signal strength vector of the plurality of position fingerprint reference points in the location fingerprint database are first subjected to Euclidean distance matching processing to determine N position fingerprint reference points with the smallest Euclidean distance. Then, the received signal strength vector of the point to be located and the received signal strength vector of the N position fingerprint reference points are respectively subjected to similarity matching processing, and the first n position fingerprint reference points with the highest similarity are determined as the optimal similarity position fingerprint reference point. .
  • the similarity of the received signal strength vector between the target location point and the N location fingerprint reference points is calculated separately, and a cosine similarity algorithm or a modified cosine similarity algorithm or Pearson may be used.
  • the similarity algorithm obtains N similarities. By sorting the obtained N similarities, the maximum n similarities and n position fingerprint reference points corresponding to n similarities are determined. Wherein, 2 ⁇ n ⁇ N, N>3, n and N are positive integers.
  • the location fingerprint database is a pre-established database in an offline situation, the database containing a fingerprint of each location fingerprint reference point (ie, a reference point or a reference fingerprint point or a sample point), the fingerprint including the location fingerprint reference point Location and signal characteristics.
  • the determined position coordinates of the point to be located are calculated by using the determined plurality of optimal position fingerprint reference points.
  • the position coordinates of the point to be located are obtained by weighting the determined position coordinates of the plurality of optimal position fingerprint reference points.
  • the computer readable storage medium may be a non-transitory computer readable storage medium such as a ROM/RAM, a magnetic disk, an optical disk, or the like.
  • FIG. 2 is a schematic diagram of a first structure of a fingerprint positioning apparatus according to an embodiment. As shown in FIG. 2, the method may include an optimal fingerprint determination module and a position determining module to be located.
  • the optimal fingerprint determination module may be configured to perform Euclidean distance matching processing and similarity matching processing on the signal feature of the point to be located and the signal feature of the position fingerprint reference point in the location fingerprint database, and determine a plurality of optimal position fingerprint reference points, the plurality of The optimal location fingerprint reference point may refer to a plurality of location fingerprint reference points that are closest to the point to be located and have the highest similarity.
  • the signal characteristic may be a received signal strength vector.
  • the optimal fingerprint determination module may be further configured to perform the Euclidean distance matching processing on the received signal strength vector of the point to be located and the received signal strength vector of each position fingerprint reference point in the location fingerprint database to determine the N position fingerprints with the smallest Euclidean distance.
  • the reference point is used, and the received signal strength vector of the point to be located and the received signal strength vector of the N position fingerprint reference points are respectively subjected to similarity matching processing.
  • a cosine similarity algorithm or a modified cosine similarity algorithm or a Pearson similarity algorithm may be used to perform similarity calculation, and N similarities are obtained, and N similarities are sorted to determine the highest n similarities and corresponding n n position fingerprint reference points of similarity, and n position fingerprint reference points are used as the optimal position fingerprint reference points.
  • 2 ⁇ n ⁇ N, N>3, n and N are positive integers.
  • a positioning point location determining module configured to utilize the determined plurality of optimal location fingerprint reference points, Calculate the position coordinates of the point to be positioned.
  • the to-be-positioned position determining module may further be configured to obtain a position coordinate of the to-be-positioned point by weighting the determined position coordinates of the plurality of optimal position fingerprint reference points.
  • FIG. 3 is a second flowchart of a positioning method according to an embodiment of the present disclosure. As shown in FIG. 3, the method may include S201-S204.
  • the offline fingerprint database may refer to a fingerprint database or a location fingerprint database.
  • the feature information of the point to be located is matched with the data in the fingerprint library by Euclidean distance.
  • the feature information may refer to a signal feature.
  • a weighted nearest neighbor algorithm is applied to the plurality of fingerprint points with the highest similarity to estimate a final position of the to-be-located point.
  • the fingerprint positioning method first constructs an offline fingerprint database; secondly, the feature information of the point to be located is matched with the feature information in the fingerprint database to match the Euclidean distance, and the N fingerprints with the smallest Euclidean distance are taken as new Fingerprint library; then using the feature information of the point to be located and the new fingerprint database to solve the similarity, obtain the n fingerprints with the highest similarity, and finally apply the weighting algorithm such as WKNNSS (Weighted KNNSS) to the n fingerprints to obtain the final Position the results.
  • WKNNSS Weighted KNNSS
  • the implementation includes the construction of an offline fingerprint database stage and an online positioning stage, which may include:
  • M base stations are arranged in the positioning environment, K reference points are set in the positioning area, the received signal power of each base station is sampled at each reference point, and the reference point position and power information are combined to form a fingerprint, and the i-th fingerprint is expressed as follows :[xi,yi,zi,p 1i ,p 2i ,...,p Mi ].
  • xi, yi, zi are the position information of the i-th reference point
  • p 1i , p 2i , . . . , p Mi are the user equipment signals of the M base stations in the fingerprint database construction time to the i-th reference point position.
  • the received power that is, the received power of the signals from the M base stations received by the user equipment at the i-th reference point position at the time of the fingerprint database construction time.
  • the value of i ranges from 1 to K.
  • Step 2 Performing Euclidean distance matching between the signal strength vector received by the positioning point and the corresponding multiple signal strength vectors in the fingerprint library, respectively, by calculating the signal strength vector received by the to-be-located point and the corresponding multiple signals in the fingerprint database.
  • the Euclidean distance of the intensity vector gives the N fingerprints with the smallest Euclidean distance, and N is a positive integer greater than 3.
  • P xj represents the signal strength received by the jth base station of the point to be located
  • P ji represents the signal strength vector of the jth base station received by the i th reference point
  • m represents the effective signal strength number
  • Qi represents the Euclidean distance of the signal strength of the i-th reference point to the point to be located.
  • Step 3 The signal strength vector of the N fingerprints obtained in step 2 is sequentially solved with the signal strength vector of the point to be located.
  • the similarity algorithm may select cosine similarity, Pearson correlation coefficient or modified cosine similarity.
  • P x represents the signal strength vector of the point to be located
  • P i represents the signal strength vector of the ith fingerprint of the N fingerprints
  • indicates modulo operation
  • ⁇ *> indicates inner product calculation
  • CosSim (P x , P i ) represent the cosine similarity coefficient of the point to be located and the i-th fingerprint point. The larger the cosine similarity coefficient, the greater the correlation between the two.
  • Step 4 Sort the N cosine similarity coefficients from large to small, and select the n largest values before the cosine similarity coefficient, and the n fingerprints corresponding to the n cosine similarity coefficients are the closest to the to-be-located point. n fingerprint points.
  • Step 5 Calculate the final positioning result of the above n fingerprint points by using the WKNNSS algorithm. Calculated as follows:
  • x k , y k , and z k are coordinate information of the kth matching fingerprint.
  • the weight w k is obtained by the weighted nearest neighbor method, and the formula is as follows:
  • is a very small real constant used to avoid the case where the denominator is zero.
  • Q k represents the Euclidean distance of the signal strength of the kth reference point to the point to be located.
  • FIG. 4 is a flowchart of a positioning method according to an embodiment of the present disclosure. As shown in FIG. 4, the method may include S301-S307.
  • sample points are set in the fingerprint positioning area.
  • the location information of the sample points and the received power information are combined to form a fingerprint library.
  • the received signal strength information of the M base stations related to the point to be located is selected.
  • the power information of the point to be located and the power information of the plurality of fingerprints in the fingerprint library are matched by Euclidean distance, and N fingerprint points with the smallest Euclidean distance are selected.
  • the N fingerprint points selected in the above step are solved with the cosine similarity degree, and the n corresponding fingerprint points whose cosine similarity is positive and smallest are selected from the N fingerprint points.
  • the location of the terminal is estimated from a plurality of candidate points using a specific algorithm such as WKNNSS.
  • the operations performed in S301 to S303 are the steps of the offline fingerprint library construction phase, and the operations performed in S304 to S307 are the steps of the online positioning phase.
  • the fingerprint method in the related art only selects the reference fingerprint by the signal strength vector size, and it is difficult to ensure the quality of the selected N fingerprints, thereby affecting the accuracy and stability of the positioning result.
  • the vector composed of signal strengths obtained by different base stations has symmetry, the matching result of the points to be located in the sample may be different, and it is impossible to distinguish which sample point is the closest distance from the point to be located, and the selected one is selected.
  • the N reference fingerprints there may be fingerprints with large physical position errors, which makes the positioning error fluctuate greatly, the positioning accuracy is seriously affected, and the user experience is poor.
  • This embodiment describes the technical method provided by the present disclosure in detail in conjunction with FIG. 5.
  • FIG. 5 is a schematic plan view of a shopping mall according to an embodiment of the present disclosure, as shown in FIG. 5, at a distance of 12 meters. * 6 access points (APs) or base stations are installed in the 60-meter mall.
  • APs access points
  • Embodiment 1 Fingerprint positioning based on intensity and direction
  • the received signal power of each AP is sampled at each reference point, and the reference point position and power information are combined.
  • the fingerprint is formed, and the i-th fingerprint is expressed as follows: [xi, yi, zi, p 1i , p 2i , ..., p Mi ].
  • xi, yi, zi are the position information of the i-th reference point
  • p 1i , p 2i , . . . , p Mi are signals of the user equipment of the ith reference point position of the six base stations at the time of the fingerprint database construction time.
  • Receive power The value of i ranges from 1 to 50.
  • the effective signal strength gate valve is used by the shopping mall environment. Ok, here it is set to -100dBm.
  • Step 2 Find the signal strength vector received by the positioning point and the corresponding signal strength vector in the fingerprint library to perform Euclidean distance matching, and obtain the six fingerprints with the smallest Euclidean distance. Calculate the Euclidean distance using the following formula:
  • P xj represents the signal strength received by the jth AP of the point to be located
  • P ji represents the signal strength vector of the jth AP received by the i th reference point
  • m represents the number of effective signal strengths.
  • Qi represents the Euclidean distance of the signal strength of the i-th reference point to the point to be located.
  • Step 3 The signal strength vector of the six fingerprints with the smallest Euclidean distance obtained in step 2 is sequentially solved by the cosine similarity algorithm with the signal strength vector of the point to be located.
  • the cosine similarity is calculated by the following formula:
  • P x represents the signal strength vector of the point to be located
  • P i represents the signal strength vector of the ith fingerprint of the 6 fingerprints
  • indicates modulo operation
  • ⁇ *> indicates inner product calculation
  • CosSim ( P x , P i ) represents the cosine similarity coefficient of the point to be located and the i-th fingerprint point. The larger the cosine similarity coefficient, the greater the correlation between the two.
  • Step 4 Sort the six cosine similarity coefficients from large to small, and select the first three large values of the cosine similarity coefficient.
  • the three fingerprints corresponding to the three cosine similarity coefficients are the closest to the to-be-located point. Fingerprint points.
  • Step 5 Apply the WKNNSS algorithm to the above three fingerprint points to obtain the final positioning result (x, y, z).
  • the calculation formula is as follows: Where x k , y k , z k are the coordinate information of the kth matching fingerprint.
  • the weight w k is obtained by the weighted nearest neighbor method, and the formula is as follows:
  • is a very small real constant used to avoid the case where the denominator is zero.
  • Embodiment 2 Fingerprint localization based on optimal similarity
  • the ith fingerprint is expressed as follows: [xi, yi, zi, p 1i , p 2i , ..., p Mi ].
  • xi, yi, zi are the position information of the i-th reference point
  • p 1i , p 2i , . . . , p Mi is the signal power of the user equipment received by the user equipment of the ith point.
  • the value of i ranges from 1 to 50.
  • the effective signal strength gate valve is determined by the mall environment, here set to -98dBm.
  • Step 2 Find the signal strength vector received by the positioning point and the corresponding signal strength vector in the fingerprint library to perform Euclidean distance matching, and obtain the six fingerprints with the smallest Euclidean distance. Calculate the Euclidean distance using the following formula:
  • P xj represents the signal strength received by the jth base station of the point to be located
  • P ji represents the signal strength vector of the jth base station received by the i th reference point
  • m represents the effective signal strength number
  • Qi represents the Euclidean distance of the signal strength of the i-th reference point to the point to be located.
  • Step 3 The signal strength vector of the six fingerprints with the smallest Euclidean distance obtained in step 2 is sequentially solved by the Pearson similarity algorithm with the signal intensity vector of the point to be located. Pearson similarity is as follows Formula calculation:
  • P x represents the signal strength vector of the point to be located
  • P i represents the signal strength vector of the ith fingerprint of the 6 fingerprints.
  • indicates the modulo operation
  • ⁇ *> indicates the inner product calculation
  • Corr(P x , P i ) indicates the point to be located and the ith fingerprint point. Pearson similarity coefficient. The greater the Pearson similarity coefficient, the greater the correlation between the two.
  • Step 4 Sort the six Pearson similarity coefficients from large to small, and select the first three large values of the cosine similarity coefficient.
  • the three fingerprints corresponding to the three cosine similarity coefficients are the closest to the to-be-positioned point. Fingerprint points.
  • Step 5 Apply the WKNNSS algorithm to the above three fingerprint points to obtain the final positioning result (x, y, z).
  • the calculation formula is as follows: Where x k , y k , z k are the coordinate information of the kth matching fingerprint.
  • the weight w k is obtained by the weighted nearest neighbor method, and the formula is as follows:
  • is a very small real constant used to avoid the case where the denominator is zero.
  • the embodiments of the present disclosure can eliminate the positioning matching diversity error caused by the signal strength vector symmetry measured by different base stations, and improve the positioning accuracy.
  • the embodiment of the present disclosure further provides an apparatus for applying the fingerprint positioning method described above.
  • FIG. 6 is a second schematic structural diagram of a fingerprint positioning apparatus according to an embodiment of the present disclosure. As shown in FIG. 6, the method includes:
  • Offline fingerprint database building module which can be called offline fingerprint database module, set as fingerprint database Establishing, deploying M base stations in the positioning environment, setting K reference points in the positioning area, sampling the received signal power of each base station or terminal relative to each base station at each reference point, and combining the reference point position and power information Form a fingerprint.
  • the receiving selection module is configured to receive the measured data reported by the user equipment and filter out valid data.
  • the matching module is configured to perform a European distance calculation on the measured data and the fingerprint database data by the positioning server to find the first N fingerprints with the smallest Euclidean distance.
  • the determining module is configured to perform a similarity calculation on the measured data and the N fingerprint data by the positioning server, and select n optimal similarity fingerprints.
  • the positioning module is configured to obtain the positioning result of the user equipment by using the WKNNSS method according to the selected optimal similarity fingerprint information.
  • the receiving selection module, the matching module and the determining module can jointly implement the function of the optimal similarity fingerprint determining module, and the positioning module can implement the function of the position determining module to be located.
  • the fingerprint location of the mobile network base station can be divided into two methods: uplink fingerprint location and downlink fingerprint location.
  • the uplink fingerprint location refers to the UE transmitting reference signals, and multiple base stations measure the signal power transmitted by the UE, and the fingerprints are pre-stored in the database. The fingerprint is matched for positioning.
  • the downlink fingerprint location refers to that the UE receives and measures the strength of the transmitted signals of multiple base stations, and the fingerprints are matched and positioned by the fingerprints pre-stored in the database.
  • the present disclosure is based on the combination of the size and direction of the RSS to determine the optimal similarity between the fingerprint and the measured data, and the positioning accuracy is high. Since the wireless channel has symmetry, the present disclosure is applicable to the upper and lower fingerprint positioning and the downlink fingerprint positioning.
  • the reference that is optimally similar to the point to be located can be selected.
  • the fingerprint can eliminate the diversity error of the matching of the fingerprint point and the point to be located, and improve the positioning accuracy.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 7, the electronic device may include:
  • a processor 410 and a memory 420 may also include a communications interface 430 and a bus 440.
  • the processor 410, the memory 420, and the communication interface 430 can be completed by each other through the bus 440. Communication. Communication interface 430 can be used for information transmission.
  • the processor 410 can call the logic instructions in the memory 420 to perform the fingerprint positioning method of the above embodiment.
  • the logic instructions in the memory 420 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a storage medium.
  • the technical solution of the present disclosure may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or A network device or the like) performs all or part of the steps of the method described in the embodiments of the present disclosure.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • a medium that can store program code, or a transitory storage medium including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • the present disclosure provides a fingerprint positioning method and device, which can eliminate the diversity error of the matching result and improve the positioning accuracy.

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)
  • Collating Specific Patterns (AREA)

Abstract

A fingerprint positioning method and apparatus, the method comprising: implementing Euclidean distance matching processing and similarity matching processing of signal features of a point to be positioned and signal features of a location fingerprinting reference point in a location fingerprinting database in order to determine a plurality of optimal similarity location fingerprinting reference points at the nearest distance to the point to be positioned; and using the plurality of optimal similarity location fingerprinting reference points to calculate the position coordinates of the point to be positioned.

Description

指纹定位方法及装置Fingerprint positioning method and device 技术领域Technical field
本公开涉及移动定位技术领域,例如涉及一种指纹定位方法和装置。The present disclosure relates to the field of mobile positioning technologies, for example, to a fingerprint positioning method and apparatus.
背景技术Background technique
随着移动互联网的发展,人们对定位和导航功能的需求越来越高。以全球定位系统(Global Positioning System,GPS)和北斗为代表的室外定位技术已经获得广泛应用,但在复杂的室内或封闭环境下,如大型候车室、大型会场、体育馆、大型写字楼、地下矿井等场景,由于信号遮挡衰减严重,仍然无法定位。但是通信网对这些复杂的室内环境,需要满足随时随地的热点覆盖,所以可以利用通信系统基站进行室内定位。With the development of the mobile Internet, people are increasingly demanding positioning and navigation functions. Outdoor positioning technology represented by Global Positioning System (GPS) and Beidou has been widely used, but in complex indoor or closed environments, such as large waiting rooms, large venues, stadiums, large office buildings, underground mines, etc. The scene, due to the serious attenuation of the signal occlusion, still cannot be located. However, for these complex indoor environments, the communication network needs to meet the hotspot coverage anytime and anywhere, so the communication system base station can be used for indoor positioning.
为实现移动定位,可以基于陀螺仪定位,三角定位和指纹定位。基于陀螺仪的定位存在误差积累问题,无法长时间使用。基于时间测量的定位系统一般要求多个基站严格时间同步、并且需要对无线信号进行高精度到达时间测量,对基站设备的要求较高,较难实现。指纹定位无需知道基站的位置和准确的信道模型,因此在实施和定位性能上,相对于三角定位具有优越性。To achieve mobile positioning, it can be based on gyroscope positioning, triangulation and fingerprint positioning. There is a problem of error accumulation based on the positioning of the gyroscope, which cannot be used for a long time. Positioning systems based on time measurement generally require multiple base stations to be strictly time synchronized and require high-accuracy arrival time measurement of wireless signals. The requirements for base station equipment are relatively high and difficult to implement. Fingerprint positioning does not need to know the location of the base station and the accurate channel model, so it is superior to triangulation in terms of implementation and positioning performance.
指纹定位是指通过测试定位区域中所有参考点的接收信号强度(Received Signal Strength,RSS)信号并提取RSS信号的信号特征,将信号特征与对应的参考点的位置坐标一起存入位置指纹数据库,然后利用同样的方法得到待定位点的信号特征,根据一定的匹配算法和位置指纹数据库进行匹配,从而得到待定位点的估算位置。常用的方法包括最近邻方法(Nearest neighbor in signal Space,NNSS)、K-最近邻算法(KNNSS)等。Fingerprint positioning refers to testing the received signal strength (RSS) signal of all reference points in the positioning area and extracting the signal characteristics of the RSS signal, and storing the signal feature together with the position coordinates of the corresponding reference point into the location fingerprint database. Then, the same method is used to obtain the signal characteristics of the point to be located, and matching is performed according to a certain matching algorithm and the location fingerprint database, thereby obtaining an estimated position of the point to be located. Common methods include the Nearest neighbor in signal space (NNSS), the K-nearest neighbor algorithm (KNNSS), and the like.
然而,不管是NNSS算法还是KNNSS算法,都是通过计算待定位点的信号强度向量与指纹库中所有样本点的信号强度值向量的距离选择参考指纹,而指纹的信号强度大小并不随距离线性变化,很难保证选择出的参考指纹的质量,进而影响定位结果的准确度和稳定性,使得定位结果的精度受到严重的影响。However, whether it is the NNSS algorithm or the KNNSS algorithm, the reference fingerprint is selected by calculating the distance between the signal strength vector of the point to be located and the signal intensity value vector of all sample points in the fingerprint library, and the signal intensity of the fingerprint does not vary linearly with distance. It is difficult to guarantee the quality of the selected reference fingerprint, which in turn affects the accuracy and stability of the positioning result, so that the accuracy of the positioning result is seriously affected.
发明内容Summary of the invention
本公开提供了一种指纹定位方法和装置,可以消除匹配结果多样性误差, 提高指纹定位精度。The present disclosure provides a fingerprint positioning method and apparatus, which can eliminate the diversity error of matching results. Improve fingerprint positioning accuracy.
本公开提供的指纹定位方法,包括:The fingerprint positioning method provided by the present disclosure includes:
将待定位点的信号特征和位置指纹数据库中位置指纹参考点的信号特征进行欧式距离匹配处理和相似度匹配处理,确定多个最优位置指纹参考点,所述多个最优位置指纹参考点是与所述待定位点距离最近且相似度最高的多个位置指纹参考点;以及Performing Euclidean distance matching processing and similarity matching processing on the signal feature of the point to be located and the signal feature of the position fingerprint reference point in the location fingerprint database to determine a plurality of optimal position fingerprint reference points, and the plurality of optimal position fingerprint reference points Is a plurality of location fingerprint reference points that are closest to the point to be located and have the highest similarity; and
利用所述多个最优位置指纹参考点,计算所述待定位点的位置坐标。Using the plurality of optimal location fingerprint reference points, calculating position coordinates of the to-be-positioned point.
可选地,所述信号特征是接收信号强度向量,所述确定多个最优位置指纹参考点,包括:Optionally, the signal feature is a received signal strength vector, and the determining a plurality of optimal location fingerprint reference points includes:
将所述待定位点的接收信号强度向量和所述位置指纹数据库中多个位置指纹参考点的接收信号强度向量分别进行欧式距离匹配处理,确定欧式距离最小的N个位置指纹参考点;以及And performing a Euclidean distance matching process on the received signal strength vector of the to-be-located point and the received signal strength vector of the plurality of position fingerprint reference points in the location fingerprint database to determine N position fingerprint reference points with the smallest Euclidean distance;
将所述待定位点的接收信号强度向量和所述N个位置指纹参考点的接收信号强度向量分别进行相似度匹配处理,确定相似度最高的n个位置指纹参考点作为最优相似度位置指纹参考点,其中,2≤n≤N,N>3。Performing similarity matching processing on the received signal strength vector of the point to be located and the received signal strength vector of the N position fingerprint reference points, respectively, and determining the n position fingerprint reference points with the highest similarity as the optimal similarity position fingerprint Reference point, where 2 ≤ n ≤ N, N > 3.
可选地,所述确定相似度最高的n个位置指纹参考点作为最优位置指纹参考点包括:Optionally, the determining the n location fingerprint reference points with the highest similarity as the optimal location fingerprint reference points includes:
分别计算所述待定位点的接收信号强度向量和所述N个位置指纹参考点的接收信号强度向量的相似度,得到N个相似度值;以及Calculating, respectively, a similarity between the received signal strength vector of the to-be-located point and the received signal strength vector of the N-position fingerprint reference points, to obtain N similarity values;
对所述N个相似度值进行排序,确定最高的n个相似度值及对应所述n个相似度的n个位置指纹参考点。Sorting the N similarity values to determine a highest n similarity values and n position fingerprint reference points corresponding to the n similarities.
可选地,利用余弦相似度算法或修正余弦相似度算法或Pearson相似度算法进行相似度计算。Optionally, the similarity calculation is performed using a cosine similarity algorithm or a modified cosine similarity algorithm or a Pearson similarity algorithm.
可选地,所述利用所确定的多个最优位置指纹参考点,计算所述待定位点的位置坐标包括:Optionally, the calculating the location coordinates of the to-be-located point by using the determined multiple optimal location fingerprint reference points includes:
通过对所述多个最优位置指纹参考点的位置坐标进行加权处理,得到所述待定位点的位置坐标。The position coordinates of the point to be located are obtained by weighting the position coordinates of the plurality of optimal position fingerprint reference points.
根据本公开实施例提供的非暂态计算机可读存储介质,存储由计算机可执行程序,所述计算机可执行程序可用于执行上述指纹定位方法。 A non-transitory computer readable storage medium provided in accordance with an embodiment of the present disclosure is stored by a computer executable program that can be used to perform the fingerprint positioning method described above.
根据本公开实施例提供的指纹定位装置,包括:A fingerprint positioning apparatus according to an embodiment of the present disclosure includes:
最优指纹确定模块,设置为将待定位点的信号特征和位置指纹数据库中位置指纹参考点的信号特征进行欧式距离匹配处理和相似度匹配处理,确定多个最优位置指纹参考点,所述多个最优位置指纹参考点是与所述待定位点距离最近且相似度最高的多个位置指纹参考点;The optimal fingerprint determining module is configured to perform a Euclidean distance matching process and a similarity matching process on the signal feature of the point to be located and the signal feature of the position fingerprint reference point in the location fingerprint database to determine a plurality of optimal position fingerprint reference points, The plurality of optimal location fingerprint reference points are a plurality of location fingerprint reference points that are closest to the to-be-positioned point and have the highest similarity;
待定位点位置确定模块,设置为利用所述多个最优位置指纹参考点,计算所述待定位点的位置坐标。The to-be-positioned position determining module is configured to calculate the position coordinates of the to-be-positioned point by using the plurality of optimal position fingerprint reference points.
可选地,所述信号特征是接收信号强度向量,所述最优指纹确定模块可以设置为将所述待定位点的接收信号强度向量和所述位置指纹数据库中每个位置指纹参考点的接收信号强度向量分别进行欧式距离匹配处理,确定欧式距离最小的N个位置指纹参考点,并将所述待定位点的接收信号强度向量和所述N个位置指纹参考点的接收信号强度向量分别进行相似度匹配处理,确定相似度最高的n个位置指纹参考点作为最优位置指纹参考点,其中,2≤n≤N,N>3。Optionally, the signal feature is a received signal strength vector, and the optimal fingerprint determining module may be configured to receive the received signal strength vector of the to-be-located point and the fingerprint reference point of each location in the location fingerprint database. The signal strength vector is respectively subjected to the Euclidean distance matching process, and the N position fingerprint reference points with the smallest Euclidean distance are determined, and the received signal strength vector of the to-be-positioned point and the received signal strength vector of the N position fingerprint reference points are respectively performed. The similarity matching processing determines the n position fingerprint reference points with the highest similarity as the optimal position fingerprint reference point, where 2≤n≤N, N>3.
可选地,所述最优指纹确定模块可以设置为分别计算所述待定位点的接收信号强度向量和所述N个位置指纹参考点的接收信号强度向量的相似度,得到N个相似度值,对所述N个相似度值进行排序,确定最大的n个相似度值及对应所述n个相似度值的n个位置指纹参考点。Optionally, the optimal fingerprint determining module may be configured to separately calculate a similarity between the received signal strength vector of the to-be-located point and the received signal strength vector of the N position fingerprint reference points, to obtain N similarity values. And sorting the N similarity values to determine a maximum n similarity values and n position fingerprint reference points corresponding to the n similarity values.
可选地,所述最优指纹确定模块可以利用余弦相似度算法或修正余弦相似度算法或Pearson相似度算法进行相似度计算。Optionally, the optimal fingerprint determination module may perform a similarity calculation by using a cosine similarity algorithm or a modified cosine similarity algorithm or a Pearson similarity algorithm.
可选地,所述待定位点位置确定模块可以设置为通过对所述多个最优位置指纹参考点的位置坐标进行加权处理,得到所述待定位点的位置坐标。Optionally, the to-be-positioned position determining module may be configured to obtain a position coordinate of the to-be-positioned point by weighting the position coordinates of the plurality of optimal position fingerprint reference points.
根据本公开实施例提供的电子设备,该电子设备包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述指纹定位方法。An electronic device according to an embodiment of the present disclosure, the electronic device includes one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory when executed by one or more processors When the fingerprint positioning method described above is performed.
根据本公开实施例提供的计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述指纹定位方法。A computer program product according to an embodiment of the present disclosure, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, The computer is caused to perform the fingerprint positioning method described above.
通过计算待定位点的信号特征与位置指纹数据库中位置指纹参考点的信号特征的欧氏距离和相似度,能够选择与待定位点最优相似的位置指纹参考点,消除匹配结果的多样性误差,提高定位精度。 By calculating the Euclidean distance and similarity of the signal features of the location to be located and the signal features of the location fingerprint reference point in the location fingerprint database, the location fingerprint reference point that is optimally similar to the location to be located can be selected to eliminate the diversity error of the matching result. Improve positioning accuracy.
附图说明DRAWINGS
图1是本公开实施例提供的指纹定位方法的第一流程图。FIG. 1 is a first flowchart of a fingerprint positioning method according to an embodiment of the present disclosure.
图2是本公开实施例提供的指纹定位装置的第一结构示意图。FIG. 2 is a schematic diagram of a first structure of a fingerprint positioning apparatus according to an embodiment of the present disclosure.
图3是本公开实施例提供的定位方法的第二流程图。FIG. 3 is a second flowchart of a positioning method according to an embodiment of the present disclosure.
图4是本公开实施例提供的定位方法的流程图。FIG. 4 is a flowchart of a positioning method provided by an embodiment of the present disclosure.
图5是本公开实施例提供的某商场平面示意图。FIG. 5 is a schematic plan view of a shopping mall according to an embodiment of the present disclosure.
图6是本公开实施例提供的指纹定位装置的第二结构示意图。FIG. 6 is a schematic diagram of a second structure of a fingerprint positioning apparatus according to an embodiment of the present disclosure.
图7是本公开实施例提供的一种电子设备的硬件结构示意图。FIG. 7 is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present disclosure.
具体实施方式detailed description
以下结合附图对本公开的可选实施例进行详细说明,应当理解,以下所说明的可选实施例仅用于说明和解释本公开,并不用于限定本公开。在不冲突的情况下,以下实施例和实施例中的特征可以相互组合。The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. The features of the following embodiments and embodiments may be combined with each other without conflict.
图1是一实施例提供的指纹定位方法的第一流程图,如图1所示,该方法可以包括S110-S120。FIG. 1 is a first flowchart of a fingerprint positioning method according to an embodiment. As shown in FIG. 1, the method may include S110-S120.
在S110中,将待定位点的信号特征和位置指纹数据库中位置指纹参考点的信号特征进行欧式距离匹配处理和相似度匹配处理,确定多个最优位置指纹参考点,该多个最优位置指纹参考点可以是指与待定位点距离最近且相似度最高的多个位置指纹参考点。In S110, the signal feature of the point to be located and the signal feature of the position fingerprint reference point in the location fingerprint database are subjected to Euclidean distance matching processing and similarity matching processing to determine a plurality of optimal position fingerprint reference points, and the plurality of optimal positions The fingerprint reference point may refer to a plurality of location fingerprint reference points that are closest to the point to be located and have the highest similarity.
上述信号特征可以是接收信号强度向量(可以为功率信息)。The above signal characteristic may be a received signal strength vector (which may be power information).
可选地,首先将待定位点的接收信号强度向量和位置指纹数据库中多个位置指纹参考点的接收信号强度向量分别进行欧式距离匹配处理,确定欧式距离最小的N个位置指纹参考点。然后将待定位点的接收信号强度向量和N个位置指纹参考点的接收信号强度向量分别进行相似度匹配处理,确定相似度最大的前n个位置指纹参考点作为最优相似度位置指纹参考点。Optionally, the received signal strength vector of the point to be located and the received signal strength vector of the plurality of position fingerprint reference points in the location fingerprint database are first subjected to Euclidean distance matching processing to determine N position fingerprint reference points with the smallest Euclidean distance. Then, the received signal strength vector of the point to be located and the received signal strength vector of the N position fingerprint reference points are respectively subjected to similarity matching processing, and the first n position fingerprint reference points with the highest similarity are determined as the optimal similarity position fingerprint reference point. .
可选地,对待定位点和N个位置指纹参考点之间的接收信号强度向量的相似度分别进行计算,可以采用余弦相似度算法或修正余弦相似度算法或Pearson 相似度算法,从而得到N个相似度,通过对所得到的N个相似度进行排序,确定最大的n个相似度及对应n个相似度的n个位置指纹参考点。其中,2≤n≤N,N>3,n和N为正整数。Optionally, the similarity of the received signal strength vector between the target location point and the N location fingerprint reference points is calculated separately, and a cosine similarity algorithm or a modified cosine similarity algorithm or Pearson may be used. The similarity algorithm obtains N similarities. By sorting the obtained N similarities, the maximum n similarities and n position fingerprint reference points corresponding to n similarities are determined. Wherein, 2≤n≤N, N>3, n and N are positive integers.
可选地,位置指纹数据库是在离线情况下预先建立的数据库,该数据库包含每个位置指纹参考点(即参考点或参考指纹点或样本点)的指纹,该指纹包括该位置指纹参考点的位置和信号特征。Optionally, the location fingerprint database is a pre-established database in an offline situation, the database containing a fingerprint of each location fingerprint reference point (ie, a reference point or a reference fingerprint point or a sample point), the fingerprint including the location fingerprint reference point Location and signal characteristics.
在S120中,利用所确定的多个最优位置指纹参考点,计算待定位点的位置坐标。In S120, the determined position coordinates of the point to be located are calculated by using the determined plurality of optimal position fingerprint reference points.
可选地,通过对所确定的多个最优位置指纹参考点的位置坐标进行加权处理,得到待定位点的位置坐标。Optionally, the position coordinates of the point to be located are obtained by weighting the determined position coordinates of the plurality of optimal position fingerprint reference points.
本领域普通技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读取存储介质中,该程序在执行时,可实现S110-S120中的方案。其中,计算机可读存储介质可以为非暂态计算机可读存储介质,例如ROM/RAM、磁碟、光盘等。It will be understood by those skilled in the art that all or part of the steps of the foregoing embodiments may be implemented by a program to instruct related hardware, and the program may be stored in a computer readable storage medium. The solution in S110-S120 can be implemented. The computer readable storage medium may be a non-transitory computer readable storage medium such as a ROM/RAM, a magnetic disk, an optical disk, or the like.
图2是一实施例提供的指纹定位装置的第一结构示意图,如图2所示,可以包括最优指纹确定模块和待定位点位置确定模块。FIG. 2 is a schematic diagram of a first structure of a fingerprint positioning apparatus according to an embodiment. As shown in FIG. 2, the method may include an optimal fingerprint determination module and a position determining module to be located.
最优指纹确定模块可以设置为将待定位点的信号特征和位置指纹数据库中位置指纹参考点的信号特征进行欧式距离匹配处理和相似度匹配处理,确定多个最优位置指纹参考点,该多个最优位置指纹参考点可以是指与待定位点距离最近且相似度最高的多个位置指纹参考点。The optimal fingerprint determination module may be configured to perform Euclidean distance matching processing and similarity matching processing on the signal feature of the point to be located and the signal feature of the position fingerprint reference point in the location fingerprint database, and determine a plurality of optimal position fingerprint reference points, the plurality of The optimal location fingerprint reference point may refer to a plurality of location fingerprint reference points that are closest to the point to be located and have the highest similarity.
可选地,信号特征可以是接收信号强度向量。最优指纹确定模块还可以设置为将待定位点的接收信号强度向量和位置指纹数据库中每个位置指纹参考点的接收信号强度向量分别进行欧式距离匹配处理,确定欧式距离最小的N个位置指纹参考点,并将待定位点的接收信号强度向量和N个位置指纹参考点的接收信号强度向量分别进行相似度匹配处理。Alternatively, the signal characteristic may be a received signal strength vector. The optimal fingerprint determination module may be further configured to perform the Euclidean distance matching processing on the received signal strength vector of the point to be located and the received signal strength vector of each position fingerprint reference point in the location fingerprint database to determine the N position fingerprints with the smallest Euclidean distance. The reference point is used, and the received signal strength vector of the point to be located and the received signal strength vector of the N position fingerprint reference points are respectively subjected to similarity matching processing.
可选地,可采用余弦相似度算法或修正余弦相似度算法或Pearson相似度算法进行相似度计算,得到N个相似度,对N个相似度进行排序,确定最高的n个相似度及对应n个相似度的n个位置指纹参考点,并将n个位置指纹参考点作为最优位置指纹参考点。其中,2≤n≤N,N>3,n和N为正整数。Optionally, a cosine similarity algorithm or a modified cosine similarity algorithm or a Pearson similarity algorithm may be used to perform similarity calculation, and N similarities are obtained, and N similarities are sorted to determine the highest n similarities and corresponding n n position fingerprint reference points of similarity, and n position fingerprint reference points are used as the optimal position fingerprint reference points. Wherein, 2≤n≤N, N>3, n and N are positive integers.
待定位点位置确定模块,设置为利用所确定的多个最优位置指纹参考点, 计算待定位点的位置坐标。a positioning point location determining module, configured to utilize the determined plurality of optimal location fingerprint reference points, Calculate the position coordinates of the point to be positioned.
可选地,待定位点位置确定模块还可以设置为通过对所确定的多个最优位置指纹参考点的位置坐标进行加权处理,得到待定位点的位置坐标。Optionally, the to-be-positioned position determining module may further be configured to obtain a position coordinate of the to-be-positioned point by weighting the determined position coordinates of the plurality of optimal position fingerprint reference points.
图3是本公开实施例提供的定位方法的第二流程图,如图3所示,该方法可以包括S201-S204。FIG. 3 is a second flowchart of a positioning method according to an embodiment of the present disclosure. As shown in FIG. 3, the method may include S201-S204.
在S201中,构建离线指纹数据库。In S201, an offline fingerprint database is constructed.
所述离线指纹数据库可以是指指纹库或位置指纹数据库。The offline fingerprint database may refer to a fingerprint database or a location fingerprint database.
在S202中,将待定位点的特征信息与指纹库中的数据进行欧氏距离匹配。所述特征信息可以是指信号特征。In S202, the feature information of the point to be located is matched with the data in the fingerprint library by Euclidean distance. The feature information may refer to a signal feature.
通过欧氏距离匹配,得到欧式距离最小的几个参考指纹点数据。Through the Euclidean distance matching, several reference fingerprint point data with the smallest Euclidean distance are obtained.
在S203中,将待定位点的特征信息与上述欧式距离最小的几个参考指纹点数据进行相似度匹配。In S203, similarity matching is performed on the feature information of the point to be located and the reference fingerprint point data with the smallest Euclidean distance.
通过相似度匹配,得到相似度最大的几个指纹点。Through the similarity matching, several fingerprint points with the largest similarity are obtained.
在S204中,对上述相似度最大的几个指纹点应用加权最近邻算法估计待定位点最终位置。In S204, a weighted nearest neighbor algorithm is applied to the plurality of fingerprint points with the highest similarity to estimate a final position of the to-be-located point.
本公开实施例提供的指纹定位方法,首先构建离线指纹数据库;其次利用待定位点的特征信息与上述指纹库中的特征信息进行欧氏距离匹配,将欧氏距离最小的N个指纹作为新的指纹库;然后利用待定位点的特征信息与上述新的指纹库进行相似度求解,获得相似度最大的n个指纹,最后对n个指纹应用如WKNNSS(Weighted KNNSS)的加权算法求得最终的定位结果。实施时包括构建离线指纹数据库阶段和在线定位阶段,可以包括:The fingerprint positioning method provided by the embodiment of the present disclosure first constructs an offline fingerprint database; secondly, the feature information of the point to be located is matched with the feature information in the fingerprint database to match the Euclidean distance, and the N fingerprints with the smallest Euclidean distance are taken as new Fingerprint library; then using the feature information of the point to be located and the new fingerprint database to solve the similarity, obtain the n fingerprints with the highest similarity, and finally apply the weighting algorithm such as WKNNSS (Weighted KNNSS) to the n fingerprints to obtain the final Position the results. The implementation includes the construction of an offline fingerprint database stage and an online positioning stage, which may include:
阶段一:构建离线指纹数据库。Phase 1: Building an offline fingerprint database.
在定位环境中布设M个基站,在定位区域设置K个参考点,在每一个参考点处采样每个基站的接收信号功率,将参考点位置和功率信息联合构成指纹,第i个指纹表示如下:[xi,yi,zi,p1i,p2i,...,pMi]。M base stations are arranged in the positioning environment, K reference points are set in the positioning area, the received signal power of each base station is sampled at each reference point, and the reference point position and power information are combined to form a fingerprint, and the i-th fingerprint is expressed as follows :[xi,yi,zi,p 1i ,p 2i ,...,p Mi ].
其中,xi,yi,zi为第i个参考点的位置信息,p1i,p2i,...,pMi为M个基站在指纹库建库时刻对第i个参考点位置用户设备信号的接收功率,即在指纹库建库时刻第i个参考点位置的用户设备接收到的来自M个基站的信号的接收功率。i的取值范围为1到K。 Where xi, yi, zi are the position information of the i-th reference point, and p 1i , p 2i , . . . , p Mi are the user equipment signals of the M base stations in the fingerprint database construction time to the i-th reference point position. The received power, that is, the received power of the signals from the M base stations received by the user equipment at the i-th reference point position at the time of the fingerprint database construction time. The value of i ranges from 1 to K.
阶段二:在线定位Phase 2: Online positioning
步骤1:从待定位点处M个基站接收到的信号强度向量Rx=[p1,p2,...,pM]中找出m个有效的信号强度值,m为小于M且大于2的正整数。Step 1: Find m valid signal strength values from the signal strength vectors R x =[p 1 , p 2 , . . . , p M ] received by the M base stations at the point to be located, where m is less than M and A positive integer greater than 2.
步骤2:对待定位点接收到的信号强度向量与指纹库中对应的多个信号强度向量进行欧氏距离匹配,通过分别计算待定位点接收到的信号强度向量与指纹库中对应的多个信号强度向量的欧氏距离,得到欧式距离最小的N个指纹,N为大于3的正整数。Step 2: Performing Euclidean distance matching between the signal strength vector received by the positioning point and the corresponding multiple signal strength vectors in the fingerprint library, respectively, by calculating the signal strength vector received by the to-be-located point and the corresponding multiple signals in the fingerprint database. The Euclidean distance of the intensity vector gives the N fingerprints with the smallest Euclidean distance, and N is a positive integer greater than 3.
利用如下公式计算欧式距离:Calculate the Euclidean distance using the following formula:
Figure PCTCN2017070501-appb-000001
Figure PCTCN2017070501-appb-000001
其中,Pxj表示待定位点第j个基站接收到的信号强度,Pji表示第i个参考点接收到第j个基站的信号强度向量,m表示有效信号强度个数。Qi表示第i个参考点到待定位点的信号强度的欧式距离。Wherein, P xj represents the signal strength received by the jth base station of the point to be located, P ji represents the signal strength vector of the jth base station received by the i th reference point, and m represents the effective signal strength number. Qi represents the Euclidean distance of the signal strength of the i-th reference point to the point to be located.
步骤3:将步骤2得到的N个指纹的信号强度向量依次与待定位点的信号强度向量进行相似度求解。相似度算法可选择余弦相似度、Pearson相关系数或修正余弦相似度等。Step 3: The signal strength vector of the N fingerprints obtained in step 2 is sequentially solved with the signal strength vector of the point to be located. The similarity algorithm may select cosine similarity, Pearson correlation coefficient or modified cosine similarity.
以余弦相似度为例,通过如下公式计算:Taking cosine similarity as an example, it is calculated by the following formula:
Figure PCTCN2017070501-appb-000002
Figure PCTCN2017070501-appb-000002
其中Px表示待定位点的信号强度向量,Pi表示N个指纹中第i个指纹的信号强度向量,||*||表示求模运算,<*>表示求内积计算,CosSim(Px,Pi)表示待定位点和第i个指纹点的余弦相似度系数。余弦相似度系数越大,二者的相关性越大。Where P x represents the signal strength vector of the point to be located, P i represents the signal strength vector of the ith fingerprint of the N fingerprints, ||*|| indicates modulo operation, <*> indicates inner product calculation, CosSim (P x , P i ) represent the cosine similarity coefficient of the point to be located and the i-th fingerprint point. The larger the cosine similarity coefficient, the greater the correlation between the two.
步骤4:对N个余弦相似度系数进行从大到小排序,选择余弦相似度系数前n个大的值,该n个余弦相似度系数分别对应的n个指纹即为离待定位点最近的n个指纹点。Step 4: Sort the N cosine similarity coefficients from large to small, and select the n largest values before the cosine similarity coefficient, and the n fingerprints corresponding to the n cosine similarity coefficients are the closest to the to-be-located point. n fingerprint points.
步骤5:利用WKNNSS算法,计算上述n个指纹点最终的定位结果。计算公式如下:Step 5: Calculate the final positioning result of the above n fingerprint points by using the WKNNSS algorithm. Calculated as follows:
Figure PCTCN2017070501-appb-000003
Figure PCTCN2017070501-appb-000003
其中,xk、yk、zk是第k个匹配指纹的坐标信息。权值wk由加权近邻法获 得,公式如下:Where x k , y k , and z k are coordinate information of the kth matching fingerprint. The weight w k is obtained by the weighted nearest neighbor method, and the formula is as follows:
Figure PCTCN2017070501-appb-000004
Figure PCTCN2017070501-appb-000004
Figure PCTCN2017070501-appb-000005
Figure PCTCN2017070501-appb-000005
其中,ε是一个非常小的实常数,用来避免分母为0的情况。Qk表示第k个参考点到待定位点的信号强度的欧式距离。Where ε is a very small real constant used to avoid the case where the denominator is zero. Q k represents the Euclidean distance of the signal strength of the kth reference point to the point to be located.
图4是本公开实施例提供的定位方法的流程图,如图4所示,该方法可以包括S301-S307。FIG. 4 is a flowchart of a positioning method according to an embodiment of the present disclosure. As shown in FIG. 4, the method may include S301-S307.
在S301中,在指纹定位区域设置样本点。In S301, sample points are set in the fingerprint positioning area.
在S302中,采样区域内样本点相对每个基站的接收信号功率信息。In S302, the received signal power information of the sample points in the sampling area with respect to each base station.
在S303中,将样本点的位置信息和接收功率信息联合构成指纹库。In S303, the location information of the sample points and the received power information are combined to form a fingerprint library.
在S304中,选择与待定位点相关的M个基站的接收信号强度信息。In S304, the received signal strength information of the M base stations related to the point to be located is selected.
在S305中,将待定位点的功率信息和指纹库中多个指纹的功率信息进行欧式距离匹配,选择欧氏距离最小的N个个指纹点。In S305, the power information of the point to be located and the power information of the plurality of fingerprints in the fingerprint library are matched by Euclidean distance, and N fingerprint points with the smallest Euclidean distance are selected.
在S306中,对上述步骤选择的N个指纹点与待定位点进行余弦相似度求解,从N个指纹点中选择余弦相似度为正且最小的n个对应的指纹点。In S306, the N fingerprint points selected in the above step are solved with the cosine similarity degree, and the n corresponding fingerprint points whose cosine similarity is positive and smallest are selected from the N fingerprint points.
在S307中,使用特定算法(如WKNNSS)由多个候选点估算得到该终端的位置。In S307, the location of the terminal is estimated from a plurality of candidate points using a specific algorithm such as WKNNSS.
在S301至S303中执行的操作是离线指纹库构建阶段的步骤,在S304至S307中执行的操作是在线定位阶段的步骤。The operations performed in S301 to S303 are the steps of the offline fingerprint library construction phase, and the operations performed in S304 to S307 are the steps of the online positioning phase.
相关技术中的指纹方法仅通过信号强度向量大小来选择参考指纹,很难保证选择出的N个指纹的质量,进而影响定位结果的准确度和稳定性。特别是当不同基站获得的信号强度组成的向量具有对称性时,样本中相对待定位点的匹配结果会存在多样性,无法分辨哪个样本点才是距离待定位点距离最近的点,选择出的N个参考指纹中可能存在实际物理位置误差较大的指纹,使得定位误差波动较大,定位精度受到严重影响,用户的体验性很差。The fingerprint method in the related art only selects the reference fingerprint by the signal strength vector size, and it is difficult to ensure the quality of the selected N fingerprints, thereby affecting the accuracy and stability of the positioning result. In particular, when the vector composed of signal strengths obtained by different base stations has symmetry, the matching result of the points to be located in the sample may be different, and it is impossible to distinguish which sample point is the closest distance from the point to be located, and the selected one is selected. Among the N reference fingerprints, there may be fingerprints with large physical position errors, which makes the positioning error fluctuate greatly, the positioning accuracy is seriously affected, and the user experience is poor.
本实施例结合图5对本公开提供的技术方法作详细描述。This embodiment describes the technical method provided by the present disclosure in detail in conjunction with FIG. 5.
图5是本公开实施例提供的某商场平面示意图,如图5所示,在一个12米 *60米的商场内布设6个接入点(Access Point,AP)或基站。FIG. 5 is a schematic plan view of a shopping mall according to an embodiment of the present disclosure, as shown in FIG. 5, at a distance of 12 meters. * 6 access points (APs) or base stations are installed in the 60-meter mall.
实施例1、基于强度和方向的指纹定位Embodiment 1. Fingerprint positioning based on intensity and direction
阶段一:构建离线指纹数据库Phase 1: Building an offline fingerprint database
在一个12米*60米的商场内布设M=6个AP,在商场内布设K=50个参考点,每一个参考点处采样每个AP的接收信号功率,将参考点位置和功率信息联合构成指纹,第i个指纹表示如下:[xi,yi,zi,p1i,p2i,...,pMi]。其中,xi,yi,zi为第i个参考点的位置信息,p1i,p2i,...,pMi为6个基站在指纹库建库时刻对第i个参考点位置用户设备信号的接收功率。i的取值范围为1到50。M=6 APs are arranged in a 12m*60m mall, K=50 reference points are arranged in the mall, and the received signal power of each AP is sampled at each reference point, and the reference point position and power information are combined. The fingerprint is formed, and the i-th fingerprint is expressed as follows: [xi, yi, zi, p 1i , p 2i , ..., p Mi ]. Where xi, yi, zi are the position information of the i-th reference point, and p 1i , p 2i , . . . , p Mi are signals of the user equipment of the ith reference point position of the six base stations at the time of the fingerprint database construction time. Receive power. The value of i ranges from 1 to 50.
阶段二:在线定位Phase 2: Online positioning
步骤1:从待定位点接收到的信号强度向量Rx=[p1,p2,...,pM]中找出m=3个有效的信号强度值,有效信号强度门阀由商场环境确定,此处设为-100dBm。Step 1: Find the m=3 effective signal strength values from the signal strength vector R x =[p 1 ,p 2 ,...,p M ] received from the point to be located. The effective signal strength gate valve is used by the shopping mall environment. Ok, here it is set to -100dBm.
步骤2:求待定位点接收到的信号强度向量与指纹库中对应的信号强度向量进行欧氏距离匹配,得到欧式距离最小的6个指纹。利用如下公式计算欧式距离:Step 2: Find the signal strength vector received by the positioning point and the corresponding signal strength vector in the fingerprint library to perform Euclidean distance matching, and obtain the six fingerprints with the smallest Euclidean distance. Calculate the Euclidean distance using the following formula:
Figure PCTCN2017070501-appb-000006
Figure PCTCN2017070501-appb-000006
其中,Pxj表示待定位点第j个AP接收到的信号强度,Pji表示第i个参考点接收到第j个AP的信号强度向量,m表示有效信号强度个数。Qi表示第i个参考点到待定位点的信号强度的欧式距离。Wherein, P xj represents the signal strength received by the jth AP of the point to be located, P ji represents the signal strength vector of the jth AP received by the i th reference point, and m represents the number of effective signal strengths. Qi represents the Euclidean distance of the signal strength of the i-th reference point to the point to be located.
步骤3:将步骤2得到的欧氏距离最小的6个指纹的信号强度向量依次与待定位点的信号强度向量进行余弦相似度算法求解。余弦相似度通过如下公式计算:Step 3: The signal strength vector of the six fingerprints with the smallest Euclidean distance obtained in step 2 is sequentially solved by the cosine similarity algorithm with the signal strength vector of the point to be located. The cosine similarity is calculated by the following formula:
Figure PCTCN2017070501-appb-000007
Figure PCTCN2017070501-appb-000007
其中,Px表示待定位点的信号强度向量,Pi表示6个指纹中第i个指纹的信号强度向量,||*||表示求模运算,<*>表示求内积计算,CosSim(Px,Pi)表示待定位点和第i个指纹点的余弦相似度系数。余弦相似度系数越大,二者的相关性越大。Where P x represents the signal strength vector of the point to be located, P i represents the signal strength vector of the ith fingerprint of the 6 fingerprints, ||*|| indicates modulo operation, <*> indicates inner product calculation, CosSim ( P x , P i ) represents the cosine similarity coefficient of the point to be located and the i-th fingerprint point. The larger the cosine similarity coefficient, the greater the correlation between the two.
步骤4:对6个余弦相似度系数进行从大到小排序,选择余弦相似度系数前3个大的值,该3个余弦相似度系数对应的3个指纹即为离待定位点最近的3个指纹点。 Step 4: Sort the six cosine similarity coefficients from large to small, and select the first three large values of the cosine similarity coefficient. The three fingerprints corresponding to the three cosine similarity coefficients are the closest to the to-be-located point. Fingerprint points.
步骤5:对上述3个指纹点应用WKNNSS算法求得最终的定位结果(x,y,z),计算公式如下:
Figure PCTCN2017070501-appb-000008
式中,xk、yk、zk是第k个匹配指纹的坐标信息。权值wk由加权近邻法获得,公式如下:
Step 5: Apply the WKNNSS algorithm to the above three fingerprint points to obtain the final positioning result (x, y, z). The calculation formula is as follows:
Figure PCTCN2017070501-appb-000008
Where x k , y k , z k are the coordinate information of the kth matching fingerprint. The weight w k is obtained by the weighted nearest neighbor method, and the formula is as follows:
Figure PCTCN2017070501-appb-000009
Figure PCTCN2017070501-appb-000009
Figure PCTCN2017070501-appb-000010
Figure PCTCN2017070501-appb-000010
其中,ε是一个非常小的实常数,用来避免分母为0的情况。Where ε is a very small real constant used to avoid the case where the denominator is zero.
实施例2、基于最优相似度的指纹定位Embodiment 2: Fingerprint localization based on optimal similarity
阶段一:构建离线指纹数据库Phase 1: Building an offline fingerprint database
在一个12米*60米的商场内布设M=6个基站,在商场内布设K=50个参考点,每一个参考点处采样当前参考点接收到6个基站的信号功率,将参考点位置和功率信息联合构成指纹,第i个指纹表示如下:[xi,yi,zi,p1i,p2i,...,pMi]。其中xi,yi,zi为第i个参考点的位置信息,p1i,p2i,...,pMi为第i个点的用户设备接收到6个基站的信号功率。i的取值范围为1到50。M=6 base stations are arranged in a 12m*60m shopping mall, K=50 reference points are arranged in the shopping mall, and each reference point samples the current reference point to receive the signal power of 6 base stations, and the reference point position Combined with the power information to form a fingerprint, the ith fingerprint is expressed as follows: [xi, yi, zi, p 1i , p 2i , ..., p Mi ]. Where xi, yi, zi are the position information of the i-th reference point, and p 1i , p 2i , . . . , p Mi is the signal power of the user equipment received by the user equipment of the ith point. The value of i ranges from 1 to 50.
阶段二:在线定位Phase 2: Online positioning
步骤1:从待定位点用户设备接收到6个基站的信号强度向量Rx=[p1,p2,...,pM]中找出接收到m=3个基站的有效信号强度值,有效信号强度门阀由商场环境确定,此处设为-98dBm。Step 1: Find the effective signal strength value of the received m=3 base stations from the signal strength vector R x =[p 1 , p 2 , . . . , p M ] of the 6 base stations received from the user equipment to be located. The effective signal strength gate valve is determined by the mall environment, here set to -98dBm.
步骤2:求待定位点接收到的信号强度向量与指纹库中对应的信号强度向量进行欧氏距离匹配,得到欧式距离最小的6个指纹。利用如下公式计算欧式距离:Step 2: Find the signal strength vector received by the positioning point and the corresponding signal strength vector in the fingerprint library to perform Euclidean distance matching, and obtain the six fingerprints with the smallest Euclidean distance. Calculate the Euclidean distance using the following formula:
Figure PCTCN2017070501-appb-000011
Figure PCTCN2017070501-appb-000011
其中,Pxj表示待定位点第j个基站接收到的信号强度,Pji表示第i个参考点接收到第j个基站的信号强度向量,m表示有效信号强度个数。Qi表示第i个参考点到待定位点的信号强度的欧式距离。Wherein, P xj represents the signal strength received by the jth base station of the point to be located, P ji represents the signal strength vector of the jth base station received by the i th reference point, and m represents the effective signal strength number. Qi represents the Euclidean distance of the signal strength of the i-th reference point to the point to be located.
步骤3:将步骤2得到的欧氏距离最小的6个指纹的信号强度向量依次与待定位点的信号强度向量进行Pearson相似度算法求解。Pearson相似度通过如下 公式计算:Step 3: The signal strength vector of the six fingerprints with the smallest Euclidean distance obtained in step 2 is sequentially solved by the Pearson similarity algorithm with the signal intensity vector of the point to be located. Pearson similarity is as follows Formula calculation:
Figure PCTCN2017070501-appb-000012
Figure PCTCN2017070501-appb-000012
其中,Px表示待定位点的信号强度向量,Pi表示6个指纹中第i个指纹的信号强度向量,
Figure PCTCN2017070501-appb-000013
表示带定位点信号强度向量的平均值,
Figure PCTCN2017070501-appb-000014
表示第i个指纹的信号强度向量的平均值,||*||表示求模运算,<*>表示求内积计算,Corr(Px,Pi)表示待定位点和第i个指纹点的Pearson相似度系数。Pearson相似度系数越大,二者的相关性越大。
Where P x represents the signal strength vector of the point to be located, and P i represents the signal strength vector of the ith fingerprint of the 6 fingerprints.
Figure PCTCN2017070501-appb-000013
Indicates the average of the signal strength vector with the anchor point,
Figure PCTCN2017070501-appb-000014
Indicates the average value of the signal strength vector of the ith fingerprint, ||*|| indicates the modulo operation, <*> indicates the inner product calculation, and Corr(P x , P i ) indicates the point to be located and the ith fingerprint point. Pearson similarity coefficient. The greater the Pearson similarity coefficient, the greater the correlation between the two.
步骤4:对6个Pearson相似度系数进行从大到小排序,选择余弦相似度系数前3个大的值,该3个余弦相似度系数对应的3个指纹即为离待定位点最近的3个指纹点。Step 4: Sort the six Pearson similarity coefficients from large to small, and select the first three large values of the cosine similarity coefficient. The three fingerprints corresponding to the three cosine similarity coefficients are the closest to the to-be-positioned point. Fingerprint points.
步骤5:对上述3个指纹点应用WKNNSS算法求得最终的定位结果(x,y,z),计算公式如下:
Figure PCTCN2017070501-appb-000015
式中,xk、yk、zk是第k个匹配指纹的坐标信息。权值wk由加权近邻法获得,公式如下:
Step 5: Apply the WKNNSS algorithm to the above three fingerprint points to obtain the final positioning result (x, y, z). The calculation formula is as follows:
Figure PCTCN2017070501-appb-000015
Where x k , y k , z k are the coordinate information of the kth matching fingerprint. The weight w k is obtained by the weighted nearest neighbor method, and the formula is as follows:
Figure PCTCN2017070501-appb-000016
Figure PCTCN2017070501-appb-000016
Figure PCTCN2017070501-appb-000017
Figure PCTCN2017070501-appb-000017
其中,ε是一个非常小的实常数,用来避免分母为0的情况。Where ε is a very small real constant used to avoid the case where the denominator is zero.
本公开实施例能够消除因不同基站测量到的信号强度向量对称性引起的定位匹配多样性误差,提高定位精度。The embodiments of the present disclosure can eliminate the positioning matching diversity error caused by the signal strength vector symmetry measured by different base stations, and improve the positioning accuracy.
实施例3:Example 3:
根据上述实施方式中提供的指纹定位方法,本公开实施例还提供了应用上述指纹定位方法的装置。According to the fingerprint positioning method provided in the above embodiments, the embodiment of the present disclosure further provides an apparatus for applying the fingerprint positioning method described above.
图6是本公开实施例提供的指纹定位装置的第二结构示意图,如图6所示,包括:FIG. 6 is a second schematic structural diagram of a fingerprint positioning apparatus according to an embodiment of the present disclosure. As shown in FIG. 6, the method includes:
离线指纹数据库构建模块,可称为离线指纹数据库模块,设置为指纹库的 建立,在定位环境中布设M个基站,在定位区域设置K个参考点,在每一个参考点处采样每个基站或终端相对于每个基站的接收信号功率,将参考点位置和功率信息联合构成指纹。Offline fingerprint database building module, which can be called offline fingerprint database module, set as fingerprint database Establishing, deploying M base stations in the positioning environment, setting K reference points in the positioning area, sampling the received signal power of each base station or terminal relative to each base station at each reference point, and combining the reference point position and power information Form a fingerprint.
接收选择模块,设置为接收用户设备上报的实测数据并筛选出有效的数据。The receiving selection module is configured to receive the measured data reported by the user equipment and filter out valid data.
匹配模块,设置为定位服务器对实测数据和指纹库数据进行欧式距离计算,找出欧氏距离最小的前N个指纹。The matching module is configured to perform a European distance calculation on the measured data and the fingerprint database data by the positioning server to find the first N fingerprints with the smallest Euclidean distance.
确定模块,设置为定位服务器对实测数据和N个指纹数据进行相似度计算,选择n个最优相似度指纹。The determining module is configured to perform a similarity calculation on the measured data and the N fingerprint data by the positioning server, and select n optimal similarity fingerprints.
定位模块,设置为定位服务器根据选择出的最优相似度指纹信息,利用WKNNSS方法得到用户设备的定位结果。The positioning module is configured to obtain the positioning result of the user equipment by using the WKNNSS method according to the selected optimal similarity fingerprint information.
其中,接收选择模块、匹配模块和确定模块可以共同实现最优相似度指纹确定模块的功能,定位模块可以实现待定位点位置确定模块的功能。The receiving selection module, the matching module and the determining module can jointly implement the function of the optimal similarity fingerprint determining module, and the positioning module can implement the function of the position determining module to be located.
使用移动网络基站进行指纹定位,可分为上行指纹定位和下行指纹定位两种方式,上行指纹定位是指UE发射参考信号,多个基站测量UE所发射信号功率,构成指纹与预先保存在数据库中的指纹进行匹配定位。下行指纹定位是指UE接收并测量多个基站的发射信号强度,构成指纹与预先保存在数据库中的指纹进行匹配定位。The fingerprint location of the mobile network base station can be divided into two methods: uplink fingerprint location and downlink fingerprint location. The uplink fingerprint location refers to the UE transmitting reference signals, and multiple base stations measure the signal power transmitted by the UE, and the fingerprints are pre-stored in the database. The fingerprint is matched for positioning. The downlink fingerprint location refers to that the UE receives and measures the strength of the transmitted signals of multiple base stations, and the fingerprints are matched and positioned by the fingerprints pre-stored in the database.
本公开基于RSS大小和方向联合确定指纹和实测数据的最优相似度来进行定位,定位精度高,由于无线信道具有对称性,因此本公开适用于上下指纹定位也适用于下行指纹定位。The present disclosure is based on the combination of the size and direction of the RSS to determine the optimal similarity between the fingerprint and the measured data, and the positioning accuracy is high. Since the wireless channel has symmetry, the present disclosure is applicable to the upper and lower fingerprint positioning and the downlink fingerprint positioning.
通过计算用户实测数据与指纹库中指纹数据的欧氏距离和相似度,同时从数据大小和方向上保证了参考指纹与待定位点间的相关性,能够选择与待定位点最优相似的参考指纹,可以消除指纹点与待定位点匹配的多样性误差,提高定位精度。By calculating the Euclidean distance and similarity between the user's measured data and the fingerprint data in the fingerprint database, and ensuring the correlation between the reference fingerprint and the point to be located from the data size and direction, the reference that is optimally similar to the point to be located can be selected. The fingerprint can eliminate the diversity error of the matching of the fingerprint point and the point to be located, and improve the positioning accuracy.
图7是本公开实施例提供的电子设备的硬件结构示意图,如图7所示,该电子设备可以包括:FIG. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 7, the electronic device may include:
处理器(processor)410和存储器(memory)420;还可以包括通信接口(Communications Interface)430和总线440。A processor 410 and a memory 420; may also include a communications interface 430 and a bus 440.
其中,处理器410、存储器420和通信接口430可以通过总线440完成相互间 的通信。通信接口430可以用于信息传输。处理器410可以调用存储器420中的逻辑指令,以执行上述实施例的指纹定位方法。The processor 410, the memory 420, and the communication interface 430 can be completed by each other through the bus 440. Communication. Communication interface 430 can be used for information transmission. The processor 410 can call the logic instructions in the memory 420 to perform the fingerprint positioning method of the above embodiment.
此外,上述的存储器420中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个存储介质中。基于这样的理解,本公开的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括多条指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。In addition, the logic instructions in the memory 420 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or A network device or the like) performs all or part of the steps of the method described in the embodiments of the present disclosure. The foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium that can store program code, or a transitory storage medium.
最后需要说明的是,本领域普通技术人员可理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来执行相关的硬件来完成的,该程序可存储于一个计算机可读存储介质中,该程序在执行时,可包括如上述方法的实施例的流程,其中,该计算机可读存储介质可以为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。Finally, it should be understood that those skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by executing related hardware by a computer program, and the program can be stored in a computer readable storage medium. The program, when executed, may include the flow of an embodiment of the method described above, wherein the computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM). Wait.
工业实用性Industrial applicability
本公开提供了一种指纹定位方法及装置,可以消除匹配结果的多样性误差,提高定位精度。 The present disclosure provides a fingerprint positioning method and device, which can eliminate the diversity error of the matching result and improve the positioning accuracy.

Claims (11)

  1. 一种指纹定位方法,包括:A fingerprint positioning method includes:
    将待定位点的信号特征和位置指纹数据库中位置指纹参考点的信号特征进行欧式距离匹配处理和相似度匹配处理,确定多个最优位置指纹参考点,所述多个最优位置指纹参考点是与所述待定位点距离最近相似度最高的多个位置指纹参考点;以及Performing Euclidean distance matching processing and similarity matching processing on the signal feature of the point to be located and the signal feature of the position fingerprint reference point in the location fingerprint database to determine a plurality of optimal position fingerprint reference points, and the plurality of optimal position fingerprint reference points Is a plurality of location fingerprint reference points having the highest similarity to the point to be located; and
    利用所述多个最优位置指纹参考点,计算所述待定位点的位置坐标。Using the plurality of optimal location fingerprint reference points, calculating position coordinates of the to-be-positioned point.
  2. 根据权利要求1所述的方法,其中,所述信号特征是接收信号强度向量,所述确定多个最优位置指纹参考点,包括:The method of claim 1, wherein the signal characteristic is a received signal strength vector, and the determining the plurality of optimal location fingerprint reference points comprises:
    将所述待定位点的接收信号强度向量和所述位置指纹数据库中每个位置指纹参考点的接收信号强度向量分别进行欧式距离匹配处理,确定欧式距离最小的N个位置指纹参考点;以及Performing Euclidean distance matching processing on the received signal strength vector of the to-be-located point and the received signal strength vector of each position fingerprint reference point in the position fingerprint database to determine N position fingerprint reference points with the smallest Euclidean distance;
    将所述待定位点的接收信号强度向量和所述N个位置指纹参考点的接收信号强度向量分别进行相似度匹配处理,确定相似度最高的n个位置指纹参考点作为最优位置指纹参考点,其中,2≤n≤N,N>3。Performing similarity matching processing on the received signal strength vector of the point to be located and the received signal strength vector of the N position fingerprint reference points, respectively, and determining n position fingerprint reference points with the highest similarity as the optimal position fingerprint reference point Where 2 ≤ n ≤ N, N > 3.
  3. 根据权利要求2所述的方法,其中,所述确定相似度最高的n个位置指纹参考点作为最优位置指纹参考点包括:The method according to claim 2, wherein the determining the n position fingerprint reference points with the highest similarity as the optimal position fingerprint reference points comprises:
    分别计算所述待定位点的接收信号强度向量和所述N个位置指纹参考点的接收信号强度向量的相似度,得到N个相似度值;Calculating a similarity between the received signal strength vector of the to-be-located point and the received signal strength vector of the N-position fingerprint reference points, to obtain N similarity values;
    对所述N个相似度值进行排序,确定最高的n个相似度值及对应所述n个相似度值的n个位置指纹参考点。Sorting the N similarity values to determine a highest n similarity values and n position fingerprint reference points corresponding to the n similarity values.
  4. 根据权利要求3所述的方法,其中,利用余弦相似度算法或修正余弦相似度算法或Pearson相似度算法进行相似度计算。The method of claim 3, wherein the similarity calculation is performed using a cosine similarity algorithm or a modified cosine similarity algorithm or a Pearson similarity algorithm.
  5. 根据权利要求1所述的方法,其中,所述利用所述多个最优位置指纹参考点,计算所述待定位点的位置坐标包括:The method according to claim 1, wherein the calculating the position coordinates of the point to be located by using the plurality of optimal position fingerprint reference points comprises:
    通过对所述多个最优位置指纹参考点的位置坐标进行加权处理,得到所述待定位点的位置坐标。The position coordinates of the point to be located are obtained by weighting the position coordinates of the plurality of optimal position fingerprint reference points.
  6. 一种指纹定位装置,包括:A fingerprint positioning device includes:
    最优指纹确定模块,设置为将待定位点的信号特征和位置指纹数据库中位 置指纹参考点的信号特征进行欧式距离匹配处理和相似度匹配处理,确定多个最优位置指纹参考点,所述多个最优位置指纹参考点是与所述待定位点距离最近且相似度最高的多个位置指纹参考点;An optimal fingerprint determination module, configured to set a signal feature of the point to be located and a location fingerprint database Setting a signal feature of the fingerprint reference point to perform Euclidean distance matching processing and similarity matching processing, and determining a plurality of optimal position fingerprint reference points, wherein the plurality of optimal position fingerprint reference points are closest to the to-be-positioned point and similarity The highest number of location fingerprint reference points;
    待定位点位置确定模块,设置为利用所述多个最优位置指纹参考点,计算所述待定位点的位置坐标。The to-be-positioned position determining module is configured to calculate the position coordinates of the to-be-positioned point by using the plurality of optimal position fingerprint reference points.
  7. 根据权利要求6所述的装置,所述信号特征是接收信号强度向量,所述最优指纹确定模块设置为:The apparatus of claim 6 wherein said signal characteristic is a received signal strength vector, said optimal fingerprint determination module being configured to:
    将所述待定位点的接收信号强度向量和所述位置指纹数据库中每个位置指纹参考点的接收信号强度向量分别进行欧式距离匹配处理,确定欧式距离最小的N个位置指纹参考点,并将所述待定位点的接收信号强度向量和所述N个位置指纹参考点的接收信号强度向量分别进行相似度匹配处理,确定相似度最高的n个位置指纹参考点作为最优位置指纹参考点,其中,2≤n≤N,N>3。Performing Euclidean distance matching processing on the received signal strength vector of the to-be-located point and the received signal strength vector of each position fingerprint reference point in the position fingerprint database, and determining N position fingerprint reference points with the smallest Euclidean distance, and The received signal strength vector of the point to be located and the received signal strength vector of the N position fingerprint reference points are respectively subjected to similarity matching processing, and the n position fingerprint reference points with the highest similarity are determined as the optimal position fingerprint reference point. Among them, 2 ≤ n ≤ N, N > 3.
  8. 根据权利要求7所述的装置,所述最优指纹确定模块设置为:The apparatus according to claim 7, wherein the optimal fingerprint determination module is configured to:
    分别计算所述待定位点的接收信号强度向量和所述N个位置指纹参考点的接收信号强度向量的相似度,得到N个相似度值,对所述N个相似度值进行排序,确定最高的n个相似度值及对应所述n个相似度值的n个位置指纹参考点。Calculating a similarity between the received signal strength vector of the to-be-located point and the received signal strength vector of the N-position fingerprint reference points, respectively, to obtain N similarity values, and sorting the N similarity values to determine the highest n similarity values and n position fingerprint reference points corresponding to the n similarity values.
  9. 根据权利要求8所述的装置,所述最优指纹确定模块利用余弦相似度算法或修正余弦相似度算法或Pearson相似度算法进行相似度计算。The apparatus according to claim 8, wherein the optimal fingerprint determination module performs a similarity calculation using a cosine similarity algorithm or a modified cosine similarity algorithm or a Pearson similarity algorithm.
  10. 根据权利要求6所述的装置,所述待定位点位置确定模块设置为:The device according to claim 6, wherein the to-be-positioned position determining module is configured to:
    通过对所述多个最优位置指纹参考点的位置坐标进行加权处理,得到所述待定位点的位置坐标。The position coordinates of the point to be located are obtained by weighting the position coordinates of the plurality of optimal position fingerprint reference points.
  11. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项的指纹定位方法。 A non-transitory computer readable storage medium storing computer executable instructions for performing the fingerprint locating method of any of claims 1-5.
PCT/CN2017/070501 2016-04-26 2017-01-06 Fingerprint positioning method and apparatus WO2017185828A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610264145.1A CN107318084B (en) 2016-04-26 2016-04-26 Fingerprint positioning method and device based on optimal similarity
CN201610264145.1 2016-04-26

Publications (1)

Publication Number Publication Date
WO2017185828A1 true WO2017185828A1 (en) 2017-11-02

Family

ID=60160669

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/070501 WO2017185828A1 (en) 2016-04-26 2017-01-06 Fingerprint positioning method and apparatus

Country Status (2)

Country Link
CN (1) CN107318084B (en)
WO (1) WO2017185828A1 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109001674A (en) * 2018-05-31 2018-12-14 中国矿业大学 A kind of WiFi finger print information Quick Acquisition and localization method based on continuous videos sequence
CN110320493A (en) * 2018-03-30 2019-10-11 北京百度网讯科技有限公司 Indoor orientation method, device, electronic equipment and computer storage medium
CN111464945A (en) * 2020-04-07 2020-07-28 广州起妙科技有限公司 Positioning method and system of terminal equipment
CN111654843A (en) * 2019-03-04 2020-09-11 深圳光启空间技术有限公司 Method and system for automatically updating fingerprint database and wifi positioning method and system
CN111726860A (en) * 2020-06-09 2020-09-29 北京无限向溯科技有限公司 Positioning method, device, equipment and storage medium based on POI space distance
CN112383873A (en) * 2020-11-26 2021-02-19 上海五航航空技术有限公司 Indoor positioning system and positioning method thereof
CN112415472A (en) * 2020-11-20 2021-02-26 Oppo(重庆)智能科技有限公司 Indoor positioning method and device, electronic equipment and storage medium
CN112714493A (en) * 2020-12-29 2021-04-27 北京工业大学 Object position positioning method and positioning system
CN112860718A (en) * 2021-02-03 2021-05-28 腾讯科技(深圳)有限公司 Subway station fingerprint database updating method and device, computer equipment and storage medium
CN113203984A (en) * 2021-04-25 2021-08-03 华中科技大学 Multi-user-end online cooperative positioning system
CN113613167A (en) * 2021-08-05 2021-11-05 广东工业大学 Indoor positioning method and device based on transfer learning
CN113852911A (en) * 2021-09-26 2021-12-28 桂林电子科技大学 Fingerprint library and PDR calculation-based fusion positioning method and fingerprint library updating method
CN114423076A (en) * 2021-12-27 2022-04-29 深圳云天励飞技术股份有限公司 Fingerprint data generation method and device, electronic equipment and storage medium
CN114495306A (en) * 2022-01-12 2022-05-13 湖北美和易思教育科技有限公司 Classroom attendance method and system based on distance measurement
CN116233747A (en) * 2023-03-09 2023-06-06 江苏亨鑫科技有限公司 BLE positioning method and device based on transfer learning and fingerprint library updating

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108680940B (en) * 2018-05-17 2020-08-28 中国科学院微电子研究所 Auxiliary positioning method and device for automatic driving vehicle
CN108834053B (en) * 2018-06-20 2021-03-12 北京邮电大学 Positioning method, device and equipment
CN108802678A (en) * 2018-07-23 2018-11-13 深圳市欧辰技术有限公司 A kind of method and apparatus of equipment positioning
CN112823289A (en) * 2018-10-12 2021-05-18 因温特奥股份公司 System and method for location determination in a building
CN111460088A (en) * 2019-01-22 2020-07-28 阿里巴巴集团控股有限公司 Similar text retrieval method, device and system
CN110490268A (en) * 2019-08-26 2019-11-22 山东浪潮人工智能研究院有限公司 A kind of feature matching method of the improvement nearest neighbor distance ratio based on cosine similarity
CN110515036A (en) * 2019-09-02 2019-11-29 上海图聚智能科技股份有限公司 Localization method, device, electronic equipment and storage medium
CN112230243B (en) * 2020-10-28 2022-04-08 西南科技大学 Indoor map construction method for mobile robot
CN113259837B (en) * 2021-04-29 2023-02-10 西安电子科技大学 Indoor positioning method based on angle estimation and fingerprint positioning algorithm
CN113723234B (en) * 2021-08-17 2023-07-07 中铁第四勘察设计院集团有限公司 Fingerprint passive perception positioning method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012139250A1 (en) * 2011-04-13 2012-10-18 Telefonaktiebolaget L M Ericsson (Publ) Positioning in a cellular communication network
CN103476115A (en) * 2013-09-22 2013-12-25 中国地质大学(武汉) Method for WiFi fingerprint positioning based on AP set similarity
CN103596266A (en) * 2013-11-26 2014-02-19 无锡市中安捷联科技有限公司 Method, device and system for detecting and locating human body
CN103596267A (en) * 2013-11-29 2014-02-19 哈尔滨工业大学 Fingerprint map matching method based on Euclidean distances
CN105224961A (en) * 2015-11-04 2016-01-06 中国电子科技集团公司第四十一研究所 A kind of diffuse reflectance infrared spectroscopy of high resolution extracts and matching process

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268483B (en) * 2013-05-31 2017-08-04 沈阳工业大学 Palm grain identification method under open environment non-contact capture
CN103533650A (en) * 2013-10-28 2014-01-22 哈尔滨工业大学 Cosine-similarity-based indoor positioning method capable of improving positioning precision
CN103634902B (en) * 2013-11-06 2017-02-08 上海交通大学 Novel indoor positioning method based on fingerprint cluster
WO2015099738A1 (en) * 2013-12-26 2015-07-02 Intel Corporation Method and apparatus for cross device automatic calibration
CN103796305B (en) * 2014-02-11 2017-05-24 上海交通大学 Indoor positioning method based on Wi-Fi position fingerprint

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012139250A1 (en) * 2011-04-13 2012-10-18 Telefonaktiebolaget L M Ericsson (Publ) Positioning in a cellular communication network
CN103476115A (en) * 2013-09-22 2013-12-25 中国地质大学(武汉) Method for WiFi fingerprint positioning based on AP set similarity
CN103596266A (en) * 2013-11-26 2014-02-19 无锡市中安捷联科技有限公司 Method, device and system for detecting and locating human body
CN103596267A (en) * 2013-11-29 2014-02-19 哈尔滨工业大学 Fingerprint map matching method based on Euclidean distances
CN105224961A (en) * 2015-11-04 2016-01-06 中国电子科技集团公司第四十一研究所 A kind of diffuse reflectance infrared spectroscopy of high resolution extracts and matching process

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110320493A (en) * 2018-03-30 2019-10-11 北京百度网讯科技有限公司 Indoor orientation method, device, electronic equipment and computer storage medium
CN110320493B (en) * 2018-03-30 2023-11-14 北京百度网讯科技有限公司 Indoor positioning method, device, electronic equipment and computer storage medium
CN109001674A (en) * 2018-05-31 2018-12-14 中国矿业大学 A kind of WiFi finger print information Quick Acquisition and localization method based on continuous videos sequence
CN109001674B (en) * 2018-05-31 2022-09-02 中国矿业大学 WiFi fingerprint information rapid acquisition and positioning method based on continuous video sequence
CN111654843A (en) * 2019-03-04 2020-09-11 深圳光启空间技术有限公司 Method and system for automatically updating fingerprint database and wifi positioning method and system
CN111654843B (en) * 2019-03-04 2024-04-30 深圳光启空间技术有限公司 Method and system for automatically updating fingerprint database, wifi positioning method and system
CN111464945A (en) * 2020-04-07 2020-07-28 广州起妙科技有限公司 Positioning method and system of terminal equipment
CN111726860A (en) * 2020-06-09 2020-09-29 北京无限向溯科技有限公司 Positioning method, device, equipment and storage medium based on POI space distance
CN112415472A (en) * 2020-11-20 2021-02-26 Oppo(重庆)智能科技有限公司 Indoor positioning method and device, electronic equipment and storage medium
CN112383873A (en) * 2020-11-26 2021-02-19 上海五航航空技术有限公司 Indoor positioning system and positioning method thereof
CN112714493A (en) * 2020-12-29 2021-04-27 北京工业大学 Object position positioning method and positioning system
CN112714493B (en) * 2020-12-29 2023-03-24 北京工业大学 Object position positioning method and positioning system
CN112860718A (en) * 2021-02-03 2021-05-28 腾讯科技(深圳)有限公司 Subway station fingerprint database updating method and device, computer equipment and storage medium
CN112860718B (en) * 2021-02-03 2022-07-08 腾讯科技(深圳)有限公司 Subway station fingerprint database updating method and device, computer equipment and storage medium
CN113203984A (en) * 2021-04-25 2021-08-03 华中科技大学 Multi-user-end online cooperative positioning system
CN113613167A (en) * 2021-08-05 2021-11-05 广东工业大学 Indoor positioning method and device based on transfer learning
CN113613167B (en) * 2021-08-05 2022-07-12 广东工业大学 Indoor positioning method and device based on transfer learning
CN113852911A (en) * 2021-09-26 2021-12-28 桂林电子科技大学 Fingerprint library and PDR calculation-based fusion positioning method and fingerprint library updating method
CN113852911B (en) * 2021-09-26 2024-05-07 桂林电子科技大学 Fusion positioning method based on fingerprint library and PDR calculation and fingerprint library updating method
CN114423076A (en) * 2021-12-27 2022-04-29 深圳云天励飞技术股份有限公司 Fingerprint data generation method and device, electronic equipment and storage medium
CN114423076B (en) * 2021-12-27 2024-03-22 深圳云天励飞技术股份有限公司 Fingerprint data generation method and device, electronic equipment and storage medium
CN114495306B (en) * 2022-01-12 2024-01-26 武汉美和易思数字科技有限公司 Classroom sign-in method and system based on distance measurement
CN114495306A (en) * 2022-01-12 2022-05-13 湖北美和易思教育科技有限公司 Classroom attendance method and system based on distance measurement
CN116233747B (en) * 2023-03-09 2023-12-22 江苏亨鑫科技有限公司 BLE positioning method and device based on transfer learning and fingerprint library updating
CN116233747A (en) * 2023-03-09 2023-06-06 江苏亨鑫科技有限公司 BLE positioning method and device based on transfer learning and fingerprint library updating

Also Published As

Publication number Publication date
CN107318084A (en) 2017-11-03
CN107318084B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
WO2017185828A1 (en) Fingerprint positioning method and apparatus
WO2019062734A1 (en) Indoor positioning method and device based on wi-fi hot spots
Zou et al. Standardizing location fingerprints across heterogeneous mobile devices for indoor localization
Tarrio et al. A new positioning technique for RSS-based localization based on a weighted least squares estimator
WO2013155919A1 (en) Positioning method and system
CN109490826B (en) Ranging and position positioning method based on radio wave field intensity RSSI
CN108646213B (en) Direct wave AOA (automatic optical inspection) judgment method in indoor multipath environment
CN107484123B (en) WiFi indoor positioning method based on integrated HWKNN
Gholoobi et al. RSS based localization using a new WKNN approach
WO2022214002A1 (en) Indoor positioning method and indoor positioning apparatus
Kanaris et al. Improving RSS fingerprint-based localization using directional antennas
Rahman et al. Lochunt: Angle of arrival based location estimation in harsh multipath environments
CN115150744A (en) Indoor signal interference source positioning method for large conference venue
Chan et al. Orientation-based wi-fi positioning on the google nexus one
Fang et al. Compensating for orientation mismatch in robust Wi-Fi localization using histogram equalization
CN105704676B (en) The method for improving fingerprint indoor position accuracy using signal time correlation
CN111770528A (en) Sight distance and non-sight distance identification method and device based on channel parameter extraction method
US11864056B2 (en) Developing a fingerprint map for determining an indoor location of a wireless device
Xu et al. Variance-based fingerprint distance adjustment algorithm for indoor localization
CN111770527A (en) Visible and invisible channel identification method and device based on two-dimensional features
CN107318159A (en) A kind of indoor fingerprint positioning method
Sretenović et al. Experimental analysis of weight-compensated weighted centroid localization algorithm based on RSSI
Abed et al. An adaptive K-NN based on multiple services set identifiers for indoor positioning system with an ensemble approach
Yu et al. An indoor localization of WiFi based on branch-bound algorithm
Chen et al. An efficient indoor location system in WLAN based on database partition and Euclidean distance-weighted Pearson correlation coefficient

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17788491

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17788491

Country of ref document: EP

Kind code of ref document: A1