A weighted random forest indoor positioning method based on channel state information
Through the weighted random forest method based on channel state information, new channel fingerprint features are extracted and combined with the weighted K nearest neighbor algorithm to solve the problems of low indoor positioning accuracy and long response time in the existing technology, achieving centimeter-level accuracy and millisecond-level response time. indoor positioning to meet the needs of 6G systems.
Patent Information
- Application Number
- CN202210759439.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-06-30
AI Technical Summary
Existing indoor positioning methods are difficult to meet the high-precision positioning requirements of the 6th generation mobile communication system when faced with severe non-line-of-sight propagation and multi-access interference. In particular, the traditional RSS-based fingerprint positioning method cannot meet the requirements due to signal instability. Achieve centimeter-level accuracy and millisecond-level response time.
The weighted random forest method based on channel state information is used to collect channel state information through ray tracing simulation software, extract new channel fingerprint features, and use the random forest algorithm to train the model, combined with the weighted K nearest neighbor algorithm for positioning prediction, and adaptively select the most similar Reference point coordinates and their scores are weighted to improve positioning accuracy and stability.
The indoor positioning accuracy is significantly improved, with the average error reaching centimeter level and positioning response time reaching millisecond level, which can meet the high accuracy and fast response requirements of the 6G system, while reducing offline training and online matching time.
Smart Images

Figure CN115209341B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of wireless communications, and in particular, relates to a weighted random forest indoor positioning method based on channel state information. Background Art
[0002] Traditional indoor positioning methods based on wireless communication technology are divided into two categories. The first category is geometric positioning methods, including power measurement positioning methods based on received signal strength (RSS), time measurement positioning methods based on time of arrival (ToA) or arrival delay difference, and angle measurement positioning methods based on angle of arrival (AoA). This type of method is generally susceptible to non-line-of-sight (NLoS) propagation and multi-access interference (MAI), and has low positioning accuracy, which makes it difficult to meet the high-precision positioning requirements of the sixth generation mobile communication system (6G). The second category is the fingerprint positioning method (FPM). FPM is to establish a location fingerprint library by actually measuring or simulating the signal data within the positioning range in advance, and then compare the measured signal data with the fingerprint library to estimate the actual location of the terminal. Since RSS is easy to obtain and has low cost, traditional FPM generally collects RSS as a fingerprint data feature. However, there is serious NLoS propagation in indoor environments, which makes RSS extremely unstable. Therefore, although RSS-based FPM has stronger anti-interference ability than geometric positioning, it still cannot meet the needs of high-precision positioning.
[0003] Since Orthogonal Frequency Division Multiplexing (OFDM) technology is used as the physical layer standard of the IEEE802.11a wireless LAN protocol, Channel State Information (CSI) can be used to characterize the channel information of each subcarrier. Therefore, CSI, as a signal feature of the physical layer, has higher granularity and stronger stability than RSS, and can truly reflect multipath information. However, most of the current CSI-based FPM directly uses the amplitude and phase of CSI as fingerprint features. Although it can achieve better positioning effects than RSS fingerprint features and has stronger stability than RSS, it does not fully utilize the fine-grained advantages of CSI and cannot meet the requirements of 6G indoor high-precision positioning.
[0004] Positioning matching algorithms are mainly divided into deterministic positioning algorithms represented by the Weighted K-Nearest Neighbor (WKNN) algorithm, probabilistic positioning algorithms represented by Bayesian estimation, and machine learning positioning algorithms that have become more popular in recent years. WKNN is an optimization and improvement of the nearest neighbor algorithm. It selects the coordinates of the K most similar reference points, uses the inverse of the similarity distance as the weight, and weightedly predicts the terminal coordinates. The WKNN algorithm is essentially the simplest supervised machine learning (ML) algorithm, and the prediction results are relatively fair and accurate. However, as a deterministic positioning algorithm, WKNN can generally only map the direct relationship between fingerprints and locations, and cannot reflect the implicit relationship and characteristics between fingerprints and locations, so the positioning accuracy is not stable enough.
[0005] The Random Forest (RF) algorithm is an integrated ML algorithm based on decision trees. It has excellent performance and is currently receiving widespread attention in the fields of artificial intelligence, classification prediction, and data modeling. The generation of RF decision trees is parallel and does not interfere with each other. It has a fast training speed and is very suitable for multi-classification problems. In addition, it randomly extracts sub-training sets, has strong fault tolerance, and does not overfit. In addition, RF can process high-dimensional data without data deletion or normalization. However, RF uses a relative majority vote to select the result with the most votes as the prediction output for the decision tree results, so it is highly dependent on the reference point (RP). The fingerprint features at the target positioning point are unlikely to be completely consistent with the data in the fingerprint library, so it is inevitable that there will be multiple similar RPs in the fingerprint library. However, only the most similar one is taken, which is obviously not comprehensive enough and ignores the influence of other RPs on the positioning results, resulting in a large positioning error. Summary of the invention
[0006] In view of the problems existing in the prior art, the present invention provides a weighted random forest indoor positioning method based on channel state information to solve the problem of low indoor positioning accuracy caused by serious NLoS propagation and MAI in indoor environments, and to achieve centimeter-level indoor positioning accuracy and millisecond-level positioning algorithm response time required by 6G systems.
[0007] To achieve the above object, the present invention adopts the following technical solution: a weighted random forest indoor positioning method based on channel state information, specifically comprising the following steps:
[0008] Step S1, establishing a reference grid perpendicular to the coordinate axis for the positioning area according to the Cartesian coordinate system, and setting the offline reference point at the intersection of the reference grid;
[0009] Step S2: collecting channel state information of the offline reference point through simulation software based on ray tracing, and extracting new channel fingerprint features and coordinates of the offline reference point based on the channel state information;
[0010] Step S3, preprocessing the new channel fingerprint features of the offline reference point according to the offline transmitter selection principle to build a channel fingerprint database;
[0011] Step S4, after separating the coordinates of the offline reference point in the channel fingerprint database into abscissa x and ordinate y, the abscissa x, ordinate y and the novel channel fingerprint features of the offline reference point are input into a random forest for training, and two offline training models Model_x and Model_y are output;
[0012] Step S5: randomly select a target positioning point in the positioning area, collect channel state information of the target positioning point using simulation software based on ray tracing, extract a new channel fingerprint feature of the target positioning point based on the channel state information, and perform preprocessing according to the online transmitter selection principle;
[0013] Step S6: input the new channel fingerprint features of the target positioning point into the offline training models Model_x and Model_y respectively, and perform adaptive K weighting for prediction to obtain the final predicted coordinates of the target positioning point.
[0014] Furthermore, step S2 includes the following sub-steps:
[0015] Step S201, constructing an indoor scene in a simulation software based on ray tracing and setting simulation parameters;
[0016] Step S202: In the simulation software based on ray tracing, each ray corresponds to a set of channel state information, including: received signal strength, azimuth arrival angle, elevation arrival angle and arrival time;
[0017] Step S203: extract the received signal strength, azimuth arrival angle, elevation arrival angle and arrival time of the maximum power ray of each transmitting end to the offline reference point as a new channel fingerprint feature of the offline reference point.
[0018] Furthermore, the simulation parameters in step S201 include: transmitting end position, offline reference point position, electromagnetic wave frequency, bandwidth, transmitting power, reflection order, and diffraction order.
[0019] Furthermore, the process of preprocessing the new channel fingerprint characteristics of the offline reference point in step 3 according to the offline transmitter selection principle is specifically as follows: for each transmitter, if more than half of the offline reference points can receive its signal, then the transmitter and the new channel fingerprint characteristics of the offline reference point extracted by the transmitter based on the channel state information are retained, and the device number of the transmitter is recorded; otherwise, the new channel fingerprint characteristics of the offline reference point extracted by the transmitter based on the channel state information are discarded.
[0020] Furthermore, for a reserved transmitter, if there is an offline reference point that cannot receive a signal from the transmitter, a zero-filling operation is performed on the new channel fingerprint feature based on the channel state information of the offline reference point.
[0021] Furthermore, the channel fingerprint database includes: a new channel fingerprint feature based on channel state information, coordinates of an offline reference point, and a device number of a transmitting end.
[0022] Furthermore, step S5 includes the following sub-steps:
[0023] Step S501: randomly select a target positioning point in the positioning area;
[0024] Step S502: collecting channel state information of the target positioning point through simulation software based on ray tracing;
[0025] Step S503: In the simulation software based on ray tracing, each ray corresponds to a set of channel state information, including: received signal strength, azimuth arrival angle, elevation arrival angle and arrival time;
[0026] Step S504: extract the received signal strength, azimuth arrival angle, elevation arrival angle and arrival time of the maximum power ray of each transmitting end to the target positioning point as a new channel fingerprint feature of the target positioning point;
[0027] Step S505: For a transmitter whose device number exists in the channel fingerprint database, if the target positioning point receives a signal from the transmitter, the new channel fingerprint feature based on the channel state information obtained by the transmitter in the target positioning point is retained; if the target positioning point cannot receive a signal from the transmitter, the new channel fingerprint feature based on the channel state information obtained by the transmitter in the target positioning point is padded with zeros; if the target positioning point receives a new channel fingerprint feature based on the channel state information obtained by a transmitter whose device number is not in the channel fingerprint database, the new channel fingerprint feature based on the channel state information obtained by the transmitter is discarded.
[0028] Furthermore, the simulation parameters in step S502 include: transmitting end position, target positioning point position, electromagnetic wave frequency, bandwidth, transmitting power, reflection order, and diffraction order.
[0029] Furthermore, step S6 includes the following sub-steps:
[0030] Step S601, set a hyperparameter P, where the value of P is between 5 and 10;
[0031] Step S602: Input the new channel fingerprint feature of the target positioning point into the offline training models Model_x and Model_y, and output the horizontal coordinates x and y of the offline reference points in the P channel fingerprint databases with the highest scores. p , vertical coordinate y p And the horizontal coordinate x p score_x p , vertical coordinate y p The score score_y p ;
[0032] Step S603: Set the P horizontal coordinates x p The score score_x p , vertical coordinate y p The score score_y p Find the average and take K horizontal coordinates x that are greater than the average value p and its score score_x p , vertical coordinate y p and its score score_y p , respectively with the horizontal axis score score_x p , vertical coordinate score score_y p The horizontal axis x p , vertical coordinate y p The weight of the final predicted target positioning point coordinates (x TP ,y TP ):
[0033]
[0034] Where k is the index of K.
[0035] Compared with the prior art, the present invention has the following beneficial effects: firstly, the novel channel fingerprint feature based on channel state information proposed by the weighted random forest indoor positioning method based on channel state information of the present invention estimates the characteristics of the channel state information, and then extracts the received signal strength, azimuth arrival angle, pitch arrival angle and arrival time of the maximum power ray of the received signal, which makes full use of the fine-grained advantage of the channel state information, and further considers the multipath effect, can effectively resist the influence of NLoS propagation and MAI, and significantly improves the positioning accuracy, and the average error reaches the centimeter level; secondly, the weighted random forest indoor positioning method based on channel state information proposed by the present invention The forest indoor positioning method combines the ideas of random forest and weighted K nearest neighbor algorithm, uses random forest algorithm to train the database in the offline stage and outputs the coordinates of P reference points most similar to the target positioning point and their corresponding scores in the online stage, and then combines the idea of weighted K nearest neighbor algorithm to adaptively select K most similar coordinates and their corresponding scores, and use the scores as weights to weight the final predicted target positioning point coordinates, avoiding the dependence on the most similar reference points and scenes, and improving the stability of positioning; on this basis, the present invention further optimizes and improves, and performs the above operations after separating the reference coordinates into horizontal and vertical coordinates, taking into account the fingerprint similarity between reference points, and significantly reducing offline training and online matching time. Therefore, the weighted random forest indoor positioning method based on channel state information of the present invention has high positioning accuracy and robustness, low computational complexity, good real-time positioning, and can meet the high-precision and fast-response positioning requirements of 6G indoors. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a flow chart of the weighted random forest indoor positioning method based on channel state information of the present invention;
[0037] Figure 2 is an indoor scene diagram tested in the embodiment;
[0038] Figure 3 is the spatial distribution of received signal strength, the transmitter is at (0,0), where Figure 3 (a) is the spatial distribution diagram of the total received signal strength at the offline reference point. Figure 3 (b) is the spatial distribution diagram of the received signal strength of the maximum power path at the offline reference point;
[0039] Figure 4 It is a schematic diagram comparing the cumulative distribution function (CDF) of the positioning error between the novel channel fingerprint feature extracted based on the channel state information and the traditional received signal strength fingerprint feature in the embodiment;
[0040] Figure 5 This is a flowchart of the principle of random forest;
[0041] Figure 6 A schematic diagram comparing the positioning errors of the indoor positioning method of this embodiment and other positioning matching algorithms;
[0042] Figure 7 Schematic diagram of comparison of positioning errors of the method in the embodiment in different scenarios. DETAILED DESCRIPTION
[0043] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0044] like Figure 1 The flowchart of the weighted random forest indoor positioning method based on channel state information of the present invention is as follows:
[0045] Step S1, establishing a reference grid perpendicular to the coordinate axis for the positioning area according to the Cartesian coordinate system, and setting the offline reference point at the intersection of the reference grid;
[0046] Step S2, this example collects the channel state information of the offline reference point through the simulation software based on ray tracing, and extracts the new channel fingerprint characteristics and coordinates of the offline reference point based on the channel state information. Ray tracing is a deterministic channel modeling method. As long as the environmental information and configuration parameters are given, the channel state at any time, any frequency point, and any position in the real environment can be quickly and accurately simulated to determine the channel parameters. It does not require a lot of manpower and material resources to carry out a large number of measurement experiments, which can greatly reduce the manpower and time costs. It specifically includes the following sub-steps:
[0047] Step S201, constructing an indoor scene in a simulation software based on ray tracing and setting simulation parameters; the simulation parameters in the present invention include: transmitting end position, offline reference point position, electromagnetic wave frequency, bandwidth, transmitting power, reflection order, and diffraction order;
[0048] Step S202: In the simulation software based on ray tracing, each ray corresponds to a set of channel state information, including: received signal strength, azimuth arrival angle, elevation arrival angle and arrival time;
[0049] Step S203: extract the received signal strength, azimuth arrival angle, elevation arrival angle and arrival time of the maximum power ray of each transmitting end to the offline reference point as a new channel fingerprint feature of the offline reference point.
[0050] Step S3, pre-process the new channel fingerprint features of the offline reference points according to the offline transmitter selection principle to build a channel fingerprint database; in addition to the multipath effect caused by NLoS propagation in the indoor environment, there is also the problem of multiple access interference caused by multiple devices indoors. The new channel fingerprint features proposed above are to extract the channel state information of each transmitter, but the indoor environment is complex, and the mmWave / THz signal attenuation is large, the propagation distance is short, and the number of transmitters that can be received between offline reference points is different, which will cause great trouble to the establishment of channel fingerprints; in addition, most of the current mobile terminals also support the radiation signal as a transmitter, which will also cause great interference to the establishment of the channel fingerprint database, so offline transmitter selection must be performed. Specifically, for each transmitter, if more than half of the offline reference points can receive its signal, the transmitter and the new channel fingerprint feature of the offline reference point extracted by the transmitter based on the channel state information are retained, and the device number of the transmitter is recorded; otherwise, the new channel fingerprint feature of the offline reference point extracted by the transmitter based on the channel state information is discarded; for the retained transmitter, if there is an offline reference point that cannot receive the signal of the transmitter, the new channel fingerprint feature of the offline reference point based on the channel state information is padded with zeros. The channel fingerprint database in the present invention includes: the new channel fingerprint feature of the offline reference point based on the channel state information, the coordinates of the offline reference point, and the device number of the transmitter, the new channel fingerprint feature of the offline reference point based on the channel state information is an N×4n matrix; the coordinates of the offline reference point are an N×2 matrix, N is the number of valid offline reference points; the device number of the transmitter is a 1×n vector, n is the number of valid transmitters.
[0051] Step S4, after separating the coordinates of the offline reference point in the channel fingerprint database into abscissa x and ordinate y, the abscissa x, ordinate y and the novel channel fingerprint features of the offline reference point are input into the random forest for training, and two offline training models Model_x and Model_y are output; the present invention considers the similarity of the signal features between the offline reference points through the above processing, and can bring two benefits: first, shortening the training time, because step S1 has explained that the selection of the reference point is to establish a grid intersection perpendicular to the coordinate axis in the Cartesian coordinate system, therefore, the positioning area is equivalent to a symmetric matrix, so When x and y are trained separately, the number of x and y is much smaller than the number of (x, y), which greatly reduces the number of training samples in the channel fingerprint library and speeds up offline training. Although two models are trained, the total time complexity is significantly reduced. Secondly, the positioning accuracy is improved. When x and y are trained separately, the total number of samples remains unchanged, and the number of training samples is reduced, which is equivalent to increasing the fingerprint features of the samples in disguise. The richer the fingerprint features, the more accurate the training model. Therefore, x and y are trained separately, and the prediction results of the offline training models Model_x and Model_y are more accurate, so the positioning accuracy is improved.
[0052] Step S5, randomly selecting a target positioning point in the positioning area, collecting channel state information of the target positioning point using simulation software based on ray tracing, extracting a new channel fingerprint feature of the target positioning point based on the channel state information, and performing preprocessing according to the online transmitter selection principle; specifically comprising the following sub-steps:
[0053] Step S501: randomly select a target positioning point in the positioning area;
[0054] Step S502: collecting channel state information of the target positioning point through simulation software based on ray tracing;
[0055] Step S503: In the simulation software based on ray tracing, each ray corresponds to a set of channel state information, including: received signal strength, azimuth arrival angle, elevation arrival angle and arrival time;
[0056] Step S504: extract the received signal strength, azimuth arrival angle, elevation arrival angle and arrival time of the maximum power ray of each transmitting end to the target positioning point as a new channel fingerprint feature of the target positioning point;
[0057] Step S505: For a transmitter whose device number exists in the channel fingerprint database, if the target positioning point receives a signal from the transmitter, the new channel fingerprint feature based on the channel state information obtained by the transmitter in the target positioning point is retained; if the target positioning point cannot receive a signal from the transmitter, the new channel fingerprint feature based on the channel state information obtained by the transmitter in the target positioning point is padded with zeros; if the target positioning point receives a new channel fingerprint feature based on the channel state information obtained by a transmitter whose device number is not in the channel fingerprint database, the new channel fingerprint feature based on the channel state information obtained by the transmitter is discarded.
[0058] Step S6: Input the new channel fingerprint features of the target positioning point into the offline training models Model_x and Model_y respectively, and perform adaptive K weighted prediction to obtain the final predicted coordinates of the target positioning point; as the scene changes or the grid interval of the positioning area changes, the optimal K value will also change accordingly, and the optimal K value selected for different target positioning points is also different. The preset K value is obviously not flexible enough, so the present invention proposes adaptive K value selection to solve this problem. Specifically, it includes the following sub-steps:
[0059] Step S601, set a hyperparameter P, where the value of P is between 5 and 10;
[0060] Step S602: Input the new channel fingerprint feature of the target positioning point into the offline training models Model_x and Model_y, and output the horizontal coordinates x and y of the offline reference points in the P channel fingerprint databases with the highest scores. p , vertical coordinate y p And the horizontal coordinate x p score score_x p , vertical coordinate y p score score_y p ;
[0061] Step S603: Set the P horizontal coordinates x p The score score_x p , vertical coordinate y p The score score_y p Find the average and take K horizontal coordinates x that are greater than the average value p and its score score_x p , vertical coordinate y p and its score score_y p , respectively with the horizontal axis score score_x p , vertical coordinate score score_y p The horizontal axis x p , vertical coordinate y p The weight of the final predicted target positioning point coordinates (x TP ,y TP ):
[0062]
[0063] Where k is the index of K.
[0064] Example
[0065] This embodiment provides a weighted random forest indoor positioning method based on channel state information, including the following steps:
[0066] Step S1: Create a reference grid perpendicular to the coordinate axis for the positioning area according to the Cartesian coordinate system. The interval of the reference grid is set to 0.2m×0.2m, and the offline reference point is set at the intersection of the grid. In this embodiment, the area of the positioning area is 16m×15m. Figure 2 As shown, the height of the offline reference point is set to 1.5m, the height of the transmitter is set to 2.8m, both the transmitter and the receiver use omnidirectional antennas, the transmitter is a multiple-input multiple-output array antenna, and the receiver is a single antenna.
[0067] Step S2: In this embodiment, the channel state information of the offline reference point is collected by the commercial ray tracing simulation software Wireless InSite, and the new channel fingerprint features and the coordinates of the offline reference point are extracted based on the channel state information; specifically:
[0068] Step S201, construct an indoor scene in the commercial ray tracing simulation software Wireless InSite and set simulation parameters; in this embodiment, the simulation parameters include: the transmitting end position coordinates (-7.64, 6.72), (7.72, -7.57), the offline reference point is located at the intersection of the 0.2m×0.2m grid, the electromagnetic wave frequency is 60GHz, the bandwidth is 3GHz, the transmission power is 23dBm, the reflection order is 6th order, and the diffraction order is 1st order;
[0069] Step S202: In the ray tracing simulation software, each ray corresponds to a set of channel state information, including: received signal strength, azimuth arrival angle, elevation arrival angle and arrival time;
[0070] Step S203: extract the received signal strength, azimuth arrival angle, elevation arrival angle and arrival time of the maximum power ray of each transmitting end to the offline reference point as a new channel fingerprint feature of the offline reference point.
[0071] like Figure 3 As shown, by comparing with the spatial distribution of the total signal receiving strength commonly used in traditional technologies, it can be easily found that the spatial distribution of the maximum power receiving signal strength proposed in this embodiment can well conform to the free space signal attenuation model, and at a close distance, it can basically meet the rule that the farther the distance, the lower the energy. Therefore, the new channel fingerprint feature based on channel state information proposed in this embodiment, on the one hand, refines the channel state information to the greatest extent, makes full use of its multipath information, and enhances the ability to resist NLoS propagation; on the other hand, it greatly reduces the capacity of the fingerprint library, avoids the "dimensionality disaster", reduces the subsequent training and online matching time, and improves the real-time positioning. Figure 4 The figure is a schematic diagram comparing the cumulative distribution of positioning errors between the new channel fingerprint feature extracted based on the channel state information and the traditional received signal strength fingerprint feature in the embodiment. It can be seen that the new fingerprint feature based on the channel state information proposed in the present invention has the highest accuracy, with an error within 0.2m at a probability of 95%, a maximum error of only 0.7m, and an average error of 6cm, which has reached the centimeter level, fully proving the effectiveness and superiority of the fingerprint feature.
[0072] Step S3, preprocessing the new channel fingerprint features of the offline reference point according to the offline transmitter selection principle to build a channel fingerprint database;
[0073] Step S4, after separating the coordinates of the offline reference point in the channel fingerprint database into abscissa x and ordinate y, the abscissa x, the ordinate y and the novel channel fingerprint features of the offline reference point are input into a random forest for training, and two offline training models Model_x and Model_y are output. Specifically, in this embodiment, the random forest specifically includes: randomly generating a decision tree and forming a decision forest with multiple decision trees, such as Figure 5 As shown in the figure, the randomly generated decision tree includes two random processes. The first is row sampling, which uses the bootstrap sampling method to estimate and sample the original training set O with replacement to obtain N sub-training sets o, each of which is a true subset of O, avoiding the overfitting problem; the second is column sampling, in which each sub-training set randomly extracts m (m<<M) optimal features from the M sample features of the data at each node to divide and form a decision tree. There are generally three indicators for feature selection, information gain, information gain ratio and Gini Index (GI). This example uses the CART decision tree based on GI:
[0074]
[0075] Among them, p ma is the proportion of samples of category a in the sample set.
[0076] Multiple decision trees constitute a decision forest. Based on the results of N decision trees, relative majority voting is used to take the class with the most votes as the final prediction result.
[0077] Step S5, randomly selecting a target positioning point in the positioning area, collecting channel state information of the target positioning point using ray tracing-based simulation software, extracting a new channel fingerprint feature of the target positioning point based on the channel state information, and performing preprocessing according to the online transmitter selection principle; specifically comprising the following sub-steps:
[0078] Step S501: randomly select a target positioning point in the positioning area;
[0079] Step S502, collecting channel state information of the target positioning point through simulation software based on ray tracing; in this example, an indoor scene is constructed and simulation parameters are set in the commercial ray tracing simulation software Wireless InSite, but it is not limited to this software, and other software with similar functions or channel parameter generation methods can be used instead; the simulation parameters in the present invention include: transmitting end position coordinates (-7.64, 6.72), (7.72, -7.57), 100 target positioning points are randomly set, the electromagnetic wave frequency is 60 GHz, the bandwidth is 3 GHz, the transmission power is 23 dBm, the reflection order is 6th order, and the diffraction order is 1st order;
[0080] Step S503: In the Wireless InSite ray tracing simulation software, each ray corresponds to a set of channel state information, including: received signal strength, azimuth arrival angle, elevation arrival angle and arrival time;
[0081] Step S504: extract the received signal strength, azimuth arrival angle, elevation arrival angle and arrival time of the maximum power ray of each transmitting end to the target positioning point as a new channel fingerprint feature of the target positioning point;
[0082] Step S505: For a transmitter whose device number exists in the channel fingerprint database, if the target positioning point receives a signal from the transmitter, the new channel fingerprint feature based on the channel state information obtained by the transmitter in the target positioning point is retained; if the target positioning point cannot receive a signal from the transmitter, the new channel fingerprint feature based on the channel state information obtained by the transmitter in the target positioning point is padded with zeros; if the target positioning point receives a new channel fingerprint feature based on the channel state information obtained by a transmitter whose device number is not in the channel fingerprint database, the new channel fingerprint feature based on the channel state information obtained by the transmitter is discarded.
[0083] Step S6: input the new channel fingerprint features of the target positioning point into the offline training models Model_x and Model_y respectively, and perform adaptive K-weighted prediction to obtain the final predicted coordinates of the target positioning point;
[0084] Step S601, set a hyperparameter P, where the value of P is between 5 and 10;
[0085] Step S602: Input the new channel fingerprint feature of the target positioning point into the offline training models Model_x and Model_y, and output the horizontal coordinates x and y of the offline reference points in the P channel fingerprint databases with the highest scores. p , vertical coordinate y p And the horizontal coordinate x p score_x p , vertical coordinate y p The score score_y p ;
[0086] Step S603: Set the P horizontal coordinates x p score_x p , vertical coordinate y p The score score_y p Find the average and take K horizontal coordinates x that are greater than the average value p and its score score_x p , vertical coordinate y p and its score score_yp , respectively with the horizontal axis score score_x p , vertical coordinate score score_y p The horizontal axis x p , vertical coordinate y p The weight of the target positioning point is obtained by calculating the final predicted coordinates (x TP ,y TP ):
[0087]
[0088] Where k is the index of K.
[0089] like Figure 6 As shown in the figure, the positioning effect of WRF is significantly better than that of the weighted K-nearest neighbor algorithm WKNN and random forest RF. Although the CDF is basically equivalent to the first 80% of WKNN, the maximum error of WRF is only 0.3m, while that of WKNN is 0.7m, which is much more stable than WKNN. Moreover, the average error of WRF is also the smallest, only 5.5cm, reaching the centimeter level. From the matching time point of view, this example is a positioning match for 100 target positioning points. The matching time of WKNN is 0.3s, but the matching time of WKNN is related to the size of the database. The larger the data volume, the longer the calculation time; the matching time of WRF is 0.7s, but WRF is based on the training model for online matching. The matching time changes little with the increase of database capacity, but the training time will become longer, but compared with RF, the training time is significantly reduced. Therefore, as the capacity of the fingerprint database increases, the gap between WRF and WKNN will gradually decrease. Therefore, the positioning response time of the WRF algorithm proposed in the present invention has reached the millisecond level. The RF algorithm is based on decision tree voting classification, which can avoid the phenomenon of excessive maximum error to the greatest extent. WKNN can obtain better accuracy based on similarity matching. The WRF algorithm proposed in the present invention combines the advantages of both, has high accuracy and stability, and has higher versatility. It can meet the centimeter-level positioning accuracy and millisecond-level positioning response time required by the 6G system.
[0090] The weighted random forest indoor positioning method based on channel state information in the present invention can effectively resist NLoS propagation and MAI problems, make full use of multipath information, and greatly improve positioning accuracy and stability. In simulation verification of different scenarios, the average error reaches the centimeter level. Figure 7 At the same time, the offline training time of the present invention is significantly shortened compared with the RF algorithm, and the online matching time reaches the millisecond level. Therefore, the CSI-based WRF indoor positioning algorithm proposed in the present invention has high positioning accuracy and robustness, low algorithm computational complexity, good positioning real-time performance, and can meet the 6G indoor high-precision and fast-response positioning requirements.
[0091] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A weighted random forest indoor positioning method based on channel state information, characterized in that: The specific steps include: Step S1, establishing a reference grid perpendicular to the coordinate axis for the positioning area according to the Cartesian coordinate system, and setting the offline reference point at the intersection of the reference grid; Step S2, collecting channel state information of the offline reference point through simulation software based on ray tracing, and extracting new channel fingerprint features and offline reference point coordinates of the offline reference point based on the channel state information; including the following sub-steps: Step S201, constructing an indoor scene in a simulation software based on ray tracing and setting simulation parameters, including: transmitter position, offline reference point position, electromagnetic wave frequency, bandwidth, transmission power, reflection order, and diffraction order; Step S202: In the simulation software based on ray tracing, each ray corresponds to a set of channel state information, including: received signal strength, azimuth arrival angle, elevation arrival angle and arrival time; Step S203: extract the received signal strength, azimuth arrival angle, elevation arrival angle and arrival time of the maximum power ray of each transmitting end to the offline reference point as a new channel fingerprint feature of the offline reference point; Step S3, preprocessing the new channel fingerprint features of the offline reference point according to the offline transmitter selection principle to build a channel fingerprint database; Step S4, after separating the coordinates of the offline reference point in the channel fingerprint database into abscissa x and ordinate y, the abscissa x, ordinate y and the novel channel fingerprint features of the offline reference point are input into a random forest for training, and two offline training models Model_x and Model_y are output; Step S5, randomly selecting a target positioning point in the positioning area, collecting channel state information of the target positioning point using simulation software based on ray tracing, extracting a new channel fingerprint feature of the target positioning point based on the channel state information, and performing preprocessing according to the online transmitter selection principle; specifically comprising the following sub-steps: Step S5 includes the following sub-steps: Step S501: randomly select a target positioning point in the positioning area; Step S502: collecting channel state information of the target positioning point through simulation software based on ray tracing; Step S503: In the simulation software based on ray tracing, each ray corresponds to a set of channel state information, including: received signal strength, azimuth arrival angle, elevation arrival angle and arrival time; Step S504: extract the received signal strength, azimuth arrival angle, elevation arrival angle and arrival time of the maximum power ray of each transmitting end to the target positioning point as a new channel fingerprint feature of the target positioning point; Step S505: For a transmitter whose device number exists in the channel fingerprint database, if the target positioning point receives a signal from the transmitter, the new channel fingerprint feature based on the channel state information obtained by the transmitter in the target positioning point is retained; if the target positioning point cannot receive a signal from the transmitter, the new channel fingerprint feature based on the channel state information obtained by the transmitter in the target positioning point is padded with zeros; if the target positioning point receives a new channel fingerprint feature based on the channel state information obtained by a transmitter whose device number is not in the channel fingerprint database, the new channel fingerprint feature based on the channel state information obtained by the transmitter is discarded; Step S6, inputting the new channel fingerprint features of the target positioning point into the offline training models Model_x and Model_y respectively, and performing adaptive K-weighted prediction to obtain the final predicted coordinates of the target positioning point; specifically including the following sub-steps: Step S601, set a hyperparameter P, where the value of P is between 5 and 10; Step S602: Input the new channel fingerprint features of the target positioning point into the offline training models Model_x and Model_y, and output the horizontal coordinates x and y of the offline reference points in the P channel fingerprint databases with the highest scores. p , vertical coordinate y p And the horizontal coordinate x p score_x p , vertical coordinate y p The score score_y p ; Step S603: Set the P horizontal coordinates x p score_x p , vertical coordinate y p The score score_y p Find the average and take K horizontal coordinates x that are greater than the average value p and its score score_x p , vertical coordinate y p and its score score_y p , respectively with the horizontal axis score score_x p , vertical coordinate score score_y p The horizontal axis x p , vertical coordinate y p The weight of the target positioning point is obtained by calculating the final predicted coordinates (x TP ,y TP ): Where k is the index of K; The process of preprocessing the new channel fingerprint characteristics of the offline reference point in step 3 according to the offline transmitter selection principle is specifically as follows: for each transmitter, if more than half of the offline reference points can receive its signal, then the transmitter and the new channel fingerprint characteristics of the offline reference point extracted by the transmitter based on the channel state information are retained, and the device number of the transmitter is recorded; otherwise, the new channel fingerprint characteristics of the offline reference point extracted by the transmitter based on the channel state information are discarded; for the retained transmitter, if there is an offline reference point that cannot receive the signal of the transmitter, the new channel fingerprint characteristics of the offline reference point based on the channel state information are padded with zeros.
2. According to claim 1, the weighted random forest indoor positioning method based on channel state information is characterized in that: The channel fingerprint database includes: a new channel fingerprint feature based on channel state information, the coordinates of an offline reference point, and a device number of a transmitting end.
3. According to claim 2, the weighted random forest indoor positioning method based on channel state information is characterized in that: The simulation parameters in step S502 include: transmitting end position, target positioning point position, electromagnetic wave frequency, bandwidth, transmitting power, reflection order, and diffraction order.
