A positioning method and related device

By establishing a target model and signal map, and using the probability distribution of signal strength to determine indoor positioning, the problem of low positioning accuracy in the existing technology is solved, and higher positioning accuracy and coverage are achieved.

CN115484547BActive Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110604203.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2024-09-24
Estimated Expiration
2041-05-31

AI Technical Summary

Technical Problem

Existing indoor positioning systems rely on the quality of the original signal fingerprint, resulting in poor positioning accuracy and the inability to effectively penetrate buildings, making it impossible to achieve accurate positioning indoors.

Method used

By establishing a target model, based on the signal strength and propagation trend in the signal fingerprint database, the residuals between signal strengths are calculated, and the residuals are used to construct a signal map to determine the probability distribution of signal strengths in each sub-area, and finally determine the location to be located. The location of the device is independent of the quality of the original data and improves positioning accuracy.

Benefits of technology

It effectively improves the accuracy of indoor positioning, reduces the impact of data noise, expands the coverage of positioning services, and enhances device compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115484547B
    Figure CN115484547B
Patent Text Reader

Abstract

The present application discloses a positioning method, which is applied to a server. The positioning method includes: establishing a target model based on a signal fingerprint library, the signal fingerprint library includes multiple groups of signal fingerprints, each group of signal fingerprints includes position coordinates and signal strength; determining the residuals between the signal strengths according to the multiple groups of signal fingerprints and the target model; determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints through a first expression to obtain a first matrix, and the parameters in the first expression are determined based on the residuals; determining the probability distribution of the residuals in each sub-area of ​​the area to be positioned according to the first matrix and the residuals; generating a signal map based on the probability distribution and the target model; determining the position of the device to be positioned according to the target signal strength and the signal map, the target signal strength being the signal strength of the signal acquired by the device to be positioned in the area to be positioned. The positioning method can break away from the dependence on the quality of the original collected signal fingerprints and improve the accuracy of positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of positioning and navigation technology, and in particular to a positioning method and related devices. Background Art

[0002] At present, satellite-based outdoor positioning systems, such as the Beidou system and the Global Positioning System (GPS), can cover most outdoor positioning needs. However, since satellite signals cannot penetrate the exterior walls of buildings, outdoor positioning systems cannot effectively achieve positioning indoors.

[0003] Existing indoor positioning systems mainly rely on wireless access points (APs) deployed indoors, such as WIFI devices or Bluetooth Low Energy (BLE) devices. The process of achieving indoor positioning based on the indoor positioning system is as follows: first, a large number of wireless signals are pre-collected at different locations indoors to form a signal fingerprint library including multiple groups of signal fingerprints. Each group of signal fingerprints in the signal fingerprint library includes the location where the wireless signal is collected and the signal strength of the wireless signal; then, the signal fingerprint reported by the user is obtained, and the signal fingerprint reported by the user is compared with the signal fingerprint in the signal fingerprint library one by one, so as to achieve indoor positioning.

[0004] However, since the pre-collected signal fingerprints are limited, and the signal collection capabilities of the device that collects the signal fingerprints in advance and the device that collects the signal fingerprints in actual application may also be different, achieving positioning by matching signal fingerprints will result in poor positioning accuracy. Summary of the invention

[0005] The present application provides a positioning method that is able to break away from the reliance on the quality of originally collected signal fingerprints and improve positioning accuracy.

[0006] The first aspect of the present application provides a positioning method, which is applied to a server. The positioning method includes: the server establishes a target model based on a signal fingerprint library. The signal fingerprint library includes multiple groups of signal fingerprints collected on site, and each group of signal fingerprints includes location coordinates and signal strength. The target model is used to represent the relationship between the location coordinates and the signal strength, that is, the target model can roughly describe the trend of wireless signal propagation. Among them, the signal strength in the signal fingerprint can be represented by a received signal strength indication (Received Signal Strength Index, RSSI), fine time measurement (finetime measurement, FTM) or channel state information (Channel state information, CSI), and the present application does not limit the specific representation method of the signal strength.

[0007] The server determines the residual between the signal strengths according to the multiple groups of signal fingerprints and the target model, wherein the residual represents the difference between the signal strength in the original signal fingerprint and the signal strength predicted based on the target model.

[0008] The server determines the similarity between every two groups of signal fingerprints in the plurality of groups of signal fingerprints through a first expression to obtain a first matrix, wherein the parameters in the first expression are determined based on the residual, and the first expression is used to express the correlation between the similarity of the signal fingerprints in the signal space and the similarity of the signal fingerprints in the physical space. The similarity is obtained based on the position coordinates in the signal fingerprint.

[0009] Then, the server may divide the area to be positioned into a plurality of sub-areas, and determine the probability distribution of the residual in each sub-area of ​​the area to be positioned according to the first matrix and the residual. The area to be positioned is an area where positioning needs to be provided, and the area to be positioned is within the coverage range of the wireless signal transmitted by the wireless access point.

[0010] Secondly, the server generates a signal map based on the probability distribution and the target model, where the signal map is used to indicate the probability distribution of signal strength in each sub-area.

[0011] Finally, the server determines the position of the device to be located according to the target signal strength and the signal map, wherein the target signal strength is the signal strength of the signal acquired by the device to be located in the area to be located.

[0012] In this solution, the residual is obtained through the signal fingerprint library and the wireless signal transmission path loss model, and the correlation of the signal fingerprint in the region is extracted based on the residual. The probability distribution of the signal strength in each region is determined by the correlation of the signal fingerprint in the region, and finally the location of the signal fingerprint to be located is determined based on the probability distribution. Since this solution mines the correlation of the signal fingerprint in the region from the original data and establishes a probability distribution model based on the correlation, it abstractly expresses the law of the intrinsic propagation of the signal, thus breaking away from the dependence on the quality of the original data and effectively improving the accuracy of positioning.

[0013] In a possible implementation, the server determines the location of the device to be located based on the target signal strength and the signal map, including: the server determines the probability of the target signal strength appearing in each sub-area based on the signal map. For example, in the case where the signal map indicates the Gaussian distribution of the signal strength in each sub-area, the server can determine the probability of the target signal strength appearing in each sub-area by querying a standard normal distribution table or integrating a probability density function. After determining the probability of the target signal strength appearing in each sub-area, the server determines the sub-area with the highest probability of the target signal strength appearing as the location of the device to be located.

[0014] In a possible implementation, the server may obtain multiple signal strengths reported by the device to be located, and determine the probability of each signal strength appearing in each sub-area based on the signal map, and finally comprehensively determine the position of the device to be located.

[0015] Specifically, each group of signal fingerprints includes signal strengths of multiple signals, the signal map includes multiple sub-signal maps, and the multiple sub-signal maps are respectively used to indicate the probability distribution of signal strengths of different signals in each sub-area, and the target signal strength includes signal strengths of multiple signals.

[0016] The server determines the probability of the target signal strength appearing in each sub-area according to the signal map, including: the server first determines the sub-signal map corresponding to the signal strength of each signal in the target signal strength. Then, the server determines the first probability of the signal strength of the multiple signals appearing in each sub-area according to the sub-signal map corresponding to the signal strength of each signal. That is, the server determines the probability of the signal strength of each signal from different wireless access points appearing in each sub-area.

[0017] Based on the first probability, the server determines a second probability that the multiple signals appear simultaneously in each sub-area, where the second probability is the probability that the target signal strength appears in each sub-area. Finally, the server determines the sub-area with the highest second probability as the location of the device to be located.

[0018] In this solution, by jointly determining the position of the device to be located based on multiple signal maps, the impact of data noise can be reduced and the accuracy of positioning can be improved.

[0019] In a possible implementation, the method also includes: the server determines the similarity between every two groups of signal fingerprints in the multiple groups of signal fingerprints according to a second expression to obtain a second matrix, and the parameters in the second expression are pre-set hyperparameters; the server generates a likelihood function based on the residual and the second matrix; the server updates the parameters in the second expression by optimizing the likelihood function to obtain the first expression.

[0020] In this scheme, by optimizing the likelihood function composed of residuals, the regional correlation obtained based on residual learning can be continuously optimized, the accuracy of describing the intrinsic propagation law of the signal can be improved, and finally the positioning accuracy can be improved.

[0021] In a possible implementation, the first expression is a squared exponential covariance kernel function.

[0022] In a possible implementation, the server determines the residual between the signal strengths based on the multiple groups of signal fingerprints and the target model, including: the server determines the predicted signal strength corresponding to each group of signal fingerprints in the multiple groups of signal fingerprints based on the position coordinates in the multiple groups of signal fingerprints and the target model; the server determines the residual based on the signal strength in the multiple groups of signal fingerprints and the predicted signal strength.

[0023] In simple terms, the server can substitute the position coordinates in each set of signal fingerprints into the target model to obtain the predicted signal strength corresponding to each set of signal fingerprints. Then, the server subtracts the signal strength in each set of signal fingerprints from the corresponding predicted signal strength in turn to obtain the residual corresponding to each set of signal fingerprints.

[0024] In one possible implementation, the server determines the probability distribution of the residual in each sub-area of ​​the area to be located based on the first matrix and the residual, including: the server obtains the position coordinates of each sub-area of ​​the area to be located; the server determines the mean of the residual in each sub-area based on the position coordinates of each sub-area, the first matrix and the residual; the server determines the variance of the residual in each sub-area based on the position coordinates of each sub-area and the first matrix; the server determines the Gaussian distribution of the residual in each sub-area of ​​the area to be located based on the mean and the variance.

[0025] In a possible implementation, the target model includes a free space propagation model, a logarithmic distance path loss model, or a logarithmic-normal distribution model.

[0026] The second aspect of the present application provides a positioning method, which is applied to a terminal. The positioning method includes: obtaining a signal map; determining the position of the device to be positioned according to the target signal strength and the signal map, wherein the target signal strength is the signal strength of the signal acquired by the device to be positioned in the area to be positioned; wherein the signal map is used to indicate the probability distribution of the signal strength in each sub-area of ​​the area to be positioned, and the area to be positioned includes multiple sub-areas, and the signal map is generated based on the probability distribution and the target model, and the probability distribution is the probability distribution of the residual determined based on the first matrix and the residual in each sub-area of ​​the area to be positioned, and the residual is the residual between the signal strength determined according to multiple groups of signal fingerprints and the target model, and the first matrix is ​​obtained by determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints through a first expression, and the parameters in the first expression are determined based on the residual, and the similarity is obtained based on the position coordinates in the signal fingerprint. The target model is established based on a signal fingerprint library, and the signal fingerprint library includes multiple groups of signal fingerprints, each group of signal fingerprints includes position coordinates and signal strength, and the target model is used to represent the relationship between the position coordinates and the signal strength.

[0027] In one possible implementation, determining the position of the device to be located based on the target signal strength and the signal map includes: determining, based on the signal map, the probability of the target signal strength appearing in each of the sub-areas; and determining the sub-area with the highest probability of the target signal strength appearing as the position of the device to be located.

[0028] In a possible implementation, each group of signal fingerprints includes signal strengths of multiple signals, the signal map includes multiple sub-signal maps, the multiple sub-signal maps are respectively used to indicate the probability distribution of signal strengths of different signals in each sub-area, and the target signal strength includes the signal strengths of multiple signals; determining the probability of the target signal strength appearing in each sub-area according to the signal map includes: determining the sub-signal map corresponding to the signal strength of each signal in the target signal strength; determining the first probability of the signal strength of the multiple signals appearing in each sub-area according to the sub-signal map corresponding to the signal strength of each signal; determining the second probability of the multiple signals appearing simultaneously in each sub-area based on the first probability, the second probability being the probability of the target signal strength appearing in each sub-area; determining the sub-area with the highest probability of the target signal strength appearing as the location of the device to be located includes: determining the sub-area with the highest second probability as the location of the device to be located.

[0029] In one possible implementation, the first expression is obtained by optimizing a likelihood function and updating parameters in a second expression, the likelihood function is generated based on the residual and the second matrix, the second matrix is ​​obtained by determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints according to the second expression, and the parameters in the second expression are pre-set hyperparameters.

[0030] In a possible implementation, the first expression is a squared exponential covariance kernel function.

[0031] In a possible implementation, the residual is determined based on the signal strengths in the multiple groups of signal fingerprints and the predicted signal strengths, and the predicted signal strengths are determined based on the position coordinates in the multiple groups of signal fingerprints and the target model.

[0032] In one possible implementation, the probability distribution is a Gaussian distribution of the residual in each sub-region of the area to be located, and the Gaussian distribution is determined based on the mean of the residual in each sub-region and the variance of the residual in each sub-region, the mean is determined based on the position coordinates of each sub-region, the first matrix and the residual, and the variance is determined based on the position coordinates of each sub-region and the first matrix.

[0033] In a possible implementation, the target model includes a free space propagation model, a logarithmic distance path loss model, or a logarithmic-normal distribution model.

[0034] The third aspect of the present application provides a server, including an acquisition unit and a processing unit. The processing unit is used to: establish a target model based on a signal fingerprint library, the signal fingerprint library includes multiple groups of signal fingerprints, each group of signal fingerprints includes position coordinates and signal strength, and the target model is used to represent the relationship between the position coordinates and the signal strength; determine the residual between the signal strengths according to the multiple groups of signal fingerprints and the target model; determine the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints through a first expression to obtain a first matrix, the parameters in the first expression are determined based on the residuals, and the similarity is obtained based on the position coordinates in the signal fingerprint; determine the probability distribution of the residual in each sub-area of ​​the area to be located according to the first matrix and the residual, and the area to be located includes multiple sub-areas; generate a signal map based on the probability distribution and the target model, and the signal map is used to indicate the probability distribution of the signal strength in each sub-area; determine the position of the device to be located according to the target signal strength and the signal map, and the target signal strength is the signal strength of the signal acquired by the device to be located in the area to be located.

[0035] In a possible implementation, the processing unit is further used to: determine, according to the signal map, a probability of the target signal strength appearing in each sub-area; and determine the sub-area with the highest probability of the target signal strength appearing as the location of the device to be located.

[0036] In one possible implementation, each group of signal fingerprints includes signal strengths of multiple signals, the signal map includes multiple sub-signal maps, the multiple sub-signal maps are respectively used to indicate the probability distribution of signal strengths of different signals in each sub-area, and the target signal strength includes the signal strengths of multiple signals; the processing unit is also used to: determine the sub-signal map corresponding to the signal strength of each signal in the target signal strength; determine, according to the sub-signal map corresponding to the signal strength of each signal, a first probability that the signal strength of the multiple signals appears in each sub-area; based on the first probability, determine a second probability that the multiple signals appear simultaneously in each sub-area, the second probability being the probability that the target signal strength appears in each sub-area; and determine the sub-area with the highest second probability as the location of the device to be located.

[0037] In one possible implementation, the processing unit is also used to: determine the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints according to a second expression to obtain a second matrix, wherein the parameters in the second expression are pre-set hyperparameters; generate a likelihood function based on the residual and the second matrix; and update the parameters in the second expression by optimizing the likelihood function to obtain the first expression.

[0038] In a possible implementation, the first expression is a squared exponential covariance kernel function.

[0039] In a possible implementation, the processing unit is also used to: determine the predicted signal strength corresponding to each group of signal fingerprints in the multiple groups of signal fingerprints based on the position coordinates in the multiple groups of signal fingerprints and the target model; and determine the residual based on the signal strength in the multiple groups of signal fingerprints and the predicted signal strength.

[0040] In one possible implementation, the acquisition unit is used to acquire the position coordinates of each sub-region of the area to be located; the processing unit is also used to: determine the mean of the residual in each sub-region based on the position coordinates of each sub-region, the first matrix and the residual; determine the variance of the residual in each sub-region based on the position coordinates of each sub-region and the first matrix; and determine the Gaussian distribution of the residual in each sub-region of the area to be located based on the mean and the variance.

[0041] In a possible implementation, the target model includes a free space propagation model, a logarithmic distance path loss model, or a logarithmic-normal distribution model.

[0042] The fourth aspect of the present application provides a terminal, including: an acquisition unit and a processing unit. The acquisition unit is used to acquire a signal map; the processing unit is used to determine the position of the device to be located according to the target signal strength and the signal map, the target signal strength is the signal strength of the signal acquired by the device to be located in the area to be located; wherein the signal map is used to indicate the probability distribution of the signal strength in each sub-area of ​​the area to be located, the area to be located includes multiple sub-areas, the signal map is generated based on the probability distribution and the target model, the probability distribution is the probability distribution of the residual determined based on the first matrix and the residual in each sub-area of ​​the area to be located, the residual is the residual between the signal strength determined according to multiple groups of signal fingerprints and the target model, the first matrix is ​​obtained by determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints through a first expression, the parameters in the first expression are determined based on the residual, the similarity is obtained based on the position coordinates in the signal fingerprint, the target model is established based on a signal fingerprint library, the signal fingerprint library includes multiple groups of signal fingerprints, each group of signal fingerprints includes position coordinates and signal strength, and the target model is used to represent the relationship between the position coordinates and the signal strength.

[0043] In a possible implementation, the processing unit is further used to: determine, according to the signal map, a probability of the target signal strength appearing in each sub-area; and determine the sub-area with the highest probability of the target signal strength appearing as the location of the device to be located.

[0044] In a possible implementation, each group of signal fingerprints includes signal strengths of multiple signals, the signal map includes multiple sub-signal maps, the multiple sub-signal maps are respectively used to indicate probability distribution of signal strengths of different signals in each sub-area, and the target signal strength includes signal strengths of multiple signals;

[0045] The processing unit is also used to: determine the sub-signal map corresponding to the signal strength of each signal in the target signal strength; determine the first probability that the signal strength of the multiple signals appears in each sub-area according to the sub-signal map corresponding to the signal strength of each signal; based on the first probability, determine the second probability that the multiple signals appear simultaneously in each sub-area, the second probability being the probability that the target signal strength appears in each sub-area; and determine the sub-area with the highest second probability as the location of the device to be located.

[0046] In one possible implementation, the first expression is obtained by optimizing a likelihood function and updating parameters in a second expression, the likelihood function is generated based on the residual and the second matrix, the second matrix is ​​obtained by determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints according to the second expression, and the parameters in the second expression are pre-set hyperparameters.

[0047] In a possible implementation, the first expression is a squared exponential covariance kernel function.

[0048] In a possible implementation, the residual is determined based on the signal strengths in the multiple groups of signal fingerprints and the predicted signal strengths, and the predicted signal strengths are determined based on the position coordinates in the multiple groups of signal fingerprints and the target model.

[0049] In one possible implementation, the probability distribution is a Gaussian distribution of the residual in each sub-region of the area to be located, and the Gaussian distribution is determined based on the mean of the residual in each sub-region and the variance of the residual in each sub-region, the mean is determined based on the position coordinates of each sub-region, the first matrix and the residual, and the variance is determined based on the position coordinates of each sub-region and the first matrix.

[0050] In a possible implementation, the target model includes a free space propagation model, a logarithmic distance path loss model, or a logarithmic-normal distribution model.

[0051] In a fifth aspect, the present application provides a server, which may include a processor, the processor and a memory are coupled, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the method described in the first aspect is implemented. For the steps in each possible implementation method of the processor executing the first aspect, the details can be referred to the first aspect, and will not be repeated here.

[0052] In a sixth aspect, the present application provides a terminal, which may include a processor, the processor and a memory are coupled, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the method described in the second aspect is implemented. For the steps in each possible implementation method of the processor executing the second aspect, the details can be referred to the second aspect, and will not be repeated here.

[0053] In a seventh aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method described in the first or second aspect above.

[0054] In an eighth aspect, the present application provides a circuit system, which includes a processing circuit, and the processing circuit is configured to execute the method described in the first aspect or the second aspect.

[0055] In a ninth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first or second aspect above.

[0056] The tenth aspect of the present application provides a chip system, which includes a processor for supporting a server or a threshold value acquisition device to implement the functions involved in the first or second aspect above, for example, sending or processing the data and / or information involved in the above method. In one possible design, the chip system also includes a memory, which is used to store program instructions and data necessary for the server or communication device. The chip system can be composed of chips, or it can include chips and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;

[0058] Figure 2 A schematic diagram of the structure of a terminal 101 provided in an embodiment of the present application;

[0059] Figure 3A flowchart of a positioning method 300 provided in an embodiment of the present application;

[0060] Figure 4 A schematic diagram of a signal fingerprint provided in an embodiment of the present application;

[0061] Figure 5 A schematic diagram of the comparison between the target model provided in the embodiment of the present application and the original signal fingerprint;

[0062] Figure 6 A schematic diagram of a residual between original data and a target model provided in an embodiment of the present application;

[0063] Figure 7 A schematic diagram of a signal map provided in an embodiment of the present application;

[0064] Figure 8 A comparative schematic diagram of a signal map provided in an embodiment of the present application;

[0065] Fig. 9 A comparative schematic diagram of positioning based on different numbers of signal maps provided in an embodiment of the present application;

[0066] Fig.10 A schematic diagram of improving positioning effect provided in an embodiment of the present application;

[0067] Fig.11 A flowchart of a positioning method 1100 provided in an embodiment of the present application;

[0068] Fig.12 A schematic diagram of the structure of a server provided in an embodiment of the present application;

[0069] Fig.13 A schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0070] Fig.14 A schematic diagram of the structure of an execution device provided in an embodiment of the present application;

[0071] Fig.15 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0073] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.

[0074] To facilitate understanding, the technical terms involved in the embodiments of the present application are first introduced below.

[0075] Multipath effect: After electromagnetic waves propagate through different paths, the component fields arrive at the receiving end at different times, and the superposition of their phases causes interference, which distorts the original signal or generates errors. For example, if electromagnetic waves propagate along two different paths, and the lengths of the two paths differ by half a wavelength, then the two signals will cancel each other out when they arrive at the destination (i.e., the peaks and troughs of the electromagnetic waves coincide).

[0076] Received Signal Strength Index (RSSI): an indication of the strength of the signal received by the terminal, used to indicate the signal strength of the signal received by the terminal.

[0077] Wireless access point (AP): An access point for mobile devices to access a wired network through a wireless network. It is mainly used in broadband homes, inside buildings, and inside campuses, and can cover tens to hundreds of meters. Common wireless access points include routers with WI-FI functions, BLE devices, and other devices.

[0078] Gaussian distribution: also known as normal distribution. If the random variable X follows a mean of μ and a variance of σ 2 The normal distribution is recorded as N(μ, σ 2 ). For the probability distribution function of Gaussian distribution, the mean μ of Gaussian distribution determines the location of probability distribution, and the variance σ of Gaussian distribution determines the position of probability distribution. 2 Determines the magnitude of the probability distribution.

[0079] Currently, satellite-based positioning systems, such as GPS and BeiDou systems, can cover most outdoor positioning needs. However, since satellite signals cannot penetrate building walls, indoor positioning cannot directly utilize satellite signals such as GPS and BeiDou systems, so there is currently no universally applicable indoor positioning system.

[0080] Thanks to the abundance of wireless signals in public places, such as WiFi signals, BLE signals and other wireless signals, signal fingerprint positioning systems based on wireless signals are widely used to build low-cost indoor positioning services. Signal fingerprint positioning systems are currently the mainstream low-cost indoor positioning systems that do not rely on additional hardware infrastructure.

[0081] Generally speaking, setting up a signal fingerprint positioning system requires the deployment of a large number of WiFi devices, BLE devices and other APs in advance in the scene to be positioned. The working process of the signal fingerprint positioning system mainly includes the following two key steps.

[0082] The first step is the on-site offline survey phase. During the survey phase, the operation and maintenance personnel need to collect a large number of wireless signals at various locations in the building. Each group of collected wireless signals is called a signal fingerprint, and each signal fingerprint has a corresponding location calibration. Based on the large number of collected signal fingerprints, a huge signal fingerprint library can be built to provide positioning services.

[0083] The second step is the online positioning stage. In the positioning stage, the user reports the newly collected signal fingerprint, which is compared one by one with the fingerprints in the signal fingerprint library on the server to determine the user's location.

[0084] Under the above technical framework, the accuracy of the signal fingerprint positioning system is highly dependent on the quality of the original signal fingerprint. The accuracy of the signal fingerprint positioning system can only be better guaranteed when the data volume of the original signal fingerprint is huge and the collection locations are evenly distributed. However, most of the related technologies adopt the idea of ​​simple template matching, directly storing all the original signal fingerprints in the signal fingerprint library, and comparing the new signal fingerprints with the original fingerprints one by one to achieve positioning. In other words, the related technology completely relies on the collected original signal fingerprints, and there is no abstraction and modeling processing of the original signal fingerprints. In the case of large-scale commercial use, due to limited costs, the quality of the original signal fingerprint is often difficult to guarantee, which can easily lead to problems such as reduced positioning accuracy, limited coverage of positioning services, and poor device compatibility.

[0085] The applicant has found that although wireless signal propagation in indoor areas is affected by obstruction and multipath effects are obvious, it is difficult to model and describe it with a simple and explicit physical model. However, wireless signal propagation still follows a simple and obvious law: signal fingerprints that are close in geographical space are also highly similar in their representation in signal space. This law followed by wireless signal propagation is referred to as regional correlation in this application.

[0086] Based on the applicant's research findings, the present application fully explores the regional correlation of the signal fingerprint based on the collected signal fingerprint, and establishes a probability distribution model of the signal fingerprint in space based on the regional correlation of the signal fingerprint, thereby realizing positioning based on the probability distribution model. The solution based on the present application can abstractly express the law of the intrinsic propagation of the signal, thereby breaking away from the dependence on the quality of the original signal fingerprint and effectively improving the accuracy of positioning.

[0087] For ease of understanding, the following first introduces the application scenario of the positioning method provided in the embodiment of the present application.

[0088] See also Figure 1 , Figure 1 The following is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, the architecture of the application scenario includes a cloud side and a terminal side, the cloud side includes a server, and the terminal side includes a terminal. A wireless connection is established between the server in the cloud side and the terminal in the terminal side.

[0089] In a possible scenario, the server on the cloud side mines the regional correlation of the signal fingerprint based on the signal fingerprint in the signal fingerprint library, and establishes a probability distribution model of the signal fingerprint in space based on the regional correlation of the signal fingerprint to obtain a signal map for positioning. Then, the server on the cloud side obtains the signal fingerprint reported by the terminal on the end side, locates the signal fingerprint based on the signal map, and then sends the positioning result to the terminal on the end side.

[0090] In another possible scenario, the server on the cloud side generates a signal map for positioning based on the signal fingerprint in the signal fingerprint library, and sends the signal map to the terminal on the end side. The terminal on the end side locates the collected signal fingerprint based on the acquired signal map to obtain the positioning result.

[0091] Exemplarily, the terminal involved in the embodiments of the present application may be, for example, a mobile phone, a tablet computer, a personal computer (PC), a laptop computer, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The terminal may be a device running an Android system, an IOS system, a Windows system, or other systems.

[0092] See also Figure 2 , Figure 2 FIG. 1 is a schematic diagram of the structure of a terminal 101 provided in an embodiment of the present application. Figure 2 As shown, the terminal 101 includes a processor 103, which is coupled to a system bus 105. The processor 103 may be one or more processors, each of which may include one or more processor cores. A display adapter (video adapter) 107, which may drive a display 109, which is coupled to the system bus 105. The system bus 105 is coupled to an input / output (I / O) bus via a bus bridge 111. An I / O interface 115 is coupled to the I / O bus. The I / O interface 115 communicates with a variety of I / O devices, such as an input device 117 (such as a touch screen, etc.), an external memory 121 (for example, a hard disk, a floppy disk, an optical disk or a USB flash drive), a multimedia interface, etc.). A transceiver 123 (which may send and / or receive radio communication signals), a camera 155 (which may capture static and dynamic digital video images), and an external USB port 125. Optionally, the interface connected to the I / O interface 115 may be a USB interface.

[0093] The processor 103 may be any conventional processor, including a reduced instruction set computing (RISC) processor, a complex instruction set computing (CISC) processor, or a combination thereof. Alternatively, the processor may be a dedicated device such as an ASIC.

[0094] The terminal 101 can communicate with the software deployment server 149 through the network interface 129. Exemplarily, the network interface 129 is a hardware network interface, such as a network card. The network 127 can be an external network, such as the Internet, or an internal network, such as Ethernet or a virtual private network (VPN). Optionally, the network 127 can also be a wireless network, such as a WiFi network, a cellular network, etc.

[0095] The hard disk drive interface 131 is coupled to the system bus 105. The hard disk drive interface is connected to the hard disk drive 133. The memory 135 is coupled to the system bus 105. The data running in the memory 135 may include the operating system (OS) 137 of the terminal 101, the application program 143 and the schedule table.

[0096] The operating system includes a shell 139 and a kernel 141. Shell 139 is an interface between the user and the kernel of the operating system. The shell is the outermost layer of the operating system. The shell manages the interaction between the user and the operating system: waiting for user input, interpreting user input to the operating system, and processing various operating system output results.

[0097] The kernel 141 consists of those parts of the operating system that manage memory, files, peripherals, and system resources. The kernel 141 interacts directly with the hardware. The operating system kernel usually runs processes and provides communication between processes, provides CPU time slice management, interrupts, memory management, IO management, etc.

[0098] Exemplarily, when the terminal 101 is a smart phone, the application 143 includes an instant messaging-related program. In one embodiment, when the application 143 needs to be executed, the terminal 101 can download the application 143 from the software deployment server 149 .

[0099] See also Figure 3 , Figure 3 The present invention provides a flow chart of a positioning method 300. The positioning method 300 is applied to a server and includes the following steps 301-306.

[0100] Step 301, establishing a target model based on a signal fingerprint library, wherein the signal fingerprint library includes multiple groups of signal fingerprints, each group of signal fingerprints includes position coordinates and signal strength, and the target model is used to represent the relationship between the position coordinates and the signal strength.

[0101] It is understandable that, although the propagation of wireless signals indoors is affected by obstructions and the multipath effect is obvious, the propagation of wireless signals indoors still roughly follows the basic wireless signal propagation attenuation principle. That is, the farther away from the wireless access point, the smaller the signal strength of the wireless signal received by the terminal. Based on this, this embodiment can establish a wireless signal propagation path loss model based on the signal fingerprints collected in the signal fingerprint library to describe the general trend of wireless signal propagation.

[0102] In this embodiment, a signal fingerprint library may be established on the server, and the signal fingerprint library includes multiple groups of signal fingerprints collected on site. Each group of signal fingerprints in the signal fingerprint library includes position coordinates and signal strength. The position coordinates in the signal fingerprint represent the collection position of the signal fingerprint, and the signal strength in the signal fingerprint represents the signal strength of the signal received at the position where the signal fingerprint is collected.

[0103] Exemplarily, the signal strength in the signal fingerprint can be represented by a received signal strength indication (RSSI), a fine time measurement (FTM), or a channel state information (CSI). The embodiments of the present application do not limit the specific representation method of the signal strength.

[0104] Any set of signal fingerprints in the signal fingerprint library can be represented by (x, y, RSSI). Among them, x represents the coordinate of the signal fingerprint on the x-axis of the two-dimensional space, and y represents the coordinate of the signal fingerprint on the y-axis of the two-dimensional space, that is, x and y together represent the position coordinate of the signal fingerprint; RSSI represents the signal strength of the signal fingerprint. In addition, the signal fingerprint in the signal fingerprint library can also be represented by (p, RSSI), where p represents the position coordinate of the signal fingerprint.

[0105] Based on the signal fingerprint library and the expression of the wireless signal propagation path loss model, the server can establish a target model. The target model is used to represent the relationship between the location coordinates of the terminal and the signal strength of the signal received by the terminal, that is, the target model can roughly describe the trend of wireless signal propagation. Exemplarily, the target model can be, for example, a wireless signal propagation path loss model or a neural network model based on deep learning.

[0106] Optionally, the target model used as the wireless signal propagation path loss model may be a free space propagation model, a logarithmic distance path loss model, a logarithmic-normal distribution model, etc. This embodiment does not specifically limit the target model.

[0107] Exemplarily, taking the target model as a logarithmic distance path loss model, the expression of the target model is shown in the following formula 1.

[0108]

[0109] in, Represents the signal strength obtained by the target model; PL represents the parameter of the target model, PL is a constant; α represents the parameter of the target model, α is a constant; x represents the coordinate of the x-axis in the signal fingerprint; y represents the coordinate of the y-axis in the signal fingerprint; dx represents the coordinate of the x-axis in the signal fingerprint with the highest signal strength in the signal fingerprint library; dy represents the coordinate of the y-axis in the signal fingerprint with the highest signal strength in the signal fingerprint library. Generally, PL can be the baseline energy value, that is, the estimated RSSI value at the location of the wireless access point; α is the path attenuation constant. The position coordinates of the signal fingerprint with the highest signal strength in the signal fingerprint library are used to represent the location of the wireless access point.

[0110] In the process of establishing the target model, PL and α are unknown parameters in the expression of the target model. By substituting x, y and RSSI of each group of signal fingerprints in the signal fingerprint library into the expression, multiple groups of expressions consisting of PL and α can be obtained. By optimizing and solving multiple groups of expressions obtained by nonlinear least squares method, the specific values ​​of PL and α can be obtained, thereby obtaining the expression of the target model with known parameters.

[0111] For example, when the PL value is -40, α is -0.1, and (x-dx) 2 +(y-dy) 2 When >1, the expression of the target model is as shown in the following formula 2.

[0112]

[0113] For example, see Figure 4 and Figure 5 , Figure 4 A schematic diagram of a signal fingerprint provided in an embodiment of the present application;

[0114] Figure 5 This is a schematic diagram of the comparison between the target model and the original signal fingerprint provided in the embodiment of the present application. Figure 4 As shown, Figure 4 (a) and (b) in the figure respectively represent the schematic diagrams of multiple groups of signal fingerprints in the same signal fingerprint library under different observation angles. Figure 4 It can be seen that the closer the location is to the wireless access point (i.e. the center of the figure), the stronger the signal strength is; the farther away from the wireless access point, the weaker the signal strength is. Figure 5 As shown, the target model established based on the original signal fingerprint can roughly describe the trend of wireless signal propagation, that is, the signal strength of the wireless signal decreases monotonically in the direction away from the wireless access point.

[0115] Step 302: Determine the residual between signal strengths according to the multiple groups of signal fingerprints and the target model.

[0116] Since the indoor environment is complex and often has various obstacles, such as walls, pillars, or cabinets, the indoor environment is highly regionalized, and the propagation of wireless signals does not perfectly conform to the basic physical propagation model. However, the target model is a model established based on the propagation of wireless signals in an open space, so the target model cannot handle regional deviations well. Specifically, from the above Figure 5 It can be seen that in some local areas, the target model has a poor fitting effect on the original signal fingerprint, that is, the signal strength obtained by the target model is quite different from the signal strength in the original signal fingerprint. In other words, the data with poor fitting effect of the target model show a certain regionality, that is, the fitting effect of the target model is good in some areas and poor in other areas.

[0117] In this way, by modeling the residual between the original data and the target model instead of modeling the original data, the regionality of the data can be highlighted, thereby realizing the correlation between the similarity of the signal fingerprint in the signal space and the similarity of the signal fingerprint in the physical space extracted from the original data.

[0118] Exemplarily, after obtaining the target model, the server can determine the predicted signal strength corresponding to each group of signal fingerprints in the multiple groups of signal fingerprints according to the position coordinates in the multiple groups of signal fingerprints and the target model. In simple terms, the server can substitute the position coordinates in each group of signal fingerprints into the target model as represented by the above formula 2, so as to obtain the predicted signal strength corresponding to each group of signal fingerprints. Then, the server subtracts the signal strength in each group of signal fingerprints from the corresponding predicted signal strength in turn to obtain the residual corresponding to each group of signal fingerprints. That is, based on the target model, the server can obtain the residual corresponding to each group of signal fingerprints in the signal fingerprint library. The residual represents the difference between the signal strength in the original signal fingerprint and the signal strength predicted based on the target model.

[0119] See also Figure 6 , Figure 6 A schematic diagram of the residual between the original data and the target model provided in an embodiment of the present application. Figure 6 As shown, Figure 6 (a) and (b) in the figure are schematic diagrams of the residuals between multiple groups of signal fingerprints and the target model at different observation angles.

[0120] Step 303, determining the similarity between every two groups of signal fingerprints in the multiple groups of signal fingerprints through a first expression to obtain a first matrix, wherein the parameters in the first expression are determined based on the residual, and the similarity is obtained based on the position coordinates in the signal fingerprint.

[0121] In this embodiment, after determining the residual between the original signal fingerprint data and the target model, the server can obtain a first expression based on the residual, and the first expression is used to express the correlation between the similarity of the signal fingerprint in the signal space and the similarity of the signal fingerprint in the physical space. In simple terms, the similarity of the signal strength of any two sets of signal fingerprints is related to the position coordinates of the two sets of signal fingerprints. The more similar the position coordinates of the two sets of signal fingerprints are, that is, the closer the collection positions of the two sets of signal fingerprints are, the higher the similarity of the two sets of signal fingerprints. Based on the first expression, the similarity of the signal strength of the two sets of signal fingerprints can be determined according to the position coordinates of any two sets of signal fingerprints.

[0122] Since the residual between the original signal fingerprint data and the target model can reflect the regional deviation of the signal strength, the first expression is determined based on the residual, which can well extract the regional correlation of the signal strength. In other words, the first expression is used to characterize the regional correlation of the signal strength, and the parameters in the first expression are determined based on the residual.

[0123] Exemplarily, the process of the server determining the first expression based on the residual is as follows.

[0124] First, the server determines the similarity between every two groups of signal fingerprints in the plurality of groups of signal fingerprints according to a second expression to obtain a second matrix, wherein the parameters in the second expression are pre-set hyperparameters.

[0125] For example, the second expression may be a squared exponential covariance kernel function, and the second expression may be as shown in Formula 3 below.

[0126]

[0127] Among them, k(p i , p j ) represents the similarity between the signal strengths of signal fingerprint i and signal fingerprint j, k(p i , p j ) is larger, the higher the similarity between the signal strengths of signal fingerprint i and signal fingerprint j is; l2 is a pre-set hyperparameter; represents the variance of signal propagation; exp() represents the exponential function with the natural constant e as the base; ||p i -p j || represents the physical space distance between signal fingerprint i and signal fingerprint j, which is determined by the position coordinates in signal fingerprint i and signal fingerprint j; l represents the characteristic length, which is used to characterize how far the regional correlation of the signal will decay; represents the error variance; δ ij In p i =p j In the case of ij In p i ≠p j In this case, the value is 0.

[0128] Specifically, the larger the value of l, the more effective the regional correlation of the signal is in a larger area. That is, the larger the value of l, the slower the signal strength of the wireless signal changes with the increase of distance. When the value of l is large, the signal strength at two locations far away may also be correlated.

[0129] For multiple groups of signal fingerprints, the similarity between each two groups of signal fingerprints is calculated by the second expression to obtain the above-mentioned second matrix, which can also be called a covariance matrix. For example, for N groups of fingerprints, the second matrix obtained based on the second expression can be as follows.

[0130]

[0131] Where K represents the second matrix, k(p1, p1) represents the similarity between the signal strength of signal fingerprint 1 and signal fingerprint 1, and k(p1, p N ) represents the similarity between the signal strengths of signal fingerprint 1 and signal fingerprint N, k(p N , p N ) represents the similarity between the signal fingerprint N and the signal strength of the signal fingerprint N.

[0132] Then, the server generates a likelihood function based on the residual and the second matrix.

[0133] Specifically, after a given location and hyperparameters, the likelihood function of observing the residual at a given location can be shown as Formula 4.

[0134]

[0135] Where logp(E|P,θ) represents the likelihood function of the residual; E represents the residual; P represents the position coordinate; θ represents the hyperparameter l2 ; K represents the second matrix; I represents the characteristic matrix. The larger the logp(E|P, θ), the more θ conforms to the characteristics of the data under the condition of the residual data set (P, E).

[0136] Finally, the server updates the parameters in the second expression by optimizing the likelihood function to obtain the first expression. By optimizing the likelihood function, the best hyperparameters can be learned from the residual data to determine the first expression, that is, the best quantitative expression of regional correlation is determined. Exemplarily, the first expression can be a squared exponential covariance kernel function, that is, the first expression can be as shown in Formula 3 above, but the hyperparameters in the first expression are not pre-set, but are obtained by optimizing the likelihood function.

[0137] Among them, the above-mentioned second matrix is ​​dependent on the original data, but the hyperparameters and the first expression learned based on the second matrix are the inherent abstraction of the original data, breaking away from the simple dependence on the original data.

[0138] Exemplarily, the server may perform the optimization of the likelihood function by calculating partial derivatives of the three hyperparameters in the likelihood function one by one. After the likelihood function is optimized, the values ​​of the three hyperparameters are determined based on the L-BFGS optimization method.

[0139] Step 304: Determine the probability distribution of the residual in each sub-region of the area to be located according to the first matrix and the residual, where the area to be located includes a plurality of sub-regions.

[0140] Since the description of regional correlation is continuous, it is convenient to realize positioning, and the server can discretize the area to be positioned. Specifically, the server can divide the area to be positioned into multiple sub-areas, and determine the probability distribution of the residual of the signal strength in each sub-area. Among them, the area to be positioned is an area where positioning needs to be provided, and the area to be positioned is located within the coverage range of the wireless signal transmitted by the wireless access point. In addition, the area to be positioned may include an area that is not covered by the signal fingerprint in the signal fingerprint library, or an area where the signal fingerprint in the signal fingerprint library is relatively sparse.

[0141] Optionally, the division method of the area to be located may be determined based on the signal resolution. The larger the signal resolution, the stronger the ability of the terminal to identify the signal strength, and the area to be located can be divided into more sub-areas; the smaller the signal resolution, the area to be located can be divided into fewer sub-areas.

[0142] For example, the area to be located may be evenly divided into a plurality of sub-areas. For example, the area to be located may be an area of ​​100m 2 The server will be 100m away from the building 2The area to be located is divided into 100 sub-areas, each of which is 1m 2 The grid area.

[0143] Assuming that the residual of the above-mentioned signal strength conforms to the probability distribution in each sub-area of ​​the area to be positioned, the server can calculate the probability distribution of the residual of the signal strength in any sub-area based on the first matrix representing the regional correlation and the residual of the signal strength. Among them, the probability distribution of the residual of the signal strength in the sub-area refers to the probability law of the value of the residual in the sub-area. Based on the probability distribution of the residual of the signal strength in the sub-area, the probability of the residual of the signal strength in the sub-area taking any value can be determined.

[0144] Exemplarily, assuming that the probability distribution of the residual of signal strength in the sub-area conforms to the Gaussian distribution, the server can calculate the mean and variance of the residual in each sub-area based on the first matrix and the residual of signal strength to determine the Gaussian distribution of the residual of signal strength in the sub-area.

[0145] Specifically, the server may obtain the position coordinates of each sub-area in the area to be located. The position coordinates of each sub-area in the area to be located may be the position coordinates of the center of the sub-area, or the position coordinates of the edge of the sub-area. Each sub-area in the area to be located has a unique corresponding position coordinate.

[0146] Then, the server determines the mean value of the residual in each sub-region based on the position coordinates of each sub-region, the first matrix and the residual. For example, the server may determine the mean value of the residual in each sub-region based on the following formula 5.

[0147] mu=K(P * , P)K(P, P) -1 E Formula 5

[0148] Where mu is a matrix, and each element in the mu matrix represents the mean of the residual in each sub-region; P * is a matrix, P * Each element in the matrix represents the position coordinates of each sub-region; P is a matrix representing the position coordinates of the signal fingerprint in the signal fingerprint library; K(P * , P) indicates based on P * and P to obtain the covariance matrix; K(P, P) -1 represents the inverse matrix of the first matrix; E represents the residual between the signal fingerprint in the signal fingerprint library and the signal strength obtained by the target model.

[0149] Secondly, the server determines the variance of the residual in each sub-region based on the position coordinates of each sub-region and the first matrix. For example, the server may determine the variance of the residual in each sub-region based on the following formula 6.

[0150] cov=K(P * , P * )-K(P * , P)K(P, P) -1 K(P,P * ) Formula 6

[0151] Among them, cov is a matrix, and each element in the cov matrix represents the mean of the mean in each sub-region; P * is a matrix, P * Each element in the matrix represents the position coordinates of each sub-region; P is a matrix representing the position coordinates of the signal fingerprint in the signal fingerprint library; K(P * , P * ) indicates that based on P * and P * The obtained covariance matrix; K(P * , P) indicates based on P * and P to obtain the covariance matrix; K(P, P) -1 represents the inverse matrix of the first matrix; K(P, P * ) indicates that based on P and P * The resulting covariance matrix.

[0152] Based on the mean and variance obtained above, the server can determine the Gaussian distribution of the residual in each sub-region of the area to be located. For example, the Gaussian distribution of the residual in any sub-region of the area to be located can be expressed as: e~N(mu, cov). Among them, e represents the residual in the sub-region; mu represents the mean of the residual in the sub-region; cov represents the variance of the residual in the sub-region.

[0153] Step 305: Generate a signal map based on the probability distribution and the target model, wherein the signal map is used to indicate the probability distribution of signal strength in each sub-area.

[0154] In this embodiment, after obtaining the probability distribution of the residual in each sub-region, the server can determine the signal strength corresponding to the position coordinates of each sub-region through the target model based on the position coordinates of each sub-region. That is, the server substitutes the position coordinates of each sub-region into the expression of the target model to determine the signal strength corresponding to the position coordinates of each sub-region. Then, the server superimposes the signal strength corresponding to the position coordinates of each sub-region with the probability distribution of the residual in each sub-region, thereby obtaining a signal map, which can indicate the probability distribution of the signal strength in each sub-region.

[0155] For example, assuming that the probability distribution of the residual in the sub-region conforms to the Gaussian distribution, the server can add the signal strength corresponding to the position coordinates of each sub-region to the mean of the residual in the sub-region, thereby obtaining the Gaussian distribution of the signal strength in each sub-region. Specifically, the Gaussian distribution of the signal strength in each sub-region can be expressed as: Among them, RSSI represents the signal strength in the sub-area; represents the signal strength corresponding to the position coordinates of each sub-region obtained based on the target model; mu represents the mean value of the residual in the sub-region; represents the mean of the signal strength in the sub-region; cov represents the variance of the signal strength in the sub-region.

[0156] See also Figure 7 , Figure 7 A schematic diagram of a signal map provided in an embodiment of the present application. Figure 7 As shown, Figure 7 (a) in the figure represents the target model. Figure 7 (b) in the figure represents the probability distribution of the residual in each sub-region. Figure 7 (c) in the figure represents the signal map obtained by superimposing the probability distribution of the target model and the residual in each sub-region.

[0157] See also Figure 8 , Figure 8 A comparative schematic diagram of a signal map provided in an embodiment of the present application. Figure 8 As shown, Figure 8 The signal map obtained after optimizing the likelihood function composed of residuals once, the signal map obtained after optimizing the likelihood function twice, the signal map obtained after optimizing the likelihood function three times, and the signal map obtained after optimizing the likelihood function four times are shown respectively. It can be seen that by continuously optimizing the likelihood function, the learned regional correlation can be continuously optimized based on the residuals, and the accuracy of the generated signal map can be improved, thereby ensuring the final positioning accuracy.

[0158] Step 306: Determine the position of the device to be located according to the target signal strength and the signal map, wherein the target signal strength is the signal strength of the signal acquired by the device to be located in the area to be located.

[0159] In this embodiment, since the signal map can indicate the probability distribution of signal strength in each sub-area, when the target signal strength is obtained, the server can determine the position coordinates corresponding to the target signal strength, thereby determining the position of the device to be located.

[0160] The target signal strength may be reported by the device to be located to the server. After obtaining the target signal strength reported by the device to be located, the server may determine the location of the device to be located based on the target signal strength and the signal map, and send the location of the device to be located to the device to be located.

[0161] In a possible embodiment, the server may determine the probability of the target signal strength appearing in each sub-area based on the signal map. For example, when the signal map indicates the Gaussian distribution of the signal strength in each sub-area, the server may determine the probability of the target signal strength appearing in each sub-area by querying a standard normal distribution table or by integrating. After determining the probability of the target signal strength appearing in each sub-area, the server may determine the sub-area with the highest probability of the target signal strength appearing as the location of the device to be located.

[0162] For example, assuming that the area to be located is divided into 10 sub-areas, and the probability of the target signal strength appearing in each sub-area is [0.3, 0.2, 0.1, 0.5, 0.3, 0.1, 0.8, 0.9, 0.6, 0.2], the server can determine the position coordinates of the sub-area where the probability of the target signal strength appearing is 0.9 as the position of the device to be located.

[0163] In this solution, the residual is obtained through the signal fingerprint library and the wireless signal transmission path loss model, and the correlation of the signal fingerprint in the region is extracted based on the residual. The probability distribution of the signal strength in each region is determined by the correlation of the signal fingerprint in the region, and finally the location of the signal fingerprint to be located is determined based on the probability distribution. Since this solution mines the correlation of the signal fingerprint in the region from the original data and establishes a probability distribution model based on the correlation, it abstractly expresses the law of the intrinsic propagation of the signal, thus breaking away from the dependence on the quality of the original data and effectively improving the accuracy of positioning.

[0164] In addition, by dividing the area to be positioned into sub-areas and determining the probability distribution of signal strength in each sub-area, the probability distribution of signal strength in the entire area to be positioned can be established, thereby realizing the prediction of unpositioned areas and expanding the scope of positioning services.

[0165] It is understandable that in public places, multiple wireless access points are usually deployed in most buildings, and multiple wireless access points are distributed in different locations, so as to provide users with full coverage of mobile services. Therefore, in a building, the user's device to be located may receive multiple wireless signals, and the signal strengths of different wireless signals may be different. Based on this, the server can establish a signal map corresponding to each wireless access point based on the wireless signals from different wireless access points. During the positioning process, the server can obtain multiple signal strengths reported by the device to be located, and determine the probability of each signal strength appearing in each sub-area based on the signal map, and finally comprehensively determine the location of the device to be located.

[0166] Specifically, when multiple wireless access points are deployed in the area to be positioned, each group of signal fingerprints pre-collected in the area to be positioned includes the signal strengths of signals from different wireless access points. That is to say, for the signal fingerprints in the signal fingerprint library, each group of signal fingerprints includes the location coordinates and the signal strengths of multiple signals. For example, the signal fingerprint in the signal fingerprint library can be expressed as (x, y, RSSI 1, RSSI 2, RSSI 3). Among them, x represents the coordinate of the signal fingerprint on the x-axis of the two-dimensional space, and y represents the coordinate of the signal fingerprint on the y-axis of the two-dimensional space, that is, x and y together represent the location coordinates of the signal fingerprint; RSSI 1 represents the signal strength of wireless access point 1 in the signal fingerprint, RSSI 2 represents the signal strength of wireless access point 2 in the signal fingerprint, and RSSI 3 represents the signal strength of wireless access point 3 in the signal fingerprint.

[0167] In the process of establishing the signal map by the server, the server may establish the signal map corresponding to the wireless access point based on the data from the same wireless access point in the signal fingerprint, thereby obtaining a plurality of signal maps corresponding to different wireless access points.

[0168] Exemplarily, the server may divide a signal fingerprint including multiple signal strengths into multiple sub-signal fingerprints, each sub-signal fingerprint including only one signal strength. For example, for a signal fingerprint including three signal strengths (x, y, RSSI1, RSSI 2, RSSI 3), it can be divided into sub-signal fingerprint 1, sub-signal fingerprint 2, and sub-signal fingerprint 3. Sub-signal fingerprint 1 can be expressed as (x, y, RSSI 1), sub-signal fingerprint 2 can be expressed as (x, y, RSSI 2), and sub-signal fingerprint 3 can be expressed as (x, y, RSSI 3). Sub-signal fingerprint 1, sub-signal fingerprint 2, and sub-signal fingerprint 3 can be considered as signal fingerprints from wireless access point 1, wireless access point 2, and wireless access point 3, respectively. In this way, when the server establishes a signal map, it can establish a signal map based on the sub-signal fingerprints from the same wireless access point in the signal fingerprint library.

[0169] In the case where the signal fingerprint in the signal fingerprint library includes the signal strengths of multiple wireless access points, the signal map established by the server may include multiple sub-signal maps, and the multiple sub-signal maps are respectively used to indicate the probability distribution of the signal strengths of different signals in each sub-area. Each sub-signal map corresponds to a wireless access point and is used to indicate the probability distribution of the signal strength of the wireless access point in each sub-area.

[0170] At the same time, the target signal strength reported by the device to be located will also include the signal strengths of multiple signals. The server can determine the probability of each signal strength appearing in the area to be located based on multiple sub-signal maps, and then determine the probability of the target signal strength appearing in the area to be located.

[0171] Specifically, the server first determines the sub-signal map corresponding to the signal strength of each signal in the target signal strength. Then, the server determines the first probability that the signal strengths of the multiple signals appear in each sub-area according to the sub-signal map corresponding to the signal strength of each signal. That is, the server determines the probability that the signal strength of each signal from different wireless access points appears in each sub-area.

[0172] Based on the first probability that the signal strength of each signal appears in each sub-area, the server can determine the second probability that the multiple signals appear simultaneously in each sub-area, and the second probability is the probability that the target signal strength appears in each sub-area. Specifically, since the signal propagation between wireless access points is independent, the server can determine that the probability of observing a certain signal fingerprint in a certain sub-area is the product of the probabilities of observing the signals of these wireless access points in the sub-area. In other words, the server can multiply the first probabilities that different signals appear in a certain sub-area respectively to obtain the second probability that multiple signals appear simultaneously in a certain sub-area. For example, taking the target signal strength as (RSSI 1, RSSI 2, RSSI 3) as an example, the probability that RSSI 1 in the target signal strength appears in sub-area 1 is 0.5, the probability that RSSI 2 in the target signal strength appears in sub-area 1 is 0.8, and the probability that RSSI 3 in the target signal strength appears in sub-area 1 is 0.9, then the probability that multiple signals in the target signal strength appear in sub-area 1 at the same time is 0.5*0.8*0.9=0.36.

[0173] Finally, after determining the second probability that multiple signals appear simultaneously in each sub-area, the server may determine the sub-area with the highest second probability as the location of the device to be located.

[0174] For example, taking the target signal strength as (RSSI 1, RSSI 2, RSSI 3), the area to be positioned is divided into 5 sub-areas. The server calculates the sub-areas based on RSSI 1. Figure 1 , determine the probability that RSSI 1 appears in the five sub-areas as [0.1, 0.5, 0.3, 0.2, 0.1]; based on the sub-signal locations corresponding to RSSI 2 Figure 2 , determine the probability that RSSI 2 appears in the five sub-areas as [0.3, 0.4, 0.2, 0.1, 0.1]; based on the sub-signal location corresponding to RSSI 3 Figure 1 , determine the probability that RSSI 3 appears in the five sub-areas respectively as [0.2, 0.5, 0.2, 0.1, 0.1].

[0175] In this way, the server can determine that the probability of the target signal strength appearing in these five sub-areas at the same time is [0.1*0.3*0.2, 0.5*0.4*0.5, 0.3*0.2*0.2, 0.2*0.1*0.1, 0.1*0.1*0.1], that is, [0.006, 0.1, 0.012, 0.002, 0.001]. Finally, the server can determine that the sub-area with the highest probability (that is, the sub-area with a probability of 0.1) is the location of the device to be located.

[0176] Specifically, see Fig. 9 , Fig. 9 A comparative schematic diagram of positioning based on different numbers of signal maps provided in the embodiments of the present application. Fig. 9 In the figure, the probability distribution diagrams of the device to be located in each area based on different numbers of signal maps are shown. The darker the color of a location in the probability distribution diagram, the greater the probability that the device to be located is located at that location. Each probability distribution diagram indicates the actual location of the device to be located (i.e., the lower right corner of each probability distribution diagram) and the predicted location of the device to be located. Fig. 9 It can be seen that as the number of signal maps used for positioning increases, the gap between the predicted position and the actual position of the device to be positioned becomes smaller.

[0177] In order to make it easier to clarify the beneficial effects of the positioning method provided in the embodiment of the present application, this embodiment also provides test results in actual scenarios.

[0178] In the experiment, the application scenario is the indoor positioning service of smartphone devices. Fig.10 , Fig.10 This is a schematic diagram of improving the positioning effect provided by the embodiment of the present application. Fig.10 As shown, Fig.10 The horizontal axis in the figure represents 19 test cases built for different buildings, fingerprint collection methods, signal types, and device types. Fig.10 The vertical axis in represents the positioning effect (in meters) improved by this solution compared with the existing solution. Fig.10 It can be seen that the positioning effect of this solution is significantly improved compared with the existing solution, with a maximum accuracy of about 3.4 meters. In addition, in areas with less signal fingerprint sampling or even areas with no signal fingerprint sampling, the advantages of this solution are more obvious.

[0179] At the same time, this solution also greatly improves device compatibility. In crowdsourcing scenarios, the data collected offline and the devices that actually need to be located are often different devices, and the diversity of devices will have a very large interference with the consistency of the collected signals. This solution can integrate the data of different devices into the same signal map, and provide more accurate positioning services for different devices. Based on the constructed indoor test set, this solution improves the positioning effect of mainstream manufacturers' equipment. Specifically, for different models of equipment, the applicant conducted positioning tests based on the existing solution and this solution under the same test environment. The comparison of the test results is shown in Table 1.

[0180] Table 1

[0181]

[0182]

[0183] As can be seen from Table 1, for different types of equipment, the mean positioning error of this solution is smaller than that of the existing solution, that is, the positioning effect of this solution is improved. Obviously, this solution also greatly improves the compatibility of equipment.

[0184] The above describes a positioning method applied to a server provided in an embodiment of the present application. The following describes a positioning method applied to a terminal provided in an embodiment of the present application. Fig.11 , Fig.11 FIG. 1 is a flow chart of a positioning method 1100 provided in an embodiment of the present application. Fig.11 As shown, the positioning method 1100 includes the following steps 1101-1102.

[0185] Step 1101, obtain a signal map.

[0186] Among them, the signal map is used to indicate the probability distribution of signal strength in each sub-area of ​​the area to be located, and the area to be located includes multiple sub-areas. The signal map is generated based on the probability distribution and the target model. The probability distribution is the probability distribution of the residual determined based on the first matrix and the residual in each sub-area of ​​the area to be located. The residual is the residual between the signal strength determined according to multiple groups of signal fingerprints and the target model. The first matrix is ​​obtained by determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints through a first expression. The parameters in the first expression are determined based on the residual. The similarity is obtained based on the position coordinates in the signal fingerprint. The target model is established based on a signal fingerprint library. The signal fingerprint library includes multiple groups of signal fingerprints, each group of signal fingerprints includes position coordinates and signal strength. The target model is a wireless signal propagation path loss model, and the target model is used to represent the relationship between the position coordinates and the signal strength.

[0187] In this embodiment, the terminal may obtain a signal map corresponding to the area to be located from the server when positioning is required. For example, after the terminal enters the area to be located, the terminal sends a positioning request to the server. After receiving the positioning request sent by the terminal, the server sends a signal map corresponding to the area to be located to the terminal, so that the terminal can perform positioning based on the signal map. The area to be located may be an indoor area. After the server determines the indoor area where the terminal is located based on the outdoor positioning system, it can send the signal map corresponding to the area to the terminal.

[0188] Step 1102: Determine the position of the device to be located according to the target signal strength and the signal map, wherein the target signal strength is the signal strength of the signal acquired by the device to be located in the area to be located.

[0189] Step 1102 is similar to the above-mentioned step 306. For details, please refer to the above-mentioned step 306 and will not be repeated here.

[0190] In one possible implementation, the terminal determines the position of the device to be located based on the target signal strength and the signal map, including: determining the probability of the target signal strength appearing in each sub-area based on the signal map; and determining the sub-area with the highest probability of the target signal strength appearing as the position of the device to be located.

[0191] In a possible implementation, each group of signal fingerprints includes signal strengths of multiple signals, the signal map includes multiple sub-signal maps, the multiple sub-signal maps are respectively used to indicate the probability distribution of signal strengths of different signals in each sub-area, and the target signal strength includes the signal strengths of multiple signals; the terminal determines the probability of the target signal strength appearing in each sub-area according to the signal map, including: determining the sub-signal map corresponding to the signal strength of each signal in the target signal strength; determining the first probability of the signal strength of the multiple signals appearing in each sub-area according to the sub-signal map corresponding to the signal strength of each signal; based on the first probability, determining the second probability of the multiple signals appearing simultaneously in each sub-area, the second probability being the probability of the target signal strength appearing in each sub-area; the terminal determines the sub-area with the highest probability of the target signal strength appearing as the location of the device to be located, including: determining the sub-area with the highest second probability as the location of the device to be located.

[0192] In one possible implementation, the first expression is obtained by optimizing a likelihood function and updating parameters in a second expression, the likelihood function is generated based on the residual and the second matrix, the second matrix is ​​obtained by determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints according to the second expression, and the parameters in the second expression are pre-set hyperparameters.

[0193] In a possible implementation, the first expression is a squared exponential covariance kernel function.

[0194] In a possible implementation, the residual is determined based on the signal strengths in the multiple groups of signal fingerprints and the predicted signal strengths, and the predicted signal strengths are determined based on the position coordinates in the multiple groups of signal fingerprints and the target model.

[0195] In one possible implementation, the probability distribution is a Gaussian distribution of the residual in each sub-region of the area to be located, and the Gaussian distribution is determined based on the mean of the residual in each sub-region and the variance of the residual in each sub-region, the mean is determined based on the position coordinates of each sub-region, the first matrix and the residual, and the variance is determined based on the position coordinates of each sub-region and the first matrix.

[0196] In a possible implementation, the target model includes a free space propagation model, a logarithmic distance path loss model, or a logarithmic-normal distribution model.

[0197] See also Fig.12 , Fig.12 A schematic diagram of the structure of a server provided in an embodiment of the present application. Fig.12 As shown, the server includes an acquisition unit 1201 and a processing unit 1202. The processing unit 1202 is used to: establish a target model based on a signal fingerprint library, the signal fingerprint library includes multiple groups of signal fingerprints, each group of signal fingerprints includes position coordinates and signal strength, and the target model is used to represent the relationship between the position coordinates and the signal strength; determine the residual between the signal strengths according to the multiple groups of signal fingerprints and the target model; determine the similarity between every two groups of signal fingerprints in the multiple groups of signal fingerprints through a first expression to obtain a first matrix, the parameters in the first expression are determined based on the residual, and the similarity is obtained based on the position coordinates in the signal fingerprint; determine the probability distribution of the residual in each sub-area of ​​the area to be located according to the first matrix and the residual, and the area to be located includes multiple sub-areas; generate a signal map based on the probability distribution and the target model, and the signal map is used to indicate the probability distribution of the signal strength in each sub-area; determine the position of the device to be located according to the target signal strength and the signal map, and the target signal strength is the signal strength of the signal acquired by the device to be located in the area to be located.

[0198] In a possible implementation, the processing unit 1202 is further used to: determine, according to the signal map, the probability of the target signal strength appearing in each sub-area; and determine the sub-area with the highest probability of the target signal strength appearing as the location of the device to be located.

[0199] In one possible implementation, each group of signal fingerprints includes signal strengths of multiple signals, the signal map includes multiple sub-signal maps, the multiple sub-signal maps are respectively used to indicate the probability distribution of signal strengths of different signals in each sub-area, and the target signal strength includes the signal strengths of multiple signals; the processing unit 1202 is also used to: determine the sub-signal map corresponding to the signal strength of each signal in the target signal strength; determine, according to the sub-signal map corresponding to the signal strength of each signal, a first probability that the signal strength of the multiple signals appears in each sub-area; based on the first probability, determine a second probability that the multiple signals appear simultaneously in each sub-area, the second probability being the probability that the target signal strength appears in each sub-area; and determine the sub-area with the highest second probability as the location of the device to be located.

[0200] In a possible implementation, the processing unit 1202 is also used to: determine the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints according to a second expression to obtain a second matrix, wherein the parameters in the second expression are pre-set hyperparameters; generate a likelihood function based on the residual and the second matrix; and update the parameters in the second expression by optimizing the likelihood function to obtain the first expression.

[0201] In a possible implementation, the first expression is a squared exponential covariance kernel function.

[0202] In a possible implementation, the processing unit 1202 is also used to: determine the predicted signal strength corresponding to each group of signal fingerprints in the multiple groups of signal fingerprints based on the position coordinates in the multiple groups of signal fingerprints and the target model; and determine the residual based on the signal strength in the multiple groups of signal fingerprints and the predicted signal strength.

[0203] In one possible implementation, the acquisition unit 1201 is used to acquire the position coordinates of each sub-region of the area to be located; the processing unit 1202 is also used to: determine the mean of the residual in each sub-region based on the position coordinates of each sub-region, the first matrix and the residual; determine the variance of the residual in each sub-region based on the position coordinates of each sub-region and the first matrix; and determine the Gaussian distribution of the residual in each sub-region of the area to be located based on the mean and the variance.

[0204] In a possible implementation, the target model includes a free space propagation model, a logarithmic distance path loss model, or a logarithmic-normal distribution model.

[0205] See also Fig.13 , Fig.13A schematic diagram of the structure of a terminal provided in an embodiment of the present application. Fig.13 As shown, the terminal includes: an acquisition unit 1301 and a processing unit 1302. The acquisition unit 1301 is used to acquire a signal map; the processing unit 1302 is used to determine the position of the device to be located according to the target signal strength and the signal map, the target signal strength is the signal strength of the signal acquired by the device to be located in the area to be located; wherein the signal map is used to indicate the probability distribution of the signal strength in each sub-area of ​​the area to be located, the area to be located includes multiple sub-areas, the signal map is generated based on the probability distribution and the target model, the probability distribution is the probability distribution of the residual determined based on the first matrix and the residual in each sub-area of ​​the area to be located, the residual is the residual between the signal strength determined according to multiple groups of signal fingerprints and the target model, the first matrix is ​​obtained by determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints through a first expression, the parameters in the first expression are determined based on the residual, the similarity is obtained based on the position coordinates in the signal fingerprint, the target model is established based on a signal fingerprint library, the signal fingerprint library includes multiple groups of signal fingerprints, each group of signal fingerprints includes position coordinates and signal strength, and the target model is used to represent the relationship between the position coordinates and the signal strength.

[0206] In a possible implementation, the processing unit 1302 is further used to: determine, according to the signal map, the probability of the target signal strength appearing in each sub-area; and determine the sub-area with the highest probability of the target signal strength appearing as the location of the device to be located.

[0207] In a possible implementation, each group of signal fingerprints includes signal strengths of multiple signals, the signal map includes multiple sub-signal maps, the multiple sub-signal maps are respectively used to indicate probability distribution of signal strengths of different signals in each sub-area, and the target signal strength includes signal strengths of multiple signals;

[0208] The processing unit 1302 is also used to: determine the sub-signal map corresponding to the signal strength of each signal in the target signal strength; determine the first probability that the signal strength of the multiple signals appears in each sub-area according to the sub-signal map corresponding to the signal strength of each signal; based on the first probability, determine the second probability that the multiple signals appear simultaneously in each sub-area, the second probability being the probability that the target signal strength appears in each sub-area; and determine the sub-area with the highest second probability as the location of the device to be located.

[0209] In one possible implementation, the first expression is obtained by optimizing a likelihood function and updating parameters in a second expression, the likelihood function is generated based on the residual and the second matrix, the second matrix is ​​obtained by determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints according to the second expression, and the parameters in the second expression are pre-set hyperparameters.

[0210] In a possible implementation, the first expression is a squared exponential covariance kernel function.

[0211] In a possible implementation, the residual is determined based on the signal strengths in the multiple groups of signal fingerprints and the predicted signal strengths, and the predicted signal strengths are determined based on the position coordinates in the multiple groups of signal fingerprints and the target model.

[0212] In one possible implementation, the probability distribution is a Gaussian distribution of the residual in each sub-region of the area to be located, and the Gaussian distribution is determined based on the mean of the residual in each sub-region and the variance of the residual in each sub-region, the mean is determined based on the position coordinates of each sub-region, the first matrix and the residual, and the variance is determined based on the position coordinates of each sub-region and the first matrix.

[0213] In a possible implementation, the target model includes a free space propagation model, a logarithmic distance path loss model, or a logarithmic-normal distribution model.

[0214] Next, an execution device provided by an embodiment of the present application is introduced. Fig.14 , Fig.14 This is a schematic diagram of the structure of the execution device provided in the embodiment of the present application. The execution device 1400 can be specifically a mobile phone, a tablet, a laptop, a smart wearable device, a server, etc., which is not limited here. Among them, the execution device 1400 can be deployed with Fig.14 The data processing device described in the corresponding embodiment is used to implement Fig.14 The data processing function in the corresponding embodiment. Specifically, the execution device 1400 includes: a receiver 1401, a transmitter 1402, a processor 1403 and a memory 1404 (wherein the number of the processor 1403 in the execution device 1400 can be one or more, Fig.14 In the example of FIG. 1403 , the processor 1403 may include an application processor 14031 and a communication processor 14032. In some embodiments of the present application, the receiver 1401, the transmitter 1402, the processor 1403 and the memory 1404 may be connected via a bus or other means.

[0215] The memory 1404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1403. A portion of the memory 1404 may also include a non-volatile random access memory (NVRAM). The memory 1404 stores processor and operation instructions, executable modules or data structures, or subsets thereof, or extended sets thereof, wherein the operation instructions may include various operation instructions for implementing various operations.

[0216] The processor 1403 controls the operation of the execution device. In a specific application, the various components of the execution device are coupled together through a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus, and a status signal bus, etc. However, for the sake of clarity, various buses are referred to as bus systems in the figure.

[0217] The method disclosed in the above embodiment of the present application can be applied to the processor 1403, or implemented by the processor 1403. The processor 1403 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 1403. The above processor 1403 can be a general processor, a digital signal processor (digital signal processing, DSP), a microprocessor or a microcontroller, and can further include an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The processor 1403 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined to execute. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1404, and the processor 1403 reads the information in the memory 1404 and completes the steps of the above method in combination with its hardware.

[0218] The receiver 1401 can be used to receive input digital or character information and generate signal input related to the relevant settings and function control of the execution device. The transmitter 1402 can be used to output digital or character information through the first interface; the transmitter 1402 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 1402 can also include a display device such as a display screen.

[0219] Also provided in an embodiment of the present application is a computer program product which, when executed on a computer, enables the computer to execute the steps executed by the aforementioned execution device, or enables the computer to execute the steps executed by the aforementioned training device.

[0220] A computer-readable storage medium is also provided in an embodiment of the present application, which stores a program for signal processing. When the computer-readable storage medium is run on a computer, it enables the computer to execute the steps executed by the aforementioned execution device, or enables the computer to execute the steps executed by the aforementioned training device.

[0221] The execution device or terminal device provided in the embodiment of the present application may specifically be a chip, and the chip includes: a processing unit and a communication unit, wherein the processing unit may be, for example, a processor, and the communication unit may be, for example, an input / output interface, a pin or a circuit, etc. The processing unit may execute the computer execution instructions stored in the storage unit so that the chip in the execution device executes the compilation method described in the above embodiment. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc. The storage unit may also be a storage unit located outside the chip in the wireless access device, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc.

[0222] For details, please refer to Fig.15 , Fig.15 A schematic diagram of the structure of a chip provided in an embodiment of the present application, the chip can be expressed as a processor 1500, and the NPU 1500 is mounted on the host CPU (Host CPU) as a coprocessor, and the host CPU assigns tasks. The core part of the NPU is the operation circuit 1503, which is controlled by the controller 1504 to extract matrix data from the memory and perform multiplication operations.

[0223] In some implementations, the operation circuit 1503 includes multiple processing units (Process Engine, PE) inside. In some implementations, the operation circuit 1503 is a two-dimensional systolic array. The operation circuit 1503 can also be a one-dimensional systolic array or other electronic circuits capable of performing mathematical operations such as multiplication and addition. In some implementations, the operation circuit 1503 is a general-purpose matrix processor.

[0224] For example, assume there is an input matrix A, a weight matrix B, and an output matrix C. The operation circuit takes the corresponding data of matrix B from the weight memory 1502 and caches it on each PE in the operation circuit. The operation circuit takes the matrix A data from the input memory 1501 and performs matrix operation with matrix B, and the partial result or final result of the matrix is ​​stored in the accumulator 1508.

[0225] The unified memory 1506 is used to store input data and output data. The weight data is directly transferred to the weight memory 1502 through the direct memory access controller (DMAC) 1505. The input data is also transferred to the unified memory 1506 through the DMAC.

[0226] BIU stands for Bus Interface Unit 1515 , which is used for the interaction between the AXI bus and the DMAC and the instruction fetch buffer (IFB) 1509 .

[0227] The bus interface unit 1515 (Bus Interface Unit, BIU for short) is used for the instruction fetch memory 1509 to obtain instructions from the external memory, and is also used for the storage unit access controller 1505 to obtain the original data of the input matrix A or the weight matrix B from the external memory.

[0228] DMAC is mainly used to transfer input data in the external memory DDR to the unified memory 1506 or to transfer weight data to the weight memory 1502 or to transfer input data to the input memory 1501.

[0229] The vector calculation unit 1507 includes multiple operation processing units, and further processes the output of the operation circuit 1503 when necessary, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc. It is mainly used for non-convolutional / fully connected layer network calculations in neural networks, such as Batch Normalization, pixel-level summation, upsampling of feature planes, etc.

[0230] In some implementations, the vector calculation unit 1507 can store the processed output vector to the unified memory 1506. For example, the vector calculation unit 1507 can apply a linear function; or a nonlinear function to the output of the operation circuit 1503, such as linear interpolation of the feature plane extracted by the convolution layer, and then, for example, a vector of accumulated values ​​to generate an activation value. In some implementations, the vector calculation unit 1507 generates a normalized value, a pixel-level summed value, or both. In some implementations, the processed output vector can be used as an activation input to the operation circuit 1503, for example, for use in a subsequent layer in a neural network.

[0231] An instruction fetch buffer 1509 connected to the controller 1504 is used to store instructions used by the controller 1504;

[0232] Unified memory 1506, input memory 1501, weight memory 1502 and instruction fetch memory 1509 are all on-chip memories. External memories are private to the NPU hardware architecture.

[0233] The processor mentioned in any of the above places may be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of the above program.

[0234] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0235] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0236] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0237] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A positioning method, characterized in that: include: Based on the signal fingerprint library, a target model is established, wherein the signal fingerprint library includes multiple groups of signal fingerprints, each group of signal fingerprints includes position coordinates and signal strength, and the target model is used to represent the relationship between the position coordinates and the signal strength; Determining residuals between signal strengths according to the multiple groups of signal fingerprints and the target model; Determine the similarity between every two groups of signal fingerprints in the plurality of groups of signal fingerprints by a first expression to obtain a first matrix, wherein the parameters in the first expression are determined based on the residual, and the similarity is obtained based on the position coordinates in the signal fingerprint; Determine, according to the first matrix and the residual, a probability distribution of the residual in each sub-region of the area to be located, where the area to be located includes a plurality of sub-regions; Based on the probability distribution and the target model, a signal map is generated, wherein the signal map is used to indicate the probability distribution of signal strength in each sub-area; The position of the device to be located is determined according to the target signal strength and the signal map, wherein the target signal strength is the signal strength of the signal acquired by the device to be located in the area to be located.

2. The method according to claim 1, characterized in that The determining the position of the device to be located according to the target signal strength and the signal map includes: Determine, according to the signal map, the probability that the target signal strength appears in each sub-area; The sub-area with the highest probability of the target signal strength appearing is determined as the position of the device to be located.

3. The method according to claim 2, characterized in that Each group of signal fingerprints includes signal strengths of multiple signals, the signal map includes multiple sub-signal maps, the multiple sub-signal maps are respectively used to indicate the probability distribution of signal strengths of different signals in each sub-area, and the target signal strength includes signal strengths of multiple signals; Determining, according to the signal map, the probability of the target signal strength appearing in each sub-area includes: Determine a sub-signal map corresponding to the signal strength of each signal in the target signal strength; Determining, according to the sub-signal map corresponding to the signal strength of each signal, a first probability that the signal strength of the multiple signals appears in each sub-area; Based on the first probability, determining a second probability that the multiple signals appear simultaneously in each sub-area, the second probability being a probability that the target signal strength appears in each sub-area; The step of determining the sub-region with the highest probability of the target signal strength appearing as the location of the device to be located includes: The sub-region with the second highest probability is determined as the location of the device to be located.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Determine the similarity between every two groups of signal fingerprints in the plurality of groups of signal fingerprints according to a second expression to obtain a second matrix, wherein the parameters in the second expression are pre-set hyperparameters; generating a likelihood function based on the residual and the second matrix; The first expression is obtained by optimizing the likelihood function and updating the parameters in the second expression.

5. The method according to any one of claims 1 to 3, characterized in that: The first expression is a squared exponential covariance kernel function.

6. The method according to any one of claims 1 to 3, characterized in that: The determining the residual between the signal strengths according to the multiple groups of signal fingerprints and the target model includes: Determining a predicted signal strength corresponding to each group of signal fingerprints in the multiple groups of signal fingerprints according to the position coordinates in the multiple groups of signal fingerprints and the target model; The residual is determined according to the signal strengths in the multiple groups of signal fingerprints and the predicted signal strengths.

7. The method according to any one of claims 1 to 3, characterized in that: The determining, according to the first matrix and the residual, a probability distribution of the residual in each sub-region of the area to be located comprises: Obtaining the position coordinates of each sub-area of ​​the area to be located; Determine a mean value of the residual in each subregion based on the position coordinates of each subregion, the first matrix and the residual; Determine the variance of the residual in each sub-region based on the position coordinates of each sub-region and the first matrix; Based on the mean and the variance, a Gaussian distribution of the residual in each sub-region of the area to be located is determined.

8. The method according to any one of claims 1 to 3, characterized in that: The target model includes a free space propagation model, a logarithmic distance path loss model or a logarithmic-normal distribution model.

9. A positioning method, characterized in that: include: Get signal map; Determine the position of the device to be located according to the target signal strength and the signal map, wherein the target signal strength is the signal strength of the signal acquired by the device to be located in the area to be located; Among them, the signal map is used to indicate the probability distribution of signal strength in each sub-area of ​​the area to be located, and the area to be located includes multiple sub-areas. The signal map is generated based on the probability distribution and the target model. The probability distribution is the probability distribution of the residual determined based on the first matrix and the residual in each sub-area of ​​the area to be located. The residual is the residual between the signal strength determined according to multiple groups of signal fingerprints and the target model. The first matrix is ​​obtained by determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints through a first expression. The parameters in the first expression are determined based on the residual. The similarity is obtained based on the position coordinates in the signal fingerprint. The target model is established based on a signal fingerprint library. The signal fingerprint library includes multiple groups of signal fingerprints, each group of signal fingerprints includes position coordinates and signal strength, and the target model is used to represent the relationship between the position coordinates and the signal strength.

10. The method according to claim 9, characterized in that The determining the position of the device to be located according to the target signal strength and the signal map includes: Determine, according to the signal map, the probability that the target signal strength appears in each sub-area; The sub-area with the highest probability of the target signal strength appearing is determined as the position of the device to be located.

11. The method according to claim 10, characterized in that Each group of signal fingerprints includes signal strengths of multiple signals, the signal map includes multiple sub-signal maps, the multiple sub-signal maps are respectively used to indicate the probability distribution of signal strengths of different signals in each sub-area, and the target signal strength includes signal strengths of multiple signals; Determining, according to the signal map, the probability of the target signal strength appearing in each sub-area includes: Determine a sub-signal map corresponding to the signal strength of each signal in the target signal strength; Determining, according to the sub-signal map corresponding to the signal strength of each signal, a first probability that the signal strength of the multiple signals appears in each sub-area; Based on the first probability, determining a second probability that the multiple signals appear simultaneously in each sub-area, the second probability being a probability that the target signal strength appears in each sub-area; The step of determining the sub-region with the highest probability of the target signal strength appearing as the location of the device to be located includes: The sub-region with the second highest probability is determined as the location of the device to be located.

12. The method according to any one of claims 9 to 11, characterized in that: The first expression is obtained by optimizing the likelihood function and updating the parameters in the second expression, the likelihood function is generated based on the residual and the second matrix, the second matrix is ​​obtained by determining the similarity between each two groups of signal fingerprints in the multiple groups of signal fingerprints according to the second expression, and the parameters in the second expression are pre-set hyperparameters.

13. The method according to any one of claims 9 to 11, characterized in that: The first expression is a squared exponential covariance kernel function.

14. The method according to any one of claims 9 to 11, characterized in that: The residual is determined based on the signal strengths in the multiple groups of signal fingerprints and the predicted signal strengths, and the predicted signal strengths are determined based on the position coordinates in the multiple groups of signal fingerprints and the target model.

15. The method according to any one of claims 9 to 11, characterized in that: The probability distribution is a Gaussian distribution of the residual in each sub-region of the area to be located, and the Gaussian distribution is determined based on the mean of the residual in each sub-region and the variance of the residual in each sub-region, the mean is determined based on the position coordinates of each sub-region, the first matrix and the residual, and the variance is determined based on the position coordinates of each sub-region and the first matrix.

16. The method according to any one of claims 9 to 11, characterized in that: The target model includes a free space propagation model, a logarithmic distance path loss model or a logarithmic-normal distribution model.

17. A server, characterized in that: The method comprises a memory and a processor; the memory stores codes, the processor is configured to execute the codes, and when the codes are executed, the processor executes the method according to any one of claims 1 to 8.

18. A terminal, characterized in that: The method comprises a memory and a processor; the memory stores codes, the processor is configured to execute the codes, and when the codes are executed, the processor executes the method according to any one of claims 9 to 16.

19. A computer storage medium, characterized in that: The computer storage medium stores instructions, which, when executed by a computer, cause the computer to implement the method of any one of claims 1 to 16.

20. A computer program product, characterized in that The computer program product stores instructions, which, when executed by a computer, cause the computer to implement the method according to any one of claims 1 to 16.