Floor identification method based on single mark signal
Through the graph neural network processing of radio frequency signals in binary graphs, high-accurate floor recognition is achieved without a large amount of labeled data, solving the problem of large demand for labeled data in the existing technology, and improving the clustering of floor recognition performance.
Patent Information
- Application Number
- CN202410301152.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-05
- Filing Date
- 2024-03-15
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-03-15
AI Technical Summary
The prior art requires a large amount of labeled data in floor recognition, especially in crowdsourcing application scenarios, which leads to the hindering of the promotion of floor recognition applications based on machine learning. The traditional method has poor performance when processing heterogeneous RF signals. The new arrival signals cannot be effectively processed.
Using a graph neural network-based method, the signal samples collected from the base of the building are marked and modeled as binary graphs. The graph neural network is used to obtain feature embedding vectors, and floor recognition is achieved through clustering and indexing technology to reduce the labeled data. The dependency of the clustering performance is improved.
Achieve high-accuracy floor recognition without large amounts of labeled data, improve clustering performance, adjust the Rand index and standardized mutual information by 23% and 25%, respectively, and show better performance in actual deployment Clustering performance.
Smart Images

Figure CN118897997A_ABST
Abstract
Description
Technical Field
[0001] The present invention generally relates to floor identification technology and more particularly to a floor identification method based on a single marker signal. Background Art
[0002] Traditionally, floor recognition technologies use different sensors (such as barometers and inertial measurement units (IMUs)) to detect changes in floors, but these technologies are generally limited by the heterogeneity of sensor devices and require users to collect data along specific routes.
[0003] Some studies have explored techniques for predicting floor labels using signal propagation models. However, these techniques require knowing the location of access points (APs), which hinders their application in actual deployments. For example, some studies measure the pressure readings of RF signals in the offline phase, then use these readings to obtain access point floor information and store this information in a database for online reasoning. Some studies first identify the access point with the strongest signal in the measured RF signal, then convert the signal distribution into images with the corresponding access point locations, and use these images to train a convolutional neural network model for floor classification.
[0004] In addition, many smart city applications are implemented by utilizing radio frequency (RF) signals with floor tags. These smart city applications include, for example, multi-layer navigation in cities, geo-fencing for epidemic control, robot rescue or navigation in environments without visual information, and drone surveillance in restricted areas. In these application scenarios, trained investigators are usually required to collect all RF signals with floor tags, which is labor-intensive and costly. A practical solution is to use crowdsourcing to collect different subsets of signals contributed by different people in the building. However, although the crowdsourced RF signals are sufficient to cover the entire building, most of them are unlabeled. Therefore, the key issue is how to use unlabeled RF signals for floor identification.
[0005] Recently, floor recognition solutions based on machine learning have attracted more and more attention due to their powerful learning ability and high prediction accuracy. However, floor recognition based on machine learning requires a large amount of labeled data to train the model, which is difficult to obtain in crowdsourcing application scenarios. For example, the floor classifier of some schemes needs to be trained using labeled RF signals collected from different floors of a building and then deployed online. Some schemes need to select reliable access points and extract features from the RF signals from these access points, and train the softmax classifier with the corresponding floor labels. Some schemes assume that each floor has some labeled RF signals that can be used for floor recognition. Some schemes obtain a set of RF signal datasets with floor labels from different perception clients in a crowdsourcing manner, and train the floor classification model through federated learning. The strong demand for labeled data in these schemes has greatly hindered the promotion of floor recognition applications based on machine learning. In addition, since RF signals are heterogeneous, different RF signals may only observe different subsets of access points in the building. For example Figure 3 As shown in Figure 1, the traditional way of representing RF signals using a vector consisting of a superset of all access points in a building results in many vector entries being empty. These empty entries are usually filled with arbitrarily small values, resulting in poor application performance. In some machine learning solutions, RF signals are modeled as a bipartite graph to address the above issues. However, their embedding techniques are limited to static bipartite graphs and are not suitable for processing newly arriving RF signals (i.e., new nodes in the graph). Summary of the invention
[0006] The purpose of the present invention is to provide a floor identification method, which is based on crowdsourced radio frequency signals and can achieve highly accurate floor identification by only marking signal samples obtained on the bottom floor without marking signal samples obtained on other floors, thereby alleviating the requirement for a large amount of labeled data.
[0007] According to a first aspect of the present invention, a method for identifying floors of a building is provided. The method comprises the following steps: a) marking a signal sample collected from the bottom floor of the building and detecting an access point; b) modeling the multiple signal samples and access points in a bipartite graph; c) processing the bipartite graph using a graph neural network to obtain a feature embedding vector for each signal sample relative to the detected access point; d) clustering the multiple feature embedding vectors into feature embedding vector clusters until the total number of the feature embedding vector clusters is equal to the number of floors of the building; and e) indexing the starting cluster and indexing the other sorted feature embedding vector clusters using subsequent floor numbers.
[0008] According to a second aspect of the present invention, a non-transitory computer readable medium is provided for storing computer instructions, which when executed by one or more processors cause the one or more processors to perform the method for identifying building floors provided according to the first aspect of the present invention.
[0009] The floor recognition method based on crowdsourced radio frequency signals provided by the present invention utilizes the signal overflow effect between floors, requires only one labeled signal sample, and uses a graph neural network for RF signals (RF-GNN) to efficiently vectorize a large number of RF signals on a (possibly dynamic) graph, effectively cluster the RF signals, and accurately index the node clusters obtained by clustering. Compared with other algorithms, the present invention has more superior and efficient clustering performance, and improves the adjusted rand index (ARI) and normalized mutual information (NMI) by 23% and 25% respectively. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A schematic diagram of a method for identifying floors of a building according to an embodiment of the present invention is shown.
[0011] Figures 2A to 2E The flowcharts of each main step of the method are shown respectively.
[0012] Figure 3 It is shown how signal samples and access points can be modeled on a bipartite graph.
[0013] Figure 4 It shows how sampling nodes are selected during the aggregation process and how information is aggregated from the sampling nodes to the target node.
[0014] Figure 5 The signal spillover effect between feature embedding vector clusters of floor RF signal samples is shown.
[0015] Figure 6 Exemplary devices for performing or implementing the method of identifying building floors in various embodiments of the present invention are shown. DETAILED DESCRIPTION
[0016] The specific embodiments described below are some preferred embodiments of the present invention.
[0017] Figure 1 A schematic diagram of a method for identifying floors of a building according to an embodiment of the present invention is shown. Figures 2A to 2E The flowcharts of each main step of the method are shown respectively.
[0018] refer to Figure 1 , the method comprises the following main steps:
[0019] S101 (sample marking): marking a signal sample collected from the bottom floor of a building and detecting an access point;
[0020] S102 (graph model construction): modeling the multiple signal samples and access points in a bipartite graph G;
[0021] S103 (feature embedding): using a graph neural network for RF signals (RF-GNN) to process the bipartite graph G to obtain a feature embedding vector of each signal sample relative to the detected access point;
[0022] S104 (clustering): clustering the plurality of feature embedding vectors into feature embedding vector clusters until the total number of the feature embedding vector clusters is equal to the number of floors of the building; and
[0023] S105 (indexing): Indexing the starting cluster, and using subsequent floor numbers to index other sorted feature embedding vector clusters.
[0024] refer to Figure 2A , step S101 comprises:
[0025] S1011: Collect multiple crowdsourced radio frequency signal samples in the building;
[0026] S1012: Detecting access points from the collected crowdsourced signal samples;
[0027] S1013: Select a signal sample from multiple signal samples collected from the bottom floor of the building and detected as an access point for marking.
[0028] refer to Figure 2B , step S102 comprises:
[0029] S1021: Represent the multiple signal samples in the bipartite graph as multiple first nodes;
[0030] S1022: Represent the detected access point as a plurality of second nodes in the bipartite graph;
[0031] S1023: If an access point corresponding to a second node is detected in a signal sample corresponding to a first node, connecting the first node and the second node.
[0032] refer to Figure 2C , step S103 includes:
[0033] S1031: defining the weights of the edges in the graph G as a function of the perceived received signal strength (RSS) value to encode different signal strength levels from different access points (or MAC addresses), wherein the higher the perceived RSS value between a node and its neighboring node, the greater the possibility of selecting the neighboring node;
[0034] S1032: Using the weight of the edge as the attention weight of the RF-GNN to select signal samples to aggregate sampling information and obtain a feature embedding vector.
[0035] like Figure 3 As shown, there are two types of nodes in the bipartite graph G. One is for access points (APs) or more precisely their MAC addresses, and the other is for RF signal samples (or records). Each RF signal sample contains a list of perceived MAC addresses and their RSS values. Then, if a MAC address is detected in the RF sample (record), the node of the MAC address is connected to the node of the corresponding RF signal sample. Therefore, the crowdsourced RF signal can be represented as a weighted bipartite graph G = (U, V, E), where V is the set of nodes representing crowdsourced RF signal samples, U is the set of nodes representing perceived MAC addresses, and E is the set of edges, e uv ∈E represents the edge between u∈U and v∈V. Let RSS uv is the RSS value of the RF signal from u that appears in v. Then, the weight of the edge w uv Defined as:
[0036] w uv :=f(RSS uv ), where for all RSS uv ,f(RSS uv )>0.
[0037] In the weighted bipartite graph G, using f(RSS uv ):=f(RSS uv )+c, where c is a constant (e.g. set to 120dBm) so that
[0038] The RF-GNN is configured to learn an aggregation process to represent nodes on the weighted bipartite graph with vectors. Generally, for a given target node, the aggregation process includes two steps. First, nodes are sampled from the N-hop neighborhood of the target node based on a uniform distribution. Second, information is aggregated from the sampled nodes to the target node. Figure 4An illustrative example is shown where information is aggregated from a two-hop neighborhood toward a target node. First, two nodes are sampled from each one-hop and two-hop neighborhood, and two iterations of aggregation are implemented in the example. In each iteration, each node acquires information from its sampled direct neighbors. After two iterations, the target node contains information from its two-hop neighborhood.
[0039] By selecting signal samples for aggregation through this neighboring node sampling strategy, the resulting embedding vector space can retain the relative distance (similarity) between two "signal sample" nodes in the physical space. More specifically, the sampling probability of selecting a signal sample u is given by the following formula:
[0040]
[0041] The same applies to selecting the signal sample v.
[0042] Therefore, the edge weight can be combined into the aggregation process as a kind of attention, and an edge-based weight aggregator is designed. Specifically, let N′(v) be the sampling neighborhood of node v, r5 be the vector representation of u∈N′(v), and the weight aggregator is defined as follows:
[0043]
[0044] Consider a node i∈U∪V. Let is the vector representation of node i in the kth iteration, let N′(i) be the sampling neighborhood of node i, and K be the number of node hops. Set to a random vector, in the kth iteration of the aggregation process, RF-GNN first aggregates the information sampled from the direct (i.e., shortest distance) neighboring nodes and stores it in a temporary variable, such as Its definition is as follows:
[0045]
[0046] in represents the vector representation of neighboring node j in the (k-1)th iteration. Then, RF-GNN will and the node i's own vector representation in the previous iteration (i.e. ). The connected vectors are connected through a trainable weight matrix W k and a fully connected neural network layer with a nonlinear function σ(·), generating Its definition is as follows:
[0047]
[0048] at last, Normalized to where ‖·‖2 is the l2 norm. Then is used for the (k+1)th iteration. After repeating the whole process K times, the final representation of node i is Given.
[0049] refer to Figure 2D Step S104 includes clustering the plurality of feature embedding vectors into feature embedding vector clusters by iteratively executing a proximity-based hierarchical clustering algorithm. The proximity-based hierarchical clustering algorithm includes the following steps:
[0050] S1041: Treat each feature embedding vector as a cluster;
[0051] S1042: Calculate the distance between the clusters; and
[0052] S1043: Continue to merge any two clusters with the shortest distance to form a new cluster until the total number of clusters is equal to the number of floors.
[0053] The distance between the clusters is defined as:
[0054]
[0055] Among them C i represents the representation set of signal sample nodes in the i-th cluster, C " Represents the set of signal sample nodes in the jth cluster, r∈C i Represents the signal sample node in the i-th cluster, r′∈C " Represents the signal sample node in the jth cluster.
[0056] refer to Figure 2E , step S105 comprises:
[0057] S1051: defining a feature embedding vector cluster including the labeled signal samples as a starting cluster;
[0058] S1052: Based on the starting cluster, sort the remaining feature embedding vector clusters to obtain an optimal sequence by maximizing the sum of similarity coefficients between two adjacent feature embedding vector clusters; and
[0059] S1053: Use the bottom layer number to index the starting cluster, and use the subsequent floor numbers to index the other sorted feature embedding vector clusters.
[0060] For each pair of clusters, the Jaccard similarity coefficient can be used to measure their similarity. The higher the coefficient, the higher the similarity. Figure 5As shown, due to the signal spillover effect, the cluster corresponding to the adjacent floor should have a higher similarity coefficient than the cluster corresponding to the floor far away. In order to obtain higher floor recognition efficiency and accuracy, the present invention utilizes the signal spillover effect between two clusters and improves the algorithm of the similarity coefficient between the two clusters. The improved similarity coefficient is given by the following formula:
[0061]
[0062] in is the improved similarity coefficient between the i-th cluster and the j-th cluster.
[0063] is the frequency count of shared access points between cluster i and cluster j, which can be defined as:
[0064]
[0065] Where m is the total number of MACs, f 01 is the frequency of the kth MAC appearing in the i-th cluster, f 21 is the frequency with which the k-th MAC appears in the j-th cluster.
[0066] is the frequency count of non-shared access points between cluster i and cluster j, which can be defined as:
[0067]
[0068] in, is the average occurrence frequency of MAC in the ith cluster, is the average frequency of occurrence of MAC in the jth cluster. That is, and 1 {.} is the indicator function. For example, Given by:
[0069]
[0070] Compared to using the common Jaccard similarity coefficient, the improved similarity coefficient of the present invention can achieve a higher edit distance at a lower standard deviation, which means that by considering the frequency of occurrence of access points (or MACs), the improved similarity coefficient of the present invention can better capture the signal spillover effect between floors, thereby providing a better similarity measure between signal clusters, so that cluster indexing can be performed more accurately.
[0071] In other words, sorting the feature embedding vector clusters to obtain the optimal sequence is equivalent to solving a variant of the traveling salesman problem (TSP) on the bipartite graph G, that is, finding the shortest Hamiltonian path in the bipartite graph G. When solving TSP, the exact algorithm can also be replaced by an approximate algorithm to improve computational efficiency. For example, the approximate optimal solution of TSP can be obtained by the 2-opt approximation algorithm. By adopting the approximate algorithm, the performance degradation (about 3%) is negligible. Therefore, for high-rise buildings with many floors, the approximate algorithm can be used as a cost-effective alternative to achieve accurate floor identification with almost no performance degradation.
[0072] In actual deployment, there is a wide range of choices for the embedding dimensions used in the proposed RF-GNN and other benchmark algorithms, for example, the embedding dimension can vary from 8 to 64. The proposed method consistently performs well with different choices of embedding dimensions and outperforms other benchmark algorithms with different choices of embedding dimensions, which means it is robust to changes in the embedding dimension.
[0073] The method for identifying building floors also includes training the RF-GNN in an unsupervised manner based on a set of short random walks generated on the bipartite graph. The RF-GNN is trained by using a loss function L given by G Training is performed. The loss function L G Defined as:
[0074] L G :=-log(σ(r i ·r j ))-τ×E z~Pr(z) log(σ(-r i ·r z ))
[0075] where σ(x) = 1 / (1+exp(-x)), r i ·r j Represents r i and r j The inner product of Pr(z), Pr(z) is the user-defined node distribution, E z~Pr(z) is the expected value of Pr(z).
[0076] Figure 6An exemplary device 1000 for performing or implementing the method of identifying a building floor in various embodiments of the present invention is shown. For example, the device 1000 may be a computing device, including: a server computer, a personal computer, a notebook computer, a mobile computing device such as a smart phone and a tablet computer. Preferably, the device 1000 may have different configurations and generally includes appropriate components necessary to receive, store and execute appropriate computer instructions or codes. The main components of the device 1000 are a processing unit 1002 and a memory unit 1004.
[0077] Processing unit 1002 is a processor such as a CPU, MCU or electronic circuit system, including but not limited to an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), and other programmable logic devices configured or programmed according to the teachings of the present disclosure.
[0078] Memory unit 1004 may include volatile memory units such as RAM, nonvolatile units such as ROM, EPROM, EEPROM, and flash memory, or both, or any type of media or device suitable for storing instructions, codes, and / or data.
[0079] Preferably, the device 1000 further includes one or more input devices 1006, such as a keyboard, a mouse, a stylus, a microphone, a tactile input device (such as a touch-sensitive screen) and a video input device (such as a camera). The device 1000 may also include one or more output devices 1008, such as one or more displays, speakers, disk drives and printers. The display may be a liquid crystal display, a light-emitting display or any other suitable display that may or may not be touch-sensitive. The device 1000 may also include one or more disk drives 1012, which may include solid-state drives, hard disk drives, optical drives and / or tape drives. A suitable operating system may be installed in the device 1000, such as on the disk drive 1012 or in the memory unit 1004 of the device 1000. The memory unit 1004 and the disk drive 1012 may be operated by the processing unit 1002.
[0080] The apparatus 1000 also preferably includes a communication module 1010 for establishing one or more communication links (not shown) with one or more other computing devices, such as servers, personal computers, terminal nodes, wireless or handheld computing devices. The communication module 1010 may be a modem, a network interface card (NIC), an integrated network interface, a radio frequency transceiver, an optical port, an infrared port, a USB connection, or other interface. The communication link may be wired or wireless for transmitting commands, instructions, information, and / or data.
[0081] Preferably, the processing unit 1002, the memory unit 1004 and the optional input device 1006, the output device 1008, the communication module 1010 and the disk drive 1012 are connected to each other via a bus, such as a peripheral component interconnect (PCI) high-speed PCI, a universal serial bus (USB) and / or an optical bus structure. In one embodiment, some of these components can be connected via a network such as the Internet or a cloud computing network. It will be understood by those skilled in the art that Figure 6 The device 1000 shown in FIG. 1 is merely exemplary, and different devices 1000 may have different configurations and still be applicable in the present invention.
[0082] In some embodiments, the method of the present invention may also be implemented in a distributed computing environment and / or a cloud computing environment, wherein all or part of the machine instructions are executed in a distributed manner by one or more processing devices interconnected by a communication network, such as an intranet, a wide area network (WAN), a local area network (LAN), the Internet, and other forms of data transmission media.
[0083] The foregoing description of the present invention has been provided for the purpose of illustration and description. The present invention is not intended to be exhaustive or to limit the present invention to the precise form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art.
[0084] The embodiment was chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications as are suited to the particular use contemplated.
Claims
1. A method for identifying floors of a building, characterized in that The following steps are involved: a) marking a signal sample collected from the ground floor of the building and detecting an access point; b) modeling the plurality of signal samples and access points in a bipartite graph; c) processing the bipartite graph using a graph neural network to obtain a feature embedding vector for each signal sample relative to the detected access point; d) clustering the plurality of feature embedding vectors into feature embedding vector clusters until the total number of the feature embedding vector clusters is equal to the number of floors of the building; and e) indexing the starting cluster, and using subsequent floor numbers to index other sorted feature embedding vector clusters.
2. The method according to claim 1, characterized in that The step a) comprises: Collect multiple crowd-sourced RF signal samples inside the building; detecting the access point from the collected plurality of crowdsourced signal samples; and A signal sample is selected from the signal samples collected at the bottom floor of the building and detected with the access point to be marked.
3. The method according to claim 2, characterized in that The step b) comprises: Representing the plurality of signal samples as a plurality of first nodes in the bipartite graph; representing the detected access points as a plurality of second nodes in the bipartite graph; and If an access point corresponding to a second node is detected in a signal sample corresponding to a first node, the first node and the second node are connected.
4. The method according to claim 3, characterized in that The step c) comprises: defining weights of edges in the bipartite graph as a function of perceived RSS values to encode different signal strength levels from different access points; and The weight of the edge is used as the attention weight of the graph neural network to select signal samples to aggregate sampling information and obtain a feature embedding vector.
5. The method according to claim 4, characterized in that The step d) comprises: Treat each feature embedding vector as a cluster; calculating distances between the clusters; and Continue to merge any two clusters with the shortest distance to form new clusters until the total number of clusters is equal to the number of floors.
6. The method according to claim 5, characterized in that The distance between the clusters is defined as: Among them C i represents the representation set of signal sample nodes in the i-th cluster, C " Represents the set of signal sample nodes in the jth cluster, r∈C i Represents the signal sample node in the i-th cluster, r′∈C " Represents the signal sample node in the jth cluster.
7. The method according to claim 6, characterized in that The step e) comprises: defining a feature embedding vector cluster containing the labeled signal samples as a starting cluster; Based on the starting cluster, sorting the remaining feature embedding vector clusters to obtain an optimal sequence by maximizing the sum of similarity coefficients between two adjacent feature embedding vector clusters; and The starting cluster is indexed using the bottom floor number, and the other sorted feature embedding vector clusters are indexed using subsequent floor numbers.
8. The method according to claim 7, characterized in that The similarity coefficient between the two feature embedding vector clusters Given by: in: is the frequency count of shared access points between cluster i and cluster j, which can be defined as: Where m is the total number of media access control (MAC), f 01 is the frequency of the kth MAC appearing in the i-th cluster, f 21 is the frequency with which the kth MAC appears in the jth cluster; and is the frequency count of non-shared access points between cluster i and cluster j, which can be defined as: in, is the average occurrence frequency of MAC in the ith cluster, is the average occurrence frequency of MAC in the jth cluster.
9. The method according to claim 1, characterized in that: It also includes training the graph neural network in an unsupervised manner based on a set of short-distance random walks generated on the bipartite graph.
10. The method according to claim 9, characterized in that The graph neural network uses the loss function L G For training, the loss function L G Defined as: L G :=-log(σ(r i ·r j ))-τ×E z~Pr(z) log(σ(-r i ·r z )), where σ(x) = 1 / (1+exp(-x)), r i ·r j Represents r i and r j The inner product of Pr(z), Pr(z) is the user-defined node distribution, E z~Pr(z) is the expected value of Pr(z).
11. A non-transitory computer readable medium for storing computer instructions which, when executed by one or more processors, cause the one or more processors to perform the method according to any one of claims 1-10.
Citation Information
Patent Citations
Floor boundary detection method, device and equipment and storage medium
CN112017199A
Indoor positioning method and system based on RSSI characteristics of Wifi signal
CN113079468A
Signal map building method and apparatus, device, and readable storage medium
WO2021243504A1
