Indoor positioning method and device, equipment, storage medium and program product
By correlating 5G MDT and 5G DPI data, an indoor fingerprint database is constructed and cross-verified, which solves the problem of inaccurate indoor positioning, achieves indoor terminal positioning accurate to the floor, and improves positioning accuracy and reliability.
Patent Information
- Application Number
- CN202410750904.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-03
AI Technical Summary
The existing technology is not accurate in terminal positioning in indoor environments and is affected by multipath effects and signal attenuation, making it difficult to achieve accurate indoor positioning.
By correlating 5G MDT data and 5G DPI data, an indoor fingerprint database is constructed, altitude information and signal information are used for indoor floor positioning, and 5G MDT and 5G MR data are combined for cross-validation to ensure the accuracy and reliability of positioning results.
It achieves precise positioning of indoor terminals, and the positioning accuracy reaches floor level, which improves the accuracy and reliability of indoor positioning and avoids the problem of limited GPS signals.
Smart Images

Figure CN118590986A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of terminal positioning technology, and in particular to an indoor positioning method, device, equipment, storage medium and program product. Background Art
[0002] Terminal positioning is widely used, for example, in navigation, user behavior analysis, etc. In the prior art, when the terminal is indoors, due to the presence of buildings and complex environment, indoor positioning methods may be affected by multipath effects, signal attenuation, etc. in complex indoor environments, and the positioning results are often inaccurate. Summary of the invention
[0003] The present invention provides an indoor positioning method, device, equipment, storage medium and program product, which are used to solve the defect of inaccurate positioning of a terminal indoors in the prior art and realize accurate positioning of the indoor terminal.
[0004] The present invention provides an indoor positioning method, comprising: Based on the common parameters in the 5G MDT data and the 5G DPI data, the 5G MDT data and the 5G DPI data of the target terminal are associated to obtain the location information of the target terminal, where the location information includes altitude information and signal information; when it is determined that the target terminal is indoors based on the signal information of the target terminal, the indoor floor positioning result of the target terminal at the target time is determined according to the location information of the target terminal at the target time and a preset indoor fingerprint library, where the indoor fingerprint library includes multiple grids, each grid includes at least one location fingerprint, and the location fingerprint includes the altitude data, longitude and latitude positions and the signal information of the sample terminal.
[0005] According to the indoor positioning method provided by the present invention, after obtaining the location information of the target terminal, the method includes: Verify the location information based on the location information, first longitude and latitude information, and second longitude and latitude information at the same time, where the first longitude and latitude information comes from 5G MDT data, and the second longitude and latitude information comes from 5G DPI data; When the verification result is that the distance between the geographical locations corresponding to the first longitude and latitude information and the second longitude and latitude information exceeds a preset distance, the location information is deleted.
[0006] According to the indoor positioning method provided by the present invention, the indoor floor positioning result of the target terminal at the target time is determined according to the position information of the target terminal at the target time and a preset indoor fingerprint library, including: determining the grid corresponding to the target terminal in the indoor fingerprint library based on the signal information of the target terminal at the target time to determine the longitude and latitude position of the target terminal; Determine the building where the target terminal is located based on the latitude and longitude position of the target terminal; The floor of the target terminal is determined based on the altitude information of the target terminal at the target time and the height data of the building where the target terminal is located.
[0007] According to the indoor positioning method provided by the present invention, the signal information includes a main area signal strength parameter value and a neighboring area signal strength parameter value.
[0008] According to the indoor positioning method provided by the present invention, the determining the floor of the target terminal based on the altitude information of the target terminal at the target time and the height data of the building where the target terminal is located includes: optimizing the altitude information of the target terminal at the target time based on the altitude information of the target terminal at a time before the target time to obtain optimized altitude information; The floor of the target terminal is determined based on the optimized height information, the height data in the indoor fingerprint library, and the height data of the building where the target terminal is located.
[0009] According to the indoor positioning method provided by the present invention, after determining the indoor floor positioning result of the target terminal at the target time, the method includes: Associating the 5G MDT data and the 5G MR data of the target terminal based on the common parameters of the 5G MDT data and the 5G MR data; The 5G MDT data and the 5G MR data of the target terminal are cross-validated to obtain a verification result of the indoor floor positioning result.
[0010] The present invention also provides an indoor positioning device, comprising: A data association module, used to associate the 5G MDT data and the 5G DPI data of the target terminal based on the common parameters in the 5G MDT data and the 5G DPI data, to obtain the location information of the target terminal, wherein the location information includes altitude information and signal information; A floor positioning module is used to determine the indoor floor positioning result of the target terminal at the target time according to the position information of the target terminal at the target time and a preset indoor fingerprint library when it is determined that the target terminal is indoors based on the signal information of the target terminal, wherein the indoor fingerprint library includes multiple grids, each grid includes at least one position fingerprint, and the position fingerprint includes the height data, longitude and latitude positions of the sample terminal and the signal information.
[0011] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the indoor positioning methods described above is implemented.
[0012] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the indoor positioning method as described above is implemented.
[0013] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the indoor positioning method described above is implemented.
[0014] The indoor positioning method, device, equipment, storage medium and program product provided by the present invention obtain the altitude information and signal information of the target terminal by associating 5G MDT data with 5G DPI data, and construct an indoor fingerprint library based on the altitude data, longitude and latitude positions and signal information of multiple sample terminals. When it is determined that the target terminal is indoors based on the signal information of the target terminal, the indoor floor positioning result of the target terminal at the target time is determined according to the altitude information and signal information of the target terminal at the target time and the position fingerprint in the indoor fingerprint library. The present invention associates 5G MDT data with 5G DPI data and uses them together with the indoor fingerprint library for indoor positioning of terminals, so as to achieve accurate positioning of indoor terminals, and the positioning accuracy can reach the floor level. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 This is one of the flow charts of an indoor positioning method provided by the present invention.
[0017] Figure 2 This is the second flow chart of an indoor positioning method provided by the present invention.
[0018] Figure 3 This is a schematic diagram of associating 5G MDT data and 5G DPI data in an indoor positioning method provided by the present invention.
[0019] Figure 4 It is a schematic diagram of longitude and latitude information verification in an indoor positioning method provided by the present invention.
[0020] Figure 5 It is a flow chart of judging whether a target terminal is indoors in an indoor positioning method provided by the present invention.
[0021] Figure 6 It is a schematic diagram of a process of establishing an indoor fingerprint database in an indoor positioning method provided by the present invention.
[0022] Figure 7 It is a schematic diagram of a flow chart of determining the floor of a target terminal in an indoor positioning method provided by the present invention.
[0023] Figure 8 It is a schematic diagram of cross-validation of 5G MDT data and 5G MR data in an indoor positioning method provided by the present invention.
[0024] Fig. 9 It is a structural schematic diagram of the indoor positioning device provided by the present invention.
[0025] Fig.10 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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.
[0027] like Figure 1 As shown, an indoor positioning method provided by the present invention is applied to an authentication system server, and includes the steps of: S110, associating the 5G MDT data and 5GDPI data of the target terminal based on the common parameters in the 5G MDT data and the 5G DPI data to obtain the location information of the target terminal, and the location information includes altitude information and signal information; S120, when it is determined that the target terminal is indoors based on the signal information of the target terminal, the indoor floor positioning result of the target terminal at the target time is determined according to the location information of the target terminal at the target time and a preset indoor fingerprint library, the indoor fingerprint library includes multiple grids, each grid includes at least one location fingerprint, and the location fingerprint includes the altitude data, longitude and latitude positions and signal information of the sample terminal.
[0028] The method provided by the present invention uses 5G MDT data and 5G DPI data in combination with correlation for analysis and positioning, which can provide multi-source data, improve data integrity and accuracy, and accurately analyze user locations. The data used for positioning, including 5G MDT data and 5G DPI data, are all network-generated data and do not require user authorization and activation (5G MDT data requires user contracting). In this process, all positioning is based on the operator's network data and is not restricted by GPS.
[0029] Specifically, the common parameters of 5G MDT and 5G DPI data include: timestamp, AMF area identifier, AMF set identifier, AMF pointer, IMSI, IMEI, AMF UE NGAP ID, serving cell ID, etc. Figure 3 As shown, 5G MDT is associated with N1N2 signaling data through timestamp+AMF UENGAP ID+AMF Region ID+AMF Set ID+AMF Pointer, and N3 and N4 data are associated through timestamp+n3-TEID+user ip and other fields, finally realizing the purpose of associating the user information, longitude and latitude, service flow, log, HTTP information extracted from N4 in 5G DPI data with the signal strength, signal quality, longitude and latitude, and altitude wireless information in 5G MDT. In this way, the signal information and altitude information of the target terminal can be extracted from the massive network data.
[0030] The signal information reflects the signal status of the target terminal, and the signal information may include TA value, WiFi MAC address, signal strength RSRP, etc.
[0031] Based on 5G MDT data, you can obtain indicators such as the signal strength and signal quality of the device in the building, so as to judge the coverage in the building. 5G MDT data can also provide the location information of the device. By combining it with the floor plan of the building or the indoor map, you can perform positioning analysis on the indoor coverage and determine the location of weak signal areas or blind spots.
[0032] Based on 5G DPI data, we can deeply analyze the data transmission of devices in buildings, including Wi-Fi MAC addresses, data traffic, transmission rates, connection stability, etc. By analyzing 5G DPI data, we can find problems such as network congestion and bandwidth bottlenecks, and determine whether they affect precise indoor coverage.
[0033] In order to make the longitude and latitude in the DPI data more accurate, the API interface Socket can be used to parse the data packet content of the user's APP (mobile's own app and other CQT, crowdsourcing) device interacting with the network, extract the auxiliary positioning data such as the Wi-Fi AP information accessed by the user or the location information requested by the application service, and obtain the WiFi field strength information and MAC address of the indoor building. Each wireless AP has a unique physical address in the world. When the mobile phone turns on WiFi, it can scan and collect the surrounding AP signals and upload them to the server, thus establishing a "location-signal strength" database.
[0034] like Figure 2 As shown in the figure, both 5G MDT and 5G DPI data include longitude and latitude information. After obtaining the location information of the target terminal, the longitude and latitude information included in both can be used to verify the data, and the data with large differences can be eliminated to ensure the accuracy of the location information used for subsequent positioning. Specifically, after obtaining the location information of the target terminal, it includes: The location information is verified based on the location information, the first longitude and latitude information, and the second longitude and latitude information at the same time, where the first longitude and latitude information comes from the 5G MDT data, and the second longitude and latitude information comes from the 5G DPI data; When the verification result is that the distance between the geographical locations corresponding to the first longitude and latitude information and the second longitude and latitude information exceeds a preset distance, the location information is deleted.
[0035] A variety of existing algorithms can be used to obtain the distance between the geographical locations corresponding to the first longitude and latitude information and the second longitude and latitude information, and the data other than the difference of 10 meters (it can also be set to other values, which can be determined according to the actual positioning needs) will be eliminated to ensure the accuracy of the location information used for indoor user positioning. For example, the Vincenty algorithm can be used to convert the first longitude and latitude information and the second longitude and latitude information into grid coordinates, and the longitude and latitude information (λ1, φ1) of 5G MDT and the longitude and latitude information (λ2, φ2) of 5G DPI are simultaneously mapped to the same grid ID to perform longitude and latitude verification on the two. The specific formula of the Vincenty algorithm is as follows: Figure 4 As shown: a: Earth's equatorial radius
[0036] b: Earth's polar radius
[0037] f: Earth's flattening
[0038] φ1, φ2: latitude of two points
[0039] λ1,λ2: longitude of two points
[0040] L: The great circle distance between two points.
[0041] The calculation steps of Vincenty formula are as follows: Calculate the square of the first eccentricity: e 2 =(a 2 -b 2 ) / a 2 ; Calculate the reduced latitude between two points: U1 = atan((1-f)*tan(φ1))U2 = atan((1-f)*tan(φ2)); Calculate the square of the meridian curvature radius: A1 = cos(U1)*sin(λ1) A2 = cos(U2)*sin(λ2) B1 = cos(U1)*cos(λ1) B2 = cos(U2)*cos(λ2) Δλ = λ2-λ1 L = Δλ; Iterative calculation: During the iteration process, L is calculated using the following formula: sinσ=sqrt((cos(U2)*sin(Δλ)) 2 +(cos(U1)*sin(U2)-sin(U1)*cos(U2)*cos(Δλ)) 2 )cosσ=sin(U1)*sin(U2)+cos(U1)*cos(U2)*cos(Δλ)σ=atan2(sinσ,cosσ)sinα=(cos(U1)*cos(U2)*sin(Δλ)) / sinσcos 2 α=1-sin 2 αcos2σm=cosσ-(2*sin(U1)*sin(U2)) / cos 2 αC=(f / 16)*cos 2 α*(4+f*(4-3*cos 2 α))λ=Δλ+(1-C)*f*sinα*(σ+C*sinσ*(cos2σm+C*cosσ*(-1+2*cos2σm 2 )))L=LL=Δλ+(1-C)*f*sinα*(σ+C*sinσ*(cos2σm+C*cosσ*(-1+2*cos2σm 2 ))); When the difference between L and L is less than the specified accuracy requirement, the iteration ends, and L is the distance between the 5G DPI longitude and latitude points and the 5GMDT longitude and latitude points. Under high accuracy requirements, more accurate results can be obtained, thus ensuring the accurate location information of indoor users.
[0042] After obtaining the location information of the target terminal, before performing indoor positioning of the target terminal based on the location information, first determine whether the target terminal is indoors. If not, the outdoor positioning method can be called for positioning. If the target terminal is indoors, then use the indoor fingerprint library for indoor positioning. To determine whether the target terminal is indoors based on the signal information of the target terminal, features related to indoor scene recognition can be extracted from the signal information. Specifically, first determine whether the main service cell of the target terminal is an indoor cell. If not, it can be determined that the target terminal is not indoors. If so, proceed to the next step of judgment. When the main service cell of the target terminal is an indoor cell, determining whether the target terminal is indoors can be achieved through data in the signal information that can reflect the characteristics of the indoor scene.
[0043] In a possible implementation, it is possible to determine whether it is an indoor user based on the TA value in the MDT data and the WiFi MAC address and signal strength RSRP in the DPI data. Specifically, since TA is the maximum time advance and will not change due to the wear and tear of the wall, the indoor field strength will decrease due to the wear and tear caused by the wall. If it is an indoor user, the time of the same S1 user is drawn into a line, with no obvious movement, and the latitude and longitude of the sampling points are all within the building outline.
[0044] In another possible implementation, in order to improve the accuracy of the result of confirming whether the target terminal is indoors, such as Figure 2 As shown, the support vector machine (SVM) machine learning model can be used to extract data related to indoor scene recognition in the signal information as features for training, and the data related to indoor scene recognition in the signal information of the target terminal is input into the trained model to perform scene recognition and output the judgment result of whether the target terminal is indoors. Figure 5 As shown, specifically, suppose there are m vectors X1~Xm in the n-dimensional vector space, and each vector Xi corresponds to a label, where the label value of some vectors is 1, and the label value of the other vectors is -1. Construct a hyperplane in the n-dimensional vector space, and while correctly classifying the samples, make the support vectors found on both sides of the hyperplane (that is, the vectors with the shortest geometric distance to the hyperplane) as far away from this hyperplane as possible. w is the weight associated with the sample data. X represents the input feature data, y represents indoor and outdoor recognition, and the formula is as follows:
[0045] sty i (w T X i +b)≥1, i=1,2,...,m.
[0046] Before determining the indoor floor positioning result of the target terminal at the target time according to the location information of the target terminal at the target time and the preset indoor fingerprint library, offline training is performed to build the indoor fingerprint library. Specifically, test data (CQT), MDT data with longitude and latitude, crowd-test data, and mobile app or other longitude and latitude DPI data are selected for fingerprint library training to obtain the indoor fingerprint library.
[0047] The indoor fingerprint database is established by collecting data from multiple sample terminals, such as Figure 6 As shown in the figure, the general steps for establishing an indoor fingerprint database are as follows: 1. Data collection: First, it is necessary to collect 5G MDT user height information and 5G DPI user information data in an indoor environment.
[0048] 2. Data preprocessing: 5G MDT and 5G DPI data need to be preprocessed, including data cleaning, coordinate conversion and other operations. These preprocessing operations can improve the accuracy and reliability of subsequent fingerprint establishment. During data preprocessing, the reliability of the data can be judged by multiple data indicators (such as RSRQ, SINRUL, SINRDL, etc.), and data with low reliability can be eliminated.
[0049] 3. Fingerprint extraction: After preprocessing, 5G MDT and 5G DPI data can be used to extract indoor fingerprints. 5G MDT data can be used to extract feature points of UE terminals on indoor trajectories, while 5G DPI data can be used to extract signal features in indoor environments, etc. That is, user height data is extracted from 5G MDT data, signal information is extracted from 5G DPI data and 5G MDT, and location data is extracted from 5G DPI data and 5G MDT (the latitude and longitude information in 5G DPI data and 5G GDPI data can be averaged as location data). Signal information reflects the signal characteristics of the sample terminal. In a possible implementation, the signal information may include signal strength RSRP data of the main area and the neighboring area. Specifically, the main fields involved in the 5G MDT and 5G DPI associated data include: eNBid, ScRSRP, ScEarfcn, ScPCI, ScTadv, ScAOA, NcEarfcn, NcPCI, NcRSRP, WIFI-RSRP, longitude and latitude, altitude, etc. First, preprocess the field, associate the indoor cell identifier (CGI) with the neighboring cell information, and use Earfcn and PCI to associate the longitude and latitude into the Geohash grid. After the 5G MDT and 5G DPI longitude and latitude are verified, the 5G MDT sampling point and the 5G DPI user sampling point are associated with the longitude and latitude in the same grid according to the grid ID and neighboring cell information to establish an indoor fingerprint library. The extracted UE height information of 5G MDT is stored in the indoor fingerprint library. The RSRP in the MDT data and the RSRP of the DPI data wifi MAC address are averaged for all sample points in the same grid to build the fingerprint library: GeoHash = (ScCGI, ScRSRP, [NcCGI1, NcRSRP1], ..., [NcCGIn, NcRSRPn]).
[0050] 4. Establish a fingerprint database: Store the extracted indoor user fingerprint information in the database to establish an indoor fingerprint database. This database can contain the trajectory information of the UE terminal in the indoor space and the corresponding signal feature information.
[0051] The indoor floor positioning result of the target terminal at the target time is determined according to the location information of the target terminal at the target time and the preset indoor fingerprint library, including: Determine the grid corresponding to the target terminal in the indoor fingerprint library based on the signal information of the target terminal at the target time to determine the latitude and longitude position of the target terminal; Determine the building where the target terminal is located based on the latitude and longitude position of the target terminal; The floor of the target terminal is determined based on the altitude information of the target terminal at the target time and the height data of the building where the target terminal is located.
[0052] In one possible implementation, the grid corresponding to the target terminal in the indoor fingerprint library is determined based on the signal information of the target terminal at the target time, and is determined based on the main area RSRP and the neighboring area RSRP of the target terminal at the target time. Of course, it can be understood that other parameters reflecting the signal strength of the target terminal at the target time can also be used to determine it.
[0053] In a possible implementation, based on the difference between the RSRP of the main area and the RSRP of the neighboring area of the target terminal at the target time and the RSRP of the main area and the RSRP of the neighboring area at the previous time, if the difference is less than a preset difference value (for example, the preset difference value may be 2), it is considered that the target terminal has not moved, and the longitude and latitude position at the previous time is directly filled in as the longitude and latitude position of the target terminal at the target time. This can reduce the amount of data calculation of the system.
[0054] Determining the grid corresponding to the target terminal in the indoor fingerprint library based on the signal information of the target terminal at the target time to determine the latitude and longitude position of the target terminal includes: Based on matching the signal information of the target terminal at the target time with the signal information corresponding to each grid in the indoor fingerprint library, the grid corresponding to the target terminal at the target time is determined.
[0055] Specifically, the KNN algorithm can be used in the grid set (Geo1, Geo2, ..., GeoN) to calculate the similarity between the located sample points and the set, and select the closest K grids. For example, the Euclidean distance is selected to measure the similarity of fingerprints:
[0056] Among them, ScRSRP is the main area RSRP of the target terminal to be located, ScRSRP0 is the main area RSRP corresponding to the grid in the fingerprint library, NcRSRP(i) is the RSRP of the i-th neighboring area (i.e. CGIi) of the target terminal to be located, and NcRSRP0(i) is the RSRP of the grid corresponding to CGIi in the fingerprint library. After obtaining K grids, the grid where the centroid of these K grids is located is calculated, which is the calculated latitude and longitude position of the target terminal.
[0057] The indoor fingerprint library, 5G MDT and 5G DPI association information, engineering parameter information, and building floor information can be combined to improve the accuracy and reliability of positioning to the floor level. In the case where the target terminal is obtained from the indoor fingerprint library that it is indoors, the data of the target terminal falling inside the building in the 5G MDT data (i.e., altitude information) can be used to accurately locate the floor of the target terminal. Altitude information includes building elevation data (UE altitude information in 5G MDT) and absolute altitude data (absolute values of longitude and latitude). In the method provided by the present invention, the floor positioning result of the target terminal is obtained based on the altitude information and the height data of the indoor building (real height of the building) and the indoor fingerprint library.
[0058] In a possible implementation, in order to improve the accuracy of the floor positioning result, the altitude information of the target terminal at the target time in 5G MDT can be optimized based on the altitude information at the historical time to obtain a more accurate estimate. That is, the floor of the target terminal is determined based on the altitude information of the target terminal at the target time and the height data of the building where the target terminal is located, including: Based on the altitude information of the target terminal at a time before the target time, optimizing the altitude information of the target terminal at the target time to obtain optimized altitude information; The floor of the target terminal is determined based on the optimized height information, the height data in the indoor fingerprint library, and the height data of the building where the target terminal is located.
[0059] The Kalman filter algorithm can be used to optimize the altitude information of the target terminal at the target time. The Kalman filter algorithm is used to fuse and optimize the building elevation data, absolute height data and indoor building height of the 5G MDT sampling point to obtain a more accurate indoor positioning result. The data optimized by the Kalman filter algorithm is matched and fused with the information in the indoor fingerprint library, and the mobile position estimate after this fusion is associated with the building floor information to obtain the final positioning result. Of course, it is understandable that the optimized estimation of the altitude information at the target time can also be achieved based on other sequential data assimilation.
[0060] like Figure 7 As shown, taking the Kalman filter algorithm for optimization estimation as an example, the process of optimizing the altitude information of the target terminal at the target time can be as follows: 1. Data preprocessing: Preprocess the building elevation data, absolute height data and indoor building height of the 5G MDT sampling points, including data cleaning, denoising and other operations to ensure the quality and accuracy of the data.
[0061] 2. Kalman filter algorithm calculation: The Kalman filter algorithm is used to fuse and optimize the above data to obtain a more accurate estimate of building elevation data (elevation data 5G MDT UE height information), absolute height data (absolute value of longitude and latitude) and indoor building height (real building height). The following is the basic formula of the Kalman filter algorithm: Initially, the height of the building can be estimated by simple observation.
[0062] The estimated building height is: X 0,0 .
[0063] Now we need to initialize the estimated uncertainty P 0,0 The estimated error (standard deviation) is about 15m: δ = 15, and the corresponding δ 2 =225.
[0064] Prediction: Now, the next state will be predicted based on the initial values.
[0065] Since the dynamic model of the system used is constant (invariant), i.e., the height of the building does not change: X 1,0 =X 0,0 .
[0066] The estimated uncertainty (variance) of the extrapolation will not change either: P 1,0 =P 0,0 .
[0067] The first iteration includes three steps: measurement, update, and prediction.
[0068] Step 1-Measurement: The first measurement data: Y1. Since the altimeter measurement error / standard deviation is δ=5, the variance δ 2 =25, so the measurement uncertainty is R1.
[0069] Step 2- Update: 1) Kalman gain calculation: K1 = P 1,0 / (P 1,0 +R1); 2) Estimate the current state: X 1,1 =X 1,0 +K1(Y1-X 1,0 ); 3) Update the current estimated uncertainty: P 1,1 =(1-K1)P 1,0 .
[0070] Step 3- Prediction: 1) Since the dynamic model of the system is constant (unchanged), that is, the height of the building will not change: X 2,1 =X1,1 .
[0071] 2) The estimated uncertainty (variance) of the extrapolation will not change: P 2,1 =P 1,1 .
[0072] Initially, the Kalman filter is not initialized accurately. Therefore, the measurement weight in the state update equation is high and the estimation uncertainty is also high. With each iteration, the measurement weight and the estimation weight gradually decrease. The Kalman filter output includes the estimate and the estimation uncertainty. Through these calculations, the optimal estimate of the system state can be achieved, and the noise in the measurement data can be filtered out, thereby improving the accuracy and reliability of the estimate.
[0073] The optimized height information obtained after optimization is further matched and integrated with the height data in the indoor fingerprint library, that is, the height data in the indoor fingerprint library that matches the optimized height information is used as the final positioning height data. Based on the positioning height data and the height data of the building where the target terminal is located, the floor where the target terminal is located is determined, thereby realizing indoor terminal positioning accurate to the floor level.
[0074] After obtaining the indoor floor positioning result of the target terminal, in order to ensure the accuracy of the positioning result, the method provided by the present invention further verifies the data. Specifically, after determining the indoor floor positioning result of the target terminal at the target time, the method includes: Based on the common parameters of the 5G MDT data and the 5G MR data, the 5G MDT data and the 5G MR data of the target terminal are associated; The 5G MDT data and 5G MR data of the target terminal are cross-validated to obtain the verification results of the indoor floor positioning results.
[0075] The cross-validation method based on 5G MDT (Minimum Data Test) and 5G MR (Measurement Report) can help verify the consistency, completeness, and accuracy of the data. By using the data cross-validation of indoor 5G MR and 5G MDT, the 5G MR and 5G MDT sampling points can be associated together through the four-tuple: AMF Region ID, AMF Set ID, AMF Pointer, and AMF UE NGAP ID. The associated sampling points are compared with RSRP, TADV, HAOA, VAOA, etc. Under normal circumstances, they should be the same. If there is a large difference, it proves that there is a problem with the data quality. Through data cross-validation, it can be found whether there is a quality problem with the data, which forces the data accuracy.
[0076] In a possible implementation, it can be implemented through a K-fold cross-validation algorithm. Of course, it is understandable that other cross-validation algorithms can also be used for implementation, such as leave-one-out validation, stratified validation, etc.
[0077] like Figure 8 As shown, the following takes the K-fold cross-validation algorithm as an example to introduce a method for verifying the consistency of 5G MR and 5G MDT data.
[0078] In K-fold cross validation, the dataset is divided into K equal sized parts or as close to equal as possible. Below are the general steps and the basic formula for calculating the average performance metric.
[0079] 1. Data division: Divide the dataset D containing N samples of MR and MDT data into K mutually exclusive subsets: D1, D2, ..., D_K, where each subset contains approximately samples.
[0080] 2. Cyclic process: For k=1,2,...,K, the kth subset Dk is used as the validation set (or test set), and the remaining K-1 subsets are combined as the training set.
[0081] Use the training set to train the model and evaluate the model performance (such as calculating accuracy, error rate, AUC value, MSE, etc.) on the validation set.
[0082] Record the performance metric value M obtained in this iteration K .
[0083] 3. Performance average: Calculate the average performance of all K iterations. The calculation formula is: For example, if we are evaluating the mean squared error, then the MSE for each validation fold is: where y i is the true value of the ith sample, and is the value predicted by the model.
[0084] Finally, calculate the average MSE of the 5-fold cross validation: Average MSE = 1 / 5 (MSE1 + MSE2 + MSE3 + MSE4 + MSE5)
[0085] Through data cross-validation, the data quality can be further improved, the indoor positioning results can be more accurate, the reliability of indoor user positioning results can be improved, and a better service experience can be provided to users.
[0086] The indoor positioning device provided by the present invention is described below. The indoor positioning device described below and the indoor positioning method described above can be referred to each other. Fig. 9As shown, the indoor positioning device provided by the present invention includes a data association module 910 and a floor positioning module 920.
[0087] A data association module 910 is used to associate the 5G MDT data and the 5G DPI data of the target terminal based on the common parameters in the 5G MDT data and the 5G DPI data to obtain the location information of the target terminal, where the location information includes altitude information and signal information; The floor positioning module 920 is used to determine the indoor floor positioning result of the target terminal at the target time according to the location information of the target terminal at the target time and a preset indoor fingerprint library when it is determined that the target terminal is indoors based on the signal information of the target terminal. The indoor fingerprint library includes multiple grids, each grid includes at least one location fingerprint, and the location fingerprint includes the height data, longitude and latitude positions and signal information of the sample terminal.
[0088] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute the indoor positioning method, and the indoor positioning method includes: correlating the 5G MDT data and the 5G DPI data of the target terminal based on the common parameters in the 5G MDT data and the 5G DPI data to obtain the location information of the target terminal, and the location information includes the altitude information and the signal information; when it is determined that the target terminal is indoors based on the signal information of the target terminal, the indoor floor positioning result of the target terminal at the target time is determined according to the location information of the target terminal at the target time and the preset indoor fingerprint library, and the indoor fingerprint library includes multiple grids, each grid includes at least one location fingerprint, and the location fingerprint includes the height data, longitude and latitude position and signal information of the sample terminal.
[0089] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0090] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the indoor positioning method provided above. The indoor positioning method includes: associating the 5G MDT data and the 5G DPI data of the target terminal based on the common parameters in the 5G MDT data and the 5GDPI data to obtain the location information of the target terminal, and the location information includes altitude information and signal information; when it is determined that the target terminal is indoors based on the signal information of the target terminal, the indoor floor positioning result of the target terminal at the target time is determined according to the location information of the target terminal at the target time and a preset indoor fingerprint library, the indoor fingerprint library includes multiple grids, each grid includes at least one location fingerprint, and the location fingerprint includes the altitude data, longitude and latitude positions and signal information of the sample terminal.
[0091] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the indoor positioning method provided above, the indoor positioning method comprising: associating the 5G MDT data and the 5G DPI data of the target terminal based on the common parameters in the 5G MDT data and the 5G DPI data to obtain the location information of the target terminal, the location information including altitude information and signal information; when it is determined that the target terminal is indoors based on the signal information of the target terminal, determining the indoor floor positioning result of the target terminal at the target time according to the location information of the target terminal at the target time and a preset indoor fingerprint library, the indoor fingerprint library including multiple grids, each grid including at least one location fingerprint, the location fingerprint including the altitude data, longitude and latitude positions and signal information of the sample terminal.
[0092] The device embodiments described above are merely illustrative, 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 on 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. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0093] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An indoor positioning method, It is characterized in that include: Based on the common parameters in the 5G MDT data and the 5G DPI data, the 5G MDT data and the 5G DPI data of the target terminal are associated to obtain the location information of the target terminal, where the location information includes altitude information and signal information; when it is determined that the target terminal is indoors based on the signal information of the target terminal, the indoor floor positioning result of the target terminal at the target time is determined according to the location information of the target terminal at the target time and a preset indoor fingerprint library, where the indoor fingerprint library includes multiple grids, each grid includes at least one location fingerprint, and the location fingerprint includes the altitude data, longitude and latitude positions and the signal information of the sample terminal.
2. The indoor positioning method according to claim 1, It is characterized in that After obtaining the location information of the target terminal, the method includes: Verify the location information based on the location information, first longitude and latitude information, and second longitude and latitude information at the same time, where the first longitude and latitude information comes from 5G MDT data, and the second longitude and latitude information comes from 5G DPI data; When the verification result is that the distance between the geographical locations corresponding to the first longitude and latitude information and the second longitude and latitude information exceeds a preset distance, the location information is deleted.
3. The indoor positioning method according to claim 1, It is characterized in that The step of determining the indoor floor positioning result of the target terminal at the target time according to the location information of the target terminal at the target time and a preset indoor fingerprint library includes: Determine the grid corresponding to the target terminal in the indoor fingerprint library based on the signal information of the target terminal at the target time to determine the longitude and latitude position of the target terminal; Determine the building where the target terminal is located based on the latitude and longitude position of the target terminal; The floor of the target terminal is determined based on the altitude information of the target terminal at the target time and the height data of the building where the target terminal is located.
4. The indoor positioning method according to claim 3, It is characterized in that The signal information includes a primary cell signal strength parameter value and a neighboring cell signal strength parameter value.
5. The indoor positioning method according to claim 3, It is characterized in that The determining the floor of the target terminal based on the altitude information of the target terminal at the target time and the height data of the building where the target terminal is located includes: Based on the altitude information of the target terminal at a time before the target time, optimizing the altitude information of the target terminal at the target time to obtain optimized altitude information; The floor of the target terminal is determined based on the optimized height information, the height data in the indoor fingerprint library, and the height data of the building where the target terminal is located.
6. The indoor positioning method according to claim 1, It is characterized in that After determining the indoor floor positioning result of the target terminal at the target time, the method includes: Based on the common parameters of the 5G MDT data and the 5G MR data, associating the 5G MDT data and the 5G MR data of the target terminal; The 5G MDT data and the 5G MR data of the target terminal are cross-validated to obtain a verification result of the indoor floor positioning result.
7. An indoor positioning device, It is characterized in that include: A data association module, used to associate the 5G MDT data and the 5G DPI data of the target terminal based on the common parameters in the 5G MDT data and the 5G DPI data, to obtain the location information of the target terminal, wherein the location information includes altitude information and signal information; A floor positioning module is used to determine the indoor floor positioning result of the target terminal at the target time according to the position information of the target terminal at the target time and a preset indoor fingerprint library when it is determined that the target terminal is indoors based on the signal information of the target terminal, wherein the indoor fingerprint library includes multiple grids, each grid includes at least one position fingerprint, and the position fingerprint includes the height data, longitude and latitude positions of the sample terminal and the signal information.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the indoor positioning method as described in any one of claims 1-6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the indoor positioning method according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the indoor positioning method according to any one of claims 1 to 6 is implemented.
