Positioning method, device and electronic equipment

By using geomagnetic fingerprint information and neural network models for two-stage positioning, the problem of GPS's poor indoor positioning effect is solved, and high-precision and efficient indoor positioning is achieved, which is suitable for all indoor environments.

CN115507850BActive Publication Date: 2024-10-29CHINA MOBILE SHANGHAI ICT CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110633434.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-07
Publication Date
2024-10-29
Estimated Expiration
2041-06-07

AI Technical Summary

Technical Problem

Existing GPS has poor indoor positioning effects and is significantly affected by occlusion in the indoor environment.

Method used

By inputting geomagnetic fingerprint information into the neural network model used for positioning, and using the correlation between geomagnetic fingerprint information and location information, two-stage positioning is performed: the first stage is preliminary positioning through the first neural network model, and the second stage is based on similar sampling. The second neural network model is used to accurately position the path.

Benefits of technology

It improves the accuracy and speed of indoor positioning, is suitable for all indoor environments, reduces system construction and maintenance costs, and has high robustness and universal applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115507850B_ABST
    Figure CN115507850B_ABST
Patent Text Reader

Abstract

The present invention provides a positioning method, device and electronic device, which relate to the field of positioning technology, wherein the positioning method comprises: inputting geomagnetic fingerprint information into a first neural network model used for positioning, obtaining a first positioning result output by the first neural network model; in the case where there is no similar sampling path for the sampling path to which the first positioning result belongs, determining the first positioning result as a target positioning result; in the case where there is a similar sampling path for the sampling path to which the first positioning result belongs, inputting the geomagnetic fingerprint information into a second neural network model corresponding to the sampling path to which the first positioning result belongs, obtaining the target positioning result. The embodiments of the present invention can improve the positioning effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of positioning technology, and in particular to a positioning method, device and electronic equipment. Background Art

[0002] With the development of communication technology, location services that combine mobile communication networks and smart terminal technologies have become one of the most promising mobile Internet value-added services. Positioning technology is an important supporting technology for the development of location services. At present, GPS (Global Positioning System) is a more commonly used positioning technology. GPS has a better positioning effect outdoors. However, when performing indoor positioning, due to severe indoor environmental obstruction, GPS has a poor indoor positioning effect. Summary of the invention

[0003] The embodiments of the present invention provide a positioning method, a device and an electronic device to solve the problem that the positioning effect of the existing GPS is poor indoors.

[0004] To solve the above technical problems, the present invention is achieved as follows:

[0005] In a first aspect, an embodiment of the present invention provides a positioning method, the method comprising:

[0006] Inputting the geomagnetic fingerprint information into a first neural network model for positioning, and obtaining a first positioning result output by the first neural network model;

[0007] In a case where there is no similar sampling path to the sampling path to which the first positioning result belongs, determining the first positioning result as a target positioning result;

[0008] In the case that a similar sampling path exists in the sampling path to which the first positioning result belongs, the geomagnetic fingerprint information is input into a second neural network model corresponding to the sampling path to which the first positioning result belongs to obtain the target positioning result.

[0009] Optionally, before inputting the geomagnetic fingerprint information into a first neural network model for positioning and obtaining a first positioning result output by the first neural network model, the method further includes:

[0010] Divide the area to be located into multiple sampling paths;

[0011] Determine a starting position and an end position of a target sampling path, wherein the target sampling path is any one of the multiple sampling paths;

[0012] Sampling is performed along the target sampling path between the starting position and the end position, and position information and geomagnetic fingerprint information of multiple sampling moments of the target sampling path are determined;

[0013] Building a geomagnetic fingerprint library based on the location information and the geomagnetic fingerprint information;

[0014] The first neural network model and / or the second neural network model are trained based on the geomagnetic fingerprint library.

[0015] Optionally, the geomagnetic fingerprint information at a first sampling moment is determined based on a geomagnetic signal collected at the first sampling moment and a geomagnetic signal collected at at least one sampling moment before the first sampling moment, and the first sampling moment is any one of the multiple sampling moments.

[0016] Optionally, the training the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library includes:

[0017] The second neural network model is trained based on the geomagnetic fingerprint library and the target similar path set, wherein the target similar path set includes the sampling path to which the first positioning result belongs and the first sampling path, wherein the first sampling path is a sampling path among the multiple sampling paths, the similarity of the geomagnetic fingerprint information of the sampling path to which the first positioning result belongs being greater than a preset value.

[0018] Optionally, the training the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library includes:

[0019] In the process of performing the m-th window division on the geomagnetic fingerprint information at the second sampling moment, obtaining geomagnetic fingerprint information corresponding to multiple windows obtained by the m-th window division, wherein the geomagnetic fingerprint information at the second sampling moment is the geomagnetic fingerprint information at any one sampling moment of the multiple sampling moments of the target sampling path in the geomagnetic fingerprint library, m is any value from 1 to M, and M is a positive integer;

[0020] Determine the expanded geomagnetic fingerprint information according to the geomagnetic fingerprint information corresponding to the multiple windows obtained by the first to Mth window divisions;

[0021] Expanding the geomagnetic fingerprint library according to the location information of multiple sampling moments of the target sampling path and the expanded geomagnetic fingerprint information;

[0022] The first neural network model and / or the second neural network model are trained based on the expanded geomagnetic fingerprint library.

[0023] Optionally, the target neural network model includes a convolutional neural network and a long short-term memory neural network;

[0024] Wherein, the target neural network model includes a first neural network model and / or a second neural network model.

[0025] Optionally, the convolutional neural network includes an input layer, a convolutional layer and a fully connected layer connected in sequence, and the fully connected layer is connected to the long short-term memory neural network.

[0026] In a second aspect, an embodiment of the present invention provides a positioning device, the device comprising:

[0027] A first input module, used to input geomagnetic fingerprint information into a first neural network model used for positioning, and obtain a first positioning result output by the first neural network model;

[0028] A first determination module, configured to determine the first positioning result as a target positioning result when there is no similar sampling path to the sampling path to which the first positioning result belongs;

[0029] The second input module is used to input the geomagnetic fingerprint information into a second neural network model corresponding to the sampling path to which the first positioning result belongs, when there is a similar sampling path to which the first positioning result belongs, to obtain the target positioning result.

[0030] Optionally, the device further comprises:

[0031] A division module, used for dividing the area to be located into multiple sampling paths;

[0032] A second determination module is used to determine a starting position and an end position of a target sampling path, wherein the target sampling path is any one of the multiple sampling paths;

[0033] A sampling module, used to perform sampling along the target sampling path between the starting position and the end position, and determine the position information and geomagnetic fingerprint information of multiple sampling moments of the target sampling path;

[0034] A construction module, used to construct a geomagnetic fingerprint library based on the location information and the geomagnetic fingerprint information;

[0035] A training module is used to train the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library.

[0036] Optionally, the geomagnetic fingerprint information at a first sampling moment is determined based on a geomagnetic signal collected at the first sampling moment and a geomagnetic signal collected at at least one sampling moment before the first sampling moment, and the first sampling moment is any one of the multiple sampling moments.

[0037] Optionally, the training module is specifically used for:

[0038] The second neural network model is trained based on the geomagnetic fingerprint library and the target similar path set, wherein the target similar path set includes the sampling path to which the first positioning result belongs and the first sampling path, wherein the first sampling path is a sampling path among the multiple sampling paths, the similarity of the geomagnetic fingerprint information of the sampling path to which the first positioning result belongs being greater than a preset value.

[0039] Optionally, the training module is specifically used for:

[0040] In the process of performing the m-th window division on the geomagnetic fingerprint information at the second sampling moment, obtaining geomagnetic fingerprint information corresponding to multiple windows obtained by the m-th window division, wherein the geomagnetic fingerprint information at the second sampling moment is the geomagnetic fingerprint information at any one sampling moment of the multiple sampling moments of the target sampling path in the geomagnetic fingerprint library, m is any value from 1 to M, and M is a positive integer;

[0041] Determine the expanded geomagnetic fingerprint information according to the geomagnetic fingerprint information corresponding to the multiple windows obtained by the first to Mth window divisions;

[0042] Expanding the geomagnetic fingerprint library according to the location information of multiple sampling moments of the target sampling path and the expanded geomagnetic fingerprint information;

[0043] The first neural network model and / or the second neural network model are trained based on the expanded geomagnetic fingerprint library.

[0044] Optionally, the target neural network model includes a convolutional neural network and a long short-term memory neural network;

[0045] Wherein, the target neural network model includes a first neural network model and / or a second neural network model.

[0046] Optionally, the convolutional neural network includes an input layer, a convolutional layer and a fully connected layer connected in sequence, and the fully connected layer is connected to the long short-term memory neural network.

[0047] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program implements the steps of the positioning method described in the first aspect when executed by the processor.

[0048] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the positioning method described in the first aspect are implemented.

[0049] In an embodiment of the present invention, the geomagnetic fingerprint information is input into a first neural network model used for positioning, and a first positioning result output by the first neural network model is obtained; when there is no similar sampling path to the sampling path to which the first positioning result belongs, the first positioning result is determined as a target positioning result; when there is a similar sampling path to the sampling path to which the first positioning result belongs, the geomagnetic fingerprint information is input into a second neural network model corresponding to the sampling path to which the first positioning result belongs, and the target positioning result is obtained. In this way, by utilizing the correlation between the geomagnetic fingerprint information and the position information, positioning is performed through the first neural network model and the second neural network model, which can improve the positioning effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0051] Figure 1 is a flow chart of a positioning method provided by an embodiment of the present invention;

[0052] Figure 2 This is one of the structural schematic diagrams of a positioning device provided by an embodiment of the present invention;

[0053] Figure 3 This is a second structural schematic diagram of a positioning device provided by an embodiment of the present invention;

[0054] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] The embodiments of the present invention provide a positioning method, a device and an electronic device to solve the problem that the positioning effect of the existing GPS is poor indoors.

[0057] See also Figure 1 , Figure 1 is a flow chart of a positioning method provided by an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0058] Step 101: input geomagnetic fingerprint information into a first neural network model used for positioning, and obtain a first positioning result output by the first neural network model.

[0059] Among them, the geomagnetic fingerprint information may include geomagnetic sequence fingerprints, or may include filtered geomagnetic sequence fingerprints. The first neural network model can be obtained by training based on the geomagnetic fingerprint library or the expanded geomagnetic fingerprint library. The area to be located can be divided into multiple sampling paths, and the geomagnetic fingerprint library can store the location information of the multiple sampling paths and the corresponding relationship between the geomagnetic fingerprint information. The expanded geomagnetic fingerprint library can be obtained by multi-scale expansion of the geomagnetic fingerprint information in the geomagnetic fingerprint library. The first neural network model may include a convolutional neural network, a long short-term memory neural network, a recurrent neural network, or may include a convolutional neural network and a long short-term memory neural network, etc., which is not limited in this embodiment.

[0060] Step 102: When there is no similar sampling path to the sampling path to which the first positioning result belongs, determine the first positioning result as a target positioning result.

[0061] Among them, if there is a sampling path in the multiple sampling paths whose similarity with the geomagnetic fingerprint information of the sampling path to which the first positioning result belongs is greater than a preset value, it can be considered that there is a similar sampling path in the sampling path to which the first positioning result belongs; if there is no sampling path in the multiple sampling paths whose similarity with the geomagnetic fingerprint information of the sampling path to which the first positioning result belongs is greater than a preset value, it can be considered that there is no similar sampling path in the sampling path to which the first positioning result belongs. The dynamic time warping (Dynamic Time Warping, DTW) method can be used to calculate the similarity of geomagnetic fingerprint information. For example, after the area to be located is divided into multiple sampling paths, multiple similar path sets can be constructed based on the multiple sampling paths, and each similar path set can include at least two sampling paths, and the at least two sampling paths are similar sampling paths. If the number of sampling paths in the similar path set to which the sampling path to which the first positioning result belongs is greater than 1, it can be considered that there are similar sampling paths in the sampling path to which the first positioning result belongs.

[0062] Step 103: When there is a similar sampling path to the sampling path to which the first positioning result belongs, input the geomagnetic fingerprint information into a second neural network model corresponding to the sampling path to which the first positioning result belongs to obtain the target positioning result.

[0063] The target positioning result may be a final positioning result. Based on the multiple sampling paths, multiple similar path sets may be constructed, and each similar path set may correspond to a second neural network model. The second neural network model corresponding to each similar path set may be obtained by training using the geomagnetic fingerprint information and location information of the sampling path in the similar path set.

[0064] In the embodiment of the present invention, a model calculation method is adopted, and there is no need to match the stored fingerprint sequences one by one, which can greatly improve the positioning speed; and it can be applicable to the positioning of all indoor environments, meet the positioning matching requirements at different speeds, and the algorithm has high robustness and good universality; the first stage positioning is performed by a first neural network model corresponding to all sampling paths of the area to be positioned, and then the second stage positioning is performed by a second neural network model corresponding to a similar path set based on the positioning result of the first stage positioning. The two-stage positioning is performed by the first neural network model and the second neural network model, which can avoid the problem of poor positioning effect caused by path similarity in the indoor positioning area.

[0065] It should be noted that since the earth where humans live is itself a huge magnetic field, the geomagnetic fingerprint signal has high stability. This embodiment uses the characteristics of the indoor magnetic field to combine the geomagnetic fingerprint information with the position information for indoor positioning, which can improve the indoor positioning effect. By combining geomagnetic fingerprint information with position information for indoor positioning, there is no need to deploy infrastructure such as signal sending and receiving equipment on a large scale in the indoor environment. It is only necessary to collect the geomagnetic signal of the indoor area through the terminal to complete the calculation of the indoor position. The system construction and maintenance costs are low, the calculation efficiency is high, the robustness is high, and the universality is high.

[0066] In an embodiment of the present invention, the geomagnetic fingerprint information is input into a first neural network model used for positioning, and a first positioning result output by the first neural network model is obtained; when there is no similar sampling path to the sampling path to which the first positioning result belongs, the first positioning result is determined as a target positioning result; when there is a similar sampling path to the sampling path to which the first positioning result belongs, the geomagnetic fingerprint information is input into a second neural network model corresponding to the sampling path to which the first positioning result belongs, and the target positioning result is obtained. In this way, by utilizing the correlation between the geomagnetic fingerprint information and the position information, positioning is performed through the first neural network model and the second neural network model, which can improve the positioning effect.

[0067] Optionally, before inputting the geomagnetic fingerprint information into a first neural network model for positioning and obtaining a first positioning result output by the first neural network model, the method further includes:

[0068] Divide the area to be located into multiple sampling paths;

[0069] Determine a starting position and an end position of a target sampling path, wherein the target sampling path is any one of the multiple sampling paths;

[0070] Sampling is performed along the target sampling path between the starting position and the end position, and position information and geomagnetic fingerprint information of multiple sampling moments of the target sampling path are determined;

[0071] Building a geomagnetic fingerprint library based on the location information and the geomagnetic fingerprint information;

[0072] The first neural network model and / or the second neural network model are trained based on the geomagnetic fingerprint library.

[0073] The geomagnetic fingerprint library is constructed based on the location information and the geomagnetic fingerprint information, which may be constructed based on the location information and geomagnetic fingerprint information of the target sampling path at multiple sampling moments. The area to be positioned may be divided into R sampling paths based on the indoor environment characteristics and positioning accuracy requirements, and the path set may be used. Represents multiple sampling paths obtained by division, and this path set can completely cover the area to be located. The sampling period of the geomagnetic signal can be set to Δ t , and determine the starting position of the sampling path r of the positioning area target With the end position With sampling period Δ t Sampling is performed along the target sampling path between the starting position and the end position, and position information and geomagnetic fingerprint information of multiple sampling moments of the target sampling path are determined, wherein: The sampling time of the i-th sampling can be the sampling period Δ t The product of the sampling number i and the sum of the initial sampling time, T r is the time spent on collecting geomagnetic signals at r. The location information of the sampling time of the i-th sampling may include the time spent on collecting geomagnetic signals The corresponding position coordinates

[0074]

[0075] The method for determining the geomagnetic fingerprint information at the sampling time of the i-th sampling can be as follows:

[0076] Get the x, y, and z-axis components of the geomagnetic signal collected for the i-th sampling on the target sampling path r and its modulus The geomagnetic signal collected at the i-th sampling on r can be expressed as

[0077] Generate the geomagnetic sequence fingerprint corresponding to the i-th sampling for the target sampling path r It is expressed as:

[0078]

[0079] Where k is a positive integer. The geomagnetic sequence fingerprint of the i-th sampling It can be composed of the geomagnetic signals of the i-th sampling and the k-th sampling before the i-th sampling;

[0080] Using wavelet filtering to identify geomagnetic sequence fingerprints Perform low-pass filtering. For example, the low-pass filter used is l(n), then After low-pass filtering, it can be expressed as the filtered geomagnetic sequence fingerprint

[0081] It should be noted that the geomagnetic fingerprint information at the sampling time of the i-th sampling may include the geomagnetic sequence fingerprint of the i-th sampling Or it can include filtered geomagnetic sequence fingerprints This embodiment does not limit this. Low-pass filtering can eliminate the mutation effect of geomagnetic signals, thereby obtaining more stable geomagnetic fingerprint information.

[0082] In addition, in the geomagnetic fingerprint library, the location information and geomagnetic fingerprint information of the i-th sampling time can be obtained through the geomagnetic fingerprint tag In the form of geomagnetic fingerprint tag Display location information There is a mapping relationship with the change trends of the first k geomagnetic signals.

[0083] In practical applications, signal collectors can hold a smart terminal and move at a constant speed along the target sampling path r, sampling along the target sampling path between the starting position and the end position. Collecting geomagnetic signals through motion to build a geomagnetic fingerprint library can effectively avoid the problems of high cost, slow acquisition speed and low accuracy of fixed-point acquisition.

[0084] In addition, the training of the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library may be based on the location information of multiple sampling moments of the target sampling path in the geomagnetic fingerprint library and the geomagnetic fingerprint information to train the first neural network model and / or the second neural network model. For example, it may be based on the geomagnetic fingerprint tag in the geomagnetic fingerprint library. The first neural network model and / or the second neural network model are trained; or the geomagnetic fingerprint library is expanded, and the first neural network model and / or the second neural network model are trained based on the expanded geomagnetic fingerprint library; etc. This embodiment does not limit this.

[0085] It should be noted that in the embodiment of the present invention, the geomagnetic fingerprint library is constructed based on the geomagnetic fingerprint information. It only needs to select a sampling path for the area to be located, mark the starting position and the ending position of the sampling path, and the signal acquisition personnel move at a uniform speed along the sampling path in the area to be located with the intelligent terminal, record the geomagnetic signal of the sampling path and its acquisition time, and then the construction of the geomagnetic fingerprint library can be completed. Therefore, there is no need to collect samples for each grid point in the monitoring area for a long time and in multiple directions, and there is no need to mark the location information of each grid point, which greatly improves the speed of positioning fingerprint acquisition.

[0086] In this implementation, a geomagnetic fingerprint library is constructed based on geomagnetic fingerprint information, which can reduce the complexity and labor cost of positioning fingerprint collection.

[0087] Optionally, the geomagnetic fingerprint information at a first sampling moment is determined based on a geomagnetic signal collected at the first sampling moment and a geomagnetic signal collected at at least one sampling moment before the first sampling moment, and the first sampling moment is any one of the multiple sampling moments.

[0088] In this implementation, the geomagnetic fingerprint information at the first sampling moment is determined based on the geomagnetic signal collected at the first sampling moment and the geomagnetic signal collected at at least one sampling moment before the first sampling moment. The correlation between geomagnetic signal regions is taken into account in constructing the geomagnetic fingerprint library, which can solve the problem of low uniqueness of geomagnetic signals.

[0089] Optionally, the training the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library includes:

[0090] The second neural network model is trained based on the geomagnetic fingerprint library and the target similar path set, wherein the target similar path set includes the sampling path to which the first positioning result belongs and the first sampling path, wherein the first sampling path is a sampling path among the multiple sampling paths, the similarity of the geomagnetic fingerprint information of the sampling path to which the first positioning result belongs being greater than a preset value.

[0091] The similarity of the geomagnetic sequence fingerprints or filtered geomagnetic sequence fingerprints between any two sampling paths can be compared, and multiple sampling paths whose similarity of the geomagnetic sequence fingerprints or filtered geomagnetic sequence fingerprints exceeds a preset value α are combined into a similar path set. Take the construction of similar path set as an example, q is the path set The sampling paths in the first place are initialized to 1, and the similar path set N of the sampling path q is q The initial value N q ={q}; for the path set For other sampling paths other than sampling path q, calculate the similarity measure d between the geomagnetic sequence fingerprint of sampling path q and other sampling paths j or the filtered geomagnetic sequence fingerprint. qj ,in, And j≠q; if d qj >α, then in the similar path set N of the sampled path q q Add sampling path j, that is, N q =N q +{j}, and from the path set Delete the sampling path j, that is q=q+1, returns the similarity measure d between the geomagnetic sequence fingerprint or the filtered geomagnetic sequence fingerprint of the sampling path q and other sampling paths j. qj , until q is a path set The last sampling path in .

[0092] It should be noted that since the number of fingerprints between any two sampling paths q and j is not equal, the dynamic time warping method can be used to evaluate the similarity of the two sampled geomagnetic sequence fingerprints or the filtered geomagnetic sequence fingerprints, d qj It can be the dynamic time warping distance of the geomagnetic sequence fingerprint or the filtered geomagnetic sequence fingerprint between the sampling path q and the sampling path j.

[0093] In this implementation, the second neural network model is trained based on the geomagnetic fingerprint library and the target similar path set. The trained second neural network model has a better positioning effect on the position points on the sampling path in the target similar path set, thereby improving the positioning effect.

[0094] Optionally, the training the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library includes:

[0095] In the process of performing the m-th window division on the geomagnetic fingerprint information at the second sampling moment, obtaining geomagnetic fingerprint information corresponding to multiple windows obtained by the m-th window division, wherein the geomagnetic fingerprint information at the second sampling moment is the geomagnetic fingerprint information at any one sampling moment of the multiple sampling moments of the target sampling path in the geomagnetic fingerprint library, m is any value from 1 to M, and M is a positive integer;

[0096] Determine the expanded geomagnetic fingerprint information according to the geomagnetic fingerprint information corresponding to the multiple windows obtained by the first to Mth window divisions;

[0097] Expanding the geomagnetic fingerprint library according to the location information of multiple sampling moments of the target sampling path and the expanded geomagnetic fingerprint information;

[0098] The first neural network model and / or the second neural network model are trained based on the expanded geomagnetic fingerprint library.

[0099] Among them, M can be a multi-scale factor, which can receive the user's input operation and determine the value input by the user as the M value. In the geomagnetic fingerprint library, the location information and geomagnetic fingerprint information of the sampling time of the i-th sampling are obtained through the geomagnetic fingerprint tag For example, the geomagnetic fingerprint label can be expressed in the form of multi-scale factor M. For example, in the process of performing the mth window division on the geomagnetic fingerprint information at the second sampling moment, let The length is Bundle Average share The geomagnetic fingerprint information in each window is averaged, and the average values ​​of the geomagnetic fingerprint information obtained from all windows are combined into the geomagnetic fingerprint information corresponding to the multiple windows obtained by the mth window division. The above merging may refer to taking the average value of each window as The expanded geomagnetic fingerprint information may include geomagnetic fingerprint information corresponding to multiple windows obtained by the first to Mth window divisions, and the expanded geomagnetic fingerprint information may include:

[0100]

[0101] In addition, in the expanded geomagnetic fingerprint library, the position information of the i-th sampling time of the target sampling path r and the expanded geomagnetic fingerprint information can be obtained by expanding the geomagnetic fingerprint tag Indicates that the geomagnetic fingerprint label is expanded Can include location information The geomagnetic fingerprint information corresponding to the multiple windows obtained by the 1st to Mth window divisions is used to expand the geomagnetic fingerprint label

[0102]

[0103] It should be noted that each geomagnetic fingerprint tag in the geomagnetic fingerprint library can be Perform multi-scale expansion to obtain each geomagnetic fingerprint label Corresponding extended geomagnetic fingerprint label

[0104] In addition, the training of the first neural network model and / or the second neural network model based on the expanded geomagnetic fingerprint library may be based on the location information of multiple sampling moments of the target sampling path and the expanded geomagnetic fingerprint information. For example, the training of the first neural network model and / or the second neural network model may be based on the expanded geomagnetic fingerprint tag in the expanded geomagnetic fingerprint library. The first neural network model and / or the second neural network model are trained, that is, the expanded geomagnetic fingerprint tags in the expanded geomagnetic fingerprint library are The first neural network model and / or the second neural network model are trained as training samples.

[0105] It should be noted that if the first neural network model and / or the second neural network model are trained based on the expanded geomagnetic fingerprint library, the geomagnetic fingerprint information s of the location to be located can be collected when the first neural network model and / or the second neural network model are used for positioning. d , and geomagnetic fingerprint information s d Perform multi-scale expansion to obtain expanded geomagnetic fingerprint information

[0106]

[0107] Geomagnetic fingerprint information will be expanded A first neural network model is input to obtain a first positioning result output by the first neural network model; when there is no similar sampling path to the sampling path to which the first positioning result belongs, the first positioning result is determined as the target positioning result; when there is a similar sampling path to the sampling path to which the first positioning result belongs, the geomagnetic fingerprint information is input into a second neural network model corresponding to the sampling path to which the first positioning result belongs to obtain the target positioning result.

[0108] In addition, the training of the second neural network model based on the geomagnetic fingerprint library and the target similar path set may be based on the expanded geomagnetic fingerprint library and the target similar path set. For example, the expanded geomagnetic fingerprint label of the sampled path in the target similar path set in the expanded geomagnetic fingerprint library may be Use it as a training sample to train the second neural network model

[0109] In this implementation, by performing multi-scale expansion on the geomagnetic fingerprint information in the geomagnetic fingerprint library, the differences in sampled geomagnetic fingerprint information caused by differences in pedestrian movement pace and movement speed can be reduced, the stability problem of geomagnetic positioning at different movement speeds is solved, and the robustness of the positioning method can be effectively improved, thereby improving the positioning effect.

[0110] Optionally, the target neural network model includes a convolutional neural network and a long short-term memory neural network;

[0111] Wherein, the target neural network model includes a first neural network model and / or a second neural network model.

[0112] In this implementation, the target neural network model integrates the convolutional neural network and the long short-term memory neural network LSTM, which can simultaneously extract the spatial and temporal characteristics of the geomagnetic fingerprint information, so that the target neural network model is used for positioning, which can improve the positioning effect.

[0113] Optionally, the convolutional neural network includes an input layer, a convolutional layer and a fully connected layer connected in sequence, and the fully connected layer is connected to the long short-term memory neural network.

[0114] The convolution layer may include a first subconvolution layer and a second subconvolution layer, and the convolution neural network may include an input layer, a first subconvolution layer, a second subconvolution layer and a fully connected layer connected in sequence. Taking the training sample as an example to train the target neural network model, the first sub-convolution layer may include six 3×3 convolution kernels, and the second sub-convolution layer may include a 1×1 convolution kernel. Six 3×3 convolution kernels are used to extract the first sub-convolution layer. The first layer of spatiotemporal correlation features In the second sub-convolutional layer, a 1×1 convolution kernel is used to extract the spatiotemporal correlation features of the first layer. The second layer of spatiotemporal correlation features A fully connected network is used in the fully connected layer, and the second layer of spatiotemporal related features are extracted using the fully connected network Feature information The characteristic information The long short-term memory neural network is input, and the parameters of the target neural network model are reversely updated based on the output of the long short-term memory neural network to achieve training of the target neural network model.

[0115] In this implementation, the pooling layer of the conventional convolutional neural network is removed from the convolutional neural network of the target neural network model, thereby avoiding information loss and accelerating the convergence speed.

[0116] As a specific implementation, the positioning method provided by the embodiment of the present invention may include the following process:

[0117] Inputting the geomagnetic fingerprint information into a first neural network model for positioning, and obtaining a first positioning result output by the first neural network model;

[0118] In a case where there is no similar sampling path to the sampling path to which the first positioning result belongs, determining the first positioning result as a target positioning result;

[0119] In the case that a similar sampling path exists in the sampling path to which the first positioning result belongs, inputting the geomagnetic fingerprint information into a second neural network model corresponding to the sampling path to which the first positioning result belongs, to obtain the target positioning result;

[0120] The training process of the first neural network model and the second neural network model is as follows:

[0121] Divide the area to be located into multiple sampling paths;

[0122] Determine a starting position and an end position of a target sampling path, wherein the target sampling path is any one of the multiple sampling paths;

[0123] Sampling is performed along the target sampling path between the starting position and the end position, and position information and geomagnetic fingerprint information of multiple sampling moments of the target sampling path are determined;

[0124] Building a geomagnetic fingerprint library based on the location information and the geomagnetic fingerprint information;

[0125] In the process of performing the m-th window division on the geomagnetic fingerprint information at the second sampling moment, obtaining geomagnetic fingerprint information corresponding to multiple windows obtained by the m-th window division, wherein the geomagnetic fingerprint information at the second sampling moment is the geomagnetic fingerprint information at any one sampling moment of the multiple sampling moments of the target sampling path in the geomagnetic fingerprint library, m is any value from 1 to M, and M is a positive integer;

[0126] Determine the expanded geomagnetic fingerprint information according to the geomagnetic fingerprint information corresponding to the multiple windows obtained by the first to Mth window divisions;

[0127] Expanding the geomagnetic fingerprint library according to the location information of multiple sampling moments of the target sampling path and the expanded geomagnetic fingerprint information;

[0128] Training the first neural network model based on the expanded geomagnetic fingerprint library;

[0129] The second neural network model is trained based on the expanded geomagnetic fingerprint library and the target similar path set, wherein the target similar path set includes the sampling path to which the first positioning result belongs and the first sampling path, wherein the first sampling path is a sampling path among the multiple sampling paths whose similarity in geomagnetic fingerprint information with the sampling path to which the first positioning result belongs is greater than a preset value.

[0130] See also Figure 2 , Figure 2 is one of the structural schematic diagrams of a positioning device provided by an embodiment of the present invention, such as Figure 2 As shown, the positioning device 200 includes:

[0131] A first input module 201, used to input geomagnetic fingerprint information into a first neural network model used for positioning, and obtain a first positioning result output by the first neural network model;

[0132] A first determination module 202 is configured to determine the first positioning result as a target positioning result when there is no similar sampling path to the sampling path to which the first positioning result belongs;

[0133] The second input module 203 is used to input the geomagnetic fingerprint information into a second neural network model corresponding to the sampling path to which the first positioning result belongs, when there is a similar sampling path to which the first positioning result belongs, to obtain the target positioning result.

[0134] Optional, such as Figure 3 As shown, the device 200 also includes:

[0135] A division module 204 is used to divide the area to be located into multiple sampling paths;

[0136] A second determination module 205 is used to determine a starting position and an end position of a target sampling path, wherein the target sampling path is any one of the multiple sampling paths;

[0137] A sampling module 206, configured to perform sampling along the target sampling path between the starting position and the end position, and determine position information and geomagnetic fingerprint information of multiple sampling moments of the target sampling path;

[0138] A construction module 207, configured to construct a geomagnetic fingerprint library based on the location information and the geomagnetic fingerprint information;

[0139] The training module 208 is used to train the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library.

[0140] Optionally, the geomagnetic fingerprint information at a first sampling moment is determined based on a geomagnetic signal collected at the first sampling moment and a geomagnetic signal collected at at least one sampling moment before the first sampling moment, and the first sampling moment is any one of the multiple sampling moments.

[0141] Optionally, the training module is specifically used for:

[0142] The second neural network model is trained based on the geomagnetic fingerprint library and the target similar path set, wherein the target similar path set includes the sampling path to which the first positioning result belongs and the first sampling path, wherein the first sampling path is a sampling path among the multiple sampling paths, the similarity of the geomagnetic fingerprint information of the sampling path to which the first positioning result belongs being greater than a preset value.

[0143] Optionally, the training module 208 is specifically used for:

[0144] In the process of performing the m-th window division on the geomagnetic fingerprint information at the second sampling moment, obtaining geomagnetic fingerprint information corresponding to multiple windows obtained by the m-th window division, wherein the geomagnetic fingerprint information at the second sampling moment is the geomagnetic fingerprint information at any one sampling moment of the multiple sampling moments of the target sampling path in the geomagnetic fingerprint library, m is any value from 1 to M, and M is a positive integer;

[0145] Determine the expanded geomagnetic fingerprint information according to the geomagnetic fingerprint information corresponding to the multiple windows obtained by the first to Mth window divisions;

[0146] Expanding the geomagnetic fingerprint library according to the location information of multiple sampling moments of the target sampling path and the expanded geomagnetic fingerprint information;

[0147] The first neural network model and / or the second neural network model are trained based on the expanded geomagnetic fingerprint library.

[0148] Optionally, the target neural network model includes a convolutional neural network and a long short-term memory neural network;

[0149] Wherein, the target neural network model includes a first neural network model and / or a second neural network model.

[0150] Optionally, the convolutional neural network includes an input layer, a convolutional layer and a fully connected layer connected in sequence, and the fully connected layer is connected to the long short-term memory neural network.

[0151] The positioning device can achieve Figure 1 The various processes implemented in the method embodiment can achieve the same technical effect, and to avoid repetition, they will not be described again here.

[0152] like Figure 4 As shown, an embodiment of the present invention further provides an electronic device 300, including: a processor 301, a memory 302, and a program stored in the memory 302 and executable on the processor 301. When the program is executed by the processor 301, each process of the above-mentioned positioning method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0153] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above positioning method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a ROM, RAM, a magnetic disk or an optical disk.

[0154] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0155] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0156] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A positioning method, characterized in that: The method comprises: Inputting geomagnetic fingerprint information into a first neural network model for positioning, and obtaining a first positioning result output by the first neural network model; In a case where there is no similar sampling path to the sampling path to which the first positioning result belongs, determining the first positioning result as a target positioning result; In the case that a similar sampling path exists in the sampling path to which the first positioning result belongs, inputting the geomagnetic fingerprint information into a second neural network model corresponding to the sampling path to which the first positioning result belongs, to obtain the target positioning result; Before inputting the geomagnetic fingerprint information into the first neural network model for positioning and obtaining the first positioning result output by the first neural network model, the method further includes: Divide the area to be located into multiple sampling paths; Determine a starting position and an end position of a target sampling path, wherein the target sampling path is any one of the multiple sampling paths; Sampling is performed along the target sampling path between the starting position and the end position, and position information and geomagnetic fingerprint information of multiple sampling moments of the target sampling path are determined; Building a geomagnetic fingerprint library based on the location information and the geomagnetic fingerprint information; Training the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library; The training of the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library includes: The second neural network model is trained based on the geomagnetic fingerprint library and the target similar path set, wherein the target similar path set includes the sampling path to which the first positioning result belongs and the first sampling path, wherein the first sampling path is a sampling path among the multiple sampling paths, the similarity of the geomagnetic fingerprint information of the sampling path to which the first positioning result belongs being greater than a preset value.

2. The method according to claim 1, characterized in that: The geomagnetic fingerprint information at the first sampling moment is determined based on the geomagnetic signal collected at the first sampling moment and the geomagnetic signal collected at at least one sampling moment before the first sampling moment, and the first sampling moment is any one of the multiple sampling moments.

3. The method according to claim 1, characterized in that The training of the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library includes: In the process of performing the m-th window division on the geomagnetic fingerprint information at the second sampling moment, obtaining geomagnetic fingerprint information corresponding to multiple windows obtained by the m-th window division, wherein the geomagnetic fingerprint information at the second sampling moment is the geomagnetic fingerprint information at any one sampling moment of the multiple sampling moments of the target sampling path in the geomagnetic fingerprint library, m is any value from 1 to M, and M is a positive integer; Determine the expanded geomagnetic fingerprint information according to the geomagnetic fingerprint information corresponding to the multiple windows obtained by the first to Mth window divisions; Expanding the geomagnetic fingerprint library according to the location information of multiple sampling moments of the target sampling path and the expanded geomagnetic fingerprint information; The first neural network model and / or the second neural network model are trained based on the expanded geomagnetic fingerprint library.

4. The method according to claim 1, characterized in that: The target neural network models include convolutional neural networks and long short-term memory neural networks; Wherein, the target neural network model includes a first neural network model and / or a second neural network model.

5. The method according to claim 4, characterized in that The convolutional neural network includes an input layer, a convolutional layer and a fully connected layer connected in sequence, and the fully connected layer is connected to the long short-term memory neural network.

6. A positioning device, characterized in that: The device comprises: A first input module, used to input geomagnetic fingerprint information into a first neural network model used for positioning, and obtain a first positioning result output by the first neural network model; A first determination module, configured to determine the first positioning result as a target positioning result when there is no similar sampling path to the sampling path to which the first positioning result belongs; A second input module is used to input the geomagnetic fingerprint information into a second neural network model corresponding to the sampling path to which the first positioning result belongs, so as to obtain the target positioning result when there is a similar sampling path to which the first positioning result belongs; The device also includes: A division module, used for dividing the area to be located into multiple sampling paths; A second determination module is used to determine a starting position and an end position of a target sampling path, wherein the target sampling path is any one of the multiple sampling paths; A sampling module, used to perform sampling along the target sampling path between the starting position and the end position, and determine the position information and geomagnetic fingerprint information of multiple sampling moments of the target sampling path; A construction module, used to construct a geomagnetic fingerprint library based on the location information and the geomagnetic fingerprint information; A training module, used for training the first neural network model and / or the second neural network model based on the geomagnetic fingerprint library; The training module is specifically used for: The second neural network model is trained based on the geomagnetic fingerprint library and the target similar path set, wherein the target similar path set includes the sampling path to which the first positioning result belongs and the first sampling path, wherein the first sampling path is a sampling path among the multiple sampling paths, the similarity of the geomagnetic fingerprint information of the sampling path to which the first positioning result belongs being greater than a preset value.

7. An electronic device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the positioning method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the positioning method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Indoor positioning method and positioning system

    CN106289257A

  • Terrestrial magnetic positioning method suitable for indoor free motion carrier

    CN107543541A