Multi-task correlation 3D indoor radio positioning method based on invariant data enhancement
Through the environmental structure invariant fingerprint offline completion method EIOC and the multi-task model, the problem of incomplete data and uncaptured signal feature connections in multi-floor scenarios in radio positioning technology is solved, achieving more accurate and efficient indoor positioning, and improving It improves the generalization ability and processing efficiency of the model.
Patent Information
- Application Number
- CN202411009033.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-26
AI Technical Summary
Existing radio positioning technology has problems with incomplete data and uncaptured signal feature connections in complex multi-floor scenarios, resulting in poor positioning performance, and existing methods fail to effectively integrate the synchronous positioning of buildings, floors and coordinate pairs. Limits the generalization ability of multi-task indoor positioning algorithms.
The fingerprint offline completion method EIOC based on environmental structure invariance is used to encode the one-dimensional RSSI data into a sparse matrix, extract the invariant features of the environmental structure and perform sparse matrix completion. It is combined with the conditional variational autoencoder CVAE to complete the data. And build a multi-task model to achieve the simultaneous positioning of buildings, floors and coordinate pairs.
It improves the accuracy of data completion and the reliability of indoor positioning. By extracting invariant features of the environment structure and feature sharing mechanism, it significantly improves the model's generalization ability and processing efficiency, and supports multi-task positioning requirements in complex indoor environments.
Smart Images

Figure CN118533184B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of radio orientation, and in particular relates to a multi-task associated 3D indoor radio positioning method based on invariant data enhancement. Background Art
[0002] Indoor positioning technology plays a key role in tasks such as automatic parking, security inspections, and logistics replenishment. However, in indoor scenarios, traditional GPS positioning technology suffers from severe signal attenuation due to interference from factors such as building occlusion and complex scenes, resulting in large positioning errors.
[0003] Wireless Local Area Networks (WLAN) indoor positioning, represented by Wi-Fi, has gradually attracted attention due to its relatively low cost and wide deployment. In particular, Wi-Fi's received signal strength indicator (RSSI) data is suitable for solving the attenuation problem of indoor positioning signals due to its easy capture and wide distribution range. However, the applicability of existing radio positioning methods in complex multi-floor scenarios is limited and faces the following challenges. First, the RSSI data received by limited sensing devices on a single floor lacks sufficient spatial feature representation, resulting in incomplete features for model learning. Second, the time-varying nature of the RSSI data itself makes the collected signal highly volatile, resulting in noise being easily learned by the model as an important feature. Finally, using RSSI data from different floors independently for model training will not only cause repeated workload and high time cost, but may also ignore the similarity and complementarity of features between different floors, thereby affecting the accuracy of positioning.
[0004] In view of the above problems, it is particularly important to develop a positioning framework suitable for multi-floor environments. Although some studies have focused on complex multi-floor positioning technology and achieved initial results, there are still many challenges. For example, the spatial characteristics of RSSI data have not been effectively captured, and the diverse positioning needs and potential correlations between positioning tasks have not been considered. In addition, 3D indoor positioning based on buildings, floors, and coordinate pairs has received widespread attention from researchers. However, existing methods usually process 3D positioning prediction tasks independently and complete positioning tasks through stacking models. This approach not only increases the computational burden, but also prolongs the processing time.
[0005] In summary, the current 3D indoor radio positioning mainly has the following technical problems:
[0006] (1) Data completion for fingerprint sampling points with obvious discreteness can effectively improve the quality of fingerprint data. Existing indoor fingerprint positioning technology mainly performs data completion for single-floor environments and relies on the completed data to train the positioning model. This method fails to take into account the data incompleteness caused by the limited number of single-floor sensing devices, and fails to grasp the signal feature connection between different positioning tasks, resulting in poor performance in multi-task indoor positioning scenarios.
[0007] (2) The simultaneous positioning of buildings, floors, and coordinate pairs is a necessary requirement for achieving complex multi-task indoor positioning. For complex multi-task indoor positioning systems, it is critical to simultaneously determine the positioning of buildings, floors, and coordinate pairs. Current technologies have not yet effectively integrated these three positioning tasks, especially in terms of exploring the potential connections between them, which limits the generalization ability of multi-task indoor positioning algorithms. Summary of the invention
[0008] The purpose of the present invention is to provide a multi-task associated 3D indoor radio positioning method based on invariant data enhancement, using the invariant features of the environmental structure to complete the fingerprint data, and provide a more reliable data basis for indoor positioning.
[0009] The technical solution adopted by the present invention is as follows:
[0010] In a first aspect, the present invention provides a multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement, the method comprising:
[0011] Collect fingerprint data;
[0012] The collected fingerprint data is completed using the fingerprint offline completion method EIOC based on the invariance of environmental structure, including:
[0013] Encode the collected fingerprint data and convert it into a sparse matrix;
[0014] Learn the invariant features of the environment structure based on sparse matrices;
[0015] Based on the sparse matrix and the invariant characteristics of the environment structure, the conditional variational autoencoder CVAE is combined to complete the sparse matrix and obtain the complete matrix;
[0016] Decode the complete matrix to obtain complete fingerprint data;
[0017] Build a multi-task model for indoor positioning, train the model using complete fingerprint data, and use the trained model for indoor positioning.
[0018] Furthermore, fingerprint data is collected, including:
[0019] Assume that the wireless access point WAP has The collected fingerprint data set is expressed as: ,in, , represent The total number of samples in Fingerprint signal samples of data , Represents the signal strength of the mth access point in the nth data, and the corresponding position sample is Indicates that and Represents the building ID and floor ID of the nth data, is a coordinate pair of a plane position.
[0020] Furthermore, the encoding method is:
[0021] For Fingerprint signal samples of data , and its corresponding position label is ,in , Represents the number of buildings involved in the fingerprint data; represents the number of floors involved. Since the floor indexes of different buildings are the same, all floors are merged, re-sorted and assigned new IDs. , then directly sort them and assign IDs, ;
[0022] According to the mth access point The fingerprint data features at all positions are defined as A two-dimensional sparse matrix ,and ,in for A one-dimensional column vector representing The coordinate pair signal strength set on the nth floor; at the same time, The value on is defined as , represents the signal strength of the i-th coordinate pair on the j-th floor;
[0023] For M WAPs, further define , represents the set of sparse matrices corresponding to all WAPs; and defines the mask matrix of the same shape ,and The shape is equivalent to , but the values on the matrix represents the perception of the corresponding position, and is defined as shown in formula (3). The whole process is shown in formula (4):
[0024]
[0025] In the formula, Indicates encoding.
[0026] Furthermore, the invariant features of the environment structure are learned based on the sparse matrix, including:
[0027] Due to different The signal coverage of may show the same fingerprint distribution due to similar terrain structure, so the similar feature distribution is called the environmental structure invariant feature, and this feature is a set ;
[0028] Through the neural network model Based on sparse matrix collection Learn the invariant features of the environment structure ; The neural network model Includes environment classifier And label learner ; Among them, the environment classifier Infer from the original fingerprint data and the corresponding labels through the convolutional neural network model , while the label learner The convolutional neural network is used to extract the original fingerprint data and E In reverse prediction, the corresponding label is verified E The correctness of this process is expressed as:
[0029]
[0030] In the formula, It means learning the invariant features of the environment structure based on a sparse matrix set.
[0031] Furthermore, the method of sparse matrix completion is:
[0032] Defining the Neural Network Model , neural network model The environmental structure remains unchanged As the completion condition of the sparse matrix set Mat, and combined with the conditional variational autoencoder CVAE to complete the sparse matrix completion, the process is expressed as:
[0033]
[0034] In the formula, represents the complete matrix, Indicates the completion process.
[0035] Furthermore, the fingerprint offline completion method EIOC based on the invariance of environmental structure newly defines the potential complete matrix set as T , where each individual matrix Contains the original true value and the generated value, the location of the generated value is The median value is none The relationship between them is expressed as:
[0036]
[0037] in, represents the Hadamard product;
[0038] EIOC only needs to be minimized The loss between and T can obtain a higher generation quality; at the same time, the generated complete matrix After decoding, the complete fingerprint data can be obtained. ,Right now:
[0039]
[0040] In the formula, Indicates the decoding process.
[0041] Furthermore, indoor positioning is performed using the positioning method PROL based on the correlation of position information, including:
[0042] For full fingerprint data , convert the one-dimensional RSSI data into a two-dimensional format to obtain two-dimensional scale data containing spatial features ;
[0043] Building a multi-task model for indoor positioning based on complete fingerprint data And two-dimensional scale data Achieve multi-task positioning of buildings, floors and coordinate pairs, including:
[0044] Complete fingerprint data And two-dimensional scale data Feature extraction is performed respectively to obtain one-dimensional numerical modal features and image modal features of building positioning;
[0045] Flatten the image modal features of building positioning and fuse them with one-dimensional numerical modal features to locate the building based on the fused features;
[0046] The building positioning results and fusion features are concatenated as one-dimensional input for floor and coordinate pair positioning, and the image modal features are used as two-dimensional input for floor and coordinate pair positioning;
[0047] Similarly, feature extraction is performed on the one-dimensional input and two-dimensional input of the floor and coordinate pair positioning, and the one-dimensional numerical modal features and image modal features of the floor and coordinate pair positioning are obtained;
[0048] The image modal features of floor and coordinate pair positioning are flattened and fused with their one-dimensional numerical modal features, and floor and coordinate pair positioning is performed based on the fused features.
[0049] Furthermore, the method of converting the one-dimensional RSSI data into a two-dimensional format is:
[0050] The original one-dimensional RSSI data is normalized so that the value range is mapped to the pixel value range;
[0051] Calculate the square root of the length of the one-dimensional RSSI data and round it up to get the side length R of the two-dimensional image;
[0052] Calculate the total number of pixels T of the image based on the side length and fill in the missing values to ensure that the data length is consistent with the number of pixels;
[0053] A sliding window with a length of R is used to slice the one-dimensional RSSI data. Each sliding window generates a new data segment with a length of R. These data segments are stacked vertically to form a two-dimensional image with a spatial structure.
[0054] Furthermore, the positioning goal is to minimize the loss between the predicted position and the true position. The formula is:
[0055]
[0056] in, represents the loss value, Represents the model parameters; for the nth data, , Represent the predicted ID and real ID of the building respectively; , Respectively represent the predicted ID and real ID of the floor, Represent the predicted coordinate pairs and the true coordinate pairs respectively, and N represents the total number of data;
[0057] During training, the collected fingerprint data is completed using the fingerprint offline completion method EIOC based on the invariance of the environmental structure; when positioning after training, the collected fingerprint data is completed using the fingerprint offline completion method EIOC based on the invariance of the environmental structure, or positioning is performed directly without completion.
[0058] In a second aspect, the present invention also provides a multi-task associated 3D indoor radio positioning device based on feature invariance data enhancement, which adopts any one of the multi-task associated 3D indoor radio positioning methods based on feature invariance data enhancement described above for indoor positioning.
[0059] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0060] The present invention designs an offline fingerprint completion method EIOC based on the invariance of environmental structure. EIOC first encodes the one-dimensional RSSI data into a sparse matrix, which integrates different wireless access points (WAPs), building indexes and location coordinates. Then, using the similar environmental structure between floors, EIOC extracts the common features across floors from the sparse matrix, which are called "environmental structure invariant features". Finally, these invariant features are used to reversely complete the sparse matrix and perform corresponding decoding processing. Through theoretical analysis, the existence of environmental structure invariant features is proved, and through experiments, it is verified that EIOC can effectively extract these key features and ensure the integrity of data completion. This method not only improves the accuracy of data completion, but also provides a more reliable data basis for indoor positioning.
[0061] In addition, the present invention constructs an online positioning method PROL based on the correlation of position information. PROL first converts the completed fingerprint data into a two-dimensional format, and uses the one-dimensional and two-dimensional multi-scale fingerprint data as model input at the same time to effectively extract spatial features. In addition, PROL takes building prediction as a pre-task and uses its output features to guide the completion of other positioning tasks, thereby achieving more accurate multi-task indoor positioning. This method optimizes the tasks of building, floor classification and coordinate regression, and significantly improves the generalization ability and processing efficiency of the model through the feature sharing mechanism. The results show that PROL can provide efficient and high-performance indoor positioning services, and effectively support the multi-task positioning needs of complex indoor environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 A flow chart of a multi-task correlation 3D indoor radio positioning method based on feature invariance data enhancement;
[0063] Figure 2 Schematic diagram of multi-task associated 3D indoor radio positioning;
[0064] Figure 3 This is the ELOC data flow chart;
[0065] Figure 4 This is a visualization diagram of the RSSI two-dimensional image, where Figure 4 (a) is a schematic diagram of the comparison of position coordinates. Figure 4 (b) is a comparative diagram of floor coordinates. Figure 4 (c) is a comparative diagram of building coordinates;
[0066] Figure 5 This is the system flow chart of PROL;
[0067] Figure 6 for Figure 5 The structural diagram of each characteristic tower in;
[0068] Figure 7 This is a comparison chart of the effect of adding noise to RSSI. Figure 7 (a) is the performance comparison diagram of the building task. Figure 7 (b) is the performance comparison diagram of the floor task. Figure 7 (c) is the performance comparison chart of the coordinate task. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0070] The present invention provides a multi-task associated 3D indoor radio positioning method and device based on feature invariance data enhancement, which is mainly aimed at the construction of multi-buildings, multi-floors and plane coordinate equivalent positions in complex scenes, that is, the construction of 3D indoor positioning algorithm. The technical problems to be solved by the algorithm mainly include the following two points:
[0071] (1) Data completion for fingerprint sampling points with obvious discreteness can effectively improve the quality of fingerprint data. Existing indoor fingerprint positioning technology mainly performs data completion for single-floor environments and relies on the completed data to train the positioning model. This method fails to take into account the data incompleteness caused by the limited number of single-floor sensing devices, and fails to grasp the signal feature connection between different positioning tasks, resulting in poor performance in multi-task indoor positioning scenarios.
[0072] (2) The simultaneous positioning of buildings, floors, and coordinate pairs is a necessary requirement for achieving complex multi-task indoor positioning. For complex multi-task indoor positioning systems, it is critical to simultaneously determine the positioning of buildings, floors, and coordinate pairs. Current technologies have not yet effectively integrated these three positioning tasks, especially in terms of exploring the potential connections between them, which limits the generalization ability of multi-task indoor positioning algorithms.
[0073] To this end, the present invention designs an offline fingerprint completion method EIOC based on the invariance of environmental structure.
[0074] EIOC first encodes the one-dimensional RSSI data into a sparse matrix that integrates different wireless access points (WAPs), building indexes, and location coordinates. Then, using the similar environmental structure between floors, EIOC extracts the common features across floors from the sparse matrix, which are called "environmental structure invariant features." Finally, these invariant features are used to reverse-complete the sparse matrix and perform corresponding decoding processing.
[0075] In addition, an online positioning method PROL based on location information correlation is constructed.
[0076] PROL first converts the completed fingerprint data into a two-dimensional format, and uses the one-dimensional and two-dimensional multi-scale fingerprint data as model input to effectively extract spatial features. In addition, PROL uses building prediction as a pre-task and uses its output features to guide the completion of other positioning tasks, thereby achieving more accurate multi-task indoor positioning.
[0077] Embodiment 1
[0078] This embodiment provides a multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement, that is, multi-task 3D indoor positioning modeling in complex multi-floor scenes.
[0079] (1) Overview of 3D indoor positioning framework based on environmental feature invariance and position correlation
[0080] like Figure 1 As shown in the figure, the framework mainly considers three stages: RSSI information collection, offline data enhancement, and online positioning prediction for mobile service robots in complex multi-floor positioning. First, in the information collection stage, RSSI data will be collected in the actual complex multi-floor situation and converted into offline fingerprint data for storage. In the data enhancement stage, data enhancement methods are considered. and its parameters , the framework will enhance the sparse data D to obtain enhanced data , the process can be Finally, in the multi-task position prediction stage, the model is specifically considered and its parameters , will be based on After the specific deployment of model F is completed, the current signal can be used to estimate its position. , the positioning goal is to ensure the accuracy of multi-task positioning by minimizing the loss between the predicted position and the true position of the positioning algorithm. The formula is:
[0081]
[0082] Specifically, for the multi-task indoor positioning requirements, formula (1) can be rewritten as:
[0083]
[0084] Among them, for the nth data, , Represent the predicted ID and real ID of the building respectively; , Respectively represent the predicted ID and real ID of the floor, Represent the predicted coordinate pair and the true coordinate pair respectively.
[0085] In order to solve the optimization problem in formula (2), the proposed framework considers the invariance of environmental structure and the correlation of multi-task positions to achieve data enhancement and position prediction in complex multi-floor backgrounds. The specific steps are as follows: Figure 2 As shown, including:
[0086] Step 1: Fingerprint data collection. Create raw fingerprint data offline by designing RSSI data collection components . Assume that there are wireless access points Then the collected fingerprint data set can be expressed as ,in , represent The total number of samples in . Fingerprint signal samples of data , represents the signal strength of the mth access point in the nth data. The corresponding position sample is Indicates that and Represents the building ID and floor ID of the nth data, is a coordinate pair of a plane position.
[0087] Step 2: EIOC method. The specific process is as follows Figure 3 As shown, the method includes four processes: A. multi-dimensional fingerprint information encoding, B. invariant environment structure inference, C. data enhancement based on invariant environment structure, and D. data recovery decoding.
[0088] A. Multi-dimensional fingerprint information encoding
[0089] For original expression , existing methods usually process the one-dimensional data and labels independently. However, such methods cannot extract complete location features. To address this problem, EIOC Perform fusion coding.
[0090] In this section, the original data Encode the data and convert it into a combination of sparse matrices , and extract the mask matrix corresponding to each sparse matrix as Mask specifically represents the numerical perception of each position on Mat. For example, Represents the position sensed in the matrix The corresponding value In It is the perception situation.
[0091] Consider the Fingerprint signal samples of data , and its corresponding position label is ,in Specifically, Represents the number of buildings involved in the fingerprint data, represents the number of floors involved (note that since the floor indexes of different buildings are the same, all floors are merged, re-sorted and assigned new IDs). , directly sort them and assign IDs, that is .
[0092] Based on the above data definition, EIOC will perform fusion encoding on the data from the perspective of WAP so that the original data contains location space information, such as Figure 3 As shown in A. First, according to The fingerprint data features at all positions are defined as A two-dimensional sparse matrix .and ,in for A one-dimensional column vector representing The coordinate pair signal strength set on the nth floor. At the same time, The value on can be specifically defined as , represents the signal strength of the ith coordinate pair on the jth floor. Considering the case of M WAPs, we further define , represents the set of sparse matrices corresponding to all WAPs. Correspondingly, a mask matrix of the same shape is defined ,and The shape is equivalent to , but the values on the matrix represents the perception of the corresponding position, and is defined as shown in formula (3). The whole process is shown in formula (4):
[0093]
[0094] In the formula, Indicates encoding.
[0095] B. Invariant Environment Structure Inference Model
[0096] In the previous step, we mainly performed multidimensional encoding on the original data, which will be discussed in detail below. Represented as a combination of multiple sparse matrices, so consider a sparse matrix , the horizontal axis represents the floor index, and the column coordinate represents the coordinate pair index. Therefore, this matrix can intuitively express the Complex fingerprint features under multiple floors.
[0097] Next, the present invention will first propose two premises based on the level of the floor and discuss them:
[0098] Hypothesis 1: There is similarity in the building structure between different floors, which includes the similarity of the overall layout structure and some environmental structural details.
[0099] Hypothesis 2: Although The locations of the transmitting sources are different, but similar building features can still be extracted within the coverage range of their signals.
[0100] Based on the above assumptions, the present invention will be further discussed: different The signal coverage of the signal may capture some similar building structure features, such as an ideal environment without obstacles, a passage with right-angle turns, and a corresponding spatial layout of upper and lower floors. However, since the coverage area may show the same fingerprint distribution due to similar terrain structure, the present invention can refer to the similar feature distribution as the environment invariant feature, and the feature is a set ,like Figure 3 As shown in B. The present invention will discuss it in detail below, because the environment invariant feature set Mainly affected by the floor and WAP, so the following situations exist:
[0101] 1) Same floor, same WAP: This scenario involves the association of wireless signal fingerprint and location information using a single WAP on the same floor. In this scenario, although the environmental error ( ) exist, but are usually not particularly significant because the problem is confined to a relatively simple single environment;
[0102] 2) Same floor, different WAPs: This scenario reflects most of the current research work on single-floor indoor positioning, where the positioning process is limited to one floor and involves multiple WAPs. Since the positioning process covers WAPs at different emitter locations, the environmental error ( ) is more obvious in this case because all WAPs are affected by the same building structure;
[0103] 3) Different floors, same WAP: This situation is more complicated than the previous two cases. Although the focus of the study is still on a single WAP, the differences in signal attenuation and distribution characteristics between floors increase the complexity of the problem. However, since all floors belong to the same building, the environmental error ( ) is more obvious, which helps to identify similar layout features between different floors;
[0104] 4) Different floors, different WAPs: This situation is the most complicated. However, due to the diverse building structures covered by different WAPs, there are rich environmental features, which makes the environmental error ( ) is very significant in such cases. This diversity helps to extract effective features from a variety of different environments and provide more accurate data support for indoor positioning.
[0105] However, since it is not possible to directly Therefore, the present invention proposes an environment-invariant feature learning module to solve the problem of unknown environment structure.
[0106] Specifically, EIOC will be based on a sparse matrix collection Learn the invariant features of the environment structure This process is specifically embodied in the neural network model The model mainly includes two sub-models, namely the environment classifier And label learner .in, Infer from the original fingerprint data and the corresponding labels through the convolutional neural network model ,and The convolutional neural network is used to extract the original fingerprint data and E In reverse prediction, the corresponding label is verified E correctness.
[0107] Through the definition of the above modules, the unique invariant environmental structure feature E will be learned, which will help the subsequent sparse matrix completion. The process can be expressed as:
[0108]
[0109] C. Data enhancement based on unchanged environment structure
[0110] Based on the sparse fingerprint data Mat and the environment-invariant structure E learned in B, ELOC specifically defines the neural network model Specifically, The invariant environment structure E is used as the completion condition of Mat, and the conditional variational inference (CVAE) method is combined to complete the sparse matrix completion. The process can be expressed as:
[0111]
[0112] In order to measure data quality, EIOC newly defines the potential complete matrix set as T , where each individual matrix Contains the original true value and the generated value (that is, the same position in Zhongwei none ). Therefore, the relationship between them can be specifically expressed as:
[0113]
[0114] in, represents the Hadamard product. In this part, EIOC only needs to minimize The loss between and T can achieve higher generation quality. After decoding, the complete fingerprint data can be obtained. .
[0115] D. Data recovery decoding
[0116] According to the above steps, the completed matrix will be obtained , and decoding it will get the completion after data amplification ,Right now:
[0117]
[0118] Step 3: PROL method. This part mainly includes data feature reshaping and multi-task model design.
[0119] A. Data feature reshaping
[0120] First, in multi-task positioning scenarios, the distribution of signal sources is usually uneven. At a specific location, the detectable signal source positions are fixed, and the relative relationship between these positions can provide important information about the location of the receiving point. However, the one-dimensional received signal strength (RSSI) data format is not sufficient to effectively capture these positional relationships. Therefore, considering the advantage of two-dimensional images in retaining spatial position information, the present invention proposes to convert the collected one-dimensional RSSI data into a two-dimensional format.
[0121] Specifically, for the complete matrix In order to generate a two-dimensional image from one-dimensional RSSI data, this study takes the following steps: First, the original one-dimensional RSSI data is normalized so that the value range is mapped to between 0 and 255 to adapt to the standard of pixel values. Then, the square root of the one-dimensional data length (i.e., the number of wireless access points M) is calculated and rounded up to obtain the side length R of the two-dimensional image. The total number of pixels T (i.e., ). To handle the data gap caused by the possibility that M is smaller than T, necessary zeros are added to the end of the data to ensure that the data length is consistent with the number of pixels. In addition, a sliding window technique with a length of R is used to slice the expanded one-dimensional data, and each sliding generates a new data segment with a length of R. Finally, these data segments are stacked vertically to form a two-dimensional image with a spatial structure, which not only completely transforms the data form, but also provides richer visual information for in-depth analysis.
[0122] The results are as follows Figure 4 As shown, Figure 4 (a) is a schematic diagram for comparing position coordinates. Figure 4 (b) is a comparative diagram of floor coordinates. Figure 4 (c) is a comparative diagram of building coordinates, thus obtaining two-dimensional scale data containing spatial features. At the same time, for this data set, the RSSI data and labels are generalized to achieve customized data enhancement.
[0123] B. Multi-task model design
[0124] Next, As The input of the model is based on the building features as a prerequisite to guide the feature extraction of the latter two, and finally realize the end-to-end output of 3D position coordinates (B, F, X, Y) of multi-task learning. Figure 5 shown.
[0125] Specifically, considering the multi-task nature of indoor positioning, that is, the potential association between building, floor and plane coordinate pairs, the present invention further designs a multi-task framework. In this framework, the prediction of buildings is not only associated with floors and coordinate pairs, but also has its unique properties. In order to ensure that this association is fully utilized, three sub-task branches are specifically designed, and the building task is made a prerequisite task for the floor and position tasks. In this way, the floor and position tasks can not only benefit from the output of the building task, but in turn, the feedback of the floor and position also helps to enhance the generalization ability of the building task.
[0126] For two-dimensional scale data, when the data first enters the model, basic feature extraction is first performed, namely the RSSI sharing tower and the image sharing tower. Subsequently, the image feature tower is used to perform preliminary feature extraction for the building task. In order to achieve feature fusion with the one-dimensional numerical mode on the building task, these features need to be flattened next, which is the role of the flat feature tower. After feature alignment, the features of the two scales are fused and further extracted by the fusion feature tower. Then, these outputs are fused again with the processing results of the fusion feature tower and provide raw data for the numerical mode to guide the floor and position tasks. For the latter two image modes, the unflattened building features are directly input into the subsequent two tasks. This design strategy aims to maintain the independence of different modal features and ensure the final prediction results in the position association of multi-task indoor positioning. For the one-dimensional numerical mode, its processing logic is basically symmetrical with the image mode. The main difference is that its feature extraction part is changed from a depthwise separable convolution to a fully connected layer, and no flattening is required, and feature fusion is directly performed with the image mode.
[0127] Specifically, the model has two data streams (RSSI and image) and three branches (building, floor, and coordinate pair). In the building branch, the two data streams are respectively extracted for features, and then flattened for image features to keep the data format consistent. After that, the two data streams are fused and the building ID is predicted. The building ID is then concatenated with the fused result as the RSSI data input for the floor and coordinate pair branches. The image data input for these two branches is directly the image features before flattening in the building. The specific operation process in these two branches is the same as that of the building. First, the two data streams are extracted separately, then the image is flattened, and the two are fused to predict the results.
[0128] like Figure 6 As shown in the figure, the model tower module finely implements the concept of multi-scale and multi-task data processing. Specifically, the image feature tower is specially designed to process the two-dimensional data of the image, and realizes efficient feature extraction through the self-attention mechanism; especially in the building prediction task, due to its leading nature to other tasks, the self-attention mechanism is optimized and integrated into the shared feature pool, while the floor and positioning tasks keep the original design. In order to meet the requirements of lightweight model, the depth separable convolution layer is adopted. On the other hand, the RSSI feature layer focuses on one-dimensional data processing, adopts the Dense layer as the core, and prevents the overfitting of the model through the Dropout layer. Furthermore, in order to ensure the perfect fusion of features between different modalities, we designed a flat feature tower to flatten and align the two-dimensional features of the image, and then splice it with the one-dimensional features. Then, the splicing result is adaptively extracted through the fusion feature tower, ensuring the deep fusion of multi-scale information.
[0129] It should be noted that when indoor positioning is performed after model training is completed, the collected fingerprint data can be completed without using the EIOC method; of course, it can also be completed.
[0130] The present invention also provides a multi-task associated 3D indoor radio positioning device based on feature invariance data enhancement, which adopts any one of the multi-task associated 3D indoor radio positioning methods based on feature invariance data enhancement described above to perform indoor positioning.
[0131] Embodiment 2
[0132] The present invention also provides specific experimental analysis, and the experimental environment is: the operating system is Ubuntu 18.04.1 LTS, the CPU is Intel (R) Xeon (R) Gold 6226 CPU @ 2.70GHz, and the GPU is NVIDIA A40.
[0133] A. Experimental Introduction
[0134] Experimental data set: To ensure the effectiveness of the proposed method, the present invention has carried out a detailed experimental evaluation on the public Wi-Fi RSSI data set UJIndoorLoc. The data set contains a total of 21,049 WiFi fingerprint data. Among them, the validation set was collected 4 months after the training set, and compared with the previous training set, the test set reduced 153 wireless transmission sources and added 55 new transmission sources. This case will be beneficial to the generalization performance of the test model. This data set mainly involves 520 routing signal sources, as shown in Table 1. At the same time, in terms of location information, in addition to the building ID and floor ID, it also includes the real-world longitude and latitude. It meets the requirements of the 3D scene in this method. It should be pointed out in particular that the provider of the data set clearly stated that the validation set data came from 4 months after the initial data, during which the RSSI data showed significant changes. In terms of result evaluation indicators, for multi-task classification tasks (such as building tasks and floor tasks), the present invention adopts Accuracy as the main evaluation indicator; for regression tasks (coordinate prediction), RMSE (root mean square error) is used for evaluation, and the MDE (mean Euclidean distance error) is calculated for the actual longitude and latitude after decoding to further evaluate its accuracy.
[0135] Table 1 Basic information of UJIindoor dataset
[0136]
[0137] Experimental design: First, the present invention will perform experiments in B, mainly exploring the role of the environment-invariant structure of EIOC, and then explore data enhancement and designed models for PROL. In the experiment of multimodal tasks, the present invention uses multi-task as a benchmark to compare the performance differences between single image, single numerical input and multimodal input. In terms of multi-task, the present invention trains each branch separately on the basis of multi-modality. Then, in C, it will be arranged in the actual scene to test the actual effect.
[0138] B. Validation of the proposed method
[0139] 1) Performance verification of EIOC based on feature invariance data enhancement. In order to verify the effectiveness of EIOC, the present invention first adjusted the key parameter E and set E to 50, 100, 150 and 200 for experiments. In particular, when E is set to 0, it means that the EIOC strategy is not applied. These verification experiments are mainly conducted on building recognition, floor classification and coordinate positioning tasks, and the results are shown in Table 1. Figure 7 In the display, Figure 7 (a) is the performance comparison diagram of the building task. Figure 7 (b) is the performance comparison diagram of the floor task. Figure 7 (c) is a performance comparison chart of the coordinate task. Figure 7 As shown in the figure, the method using EIOC shows improved performance in all tasks compared to the method without data completion (indicated by the black line in the figure). In particular, when E is 0, it can be seen from figure (a) that the accuracy of the building task converges slowly and the accuracy is also low. This phenomenon is also reflected in sub-figure (b). In addition, it can be observed from sub-figure (c) that in the coordinate pair task, the method without EIOC shows poor convergence effect.
[0140] 2) Verification of PROL, an online positioning method based on location information correlation.
[0141] The ablation experiment results of the multi-task model are detailed in Table 2. In order to ensure the consistency and rigor of the experiment, the present invention uses a single-modal model with a similar structure to the proposed model as a comparison, but removes the part related to the other mode. As shown in the results, although PROL did not surpass the best single-modal result in terms of floor accuracy, the difference was only 0.21. In the accuracy evaluation of buildings, it showed significant advantages over the single-modal model. It is particularly noteworthy that in the prediction and regression task of coordinates, when the results of the two single modalities exceeded 9m, the proposed model had been optimized to 7.5609m. This data fully verifies the superiority of the multimodal method, which has brought significant improvement to the accuracy of the model.
[0142] Table 2 Comparison of multimodal ablation experiments
[0143]
[0144] Similar to the multimodal ablation experiment, in order to ensure the controllability and rigor of the experiment, the present invention removes specific branches based on the multimodal structure. Based on all experimental data, as shown in Table 3, the proposed method surpasses the multimodal single-task method in all evaluations. This fully demonstrates that in the multi-task model structure, the potential correlation between tasks can complement each other, thereby improving their respective performance. For example, in this model, the present invention first uses the building task to provide prior knowledge for other tasks. When it completes the classification and outputs the result, the result will also be used to guide the learning and optimization of other tasks.
[0145] Table 3 Comparison of multi-task ablation experiments
[0146]
[0147] A. Actual deployment
[0148] Experimental platform: The present invention will specifically demonstrate the experimental results of the proposed method on the JetBot intelligent edge mobile robot. JetBot mainly uses NVIDIA Jetson Nano as its computing core and is equipped with an AC8265 wireless network card to capture wireless data in the environment. Specifically, the key computing performance parameters of Jetson Nano are listed in Table 4 of the invention below.
[0149] Table 4 Jetson Nano performance parameters
[0150]
[0151] Data collection: The specific experimental scene is the first complex building A and B. The two buildings have 6 floors respectively, and the two buildings are particularly symmetrical, which will effectively extract the invariant features of the environmental structure.
[0152] In order to deeply evaluate the performance of the model in real application scenarios, the present invention performed relevant deployment on JetBot and collected real-time operating indicators through the Jtop Nano tool, mainly including the working status of the quad-core CPU and GPU. During the training process of the model, the CPU was active, while the GPU utilization rate was maintained at about 70%, which did not reach its performance peak. This observation verifies the lightweight characteristics of the model and shows that it is suitable for training on edge computing devices. Obviously, all relevant hardware runs in low-power mode, indicating that the model will not over-consume device resources or cause a sharp reduction in power in actual applications, ensuring the normal operation of core tasks. In short, the lightweight characteristics of the proposed model and its feasibility in actual scenarios are confirmed.
[0153] In order to further confirm the practicality of the model, the present invention developed and deployed a web display system on JetBot. The system mainly includes the motion control of the robot, the position control of the camera, the real-time video stream and the device information (including RSSI signal, remaining battery level and memory usage, etc.), and stores this information in the cloud database.
[0154] The present invention shows the real-time performance of the system through a graph, and it can be seen that it is mainly divided into three stages. In stage A, the car operates normally, including network monitoring, communication connection, and Web services, etc. At this time, the memory is maintained at about 45%, and the battery power shows a stable downward trend. In stage B, model training was carried out, at which time the memory occupancy rate rose to about 90%, and the battery consumption increased slightly (for the convenience of visualization, the present invention ended the training process in advance). In stage C, the present invention conducted data testing on JetBot, with a total of 1111 test data, a total time of 18 seconds, and an average processing time of about 16 milliseconds per data. During this process, the memory only rose briefly, and the battery had almost no additional consumption.
[0155] The above results show that both battery consumption and memory usage are within controllable ranges during training and prediction, and the prediction task brings almost no additional consumption. Therefore, the model can actually run on remote devices, thus proving its practicality.
[0156] Table 5 details the computational efficiency of the model when deployed on the JetBot. This table focuses on two core performance indicators: the training time of a single iteration (epoch) and the prediction time of a single piece of data. From the results, it can be observed that given the limited computing power of JetBot, its training time is relatively long, so it is possible to consider reducing the number of iterations appropriately to optimize efficiency. However, in the prediction phase, the model shows efficient execution performance, which not only ensures the real-time response of the prediction, but also helps to save the battery life of the device and enhance its adaptability to application scenarios.
[0157] Table 5: Model running status on JetBot
[0158]
[0159] In summary, the present invention designs an offline fingerprint completion method EIOC based on the invariance of environmental structure. Through theoretical analysis, this study proves the existence of invariant features of environmental structure, and verifies through experiments that EIOC can effectively extract these key features and ensure the integrity of data completion. This method not only improves the accuracy of data completion, but also provides a more reliable data basis for indoor positioning.
[0160] In addition, the present invention constructs an online positioning method PROL based on location information correlation. This method optimizes the tasks of building and floor classification and coordinate regression, and significantly improves the generalization ability and processing efficiency of the model through the feature sharing mechanism. The results show that PROL can provide efficient and high-performance indoor positioning services and effectively support multi-task positioning requirements in complex indoor environments.
[0161] Simulation experiment of public data set: First, the present invention is experimented on the UJindoorLoc public data set to prove the effectiveness of the proposed method. The data set contains a total of 21,049 WiFi fingerprint data, including 19,674 training sets and 1,111 validation sets. The experimental results show that the method of the present invention finally achieves 100% building recognition accuracy, 93.23% floor recognition accuracy, and 7.56m plane positioning accuracy, which is higher than most deep learning models of the same period.
[0162] Real machine test in real environment: Secondly, in order to explore the actual effect of the present invention, the system will be tested in a real environment by deploying it on a mobile robot JetBot. The test results show that the framework can effectively perform three-dimensional spatial positioning in a dynamic environment, demonstrating its excellent performance and high reliability in practical applications.
[0163] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0164] It should be pointed out that, according to the needs of implementation, the various steps / components described in this application can be split into more steps / components, and two or more steps / components or partial operations of steps / components can be combined into new steps / components to achieve the purpose of the present invention.
[0165] It will be easily understood by those skilled in the art that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-task correlation 3D indoor radio positioning method based on feature invariance data enhancement, characterized in that: The method includes: Collect fingerprint data; The collected fingerprint data is completed using the fingerprint offline completion method EIOC based on the invariance of environmental structure, including: Encode the collected fingerprint data and convert it into a sparse matrix; Based on the sparse matrix, the invariant features of the environment structure are learned; among them, due to different wireless access points The signal coverage area may show the same fingerprint distribution due to similar terrain structure, so the similar feature distribution is called the environmental structure invariant feature; Based on the sparse matrix and the invariant characteristics of the environment structure, the conditional variational autoencoder CVAE is combined to complete the sparse matrix and obtain the complete matrix; Decode the complete matrix to obtain complete fingerprint data; Build a multi-task model for indoor positioning, train the model using complete fingerprint data, and use the trained model for indoor positioning.
2. The multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement according to claim 1 is characterized in that: Collect fingerprint data, including: Assume that the wireless access point WAP has The collected fingerprint data set is expressed as: ,in, , represent The total number of samples in Fingerprint signal samples of data , Represents the signal strength of the mth access point in the nth data, and the corresponding position sample is Indicates that and Represents the building ID and floor ID of the nth data respectively. is a coordinate pair of a plane position.
3. The multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement according to claim 2 is characterized in that: The encoding method is: For Fingerprint signal samples of data , and its corresponding position label is ,in , Represents the number of buildings involved in the fingerprint data; represents the number of floors involved. Since the floor indexes of different buildings are the same, all floors are merged, re-sorted and assigned new IDs. , then directly sort them and assign IDs, ; According to the mth access point The fingerprint data features at all positions are defined as A two-dimensional sparse matrix ,and ,in for A one-dimensional column vector representing The coordinate pair signal strength set on the nth floor; at the same time, The value on is defined as , represents the signal strength of the i-th coordinate pair on the j-th floor; For M WAPs, further define , represents the set of sparse matrices corresponding to all WAPs; and defines the mask matrix of the same shape ,and The shape is equivalent to , but the values on the matrix represents the perception of the corresponding position, and is defined as shown in formula (3). The whole process is shown in formula (4): In the formula, Indicates encoding.
4. The multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement according to claim 1 is characterized in that: Based on the sparse matrix, we learn the invariant features of the environment structure, including: Due to different The signal coverage of may show the same fingerprint distribution due to similar terrain structure, so the similar feature distribution is called the environmental structure invariant feature, and this feature is a set ; Through the neural network model Based on sparse matrix collection Learn the invariant features of the environment structure ; The neural network model Includes environment classifier And label learner ; Among them, the environment classifier Infer from the original fingerprint data and the corresponding labels through the convolutional neural network model , while the label learner The convolutional neural network is used to extract the original fingerprint data and E In the reverse prediction, the corresponding label is verified E The correctness of this process is expressed as: In the formula, It means learning the invariant features of the environment structure based on a sparse matrix set.
5. The multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement according to claim 3 is characterized in that: The method for sparse matrix completion is: Defining the Neural Network Model , neural network model The environmental structure remains unchanged As the completion condition of the sparse matrix set Mat, and combined with the conditional variational autoencoder CVAE to complete the sparse matrix completion, the process is expressed as: In the formula, represents the complete matrix, Indicates the completion process.
6. The multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement according to claim 5 is characterized in that: The fingerprint offline completion method EIOC based on the invariance of environmental structure newly defines the potential complete matrix set as T , where each individual matrix Contains the original true value and the generated value, the location of the generated value is The median value is none The relationship between them is expressed as: in, represents the Hadamard product; EIOC Minimization The loss between T and the generated complete matrix Decode it and get the complete fingerprint data ,Right now: In the formula, Indicates the decoding process.
7. The multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement according to claim 1, characterized in that: Indoor positioning is performed using PROL, a positioning method based on location information correlation, including: For full fingerprint data , convert the one-dimensional RSSI data into a two-dimensional format to obtain two-dimensional scale data containing spatial features ; Building a multi-task model for indoor positioning based on complete fingerprint data And two-dimensional scale data Achieve multi-task positioning of buildings, floors and coordinate pairs, including: Complete fingerprint data And two-dimensional scale data Feature extraction is performed respectively to obtain one-dimensional numerical modal features and image modal features of building positioning; Flatten the image modal features of building positioning and fuse them with one-dimensional numerical modal features to locate the building based on the fused features; The building positioning results and fusion features are concatenated as one-dimensional input for floor and coordinate pair positioning, and the image modal features are used as two-dimensional input for floor and coordinate pair positioning; Similarly, feature extraction is performed on the one-dimensional input and two-dimensional input of the floor and coordinate pair positioning, and the one-dimensional numerical modal features and image modal features of the floor and coordinate pair positioning are obtained; The image modal features of floor and coordinate pair positioning are flattened and fused with their one-dimensional numerical modal features, and floor and coordinate pair positioning is performed based on the fused features.
8. The multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement according to claim 7, characterized in that: The method to convert one-dimensional RSSI data into two-dimensional format is: The original one-dimensional RSSI data is normalized so that the value range is mapped to the pixel value range; Calculate the square root of the length of the one-dimensional RSSI data and round it up to get the side length R of the two-dimensional image; Calculate the total number of pixels T of the image based on the side length and fill in the missing values to ensure that the data length is consistent with the number of pixels; A sliding window with a length of R is used to slice the one-dimensional RSSI data. Each sliding window generates a new data segment with a length of R. These data segments are stacked vertically to form a two-dimensional image with a spatial structure.
9. The multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement according to claim 7, characterized in that: The positioning goal is to minimize the loss between the predicted position and the true position. The formula is: in, represents the loss value, Represents the model parameters; for the nth data, , Represent the predicted ID and real ID of the building respectively; , Respectively represent the predicted ID and real ID of the floor, Represent the predicted coordinate pairs and the true coordinate pairs respectively, and N represents the total number of data; During training, the collected fingerprint data is completed using the fingerprint offline completion method EIOC based on the invariance of the environmental structure; when positioning after training, the collected fingerprint data is completed using the fingerprint offline completion method EIOC based on the invariance of the environmental structure, or positioning is performed directly without completion.
10. A multi-task associated 3D indoor radio positioning device based on feature invariance data enhancement, characterized in that: The device uses the multi-task associated 3D indoor radio positioning method based on feature invariance data enhancement as described in any one of claims 1 to 9 to perform indoor positioning.
Citation Information
Patent Citations
Multi-source fusion indoor positioning system and method based on adaptive periodic particle filtering
CN112333818A
