Train satellite positioning observation scene classification identification method, device, equipment and medium
By generating and processing satellite observation feature matrices, combined with SVM and ViT models, the problem of inaccurate identification of satellite positioning systems in complex environments along the railway is solved, and positioning accuracy and stability are improved.
Patent Information
- Application Number
- CN202410724780.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-05
AI Technical Summary
In the complex environment along the railway, it is difficult for the satellite positioning system to accurately identify the scene, resulting in reduced positioning accuracy. The existing technology cannot effectively distinguish between reflected signals and direct signals, affecting the accuracy of train positioning.
By acquiring satellite observation data, a satellite observation feature matrix and a signal observation category feature matrix are generated, the SVM model is used to train the observation category classification model, and the ViT model is combined with the sky visibility feature matrix processing to increase the dimension to identify complex scenes.
It improves the stability of the satellite positioning optimization method in different scenarios, can accurately identify complex scenes along the train line, and improves positioning accuracy.
Smart Images

Figure CN118734178A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of train satellite positioning, and in particular to a method, device, equipment and medium for classifying and identifying train satellite positioning observation scenes. Background Art
[0002] The environmental scenes along the railway are complex, and the environmental scenes of the railway can be roughly divided into open areas, cuttings, viaducts, tunnels, stations, urban canyons and other scenes. The satellite-based train positioning system is easily blocked by buildings or other objects on both sides of the track, resulting in reflection and obstruction during the propagation of satellite signals, which in turn affects the positioning accuracy. Among the existing railway scene classification methods, most of the environmental classification methods achieve clustering through cluster analysis, and manually identify the characteristics of the clusters. Therefore, they can only classify and identify some typical scenes;
[0003] At present, satellite positioning receivers are usually unable to distinguish between reflected signals and direct signals, and will use reflected signals for position calculation, resulting in the degradation of positioning accuracy in restricted scenarios. Therefore, it is necessary to classify the scenarios along the railway, quantify the degree of satellite positioning observation restrictions, and predict and evaluate the train positioning accuracy.
[0004] In view of this, there is an urgent need to provide a method that can identify complex scenes along the train route, so as to improve the stability of the optimization level of the satellite positioning optimization method in different scenarios. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides a train satellite positioning observation scene classification and identification method, device, equipment and medium to solve the technical problem of inaccurate identification of complex scenes along the train running line in the related art.
[0006] One or more embodiments of this specification provide a method for classifying and identifying observation scenarios for train satellite positioning, obtaining satellite observation data for each observation epoch, and extracting satellite position observation information in restricted scenarios from the observation data;
[0007] Based on satellite observation data and a three-dimensional electronic orbit map database, a satellite observation feature matrix and a satellite signal observation category feature matrix are generated for training an observation category classification model based on the SVM model training observation data, wherein the observation categories include line-of-sight signal and non-line-of-sight signal categories;
[0008] The elevation angle and azimuth angle of each satellite in the observation epoch are divided into equal angle intervals to generate a unit matrix; the signal observation category information of the satellite in the row and column of the unit matrix in each observation epoch is averaged to obtain the signal observation category value; the empty element position in the unit matrix is filled by bilinear interpolation to generate a sky visibility feature matrix;
[0009] The sky visibility feature matrix is divided into blocks of L×L size to obtain block matrices, and each block matrix is flattened to obtain a block feature vector, and each block feature vector is marked with the scene category to which it belongs and the corresponding position code in the sky visibility feature matrix;
[0010] The processed block feature vectors are used to train the observation scene category classification model based on the ViT model to obtain the scene category classification results.
[0011] One or more embodiments of this specification provide a train satellite positioning observation scene classification and identification device, including:
[0012] A data acquisition module is used to obtain satellite observation data of each observation epoch and extract satellite position observation information under restricted scenarios from the observation data;
[0013] The first model training module is used to generate a satellite observation feature matrix and a satellite signal observation category feature matrix based on satellite observation data and a three-dimensional electronic orbit map database, and is used to train an observation category classification model based on the SVM model training observation data, wherein the observation category includes line-of-sight signal and non-line-of-sight signal categories;
[0014] The sky visibility feature matrix generation module is used to divide the elevation angle and azimuth angle of each satellite at an observation epoch into equal angle intervals to generate a unit matrix; perform mean processing on the signal observation category information of the satellite in the row and column of the unit matrix at each observation epoch to obtain the signal observation category value; and generate a sky visibility feature matrix by filling the empty element positions in the unit matrix through bilinear interpolation;
[0015] The encoding module is used to divide the sky visibility feature matrix into blocks of size L×L to obtain block matrices, flatten each block matrix to obtain a block feature vector, and mark the scene category to which each block feature vector belongs and the corresponding position code in the sky visibility feature matrix;
[0016] The second model training module is used to use the processed block feature vectors to train the observation scene category classification model based on the ViT model to obtain the scene category classification result.
[0017] One or more embodiments of the present specification provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned train satellite positioning observation scene classification and identification method when executing the computer program.
[0018] One or more embodiments of the present specification provide a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, the steps of the train satellite positioning observation scene classification and identification method as described above are implemented.
[0019] The present invention provides a method, device, equipment and medium for classifying and identifying observation scenes for train satellite positioning. The advantages of the method are that the observation data is trained using a support vector machine model to generate LOS signal and non-line-of-sight NLOS signal identification decision functions, and visibility identification decision results of all satellites corresponding to the numbers at each observation epoch are formed. Then, the traditional one-dimensional azimuth sky visible boundary sequence conditions are improved, and the elevation angle and azimuth angle are divided at equal angle intervals to generate a unit matrix. According to the signal observation category information of the observation satellite in the row and column of the matrix at each observation epoch, the observation category value is obtained through mean processing, and the empty element position is filled by bilinear interpolation. In this way, a two-dimensional sky visible feature matrix is constructed. By increasing the dimension, the scene with discontinuous sky visible features can be supplemented and identified. Finally, the scene category classification result is obtained through the observation scene category classification model based on the ViT model. The method can identify complex scenes along the train running line and improve the stability of the optimization level of the satellite positioning optimization method in different scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A schematic diagram of a first scenario of a method for classifying and identifying train satellite positioning observation scenarios provided in one or more embodiments of this specification;
[0022] Figure 2 A block diagram of a train satellite positioning observation scene classification and identification device provided in one or more embodiments of this specification;
[0023] Figure 3 A schematic diagram of the structure of a computer device provided for one or more embodiments of this specification. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the protection scope of the present invention.
[0025] The present invention is described in detail below in conjunction with specific implementation methods and the accompanying drawings.
[0026] Method Embodiment
[0027] According to an embodiment of the present invention, a method for classifying and identifying train satellite positioning observation scenes is provided. Figure 1 As shown, it is a flow chart of the train satellite positioning observation scene classification and identification method provided in this embodiment. The train satellite positioning observation scene classification and identification method according to the embodiment of the present invention includes:
[0028] Step S1, obtaining satellite observation data of each observation epoch, and extracting satellite position observation information under restricted scenarios from the observation data, including satellite navigation system category, satellite number, satellite elevation angle, azimuth angle, and signal-to-noise ratio.
[0029] In this embodiment, the satellite position observation information data Data under some restricted scenarios is extracted from the NMEA data obtained by the satellite receiver during the train operation. satellite , including satellite navigation system, satellite azimuth, satellite elevation, satellite signal-to-noise ratio. The restricted scenario is that when the satellite signal is received, the environmental characteristics block the satellite signal, generating LOS and NLOS signals, except for the open scene. The satellite position observation information is as follows:
[0030]
[0031] Where SYS = [sys 11 ,sys 12 ,…,sys 1l ,…,sys kl ] T The satellite navigation system number is 1-GPS / 2-BDS / 3-GLONASS;
[0032] AZI=[azi 11 ,azi 12 ,…,azi 1l ,…,azi kl ] Tis the azimuth of the observed satellite under the corresponding satellite navigation system;
[0033] ELE=[ele 11 ,ele 12 ,…,ele 1l ,…,ele kl ] T is the elevation angle of the observed satellite under the corresponding satellite navigation system;
[0034] SNR = [snr 11 ,snr 12 ,…,snr 1l ,…,snr kl ] T is the signal-to-noise ratio of the observed satellite signal under the corresponding satellite navigation system.
[0035] Step S2: Based on the satellite observation data and the three-dimensional electronic orbit map database, a satellite observation feature matrix M and a satellite signal observation category feature matrix T are generated for training an observation category classification model based on the classification model training observation data, wherein the observation categories include line-of-sight signal categories and non-line-of-sight signal categories.
[0036] In this embodiment, the three-dimensional electronic map database includes track line information, track key point information and three-dimensional environment information; the satellite signal propagation path is judged through the three-dimensional electronic map to generate Data satellite The corresponding satellite observation feature matrix M and satellite signal observation category feature matrix T, where the satellite observation feature matrix M = [M1 … M k ] T , M k is the satellite observation feature matrix of the kth observation epoch, specifically:
[0037]
[0038] Among them, ele kl 、azi kl and snr kl They correspond to the satellite elevation angle, satellite azimuth angle and satellite signal-to-noise ratio of the lth satellite in the kth observation epoch respectively;
[0039] The satellite signal observation category feature matrix T is specifically expressed as:
[0040] T=[t 11 … t 1l … t kl ] T ;
[0041] Among them, t klis the signal observation category of the lth satellite in the kth observation epoch, where the observation categories include line of sight (LOS) signals and non line of sight (NLOS) signals.
[0042] In this embodiment, the classification model is a model that can realize LOS signals and NLOS signals, such as a naive Bayes classification model, SVM (Support Vector Machine), etc. In this embodiment, the SVM model is preferably used as the basic model of the observation category classification model, which is as follows:
[0043] The observation feature matrix M and the observation category matrix T are input into the SVM model as training and validation data. After iterative training on the training set, the model determines the optimal effect in the validation set, and then determines the parameters of the model, including the minimized weight parameter w, bias term b, Lagrange multiplier α, regularization parameter C, and kernel function k(x,x').
[0044] The decision function f(x) is constructed by the above parameters to output the satellite signal observation category information at each observation epoch, i.e., line-of-sight signal and non-line-of-sight signal. In order to facilitate the distance calculation in the subsequent classification model, this embodiment sets p when the satellite signal type is line-of-sight signal LOS. i =1, set the satellite signal type to NLOS when p i =-1.
[0045] In this embodiment, it is preferred that since it is impossible to use the three-dimensional electronic map method to judge all satellite signals, Data satellite The elevation angle ELE, signal-to-noise ratio SNR and satellite signal observation category feature matrix T in the SVM model are used as the input to generate the training data set R = {(x1, y1), (x2, y2), L(x N ,y N )}, train the LOS and NLOS observation category classification model based on support vector machine, where the SVM model classification process is as follows.
[0046] Based on the given data set R and the hyperplane wx+b=0 that separates the LOS signal and the NLOS signal, the hyperplane is defined relative to the sample point (x i ,y i ) is:
[0047]
[0048] The minimum value of the minimum geometric distance interval of the hyperplane about all satellite sample points is:
[0049]
[0050] The problem of solving the maximum LOS signal and NLOS signal segmentation plane problem with the SVM model is transformed into the following constrained optimization problem:
[0051]
[0052] The problem of solving the maximum segmentation hyperplane of the SVM model is expressed as the following constrained optimization problem:
[0053]
[0054] sty i (w·x i + b)≥1, i=1, 2, ... N;
[0055] The original objective function with constraints is converted into an unconstrained Lagrangian objective function through Lagrangian multipliers:
[0056]
[0057] Among them, α i ≥0 is the Lagrange multiplier.
[0058] For the LOS and NLOS signals in the training set, the following KKT (Karush-Kuhn-Tucker) conditions are met:
[0059]
[0060] Select the penalty function C>0, Gaussian kernel function K(x,z) and Lagrangian objective function L(w,b,α), construct and solve the convex quadratic programming problem:
[0061]
[0062] 0≤α i ≤C,i=1,2,…N;
[0063] Obtaining the optimal solution to the planning problem Select α * A component of Satisfy the conditions Calculate the bias parameter b * :
[0064]
[0065] Substitute the Gaussian kernel function K(x,z) into the classification decision function:
[0066]
[0067] Among them, sign(*) is a classification function, which classifies values greater than 0 as 1 and values less than 0 as -1.
[0068] Step S3, divide the elevation angle and azimuth angle of each satellite at the observation epoch into equal-angle intervals to generate a unit matrix; perform mean processing on the signal observation category information of the satellite in the row and column of the unit matrix at each observation epoch to obtain the signal observation category value; fill the empty element positions in the unit matrix by bilinear interpolation to generate a sky visibility feature matrix.
[0069] In this embodiment, in order to construct the sky visibility feature matrix, the elevation angle and azimuth angle of the sky area above the satellite receiver antenna are divided into q° equal intervals to generate a unit matrix Get the satellite position matrix in the sky, specifically:
[0070]
[0071] Among them, 1≤i≤m,1≤j≤n, and In this embodiment, preferably, q can take values such as 5, 10 or 15.
[0072] In this embodiment, after the elevation angle and azimuth angle of each satellite in the observation epoch are divided into equal angle intervals, there will be a situation where two satellites appear in the same position. For example, satellite A has an elevation angle of 61° and an azimuth angle of 71°, and satellite B has an elevation angle of 69° and an azimuth angle of 79°. These two satellites are in the same position in the matrix, so it is necessary to form a vector and take the average value operation, as follows.
[0073] According to the azimuth and elevation information of the satellite, if the position p is determined ij There is a satellite distribution, and the support vector machine is used to judge the satellite propagation path to obtain the label value t∈{+1,-1} of its propagation path type, that is, line-of-sight signal or non-line-of-sight signal. ij , contains K satellite historical observations, forming the satellite signal propagation vector, and the components of the vector are averaged to obtain the element s in the sky visibility feature matrix ij , the constructed sky visibility feature matrix S is as follows:
[0074]
[0075] Among them, 1≤i≤m,1≤j≤n, and
[0076] The specific operation of averaging the components of the vector is as follows: for the sky satellite position p ij The corresponding vector length ||I ij||>1, the signal category value is obtained through average processing and assigned to s ij ; Satellite position p in the sky ij The corresponding vector length ||I ij ||=1,s ij Gets the vector value.
[0077] First, the unit matrix covers all possible locations of satellites, but there are about 20 satellites in each observation, so there will be many locations without satellite signal category information filled in, so it is necessary to
[0078] Step S4, dividing the sky visibility feature matrix into blocks of size L×L to obtain block matrices, flattening each block matrix to obtain a block feature vector and a corresponding position code in the sky visibility feature matrix, and marking each block feature vector according to the scene category corresponding to each sky visibility feature matrix to obtain a processed sky visibility feature vector sequence.
[0079] In this embodiment, the sky visibility feature matrix is divided into blocks of size L×L to obtain a block matrix, which is specifically implemented by the following steps:
[0080] Since the ViT (Vision Transformer) model is different from the traditional convolution method, the size of its block cutting must be able to divide the size of the original matrix to ensure that the size of each block is consistent. Therefore, the value of L must satisfy the divisor of n and m. For example, when q is 10, m = 9, n = 36; when L is 3, the sky visibility feature matrix is divided into L×L blocks to obtain 36 block feature matrices s k .
[0081] In this embodiment, due to the characteristics of the ViT model, the sky visibility feature matrix needs to be resized and adjusted to a square matrix. In addition, due to the inconsistency of the sizes in the two directions in the position coding, when the final feature is added with the position coding, the model feature extraction will be biased to one side. Therefore, in order to make the matrix size of the input ViT model meet the requirements and reduce the number of rows of the matrix, the cutting of the blocks should try to meet the balance between the size and the number after the cutting. The size conversion adjustment of the obtained sky visibility feature matrix is first performed, which specifically includes the following steps:
[0082] The part with an azimuth angle greater than 180° in the sky visibility feature matrix is intercepted and arranged in reverse order, and then spliced with the part with an azimuth angle less than 180° along the long axis, that is, the element s in the sky visibility feature matrix is ij (j≤18) is adjusted to element s (i+9)j ; Sky visibility characteristic matrix element s ij (j>18) is resized to element s(9-i+1)(36-j+1) , and finally obtain the transformed sky visibility feature matrix S 18×18 .
[0083] In this embodiment, flattening operation is performed on each block matrix to obtain a block feature vector, which specifically includes the following steps:
[0084] For each block matrix s k Convert it to a one-dimensional vector:
[0085]
[0086] Then for each one-dimensional vector s′ k Apply a linear transformation (i.e., fully connected layer) for embedding, and set the parameters of the linear transformation to be Where D is the dimension of embedding, each one-dimensional vector s′ k It will be embedded into a D-dimensional vector: e = E(s′ k ).
[0087] In this embodiment, since the ViT model does not have the ability to perceive the position of the elements in the sky visibility feature matrix S corresponding to the input vector sequence, it is necessary to add position coding to clarify the relative positions of each block matrix. Specifically, the position coding function is PE, and each vector e will be added with its corresponding position coding PE(k), where k is the position index of the block matrix.
[0088] In this embodiment, each block matrix s is obtained through the above steps. k After the corresponding vector, each block matrix s k Corresponding to the scene category, it is converted into a scene category vector cls through one-hot encoding, and the category vector cls is added to the head of the feature vector sequence to obtain a feature vector sequence containing the scene category.
[0089] Step S5: Use the sky visibility feature vector sequence to train an observation scene category classification model based on the ViT model to obtain a scene category classification result.
[0090] In this embodiment, the ViT model is trained to obtain the observation scene category classification model through the above steps. The specific steps are: the satellite observation data is cleaned and imported into the sky visibility feature training set generated by the support vector machine model with determined parameters after training, and then the processed sky visibility feature training set is input into the ViT model for iterative training, and the parameter weights in ViT are determined according to the optimal result of the verification set, and then the final network model is determined.
[0091] In this embodiment, the specific processing process after the sequence S′ processed in step S4 is input into the ViT model includes the following steps:
[0092] Step S51: The feature vector sequence S′ is input into the Encoder Block encoding layer, and each vector of the sequence is encoded, denoted as f E (S i ')=W E S i '+S i ',W E For S i 'Equal length row vector weights, in this embodiment, each vector in the feature vector sequence S' is encoded, and a total of 4 cycles are sent to the Encoder Block encoding layer to obtain a new sequence S" = f E 4 (S').
[0093] Step S52, new sequence S" = f E 4 (S') is input into the MLP layer, and each vector in the sequence S' is compared with the MLP layer weight vector W M Multiply them to convert the sequence S' into a 10 × 1 vector and then pass it through a linear transformation layer to obtain an unnormalized n × 1 probability vector p.
[0094] Step S52, performing a Softmax normalization operation on the probability vector p by the following formula to obtain a normalized probability vector p′ corresponding to the scene category;
[0095]
[0096] Among them, the i-th element of the probability vector p′ corresponds to the predicted probability of the i-th scene category, and the scene category corresponding to the maximum probability is output. In this embodiment, the ViT model uses a linear transformation as the classification head to classify the first element of the model output; let the parameter of the linear transformation be Among them, K is the number of categories of typical railway scenes, so the final classification output is z=Wy0, and the category information of the corresponding scene is obtained, that is, the prediction result of the ViT model is obtained.
[0097] The method provided in this embodiment uses a feature model to train observation data, generates LOS signal and non-line-of-sight NLOS signal identification decision functions, and forms visibility identification decision results for all satellites with corresponding numbers at each epoch. Then, improvements are made on the traditional one-dimensional azimuth sky visible boundary sequence conditions, and the elevation angle and azimuth angle are divided at equal angle intervals to generate a unit matrix. According to the signal observation category information of the observation satellite in the row and column of the matrix at each observation epoch, the observation category value is obtained through mean processing, and the empty element position is filled by bilinear interpolation to obtain a sky visibility feature matrix. In this way, a two-dimensional sky visibility feature matrix is constructed. By increasing the dimension, it is possible to supplement and identify scenes with discontinuous sky visibility features. Finally, a scene category classification result is obtained through an observation scene category classification model based on the ViT model. This method can identify complex scenes along the train route and improve the stability of the optimization level of the satellite positioning optimization method in different scenarios.
[0098] Device Embodiment
[0099] According to an embodiment of the present invention, a train satellite positioning observation scene classification and identification device is provided. Figure 1 As shown, it is a block diagram of the train satellite positioning observation scene classification and identification device provided in this embodiment. The train satellite positioning observation scene classification and identification device according to the embodiment of the present invention includes:
[0100] The data acquisition module 10 is used to obtain satellite observation data of each observation epoch and extract satellite position observation information in restricted scenarios from the observation data, including satellite navigation system category, satellite number, satellite elevation angle, azimuth angle, and signal-to-noise ratio.
[0101] The first model training module 20 is used to generate a satellite observation feature matrix M and a satellite signal observation category feature matrix T based on satellite observation data and a three-dimensional electronic orbit map database, and is used to train an observation category classification model based on the classification model training observation data, wherein the observation categories include line-of-sight signal categories and non-line-of-sight signal categories.
[0102] In this embodiment, the three-dimensional electronic map database includes track line information, track key point information and three-dimensional environment information; the satellite signal propagation path is judged through the three-dimensional electronic map to generate Data satellite The corresponding satellite observation feature matrix M and satellite signal observation category feature matrix T, where the satellite observation feature matrix M = [M1 … M n ] T , M n is the satellite observation characteristic matrix of the nth observation epoch, specifically:
[0103]
[0104] Among them, ele kl 、azi kl and snr kl They correspond to the satellite elevation angle, satellite azimuth angle and satellite signal-to-noise ratio of the lth satellite in the kth observation epoch respectively;
[0105] The satellite signal observation category feature matrix T is specifically expressed as:
[0106] T=[t 11 … t 1l … t kl ] T ;
[0107] Among them, t kl is the signal observation category of the lth satellite in the kth observation epoch, where the observation categories include line of sight (LOS) signals and non line of sight (NLOS) signals.
[0108] In this embodiment, the SVM model is preferably used as the basic model of the observation category classification model, as follows:
[0109] The observation feature matrix M and the observation category matrix T are input into the SVM model as training and validation data. After iterative training on the training set, the model determines the optimal effect in the validation set, and then determines the parameters of the model, including the minimized weight parameter w, bias term b, Lagrange multiplier α, regularization parameter C, and kernel function k(x,x').
[0110] The decision function f(x) is constructed by the above parameters to output the satellite signal observation category information at each observation epoch, i.e., line-of-sight signal and non-line-of-sight signal. In order to facilitate the distance calculation in the subsequent classification model, this embodiment sets p when the satellite signal type is line-of-sight signal LOS. i =1, set the satellite signal type to NLOS when p i =-1.
[0111] In this embodiment, it is preferred that since it is impossible to use the three-dimensional electronic map method to judge all satellite signals, Data satellite The elevation angle ELE, signal-to-noise ratio SNR and satellite signal observation category feature matrix T in the SVM model are used as the input to generate the training data set R = {(x1, y1), (x2, y2), L(x N ,y N )}, train a support vector machine based classification model for LOS and NLOS observation categories.
[0112] The sky visibility characteristic matrix generation module 30 is used to divide the elevation angle and azimuth angle of each satellite at an observation epoch into equal-angle intervals to generate a unit matrix; perform mean processing on the signal observation category information of the satellite in the row and column of the unit matrix at each observation epoch to obtain the signal observation category value; and fill the empty element positions in the unit matrix by bilinear interpolation to generate a sky visibility characteristic matrix.
[0113] In this embodiment, the sky visibility feature matrix generation module 30 includes an initial matrix generation submodule 301 and a matrix filling submodule 302; wherein,
[0114] The initial matrix generation submodule 301 is configured to perform the following steps:
[0115] The elevation angle and azimuth angle of the sky area above the satellite receiver antenna are divided into q° equal intervals to generate a unit matrix Get the satellite position matrix in the sky, specifically:
[0116]
[0117] Among them, 1≤i≤m,1≤j≤n, and In this embodiment, preferably, q can take values such as 5, 10, 15, etc.
[0118] According to the azimuth and elevation information of the satellite, if the position p is determined ij There is a satellite distribution, and the support vector machine is used to judge the satellite propagation path to obtain the label value t∈{+1,-1} of its propagation path type, that is, line-of-sight signal or non-line-of-sight signal. ij , contains K satellite historical observations, forming the satellite signal propagation vector, and the components of the vector are averaged to obtain the element s in the sky visibility feature matrix ij , the constructed sky visibility feature matrix S is as follows:
[0119]
[0120] Among them, 1≤i≤m,1≤j≤n, and
[0121] The specific operation of averaging the components of the vector is as follows: for the sky satellite position p ij The corresponding vector length ||I ij ||>1, the signal category value is obtained through average processing and assigned to s ij ; Satellite position p in the sky ij The corresponding vector length ||I ij ||=1,s ij Gets the vector value.
[0122] The matrix filling submodule 302 is configured to perform the following steps:
[0123] According to the category information of the existing positions, bilinear interpolation is used to fill the positions without satellites. For positions that cannot meet the bilinear interpolation conditions, the element value with the closest distance is used to fill them. The details are as follows:
[0124] If the satellite position in the sky is p ij There is no satellite distribution, that is, the vector length ||I ij ||=0, then the bilinear interpolation method is used to calculate and determine s ij , for s that does not satisfy bilinear interpolation ij , let its value be the nearest s ac The specific method is as follows:
[0125]
[0126] For s that does not satisfy bilinear interpolation ij , for any assigned s ac And |(ia,jc)| min , let s ij =s ac .
[0127] In this embodiment, the sky visibility feature matrix obtained through the above processing process is used to obtain a sky visibility matrix through the actual satellite conditions observed in each area. With the sky visibility matrix, the actual LOS / NLOS conditions observed can be directly obtained through the corresponding relationship of the matrix.
[0128] The encoding module 40 is used to divide the sky visibility feature matrix into blocks of size L×L to obtain block matrices, flatten each block matrix to obtain a block feature vector and a corresponding position code in the sky visibility feature matrix, and obtain a processed sky visibility feature vector sequence according to the scene category corresponding to each sky visibility feature matrix and the scene category corresponding to each block feature vector.
[0129] In this embodiment, the value of L must satisfy the divisor of n and m, and the sky visibility feature matrix is divided into L×L blocks.
[0130] In this embodiment, the matrix size of the input ViT model meets the requirements, and the number of rows of the matrix is reduced. The cutting of the blocks tries to meet the balance between the size and the number of blocks after cutting. The size conversion and adjustment of the obtained sky visibility feature matrix is first performed, and a matrix conversion module 60 is set to intercept the part of the sky visibility feature matrix with an azimuth angle greater than 180° and arrange it in reverse order, and then splice it with the part with an azimuth angle less than 180° along the long axis, so that the element s in the sky visibility feature matrix isij (j≤18) is adjusted to element s (i+9)j ; Sky visibility characteristic matrix element s ij (j>18) is resized to element s (9-i+1)(36-j+1) , and finally obtain the transformed sky visibility feature matrix S 18×18 .
[0131] The encoding module 40 of this embodiment includes a vector conversion submodule 401 and a marking module 402, wherein:
[0132] The vector conversion submodule 401 is used to flatten the block matrix obtained by dividing the blocks into L×L blocks to obtain the block feature vector;
[0133] The marking module 402 is used to mark the scene category to which each block feature vector belongs and the corresponding position code in the sky visibility feature matrix.
[0134] In this embodiment, the vector conversion submodule 401 performs a flattening operation on each block matrix to obtain a block feature vector, which specifically includes the following steps:
[0135] For each block matrix s k Convert it to a one-dimensional vector:
[0136]
[0137] Then for each one-dimensional vector s′ k Apply a linear transformation (i.e., fully connected layer) for embedding, and set the parameters of the linear transformation to be Where D is the dimension of embedding, each one-dimensional vector s′ k will be embedded into a D-dimensional vector: e = E(s' k ).
[0138] The marking module 402 marks the scene category to which each block feature vector corresponds and the position coding in the sky visibility feature matrix is specifically implemented by the following steps:
[0139] Based on the obtained block matrices s k The corresponding vector, each block matrix s k Corresponding to the scene category, it is converted into a scene category vector cls through one-hot encoding, and the category vector cls is added to the head of the feature vector sequence to obtain a feature vector sequence containing the scene category.
[0140] In this embodiment, since the Transformer model does not have the ability to perceive the position of the elements in the sky visibility feature matrix S corresponding to the input vector sequence, it is necessary to add position coding to clarify the relative positions of each block matrix. Specifically, the position coding function is PE, and each vector e will be added with its corresponding position coding PE(k), where k is the position index of the block matrix.
[0141] The second model training module 50 is used to use the sky visibility feature vector sequence to train the observation scene category classification model based on the ViT model to obtain the scene category classification result.
[0142] The device provided in this embodiment uses a support vector machine model to train observation data, generates LOS signal and non-line-of-sight NLOS signal identification decision functions, and forms visibility identification decision results for all satellites with corresponding numbers at each observation epoch. Then, improvements are made on the traditional one-dimensional azimuth sky visible boundary sequence conditions, and the elevation angle and azimuth angle are divided at equal angle intervals to generate a unit matrix. According to the signal observation category information of the observation satellite in the row and column of the matrix at each observation epoch, the observation category value is obtained through mean processing, and the empty element position is filled by bilinear interpolation. In this way, a two-dimensional sky visible feature matrix is constructed. By increasing the dimension, it is possible to supplement and identify scenes with discontinuous sky visible features. Finally, a scene category classification result is obtained through an observation scene category classification model based on the ViT model. This method can identify complex scenes along the train route and improve the stability of the optimization level of the satellite positioning optimization method in different scenarios.
[0143] The method provided in this embodiment uses a classification model to train observation data, generates LOS signal and NLOS signal identification decision functions, and forms visibility identification decision results for all satellites with corresponding numbers at each epoch. Then, improvements are made on the traditional one-dimensional azimuth sky visible boundary sequence conditions, and the elevation angle and azimuth angle are divided at equal angle intervals to generate a unit matrix. According to the signal observation category information of the observation satellite in the row and column of the matrix at each observation epoch, the observation category value is obtained through mean processing, and the empty element position is filled by bilinear interpolation to obtain a sky visibility feature matrix. In this way, a two-dimensional sky visibility feature matrix is constructed. By increasing the dimension, it is possible to supplement and identify scenes with discontinuous sky visibility features. Finally, a scene category classification result is obtained through an observation scene category classification model based on the ViT model. The device can identify complex scenes along the train line and improve the stability of the optimization level of the satellite positioning optimization method in different scenarios.
[0144] The embodiment of the present invention is an apparatus embodiment corresponding to the above-mentioned method embodiment. The specific operations of the processing steps of each module can be understood by referring to the description of the method embodiment, which will not be repeated here.
[0145] like Figure 3 As shown, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the train satellite positioning observation scene classification and identification method in the above embodiment is implemented, or when the computer program is executed by a processor, the train satellite positioning observation scene classification and identification method in the above embodiment is implemented. When the computer program is executed by the processor, the following method steps are implemented:
[0146] Step S1, obtaining satellite observation data of each observation epoch, and extracting satellite position observation information under restricted scenarios from the observation data, including satellite navigation system category, satellite number, satellite elevation angle, azimuth angle, and signal-to-noise ratio.
[0147] Step S2: Based on the satellite observation data and the three-dimensional electronic orbit map database, a satellite observation feature matrix M and a satellite signal observation category feature matrix T are generated for training an observation category classification model based on the classification model training observation data, wherein the observation categories include line-of-sight signal categories and non-line-of-sight signal categories.
[0148] Step S3, divide the elevation angle and azimuth angle of each satellite at the observation epoch into equal-angle intervals to generate a unit matrix; perform mean processing on the signal observation category information of the satellite in the row and column of the unit matrix at each observation epoch to obtain the signal observation category value; fill the empty element positions in the unit matrix by bilinear interpolation to generate a sky visibility feature matrix.
[0149] Step S4, dividing the sky visibility feature matrix into blocks of size L×L to obtain block matrices, flattening each block matrix to obtain a block feature vector and a corresponding position code in the sky visibility feature matrix, and marking each block feature vector according to the scene category corresponding to each sky visibility feature matrix to obtain a processed sky visibility feature vector sequence.
[0150] Step S5: Use the sky visibility feature vector sequence to train an observation scene category classification model based on the ViT model to obtain a scene category classification result.
[0151] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0152] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0153] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and the contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.
Claims
1. A method for classifying and identifying train satellite positioning observation scenes, characterized in that: The following steps are involved: Obtain satellite observation data for each observation epoch, and extract satellite position observation information under restricted scenarios from the observation data; Based on the satellite observation data and the three-dimensional electronic orbit map database, a satellite observation feature matrix and a satellite signal observation category feature matrix are generated for training an observation category classification model based on the classification model training observation data, wherein the observation categories include line-of-sight signal and non-line-of-sight signal categories; The elevation angle and azimuth angle of each satellite in the observation epoch are divided into equal angle intervals to generate a unit matrix; the signal observation category information of the satellite in the row and column of the unit matrix in each observation epoch is averaged to obtain the signal observation category value; the empty element position in the unit matrix is filled by bilinear interpolation to generate a sky visibility feature matrix; The sky visibility feature matrix is divided into blocks of size L×L to obtain block matrices, each block matrix is flattened to obtain a block feature vector and a corresponding position code in the sky visibility feature matrix, and each block feature vector is marked with a corresponding scene category according to each sky visibility feature matrix corresponding to the scene category, to obtain a processed sky visibility feature vector sequence; The sky visibility feature vector sequence is used to train the observation scene category classification model based on the ViT model to obtain the scene category classification results.
2. The train satellite positioning observation scene classification and identification method according to claim 1, characterized in that: The generation of the satellite observation feature matrix and the satellite signal observation category feature matrix based on the satellite observation data and the three-dimensional electronic orbit map database is specifically as follows: The satellite signal propagation path is judged through the three-dimensional electronic map, and the satellite observation feature matrix and satellite signal observation category feature matrix corresponding to the satellite position observation information are generated as follows: Satellite observation feature matrix M = [M1 … M n ] T , M n is the satellite observation characteristic matrix of the nth observation epoch, specifically: Among them, ele kl 、azi kl and snr kl They correspond to the satellite elevation angle, satellite azimuth angle and satellite signal-to-noise ratio of the lth satellite in the kth observation epoch respectively; The satellite signal observation category feature matrix T is: T=[t 11 … t 1l … t kl ] T ; Among them, t kl is the signal observation category of the lth satellite in the kth observation epoch, where the observation categories include LOS signals and NLOS signals.
3. The train satellite positioning observation scene classification and identification method according to claim 1, characterized in that: The training is based on the observation category classification model of the SVM model training observation data as follows: Based on the hyperplane wx+b=0 that separates the LOS signal and the NLOS signal, the hyperplane is defined relative to the sample point (x i ,y i ) is: The minimum value of the minimum geometric distance interval of the hyperplane about all satellite sample points is: The problem of solving the maximum LOS signal and NLOS signal segmentation plane problem with the SVM model is transformed into the following constrained optimization problem: The problem of solving the maximum segmentation hyperplane of the SVM model is expressed as the following constrained optimization problem: s.t.y i (w·x i +b)≥1,i=1,2,...N; The original objective function with constraints is converted into an unconstrained Lagrangian objective function through Lagrangian multipliers: Among them, α i ≥0 is the Lagrange multiplier; For the LOS and NLOS signals in the training set, the following KKT conditions are met: Select the penalty function C>0, Gaussian kernel function K(x,z) and Lagrangian objective function L(w,b,α), construct and solve the convex quadratic programming problem: 0≤α i ≤C,i=1,2,…N; Obtaining the optimal solution to the planning problem Select α * A component of Satisfy the conditions Calculate the bias parameter b * : Substitute the Gaussian kernel function K(x,z) into the classification decision function:
4. The train satellite positioning observation scene classification and identification method according to claim 1, characterized in that: The elevation angle and azimuth angle of each satellite in the observation epoch are divided into q° intervals, where q takes the value of 5, 10 or 15.
5. The train satellite positioning observation scene classification and identification method according to claim 1, characterized in that: Also includes the steps: The part of the sky visibility feature matrix with an azimuth angle greater than 180° is intercepted and arranged in reverse order, and then spliced with the part with an azimuth angle less than 180° along the long axis, so that the element s in the sky visibility feature matrix ij (j≤18) is adjusted to element s (i+9)j ; Element s in the sky visibility feature matrix ij (j>18) is resized to element s (9-i+1)(36-j+1) , obtain the transformed sky visibility feature matrix S 18×18 , where 1≤i≤m,1≤j≤n, and q is the division angle of the elevation and azimuth of each satellite in the observation epoch.
6. The train satellite positioning observation scene classification and identification method according to claim 5, characterized in that: The block matrices s k Convert it to a one-dimensional vector: For each one-dimensional vector s′ k Apply a linear transformation for embedding, and set the parameters of the linear transformation to be Where D is the dimension of embedding, each one-dimensional vector s′ k is embedded as a D-dimensional vector: e = E(s' k ).
7. The train satellite positioning observation scene classification and identification method according to claim 6, characterized in that: The block matrices s k The scene category corresponding to the sky visibility feature matrix is converted into a scene category vector cls through one-hot encoding, and the category vector cls is added to the head of the feature vector sequence to obtain a feature vector sequence containing the scene category.
8. A train satellite positioning observation scene classification and identification device, characterized in that: include: A data acquisition module is used to obtain satellite observation data of each observation epoch and extract satellite position observation information under restricted scenarios from the observation data; A first model training module is used to generate a satellite observation feature matrix and a satellite signal observation category feature matrix based on satellite observation data and a three-dimensional electronic orbit map database, and is used to train an observation category classification model based on the classification model training observation data, wherein the observation category includes line-of-sight signal and non-line-of-sight signal categories; A sky visibility feature matrix generation module is used to divide the sky visibility feature matrix into blocks of size L×L to obtain block matrices, flatten each block matrix to obtain a block feature vector and a corresponding position code in the sky visibility feature matrix, and mark each block feature vector with a corresponding scene category according to each sky visibility feature matrix corresponding to the scene category, so as to obtain a processed sky visibility feature vector sequence; The encoding module is used to divide the sky visibility feature matrix into blocks of size L×L to obtain block matrices, flatten each block matrix to obtain a block feature vector, and mark the scene category to which each block feature vector belongs and the corresponding position code in the sky visibility feature matrix; The second model training module is used to use the sky visibility feature vector sequence to train the observation scene category classification model based on the ViT model to obtain the scene category classification result.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the train satellite positioning observation scene classification and identification method as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the train satellite positioning observation scene classification and identification method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Remote sensing scene classification method
CN106991382A
A wireless channel scene recognition method based on support vector machine
CN109299698A
Track environment classification method based on train-mounted satellite positioning observation data
CN113298113A
Use of self and neighboring vehicle GPS / GNSS data to estimate current and approaching sky visibility changes
US20120209519A1
