A 5G indoor positioning method based on fingerprint library migration and reconstruction
Through the fingerprint database migration and reconstruction method based on migration learning and clustering algorithms, the positioning error problem caused by base station failures and environmental changes in indoor positioning is solved, the data collection cost and positioning time are reduced, and the positioning accuracy is improved.
Patent Information
- Application Number
- CN202210805140.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-08
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-07-08
AI Technical Summary
In the indoor positioning process, due to base station failures, environmental changes and positioning equipment limitations, it is difficult to detect the data of all base stations within the environment, resulting in an increase in positioning errors. In addition, the historical data is invalid and the cost of re-acquisition of data is high, making it difficult for existing technologies to effectively solve these problems.
Using the idea and clustering algorithm based on transfer learning, the training data of the source domain and the target domain are screened and the fingerprint database is migrated and reconstructed to build a high-quality source domain database. The fuzzy C-means algorithm and mapping matrix are used to transfer knowledge and generate A new shared fingerprint library and updated class labels utilize a weighted nearest neighbor algorithm for position resolution.
It reduces the cost of re-collecting fingerprint database data, reduces the complexity of fingerprint data matching in the online stage, improves positioning accuracy, reduces positioning time, and achieves better fingerprint database reconstruction effects.
Smart Images

Figure CN115278520B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of indoor positioning technology, and specifically but not limited to a 5G indoor positioning method based on fingerprint library migration and reconstruction. Background Art
[0002] With the rapid development of the economy, the continuous progress of modern information technology, the increasing popularity of digital construction and information technology applications, people's demand for the Internet is constantly changing, and there are higher requirements for the speed and stability of network transmission. The emergence of 5G technology solves people's current needs. At the same time, 5G communication technology will better promote the formation of a smart society. The development of 5G new infrastructure has accelerated the continuous expansion of application scenarios in various fields. People's requirements for mobile communications are gradually enriched, among which indoor positioning is one of the important needs. Deploy 5G small base stations indoors. Due to their small signal transmission power and coverage radius, the signal is accurately covered in a small range. Deploy 5G base stations in indoor scenes, fully utilizing the advantages of 5G networks such as low latency, large bandwidth, and dense networking, improve positioning coverage, and effectively reduce the time required for positioning people and objects, meeting the growing demand for fast and high-precision positioning.
[0003] Indoor positioning refers to the periodic signaling of mobile terminal devices carried by people in indoor places covered by the network. After receiving the signal, the surrounding base stations transmit the signal to the designated positioning server, and the positioning server obtains the position of the person through the program algorithm. Indoor positioning technology includes five categories: wireless signal intersection positioning, database matching positioning, inertial sensor-based dead reckoning positioning and multi-sensor combination positioning. Among them, database matching positioning is to match the real-time indoor signal with the fingerprint information in the database to estimate the position, and the positioning accuracy is high. This method includes two stages: the first is the offline stage, in which several reference points are set for the positioning area, and the signal feature value is collected at each reference point. The signal feature is the fingerprint sample of the fingerprint database. The fingerprint samples collected at all reference points constitute the fingerprint database required for the matching positioning algorithm. The second is the online stage, in which the terminal to be positioned collects the feature information at the current position at the unknown position to form a real-time fingerprint, and then matches it with the fingerprint in the fingerprint database established in the offline stage through the matching algorithm to obtain the final position estimation result. So far, a lot of progress has been made in applying various signal characteristics to the field of indoor positioning. The RSRP value (reference signal received power) that can be measured in 5G signals is also a signal characteristic that can reflect the signal strength like RSSI, and it changes with the distance between the terminal and the base station.
[0004] Transfer learning is an important part of machine learning, which is also called inductive learning or domain adaptation. Transfer learning extracts effective knowledge from one domain or task and transfers it to another different but related domain or task to assist in completing related tasks. Transfer learning can match a large amount of labeled data in the source domain with a small amount of labeled or even unlabeled data in the target domain, thereby solving the problem of small amount of labeled data in the target domain and differences in data distribution between the source domain and the target domain. There are usually many problems in the current indoor fingerprint positioning method. For example, the indoor environment has changed significantly compared to the positioning in the database construction stage, the distribution of signal data in the positioning system has changed over time, resulting in increased positioning errors, and there are differences in the equipment for collecting signals at different stages. Transfer learning can make good use of the knowledge in related domains to assist classification tasks in new data domains.
[0005] In the process of indoor positioning, the source domain is composed of historical fingerprint vectors or physical locations, and the target domain is composed of the latest fingerprint vectors. The distribution of historical fingerprint vectors and the latest fingerprint vectors is different, which is caused by the difference in signal receiving equipment, data collection time or indoor environment. These differently distributed fingerprint vectors are all in the same indoor space. Through the common physical space, these differently distributed signal spaces can be matched. Therefore, transfer learning between signal spaces with different distributions is feasible. At the same time, in practical applications, due to the influence of time, the historically collected data loses its timeliness, and the fingerprint data changes in different time periods. The use of historical data leads to large errors. However, re-collecting the required training data and re-establishing the model often consumes a lot of manpower and financial resources and is very difficult. Therefore, transfer learning between related domains is necessary.
[0006] To this end, the present invention performs source domain screening and fingerprint database migration reconstruction on the collected training data in the source domain and target domain based on the idea of transfer learning and clustering algorithm, classifies the database, and applies the WKNN algorithm in the online stage to complete the position solution. A 5G indoor positioning method based on fingerprint library migration and reconstruction is proposed, in order to solve at least some of the above problems. Summary of the invention
[0007] In response to one or more problems in the prior art, the present invention proposes a 5G indoor positioning method based on fingerprint library migration and reconstruction. Considering that it is difficult to detect the data of all base stations in the environment range in the actual positioning stage due to base station failures, environmental changes, positioning equipment limitations, etc., the source domain is screened by using the base station similarity between the source domain and the target domain, and a high-quality source domain database is constructed. Then, the feature knowledge migration between the target domain and the source domain is completed, a new domain-invariant shared fingerprint library is reconstructed, and the class label is updated. The fingerprint library features and positions are matched one by one in the class, achieving a better fingerprint library reconstruction effect, reducing the cost of re-collecting fingerprint library data, and at the same time reducing the complexity of matching with a large amount of fingerprint data in the online stage, reducing the online positioning time, and improving the positioning accuracy.
[0008] The technical solution to achieve the purpose of the present invention is:
[0009] A 5G indoor positioning method based on fingerprint library migration and reconstruction includes an offline phase and an online phase, wherein:
[0010] The offline phase includes:
[0011] Step 1: Adaptively filter the historical offline database: The historically collected data and the currently collected data samples are refined and filtered based on the base station similarity. The historical source domain samples with similar sample characteristics to the target domain are filtered out, and the number of source domain samples is determined based on the difference between the source domain and the target domain to complete the adaptive source domain filtering.
[0012] Step 2: Based on the isomorphic features of the source domain and the target domain, the fuzzy C-means algorithm is used to train the clustering algorithm model for the historical source domain samples retained after adaptive screening, and pseudo labels are generated for the target domain samples based on the position coordinate relationship between the source domain samples and the target domain samples and the categories are assigned;
[0013] Step 3: Use the mapping matrix and reconstruction matrix to migrate homogeneous knowledge to heterogeneous knowledge between the source domain and the target domain, perform data weighting processing on co-occurring samples, reconstruct heterogeneous samples based on intra-class distance, inter-class distance and neighbor distribution difference function, generate a new domain-invariant shared fingerprint library, and update the class labels of all samples in the shared fingerprint library;
[0014] The online phase includes:
[0015] Step 1: Receive signal feature data and send it to the connected base station in the form of data packets. The base station reconstructs the signal feature data by data projection to obtain the final signal value.
[0016] Step 2: Match the final signal value with the cluster center points obtained in the offline stage and assign the category of the positioning point;
[0017] Step 3: Match the location of the positioning point with each reference point in the class, calculate the location of the positioning point based on the improved weighted nearest neighbor algorithm, and obtain the coordinates of the positioning point;
[0018] Step 4: Based on the downlink technology of the 5G network, the base station sends the coordinate data of the positioning point to the terminal.
[0019] Furthermore, the 5G indoor positioning method based on fingerprint library migration and reconstruction of the present invention, the first step of the offline stage specifically includes:
[0020] 1-1: Initial offline database D O = {R O ,Q O}Include n O The data of reference points, among which, Indicates the position coordinate information of the reference point. Indicates signal data information, Indicates the L received at the i-th reference point O Data of base stations, i∈[1,n0];
[0021] The target domain database at time A is Wherein, time A represents the current time of recollecting fingerprint samples. Indicates the L received at the i-th reference point T Data of base stations, n T is the number of reference point samples in the target domain;
[0022] 1-2: Assume offline database D O The target domain database D T The number of all scanned base stations is L, and the detection index is defined and in When the detection index value is 1, it means that the i-th sample has scanned the l-th base station;
[0023] Based on the above detection indicators, calculate the offline database D O The target domain database D T The base station similarity α(i, j) of each sample in is:
[0024]
[0025] The more shared base stations detected between the i-th sample and the j-th sample, the larger α(i, j), indicating that the i-th sample in the source domain has a greater effect on the target domain;
[0026] 1-3: Assume that the maximum and minimum values of the jth base station in the target domain are as follows:
[0027]
[0028] Then suppose
[0029]
[0030] In the formula, Then the weight of the i-th sample in the source domain is where θ i is the base station feature similarity weight of the sample based on the maximum and minimum values, θ max is the θ of all samples i Therefore, the base station similarity of the i-th sample in the source domain is:
[0031]
[0032] For all offline library samples there are Thus, the most similar n is retained based on s S samples to construct a new source domain
[0033] 1-4: The samples retained after source domain screening construct a new source domain D related to the target domain S , since the number of samples retained is n S The similarity threshold is determined. Therefore, the following optimization model for source domain screening is established. Based on this model, the optimal similarity threshold is obtained, thereby confirming the optimal number of source domain samples n S ;
[0034]
[0035]
[0036] The first part of the optimization model represents the minimization of the error between the new source domain and the target domain, and the second part represents the similarity of the sample base station features of the two domains.
[0037] Furthermore, the 5G indoor positioning method based on fingerprint library migration and reconstruction of the present invention, the second step of the offline phase specifically includes:
[0038] 2-1: Based on offline detection indicators and in When the detection index value is 1, it means that the i-th sample has scanned the l-th base station; the total detection index of the j-th base station When the value is not 0, it means that the signal characteristics of the jth base station are isomorphic characteristics of the source domain and the target domain, which are recorded as and Otherwise, the heterogeneous features are recorded as and In heterogeneous features, if is the unique base station feature of the source domain. is the unique base station information of the target domain;
[0039] 2-2: Cluster the data in the source domain based on homogeneous features, use the fuzzy C-means clustering algorithm, randomly initialize the number of fuzzy C-means clustering categories, calculate the membership of each reference point, initialize the membership matrix, calculate the initial fingerprint clustering center through the membership, and update the clustering center c according to the objective function of the clustering algorithm j , the objective function J of the clustering algorithm is:
[0040]
[0041] In the formula, U represents the number of categories, n S represents the number of source domain samples, represents the degree of membership, represents the weighting coefficient or fuzzy control parameter, preferably, Set to 2, L represents the number of signal features, represents the ath feature data of the i-th source domain sample, Represents the cluster center c of the jth category j The ath feature data of , recalculate the membership degree according to the new cluster center
[0042] 2-3: Based on the categories and cluster centers of the source domain, the data in the target domain are classified based on isomorphic features, and the coordinate correlation is introduced as the classification weight. Then the cluster membership of the i-th sample in the target domain to each cluster center is for:
[0043]
[0044] in, Represents the cluster center c of the jth category j The horizontal axis of represents the horizontal coordinate of the i-th target domain sample, Represents the cluster center c of the jth category j The vertical coordinate of Represents the ordinate of the i-th target domain sample. Classification is completed based on the clustering distance, that is, the category pseudo label of the target domain is obtained.
[0045] Furthermore, the 5G indoor positioning method based on fingerprint library migration and reconstruction of the present invention, the third step of the offline stage specifically includes:
[0046] 3-1: Assume that there is a source domain mapping matrix P in the source domain and the target domain respectivelyS and the target domain mapping matrix P T , transfer the knowledge of homogeneous features to heterogeneous features, complete the migration of heterogeneous feature knowledge between the two domains, and obtain the corresponding target domain-specific feature knowledge in the source domain as The source domain-specific feature knowledge corresponding to the target domain is Right now
[0047]
[0048] Then the new source domain R N-S and the target domain R N-T They are and
[0049] 3-2: When projecting and transferring isomorphic knowledge, the original data structure of the corresponding domain cannot be destroyed. In the process of solving the mapping matrix, the original isomorphic data of the corresponding domain is mapped to its unique heterogeneous data. By minimizing the difference, the impact on the original data structure is minimized. The corresponding difference F SOD for:
[0050]
[0051] 3-3: The samples in the new source domain and the target domain are divided into co-occurring samples and non-occurring samples based on the position coordinates. The samples with the same position coordinates are co-occurring samples, which are denoted by R N-S,B and R N-T,B , otherwise they are abnormal samples, denoted by R N-S,G and R N-T,G , suppose there are ρ co-occurring samples in total;
[0052] 3-4: Process the ρ co-occurrence samples and retain one sample data at the same coordinate in the newly constructed shared fingerprint library, that is, perform weighted processing on the data in the two domains. First, determine which base stations have changed their data to a greater extent, and introduce Gaussian distribution to calculate the difference RSRP-d between the two domains. i,l Compare, if the difference is too low, it means the degree of change is small, keep the latest data of the target domain If it is in the middle average area, the mean of the two data is calculated; if the difference is large, the data of the corresponding base stations in the source domain and the target domain are weighted respectively. The weighted calculation of the jth base station signal data of the i-th co-occurrence sample in the fingerprint library is as follows:
[0053]
[0054] Where μ represents the difference RSRP-d of all base station feature data in the two domains i,l The mean of the two domains, σ represents the difference of all base station feature data in the two domains RSRP-d i,lThe standard deviation of the distribution of
[0055] 3-5: Reconstruct the different samples in the source domain and the target domain, and introduce the reconstruction matrix Z respectively S and Z T , then the reconstructed variant sample R G-S and R G-T They are:
[0056]
[0057] 3-6: For the updated data of the co-occurrence samples, based on minimizing the intra-class distance, that is, minimizing the distance between the samples in the source domain and the target domain that belong to the same class as the co-occurrence samples, construct the intra-class difference function F ICD :
[0058]
[0059] in, represents the i-th co-occurrence sample, represents the jth out-of-place sample in the source domain, represents the jth outlier sample in the target domain; and
[0060]
[0061] Finally, the new shared fingerprint library D obtained after reconstruction N The signal characteristic data is R N =[R B R G-S R G-T ] T ;
[0062] 3-7: Based on the data reconstructed from the class center samples, the maximum mean difference indicator is introduced to construct the inter-class difference function F BCD :
[0063]
[0064] in, For the shared fingerprint library R N The number of samples in the c1th class, For the shared fingerprint library R N The number of samples in the c2th class, For the shared fingerprint library R N The i-th reference point sample in For the shared fingerprint library R N The jth reference point sample in ;
[0065] 3-8: Based on all reference point samples in the entire fingerprint library, the Euclidean distance of the coordinates between samples is introduced. The smaller the Euclidean distance, the closer the distance between the reference points and the smaller the data difference, and the neighbor distribution difference function F is constructed. AID :
[0066]
[0067] Among them, n N For the shared fingerprint library R N The number of reference point samples, is the coordinate of the i-th sample in the shared fingerprint library, is the coordinate of the jth sample in the shared fingerprint library;
[0068] 3-9: The total objective function F of the shared fingerprint library obtained by projection and reconstruction between the two domains is:
[0069] F=F SOD +F ICD +F AID -F BCD
[0070] Minimize the above formula and obtain the corresponding projection P through iterative calculation S , P T and the reconstruction matrix Z S , Z T ;
[0071] 3-10: After completing the mapping and reconstruction of the new domain, a new shared fingerprint library D is obtained N , for D N Signal characteristic data R of all sample reference points in N Recalculate membership, membership Updated as follows:
[0072]
[0073] in, For the shared fingerprint library R N The ath feature data of the i-th reference point sample in, For the shared fingerprint library R N The ath feature data of the class center point sample of the jth class;
[0074] According to the above updated membership degree, D N All samples in the source domain and the target domain are reclassified, and the samples get new category labels L N .
[0075] Furthermore, the 5G indoor positioning method based on fingerprint library migration and reconstruction of the present invention, the third step of the online stage specifically includes:
[0076] (3-1) The signal data of the positioning point received by the terminal in the online stage is used as the data of the target domain based on the mapping matrix P S Mapping is performed based on the reconstruction matrix Z T Reconstructing new signal characteristics RSRP IL Make the sample and the shared fingerprint library have the same dimension and similar distribution;
[0077] (3-2) Match the positioning point to the g-th category area. Suppose there are a total of reference points, select Manhattan distance as the weight, solve the coordinates of the positioning point, and the Manhattan distance weight ω of the i-th reference point i for:
[0078]
[0079] in, represents the signal data of the kth feature of the reconstructed online sample, Represents the signal data of the kth feature of the i-th reference point sample in the shared fingerprint library, The signal data representing the kth feature of the ath reference point sample in the shared fingerprint library;
[0080] (3-3) Based on the above formula, the weighted centroid of the reference point is calculated, and the coordinates of the centroid are the coordinates of the positioning point:
[0081]
[0082] Compared with the prior art, the present invention adopts the above technical solution and has the following technical effects:
[0083] 1. The 5G indoor positioning method based on fingerprint library migration and reconstruction of the present invention compares the historical database collected in the indoor environment with a small number of samples collected at the current moment, considers two angles: whether the base station signal is scanned and whether the base station feature data of the source domain sample is in the data range of the same feature in the target domain, and selects the most similar samples to the reference point samples in the target domain from the source domain, reduces the redundancy of the source domain samples, thereby constructing a high-quality source domain database, and effectively reducing the computational complexity of fingerprint library migration.
[0084] 2. The 5G indoor positioning method based on fingerprint library migration and reconstruction of the present invention migrates and reconstructs the knowledge of the source domain database and the target domain database obtained after screening based on the projection matrix and the reconstruction matrix, and constructs a domain-invariant shared fingerprint library. The construction of the shared fingerprint library makes it necessary to collect a small amount of the latest data samples to form the target domain when re-collecting offline samples, and then perform knowledge migration with the source domain composed of historical data samples, thereby constructing a shared fingerprint library of high-quality big data, effectively reducing the time cost of re-collecting offline data.
[0085] 3. The 5G indoor positioning method based on fingerprint library migration and reconstruction of the present invention updates the membership of samples in the fingerprint library based on the shared fingerprint library constructed by projection reconstruction of the source domain and the target domain, and then updates the category label of the sample, and uses the weighted K nearest neighbor algorithm to complete the position solution of the positioning point, thereby significantly improving the accuracy of indoor positioning solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] The accompanying drawings are used to provide a further understanding of the present invention and are used together with the description to explain the embodiments of the present invention, but do not constitute a limitation of the present invention. In the accompanying drawings:
[0087] Figure 1 A flow chart of constructing a shared fingerprint library in the 5G indoor positioning method based on fingerprint library migration and reconstruction of the present invention is shown.
[0088] Figure 2 A flow chart of the 5G indoor positioning method based on fingerprint library migration and reconstruction of the present invention is shown. DETAILED DESCRIPTION
[0089] In order to further understand the present invention, preferred embodiments of the present invention are described below in conjunction with examples. However, it should be understood that these descriptions are only for further illustrating the features and advantages of the present invention, rather than limiting the claims of the present invention.
[0090] The description in this section is only for typical embodiments, and the present invention is not limited to the scope of the embodiments. The combination of different embodiments, the mutual replacement of some technical features in different embodiments, and the mutual replacement of the same or similar prior art means with some technical features in the embodiments are also within the scope of the description and protection of the present invention.
[0091] The present invention proposes a 5G indoor positioning method based on fingerprint library migration and reconstruction. The method integrates the fingerprint library migration and reconstruction method based on clustering algorithm and the weighted nearest neighbor matching algorithm in positioning technology, which reduces the fingerprint matching time for online real-time positioning and improves the positioning accuracy.
[0092] The 5G indoor positioning method based on fingerprint library migration and reconstruction of the present invention is as follows: Figure 2As shown, the implementation process includes an offline phase and an online phase, in which:
[0093] Offline stage:
[0094] Step 1: Adaptively filter the historical database. Refine the historical database based on the base station similarity between the data collected in the historical stage and the small amount of data samples collected currently, and retain some valid historical source domain samples;
[0095] Step 2: Based on the fuzzy C-means algorithm, the source domain samples are classified and the target domain samples are classified based on their positional relationships.
[0096] Step 3: Based on transfer learning, by projecting the source domain samples and the target domain samples, we generate homogeneous new source domains and target domains. Based on co-occurring samples and non-occurring samples, we introduce intra-class distance differences, inter-class distance differences, and neighbor distribution differences, reconstruct a new shared fingerprint library, and update the category labels.
[0097] Online stage:
[0098] Step 1: Send the received signal feature data in the form of data packets to the connected base station, and the base station will perform data projection and reconstruction;
[0099] Step 2: Match the final signal value with each cluster center point to complete the category attribution of the positioning point;
[0100] Step 3: Match the positions with the reference points in the class and calculate the positions based on the improved weighted nearest neighbor algorithm;
[0101] Step 4: Get the coordinates of the positioning point. Based on the downlink technology of the 5G network, the base station sends the coordinate data to the terminal.
[0102] The offline stage of the present invention mainly includes: adaptive source domain screening, using base station similarity to screen samples in the source domain; generating pseudo labels for target domain data, clustering based on the isomorphic features of the source domain and the target domain using the fuzzy c-means algorithm; building a shared fingerprint library, using mapping matrices and reconstruction matrices to perform knowledge migration on the data in the source domain and the target domain, generating a new domain-invariant shared fingerprint library, and updating the class labels of samples in the fingerprint library. The online stage mainly includes: based on the WKNN algorithm, performing position resolution according to the online data mapping and reconstruction results.
[0103] 1. Adaptive source domain screening
[0104] Fingerprint-based techniques usually have large distribution differences between offline databases and test samples due to problems such as multipath fading, heterogeneous hardware, and temperature or humidity changes. Therefore, the historical offline database is used as the source domain and its knowledge is borrowed to improve the localization performance in the target domain. However, irrelevant offline fingerprints may increase the computational cost, and even worse, it may result in lower positioning accuracy than non-transfer algorithms, resulting in negative transfer. Therefore, first, the historical offline data is refined.
[0105] Assume that n O The data of reference points is represented as the initial offline database D O = {R O ,Q O},in, Represents the location coordinate information of the reference point in the initial offline database; is the signal data information, Indicates the L received at the i-th reference point O The data of base stations, i∈[1,n0]; the target domain database collected at the current time A of the re-collected fingerprint sample is in, Indicates the L received at the i-th reference point T Data of base stations, n T is the number of reference point samples in the target domain.
[0106] Assume that the offline database D O The target domain database D T The number of all scanned base stations is L, then the detection index is defined as and in When the value is 1, it means that the i-th sample scanned the l-th base station; D is calculated based on this indicator. O With D T The base station similarity of each sample in is α(i, j), that is,
[0107]
[0108] The more shared base stations detected between the i-th sample and the j-th sample, the larger α(i, j) is, indicating that the i-th sample in the source domain has a greater impact on the target domain.
[0109] Considering that base stations with lower frequencies may also be able to represent the relationship between the two domains, that is, base stations with higher frequencies have a larger coverage area and lower signal data, and reflect less information, so they are assigned a lower weight; let the maximum and minimum values of the j-th base station in the target domain be as follows:
[0110]
[0111] Then suppose
[0112]
[0113] In the formula, Then the weight of the i-th sample in the source domain is where θ i is the base station feature similarity weight of the sample based on the maximum and minimum values, θ max is the θ of all samples i Therefore, the base station similarity of the i-th sample in the source domain is:
[0114]
[0115] For all offline library samples there are Thus, the most similar n is retained based on s S samples to construct a new source domain
[0116] The samples retained after source domain screening construct a new source domain D related to the target domain S , since the number of samples retained is n S The similarity threshold is determined. Therefore, the following optimization model for adaptive source domain screening is established. Based on this model, the optimal similarity threshold is obtained, thereby confirming the optimal number of source domain samples n. S .
[0117]
[0118] The first part of the objective function represents the minimization of the error between the new source domain and the target domain, and the second part represents the similarity of the sample base station features of the two domains.
[0119] 2. Target Domain Pseudo Label Generation
[0120] In order to better transfer the knowledge of the source domain and the target domain, a domain-invariant shared space is reconstructed based on distribution adaptiveness, a clustering algorithm model is introduced, the clustering model is trained on the source domain data, and pseudo-labels are assigned to the target domain data based on the positional relationship of samples between the target domain and the source domain.
[0121] Based on the detection index of step (1), we get and in If the total detection index of the jth base station When the value is not 0, it means that the signal feature of the jth base station is the isomorphic feature of the source domain and the target domain, which is recorded as and Otherwise, it is a heterogeneous feature, which is recorded as and In heterogeneous features, if is the unique base station feature of the source domain, denoted as like is the unique base station feature of the target domain, denoted as
[0122] Firstly, the data in the source domain are clustered based on homogeneous features. The fuzzy C-means clustering algorithm is used to randomly initialize the number of fuzzy C-means clustering categories, calculate the membership of each reference point, initialize the membership matrix, calculate the initial fingerprint clustering center through the membership, and update the clustering center c according to the objective function of the clustering algorithm. j , the objective function J of the clustering algorithm is calculated as follows:
[0123]
[0124] Among them, U represents the number of categories, n S represents the number of source domain samples, represents the degree of membership, represents the weighting coefficient or fuzzy control parameter. This method sets the value to 2. L represents the signal feature number. represents the ath feature data of the i-th source domain sample, Represents the cluster center c of the jth category j The ath feature data of , recalculate the membership degree according to the new cluster center
[0125] Then, based on the categories and cluster centers of the source domain, the data in the target domain are classified based on homogeneous features. Considering that the data in the target domain may be collected after the environment changes, even if the same base station can be scanned, its data value will be affected. The coordinate correlation is introduced as the weight. As the classification weight, the cluster membership of the i-th sample in the target domain to each cluster center is for:
[0126]
[0127] in, Represents the cluster center c of the jth category j The horizontal axis of represents the horizontal coordinate of the i-th target domain sample, Represents the cluster center c of the jth category j The vertical coordinate of represents the ordinate of the i-th target domain sample, is the data of the ath base station of the ith reference point in the source domain. Finally, classification is completed based on the clustering distance, that is, the category pseudo label of the target domain is obtained.
[0128] 3. Shared fingerprint library reconstruction
[0129] Based on the labeled source domain and target domain databases generated in the above steps, Figure 1 As shown. Assume that there are source domain mapping matrices P in the source domain and target domain respectively S and the target domain mapping matrix P T , the feature knowledge of the homogeneous part can be transferred to the heterogeneous part, completing the migration of heterogeneous feature knowledge between the two domains, and obtaining the corresponding target domain-specific feature knowledge in the source domain as The source domain-specific feature knowledge corresponding to the target domain is Right now
[0130]
[0131] The new source domain and target domain are and
[0132] When projecting and transferring isomorphic knowledge, the original data structure of the corresponding domain cannot be destroyed. In the process of solving the mapping matrix, the original isomorphic data of the corresponding domain is mapped to its unique heterogeneous data. By minimizing the difference, the impact on the original data structure is minimized. The corresponding difference is calculated as follows:
[0133]
[0134] The samples in the new source domain and the target domain are divided into co-occurring samples and non-occurring samples based on the position coordinates. The samples with the same position coordinates are co-occurring samples, which are denoted by R N-S,B and R N-T,B , otherwise it is an abnormal sample, denoted by R N-S,G and R N-T,G , suppose there are ρ co-occurring samples in total;
[0135] Process ρ co-occurrence samples, and retain one sample data at the same coordinate in the newly constructed shared fingerprint library, that is, perform weighted processing on the data in the two domains. First, determine which base station data has changed to a greater extent, that is, introduce the idea of Gaussian distribution, and calculate the difference RSRP-d between the two domain data. i,l If the difference is too low, it means that the change is small, that is, the latest data of the target domain is retained. If it is in the middle average area, the mean of the two data is calculated; if the difference is large, the data of the corresponding base stations in the source domain and the target domain are weighted respectively. The weighted calculation of the jth base station signal data of the i-th co-occurrence sample in the fingerprint library is as follows:
[0136]
[0137] Among them, RSRP-d i,lis the difference between the jth base station signal data of the i-th co-occurrence sample in the source domain and the target domain, and μ is the difference between all base station signal data of the i-th co-occurrence sample RSRP-d i,l The mean of the RSRP-d is the difference of all base station signal data of the i-th co-occurrence sample. i,l The standard deviation of the distribution.
[0138] Reconstruct the respective outlier samples in the source domain and the target domain, and introduce the reconstruction matrix Z S and Z T , then the reconstructed variant sample R G-S and R G-T They are:
[0139]
[0140] For the updated data of the co-occurrence samples, based on the idea of minimizing the intra-class distance, that is, minimizing the distance between the samples in the source domain and the target domain that belong to the same class as the co-occurrence samples, the intra-class difference function F is constructed ICD :
[0141]
[0142] in, represents the i-th co-occurrence sample, represents the jth out-of-place sample in the source domain, represents the jth outlier sample in the target domain, and
[0143]
[0144] Finally, the new shared fingerprint library D obtained after reconstruction N The signal characteristic data is R N =[R B R G-S R G-T ] T .
[0145] Considering that the distance between each class in the constructed shared fingerprint library should be maximized as much as possible, based on the data reconstructed by the class center sample, the MMD (maximum mean difference) indicator is introduced to construct the inter-class difference function F BCD ,
[0146]
[0147] In the formula, For the shared fingerprint library R N The number of samples in the c1th class, For the shared fingerprint library R N The number of samples in the c2th class, For the shared fingerprint library RN The i-th reference point sample in For the shared fingerprint library R N The jth reference point sample in
[0148] In order to further obtain a shared fingerprint library that satisfies the domain invariance, the difference between the source and target domains in the new fingerprint library is as small as possible. Considering all reference point samples in the entire fingerprint library, the Euclidean distance of the coordinates between samples is introduced. The smaller the Euclidean distance, the closer the distance between the reference points, and the smaller the data difference, the neighbor distribution difference function F is constructed. AID ;
[0149]
[0150] Where n N For the shared fingerprint library R N The number of reference point samples, is the coordinate of the i-th sample in the shared fingerprint library is the coordinate of the jth sample in the shared fingerprint library.
[0151] Based on the above calculations, the total objective function F of the shared fingerprint library based on projection and reconstruction between the two domains is:
[0152] F=F SOD +F ICD +F AID -F BCD (17)
[0153] Minimize the above formula and obtain the corresponding projection P through iterative calculation S , P T and the reconstruction matrix Z S , Z T .
[0154] After completing the mapping and reconstruction of the new domain, a new shared fingerprint library D is obtained. N , then, for D N The signal characteristic data of the sample reference point in the sample is used to recalculate the membership degree. Updated as follows:
[0155]
[0156] in, For the shared fingerprint library R N The ath feature data of the i-th reference point sample in, For the shared fingerprint library R N The ath feature data of the class center point sample of the jth class;
[0157] According to the above updated membership degree, D NAll samples in the source domain and the target domain are reclassified, and the samples get new category labels L N .
[0158] 4. Online stage positioning solution
[0159] In the online stage, the fingerprint data reconstructed after projection is used to obtain the category to which the corresponding positioning point belongs using the classification model trained in the offline stage, and the improved WKNN algorithm is used to perform intra-fingerprint matching to achieve the final positioning.
[0160] The signal data of the positioning point received by the terminal in the online stage is used as the data of the target domain based on the mapping matrix P S Mapping is performed based on the reconstruction matrix Z T Reconstructing new signal characteristics RSRP IL Make the sample and the shared fingerprint library meet the dimension homogeneity and distribution similarity. Match the positioning point to the g-th category area. Suppose there are a total of reference points, select Manhattan distance as the weight, solve the coordinates of the positioning point, and the Manhattan distance weight ω of the i-th reference point i The calculation is as follows:
[0161]
[0162] in, represents the signal data of the kth feature of the reconstructed online sample, is the kth base station signal data of the ith reference point in the shared fingerprint library, The signal data representing the kth feature of the ath reference point sample in the shared fingerprint library.
[0163] Based on the above calculation of the weighted centroid of the reference point, the coordinates of the centroid are the coordinates (x, y) of the positioning point.
[0164]
[0165] The description and application of the present invention here are illustrative, and it is not intended to limit the scope of the present invention to the above-mentioned embodiments. The effects or advantages involved in the specification may not be reflected in the actual experimental examples due to the uncertainty of specific condition parameters or other factors, and the effects or advantages are not used to limit the scope of the invention. The deformation and change of the embodiments disclosed here are possible, and the replacement of the embodiments and the various equivalent parts are well known to those of ordinary skill in the art. It should be clear to those skilled in the art that the present invention can be implemented in other forms, structures, arrangements, proportions, and with other components, materials and parts without departing from the spirit or essential features of the present invention. Other deformations and changes can be made to the embodiments disclosed here without departing from the scope and spirit of the present invention.
Claims
1. A 5G indoor positioning method based on fingerprint library migration and reconstruction, characterized in that: It includes offline phase and online phase, in which: The offline phase includes: Step 1: Adaptively filter the historical offline database: The historically collected data and the currently collected data samples are refined and filtered based on the base station similarity. The historical source domain samples with similar sample characteristics to the target domain are filtered out, and the number of source domain samples is determined based on the difference between the source domain and the target domain to complete the adaptive source domain filtering. Step 2: Based on the isomorphic features of the source domain and the target domain, the fuzzy C-means algorithm is used to train the clustering algorithm model for the historical source domain samples retained after adaptive screening, and pseudo labels are generated for the target domain samples based on the position coordinate relationship between the source domain samples and the target domain samples and the categories are assigned; Step 3: Use the mapping matrix and reconstruction matrix to migrate homogeneous knowledge to heterogeneous knowledge between the source domain and the target domain, perform data weighting processing on co-occurring samples, reconstruct heterogeneous samples based on intra-class distance, inter-class distance and neighbor distribution difference function, generate a new domain-invariant shared fingerprint library, and update the class labels of all samples in the shared fingerprint library; specifically, 3-1: Assume that there is a source domain mapping matrix P in the source domain and the target domain respectively S and the target domain mapping matrix P T , transfer the knowledge of homogeneous features to heterogeneous features, complete the migration of heterogeneous feature knowledge between the two domains, and obtain the corresponding target domain-specific feature knowledge in the source domain as The source domain-specific feature knowledge corresponding to the target domain is Right now Then the new source domain R N-S and the target domain R N-T They are and 3-2: When projecting and transferring isomorphic knowledge, the original data structure of the corresponding domain cannot be destroyed. In the process of solving the mapping matrix, the original isomorphic data of the corresponding domain is mapped to its unique heterogeneous data. By minimizing the difference, the impact on the original data structure is minimized. The corresponding difference F SOD for: 3-3: The samples in the new source domain and the target domain are divided into co-occurring samples and non-occurring samples based on the position coordinates. The samples with the same position coordinates are co-occurring samples, which are denoted by R N-S,B and R N-T,B , otherwise it is an abnormal sample, denoted by R N-S,G and R N-T,G , suppose there are ρ co-occurring samples in total; 3-4: Process the ρ co-occurrence samples and retain one sample data at the same coordinate in the newly constructed shared fingerprint library, that is, perform weighted processing on the data in the two domains. First, determine which base stations have changed their data to a greater extent, and introduce Gaussian distribution to calculate the difference RSRP-d between the two domains. i,l Compare, if the difference is too low, it means the degree of change is small, keep the latest data of the target domain If it is in the middle average area, the mean of the two data is calculated; if the difference is large, the data of the corresponding base stations in the source domain and the target domain are weighted respectively. The weighted calculation of the jth base station signal data of the i-th co-occurrence sample in the fingerprint library is as follows: Where μ represents the difference RSRP-d of all base station feature data in the two domains i,l The mean of the two domains, σ represents the difference of all base station feature data in the two domains RSRP-d i,l The standard deviation of the distribution of 3-5: Reconstruct the different samples in the source domain and the target domain, and introduce the reconstruction matrix Z respectively S and Z T , then the reconstructed variant sample R G-S and R G-T They are: 3-6: For the updated data of the co-occurrence samples, based on minimizing the intra-class distance, that is, minimizing the distance between the samples in the source domain and the target domain that belong to the same class as the co-occurrence samples, construct the intra-class difference function F ICD : in, represents the i-th co-occurrence sample, represents the jth out-of-place sample in the source domain, represents the jth outlier sample in the target domain; and Finally, the new shared fingerprint library D obtained after reconstruction N The signal characteristic data is R N =[R B R G-S R G-T ] T ; 3-7: Based on the data reconstructed from the class center samples, the maximum mean difference indicator is introduced to construct the inter-class difference function F BCD : in, For the shared fingerprint library R N The number of samples in the c1th class, For the shared fingerprint library R N The number of samples in the c2th class, For the shared fingerprint library R N The i-th reference point sample in For the shared fingerprint library R N The jth reference point sample in ; 3-8: Based on all reference point samples in the entire fingerprint library, the Euclidean distance of the coordinates between samples is introduced. The smaller the Euclidean distance, the closer the distance between the reference points and the smaller the data difference, and the neighbor distribution difference function F is constructed. AID : Among them, n N For the shared fingerprint library R N The number of reference point samples, is the coordinate of the i-th sample in the shared fingerprint library, is the coordinate of the jth sample in the shared fingerprint library; 3-9: The total objective function F of the shared fingerprint library obtained by projection and reconstruction between the two domains is: F=F SOD +F ICD +F AID -F BCD Minimize the above formula and obtain the corresponding projection P through iterative calculation S , P T and the reconstruction matrix Z S , Z T ; 3-10: After completing the mapping and reconstruction of the new domain, a new shared fingerprint library D is obtained N , for D N Signal characteristic data R of all sample reference points in N Recalculate membership, membership Updated as follows: in, For the shared fingerprint library R N The ath feature data of the i-th reference point sample in, For the shared fingerprint library R N The ath feature data of the class center point sample of the jth class; According to the above updated membership degree, D N All samples in the source domain and the target domain are reclassified, and the samples get new category labels L N ; The online phase includes: Step 1: Receive signal feature data and send it to the connected base station in the form of data packets. The base station reconstructs the signal feature data by data projection to obtain the final signal value. Step 2: Match the final signal value with the cluster center points obtained in the offline stage and assign the category of the positioning point; Step 3: Match the location of the positioning point with each reference point in the class, calculate the location of the positioning point based on the improved weighted nearest neighbor algorithm, and obtain the coordinates of the positioning point; Step 4: Based on the downlink technology of the 5G network, the base station sends the coordinate data of the positioning point to the terminal.
2. The 5G indoor positioning method based on fingerprint library migration and reconstruction according to claim 1 is characterized in that: The first step of the offline phase specifically includes: 1-1: Initial offline database D O = {R O ,Q O }Include n O The data of reference points, among which, Indicates the position coordinate information of the reference point. Indicates signal data information, represents the data received from L base stations at the i-th reference point, O i∈[1,n0]; The target domain database at time A is Wherein, time A represents the current time of recollecting fingerprint samples. Indicates the L received at the i-th reference point T Data of base stations, n T is the number of reference point samples in the target domain; 1-2: Assume offline database D O The target domain database D T The number of all scanned base stations is L, and the detection index is defined and in When the detection index value is 1, it means that the i-th sample has scanned the l-th base station; Based on the above detection indicators, calculate the offline database D O The target domain database D T The base station similarity α(i, j) of each sample in is: The more shared base stations detected between the i-th sample and the j-th sample, the larger α(i, j), indicating that the i-th sample in the source domain has a greater effect on the target domain; 1-3: Assume that the maximum and minimum values of the jth base station in the target domain are as follows: Then suppose In the formula, Then the weight of the i-th sample in the source domain is where θ i is the base station feature similarity weight of the sample based on the maximum and minimum values, θ max is the θ of all samples i Therefore, the base station similarity of the i-th sample in the source domain is: For all offline library samples there are Thus, the most similar n is retained based on s S samples to construct a new source domain 1-4: The samples retained after source domain screening construct a new source domain D related to the target domain S , since the number of samples retained is n S The similarity threshold is determined. Therefore, the following optimization model for source domain screening is established. Based on this model, the optimal similarity threshold is obtained, thereby confirming the optimal number of source domain samples n S ; The first part of the optimization model represents the minimization of the error between the new source domain and the target domain, and the second part represents the similarity of the sample base station features of the two domains.
3. The 5G indoor positioning method based on fingerprint library migration and reconstruction according to claim 1 is characterized in that: The second step of the offline phase specifically includes: 2-1: Based on offline detection indicators and in When the detection index value is 1, it means that the i-th sample has scanned the l-th base station; the total detection index of the j-th base station When the value is not 0, it means that the signal characteristics of the jth base station are isomorphic characteristics of the source domain and the target domain, which are recorded as and Otherwise, the heterogeneous features are recorded as and In heterogeneous features, if is the unique base station feature of the source domain. is the unique base station information of the target domain; 2-2: Cluster the data in the source domain based on homogeneous features, use the fuzzy C-means clustering algorithm, randomly initialize the number of fuzzy C-means clustering categories, calculate the membership of each reference point, initialize the membership matrix, calculate the initial fingerprint clustering center through the membership, and update the clustering center c according to the objective function of the clustering algorithm j , the objective function J of the clustering algorithm is: In the formula, U represents the number of categories, n S represents the number of source domain samples, represents the degree of membership, represents the weighting coefficient or fuzzy control parameter, Set to 2, L represents the number of signal features, represents the ath feature data of the i-th source domain sample, Represents the cluster center c of the jth category j The ath feature data of , recalculate the membership degree according to the new cluster center 2-3: Based on the categories and cluster centers of the source domain, the data in the target domain are classified based on isomorphic features, and the coordinate correlation is introduced as the classification weight. Then the cluster membership of the i-th sample in the target domain to each cluster center is for: in, Represents the cluster center c of the jth category j The horizontal axis of represents the horizontal coordinate of the i-th target domain sample, Represents the cluster center c of the jth category j The vertical coordinate of Represents the ordinate of the i-th target domain sample. Classification is completed based on the clustering distance, that is, the category pseudo label of the target domain is obtained.
4. The 5G indoor positioning method based on fingerprint library migration and reconstruction according to claim 1 is characterized in that: The third step of the online phase specifically includes: (3-1) The signal data of the positioning point received by the terminal in the online stage is used as the data of the target domain based on the mapping matrix P S Mapping is performed based on the reconstruction matrix Z T Reconstructing new signal characteristics RSRP IL Make the sample and the shared fingerprint library have the same dimension and similar distribution; (3-2) Match the positioning point to the g-th category area. Suppose there are a total of reference points, select Manhattan distance as the weight, solve the coordinates of the positioning point, and the Manhattan distance weight ω of the i-th reference point i for: in, represents the signal data of the kth feature of the reconstructed online sample, Represents the signal data of the kth feature of the i-th reference point sample in the shared fingerprint library, The signal data representing the kth feature of the ath reference point sample in the shared fingerprint library; (3-3) Based on the above formula, the weighted centroid of the reference point is calculated, and the coordinates of the centroid are the coordinates of the positioning point:
