Spatiotemporal security protection situation prediction method based on machine learning
Through a machine learning-based spatiotemporal security protection situation prediction method, a navigation quality characteristic indicator system is constructed and prediction is performed using the Transformer model, which solves the problems of lack of systematic parameters and data processing challenges in existing technologies and realizes efficient and reliable spatiotemporal security protection situation prediction of satellite navigation systems.
Patent Information
- Application Number
- CN202411827458.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2044-12-12
AI Technical Summary
Existing methods for predicting spatiotemporal security protection situations lack a systematic prediction parameter system and face challenges in dealing with the randomness, uncertainty, and nonlinear relationships of spatiotemporal data, making it difficult to effectively ensure the spatiotemporal security of satellite navigation systems.
A spatiotemporal security protection situation prediction method based on machine learning is adopted. Through feature extraction, data preprocessing, self-supervised pre-training and low-rank decomposition fine-tuning strategies, a navigation quality feature index system is constructed. The Transformer model is used for prediction, and the spatiotemporal security protection situation is evaluated in combination with the entropy method.
A systematic prediction parameter system was established to improve the generalization ability of the model and the reliability of the prediction results, ensure the integrity, availability and comprehensiveness of the navigation signal and positioning error, and enhance the timeliness and rapid response capability in practical applications.
Smart Images

Figure CN119939147B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of satellite navigation and communication technology, and in particular to a method for predicting spatiotemporal security protection situations based on machine learning. Background Art
[0002] The Global Navigation Satellite System (GNSS), with its unique all-weather, high-precision, and high-efficiency features, has become an indispensable technological pillar of modern society, playing a vital role in both civilian and military applications. my country's Beidou satellite navigation system, in particular, has achieved widespread domestic adoption and expanded its international influence with the successful implementation of its global network, demonstrating unlimited potential for future applications. However, satellite navigation systems are not invulnerable. Their navigation signals have relatively low power upon reaching the ground and have limited penetration capabilities. These inherent limitations make the systems particularly vulnerable to electromagnetic interference, which in turn affects their stability and reliability.
[0003] In this context, ensuring the spatiotemporal security of satellite navigation systems has become an urgent issue that needs to be addressed. Therefore, spatiotemporal security protection situation prediction based on navigation quality is particularly important, as it can provide early warning and guarantee for the normal operation of the system.
[0004] Although a variety of algorithms have been developed in the field of time series prediction and have been applied in various scenarios, existing methods are still insufficient in the specific practice of spatiotemporal security protection situation prediction, as shown in the following aspects:
[0005] (1) Lack of a systematic prediction parameter system. Existing research has not yet clearly proposed a complete prediction parameter framework to guide the prediction of spatiotemporal security protection situation.
[0006] (2) Current time series forecasting methods still face challenges in dealing with the randomness, uncertainty and nonlinear relationships of spatiotemporal data. Summary of the Invention
[0007] In response to the above-mentioned technical problems to be solved, the present invention provides a method for predicting the spatiotemporal security protection situation based on machine learning, which takes into account the dynamic characteristics of spatiotemporal data and the complexity of security protection, and provides a reliable basis for the analysis and prediction of the spatiotemporal security situation of Beidou navigation and other global satellite navigation systems.
[0008] In order to solve the above technical problems, the technical solution proposed by the present invention is:
[0009] A method for predicting spatiotemporal security protection situation based on machine learning, comprising the following steps:
[0010] Step S1, performing feature extraction on the real navigation signal and the interference signal captured by the navigation receiver to construct a navigation quality feature index system;
[0011] Step S2, obtaining navigation quality features from the collected samples and preprocessing the navigation quality features of the sample data;
[0012] Step S3, dividing the pre-processed sample data into a long-term sample set and a recent sample set;
[0013] Step S4: for the long-term sample set, a self-supervised pre-training method is used to enable the model to learn common features;
[0014] Step S5: For the recent sample set, the model is adjusted using the low-rank decomposition fine-tuning method, and the Transformer-based prediction model is used to conduct situation prediction training for the spatiotemporal security protection of key facilities;
[0015] Step S6, using the prediction model to predict navigation quality characteristics that can reflect the spatiotemporal security protection situation;
[0016] Step S7: Evaluate the spatiotemporal security protection prediction situation based on the predicted navigation quality characteristics.
[0017] As a further improvement of the above technical solution:
[0018] Preferably, in step S1, the navigation quality characteristics include navigation signal integrity analysis, navigation signal availability analysis, navigation signal continuity analysis, and navigation positioning error.
[0019] Preferably, the navigation quality characteristics and influencing factors are dedimensionalized:
[0020]
[0021] Among them, x ij is the jth dimensionless influencing factor of the i-th evaluation index, min i (factor ij ) is the minimum value of a known single influencing factor, min i (factor ij ) is the maximum value of a known single influencing factor.
[0022] Preferably, in step S2, the pre-processing process is specifically as follows:
[0023] S2-1, fill in missing values of navigation quality features in the collected samples; fill in missing values according to the following formula:
[0024]
[0025] in, is the observed value of the jth feature of the i-th sample, x kj This is the actual observed value of the jth feature for the kth sample; K is a constant indicating how many nearest neighbors or observations are considered during the calculation;
[0026] S2-2, perform data centering and standardization on the navigation quality features in the collected samples; fill in missing values according to the following formula:
[0027] x'=x-μ
[0028]
[0029] In the formula, x', x, u, and σ represent the processed data, sample data, sample mean, and sample standard deviation, respectively;
[0030] S2-3, performing data equalization processing on the navigation quality features in the collected samples; performing data equalization processing according to the following formula:
[0031] x new =x i +λ(x j -x i )
[0032] Among them, x new is a newly generated synthetic sample, x i is the original minority class sample, λ is a random number uniformly distributed between 0 and 1, used to control the distance between the newly generated sample and the original sample, x j It is a sample randomly selected from the K nearest neighbors of the minority class sample.
[0033] Preferably, the step S4 specifically includes the following steps:
[0034] S4-1, initialize data segmentation: for the initialized data, split each time series into non-overlapping subsequence blocks;
[0035] S4-2, self-supervised pre-training:
[0036] Build a Transformer-based pre-trained model: Use a standard Transformer encoder, including self-attention layers and feed-forward network layers to map the observed signal to a latent representation;
[0037] Masking strategy: randomly select some subsequence blocks in the input signal and set their values to zero to construct mask data;
[0038] Pre-training prediction: The masked fragment sequence is input into the Transformer-based pre-training model, and the model outputs the pre-training prediction result, which is the reconstructed value of the masked part;
[0039] Loss calculation: Use the MSE loss function to calculate the difference between the reconstructed value and the true value to evaluate the reconstruction ability of the model;
[0040] Optimization process: Update the model parameters through the gradient descent algorithm to minimize the loss function.
[0041] Preferably, in step S5, the fine-tuning method of low-rank decomposition is used to adjust the model specifically as follows:
[0042] S5-1-1, select the weight matrix:
[0043] The fine-tuning phase focuses on the query W in the self-attention layer q , key W k Sum W v Adjustment of the projection matrix;
[0044] W q and W k Considered as a matrix W qk , dimension d model ×d model , where d model is the model input / output dimension; W v The dimension is d model ×d model ;
[0045] S5-1-2, low-rank decomposition:
[0046] Low-rank decomposition decomposes the weight matrix into the product of two matrices;
[0047] For W qk , use random Gaussian distribution to initialize the low rank decomposition into matrix A qk and B qk ;
[0048] For W v , use random Gaussian distribution to initialize the low rank decomposition into matrix A v and B v ;
[0049] Use low-rank decomposition to represent the update of the weight matrix:
[0050] ΔW qk =A qk ·B qk
[0051] ΔW v =A v ·Bv
[0052] S5-1-3, Model Update:
[0053] Freeze the weight w0 of the pre-trained model and decompose the low-rank matrix A qk 、B qk 、A v and B v Perform training; use the backpropagation algorithm and optimizer to calculate A qk 、B qk 、A v and B v The gradient of , and update its parameters;
[0054] S5-1-4, Model Deployment:
[0055] At deployment time, calculate the new weight matrix W = W0 + ΔW qk +ΔW v ; Use the updated weight matrix for inference to obtain the prediction result.
[0056] Preferably, in step S5, the situation prediction training process is:
[0057] S5-2-1, model initialization: First, initialize the Transformer encoder, linear projection layer, and position encoding parameters;
[0058] S5-2-2, forward propagation: divide the time series data into multiple blocks and map these blocks one by one to the latent space of Transformer;
[0059] S5-2-3, multi-head attention mechanism: simultaneously focusing on different parts of the input sequence to capture complex relationships in time series data;
[0060] S5-2-4, feature extraction: extract the features processed by the attention mechanism through the feedforward network;
[0061] S5-2-5, feature concatenation and prediction: concatenate the extracted features, integrate them through the linear layer and linear head, and finally output the prediction results in training;
[0062] S5-2-6, loss calculation: use the mean square error loss function to calculate the difference between the predicted value and the true value;
[0063] S5-2-7, Backpropagation: Use the gradient descent algorithm to update the model parameters and minimize the loss function.
[0064] Preferably, in step S7, the entropy method is used in combination with expert advice to confirm the weights of each navigation quality feature to calculate a comprehensive navigation interference degree index that can evaluate the spatiotemporal security protection prediction situation.
[0065] The spatiotemporal security protection situation prediction method based on machine learning provided by the present invention has the following advantages over the existing technology:
[0066] (1) The present invention's machine learning-based spatiotemporal security situation prediction method establishes a systematic set of prediction parameters that comprehensively considers the integrity, availability, continuity, and positioning error of navigation signals, ensuring the comprehensiveness of the prediction. In addition, various methods in the data preprocessing stage, such as filling missing values, centering, standardization, and equalization, significantly improve data quality and lay a solid foundation for accurate prediction.
[0067] (2) The present invention's machine learning-based spatiotemporal security protection situation prediction method significantly improves the model's generalization capability through self-supervised pre-training and fine-tuning strategies, making the prediction results more reliable. Furthermore, the optimized data segmentation and model training process improves prediction efficiency, enabling rapid response to spatiotemporal security protection needs and enhancing timeliness in practical applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 This is a flow chart of the algorithm for the spatiotemporal security protection situation prediction method based on machine learning provided by the present invention.
[0069] Figure 2 The present invention provides a method for predicting spatiotemporal security protection situation based on machine learning in an embodiment.
[0070] Figure 3 This is a graph showing the change in the loss function when the prediction model is used to train and predict the navigation signal integrity index in the present invention.
[0071] Figure 4 The present invention uses a prediction model to train and predict the comparison between the predicted value and the true value of the navigation quality feature. DETAILED DESCRIPTION
[0072] The following is a detailed description of the specific embodiments of the present invention. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present invention and are not intended to limit the present invention.
[0073] like Figures 1 to 4 As shown in , the spatiotemporal security protection situation prediction method based on machine learning of the present invention includes the following steps:
[0074] Step S1: extracting features from the real navigation signal and the interference signal captured by the navigation receiver to construct a navigation quality feature index system.
[0075] Taking the spatiotemporal security protection of key infrastructure of mobile communications but not limited to mobile communications as the application scenario, feature extraction operations are performed on the real navigation signals and interference signals captured by the navigation receiver to identify the typical characteristics of navigation quality, which are recorded as "navigation quality characteristics".
[0076] In the process of constructing the navigation quality characteristic indicator system, it is necessary to ensure that the selected indicators can comprehensively and accurately map the comprehensive situation of the navigation system and reflect the intuitiveness of its prediction results. The indicator selection follows the following principles:
[0077] (1) Practicality: The selected indicators have practical application value and can intuitively and realistically reflect the performance of navigation signals in actual operating environments. Key indicators such as navigation signal integrity, navigation signal availability, navigation signal continuity, and navigation positioning error not only reveal the essential characteristics of navigation signals but also provide a direct reference for situation prediction results.
[0078] (2) Systematic principle: When selecting typical characteristics of navigation quality, the entire life cycle of the navigation signal is comprehensively considered, covering the generation, transmission, reception and processing stages. This ensures the integrity of the evaluation index system and enables the assessment of the navigation situation from multiple dimensions.
[0079] (3) Operability: The selected indicators are easy to obtain and quantify through existing technical means, which is convenient for technical personnel to operate and evaluate, while improving the efficiency and accuracy of the prediction process.
[0080] Based on the above principles, when selecting navigation quality characteristic indicators, practicality and systematicity are taken into consideration, while operability is fully considered.
[0081] Said navigation quality characteristics include the following:
[0082] (1) Navigation signal integrity analysis:
[0083] Integrity=N / M
[0084] Where Integrity represents the data integrity rate, M represents the number of complete observations, and N is defined as the number of observed satellites whose elevation angles exceed a predetermined cutoff elevation angle. The satellite elevation angles are calculated based on broadcast ephemeris data. Broadcast ephemeris provides satellite orbital parameters, allowing calculation of the satellite's position relative to the observation point at any point in time.
[0085] (2) Navigation signal availability analysis:
[0086] According to the constellation value a of the satellite navigation system k,n and service availabilityA service , M is the total number of satellites in the constellation, is the total number of combinations in which k satellites fail among N satellites, a k,n is the constellation value under the nth combination, and the constellation state probability P under the nth combination is obtained using the following service availability formula k,n :
[0087]
[0088] Using the constellation state probability calculation formula, the navigation signal availability p is obtained:
[0089]
[0090] Where p n,m is the signal availability of the mth working satellite under the nth combination, m ranges from 1 to (Nk), (1-p n,i ) is the failure probability of a specific i-th satellite under the n-th combination, i takes N values as N-k+1, and there are k cases in total.
[0091] (3) Navigation signal continuity analysis:
[0092] 1) Continuously monitor the operational status of each satellite within the set evaluation time range, recording the frequency of its transition from "normal" to "abnormal" status, including the specific time points when these transitions begin and end;
[0093] 2) When analyzing periods of changing health, we exclude anticipated data outages and only count unexpected data outages. The frequency calculation is based on an hourly time unit to quantify the number of unexpected outages for each satellite.
[0094] 3) Accumulate the total working hours of each satellite since it joined the system;
[0095] 4) Using a specific continuity evaluation formula, quantitatively analyze and evaluate the ability of each satellite to provide uninterrupted services within a given period.
[0096]
[0097] Where, t start ,t top ,t end They are the recording start time, selection time, and recording end time respectively. If the satellite health status is healthy at a certain moment, bool(Statu) takes 1, otherwise it takes 0.
[0098] (4) Navigation positioning error:
[0099] The pseudorange mean absolute deviation index is used to average the pseudorange absolute deviations to obtain the pseudorange mean absolute deviation value MAD(ρ):
[0100]
[0101] Where, ρ ri is the pseudorange of the measured position of the target machine r that is interfered with in the i-th experiment, and mean(ρ0i) is the average of the pseudoranges of the interference position initially set in the i-th experiment.
[0102] Step S2: Obtain navigation quality features from the collected samples and pre-process the navigation quality features of the sample data.
[0103] Specifically, the collected samples refer to the raw data collected by satellite receivers, including parameters related to navigation quality, such as pseudorange, Doppler shift, and signal-to-noise ratio. By processing this satellite data and using the indicator system and calculation formula established in step S1, navigation quality features reflecting navigation quality are extracted. This data is then preprocessed. This includes filling missing values to ensure completeness; centering the data around the origin; standardization to ensure a uniform data scale; and finally, equalization to ensure a balanced distribution across different data categories. These preprocessing steps help improve data quality and lay a solid foundation for subsequent analysis and modeling.
[0104] The specific preprocessing operations are:
[0105] S2-1, fill in the missing values of the navigation quality characteristics in the collected samples. Fill in the missing values according to the following formula:
[0106]
[0107] in, is the observed value of the jth feature of the i-th sample, x kj This is the actual observed value of the jth feature of the kth sample; K is a constant that indicates how many nearest neighbors or observations are considered in the calculation process. The steps for determining the nearest neighbor are as follows:
[0108] 1) For each observation i, calculate its Euclidean distance to all other observations j:
[0109]
[0110] where x ik is the value of observation i on the kth feature, x jk is the value of observation j on the kth feature;
[0111] 2) For each observation i, sort all other observations according to the calculated Euclidean distance;
[0112] 3) Select the first K observations after sorting as the nearest neighbors of observation i.
[0113] S2-2, perform data centering and standardization on the navigation quality features processed in the previous step. Fill in missing values according to the following formula:
[0114] x'=x-μ
[0115]
[0116] Where x', x, u, and σ represent the processed data, sample data, sample mean, and sample standard deviation, respectively.
[0117] S2-3, perform data equalization on the navigation quality features processed in the previous step. Perform data equalization according to the following formula:
[0118] x new =x i +λ(x j -x i )
[0119] Among them, x new is a newly generated synthetic sample, x i is the original minority class sample, λ is a random number uniformly distributed between 0 and 1, used to control the distance between the newly generated sample and the original sample, x j It is a sample randomly selected from the K nearest neighbors of the minority class sample. The specific steps are as follows:
[0120] 1) Randomly select a sample from the minority class;
[0121] 2) Find its K nearest neighbors;
[0122] 3) Interpolate between the sample and the randomly selected nearest neighbor to generate a new synthetic sample;
[0123] 4) Repeat this process until the desired number of synthetic samples is reached.
[0124] Step S3: Divide the pre-processed sample data into a long-term sample set and a recent sample set.
[0125] Long-term sample sets typically contain more data points, which helps the model learn more general features and patterns during pre-training. They also contain more historical information and cyclical changes, which helps the model understand long-term trends and patterns in the data. By pre-training on large amounts of data, the model can learn more general feature representations, which helps improve the model's generalization ability on new data. Furthermore, long-term sample sets require more computing resources for pre-training. Fine-tuning on short-term sample sets is generally faster and can be performed more frequently, allowing the model to be updated and adjusted in a timely manner. Therefore, long-term sample sets collect situational analysis data from a year.
[0126] Short-term sample sets have smaller data volumes and may contain more recent trends and changes, making them suitable for fine-tuning and final model training. They also reflect more recent dynamics and emergencies, making them more crucial for real-time prediction and rapid adaptation. Therefore, the short-term sample set uses data from the past month for situation analysis.
[0127] In step S4, for the long-term sample set, a self-supervised pre-training method is used to enable the model to learn common features.
[0128] When using large-scale sample sets for self-supervised pre-training, for datasets of tens of thousands of examples, 60% of the data should be allocated as the training set for the model to perform initial learning and feature extraction. Meanwhile, 20% of the data should be retained as the validation set to monitor model performance during training and adjust hyperparameters to prevent overfitting. The remaining 20% of the data should be used as the test set for the final evaluation of the model's generalization ability, ensuring its stability when exposed to new data.
[0129] When working with datasets in the millions or more, even a smaller percentage can provide ample data points due to the sheer volume of data. In this case, 98% of the data should be allocated to the training set to ensure the model can learn complex features and patterns from the rich data. Simultaneously, 1% of the data should be used as a validation set to monitor model performance and adjust hyperparameters during training. Finally, 1% of the data should be reserved as a test set for a comprehensive performance evaluation after model training is complete.
[0130] Pre-training is performed on a long-term sample set, and the pre-trained model will be saved for subsequent use.
[0131] The specific steps include:
[0132] S4-1, Initialize data segmentation: For the preprocessed data, the data set arranged in chronological order can be regarded as a continuous set of time series, and each time series is divided into non-overlapping subsequence blocks (patches). Set the length of the time series to T. Set the subsequence block length P and the step size S. Starting from the beginning of the time series, create a subsequence block of length P. According to the step size S, move to the next position and create a new subsequence block. Repeat this process until the end of the time series;
[0133] S4-2, self-supervised pre-training:
[0134] Build a pre-trained Transformer-based model: Use a standard Transformer encoder, including self-attention layers and feed-forward network layers to map the observed signal to a latent representation.
[0135] Masking strategy: Randomly select a portion of subsequence blocks in the input signal and set their values to zero to construct mask data.
[0136] Pre-trained prediction: The masked fragment sequence is input into the Transformer-based pre-trained model, and the model outputs the pre-trained prediction result, that is, the reconstructed value of the masked part.
[0137] Loss calculation: Use the MSE loss function to calculate the difference between the reconstructed value and the true value. The MSE loss function is calculated according to the following:
[0138]
[0139] in, is the true value - predicted value on the test set.
[0140] Optimization: Use the gradient descent algorithm to update the model parameters and minimize the loss function. The update formula is as follows:
[0141]
[0142] Among them, θ old is the vector of current model parameters, θ new is the updated parameter vector, α is the learning rate, which controls the step size of parameter update. is the gradient of the loss function loss with respect to the parameter θ, which is a vector whose components are the partial derivatives of the loss function corresponding to each parameter in θ. i , the update of gradient descent can be expressed as:
[0143]
[0144] in, is the value at iteration t, is the loss function L over θ i The partial derivative of .
[0145] In step S5, based on the recent sample set after feature extraction, the model is adjusted using the fine-tuning method of low-rank decomposition, and the Transformer-based prediction model is used to conduct situation prediction training for the spatiotemporal security protection of key facilities.
[0146] The model is adjusted using the fine-tuning method of low-rank decomposition. The self-attention module has four weight matrices: query matrix (W q ), bond matrix (W k ), value matrix (W v ). Fine-tuning mainly focuses on the query in the self-attention layer (W q ), key (W k ) and value (W v )Adjustments to the projection matrix.
[0147] W q and W k Considered as a matrix W qk , whose dimension is d model ×d model , where d model is the model input / output dimension. W v The dimension is d model ×d model .
[0148] Low rank decomposition: For W qk , use random Gaussian distribution to initialize the low rank decomposition into matrix A qk and B qk For W v , use random Gaussian distribution to initialize the low rank decomposition into matrix A v and B v .
[0149] Use low-rank decomposition to represent the update of the weight matrix:
[0150] ΔW qk =A qk ·B qk
[0151] ΔW v =A v ·B v
[0152] Model update: Freeze the weight w0 of the pre-trained model and only update the low-rank decomposition matrix A qk 、B qk 、A v and B vPerform training. Use the backpropagation algorithm and optimizer (such as Adam) to calculate A qk 、B qk 、A v and B v The gradient of θ is calculated and its parameters are updated. Repeat the above steps until the model converges or reaches the training target.
[0153] Use the Transformer-based prediction model to conduct situation prediction training for the spatiotemporal security protection of critical facilities.
[0154] The Transformer prediction model consists of an embedding layer, position encoding, MSA (multi-head attention mechanism), FFN (feedforward neural network) residual and normalization, and an output layer:
[0155] Embedding layer: Converts the time series sequence of recent sample sets into continuous vectors to better represent their features and functions.
[0156] Multi-head attention layer: The multi-head attention layer divides the continuous vector obtained in the previous step into three parts: Q (query), K (key), and V (value). It then projects Q, K, and V using h different linear transformations, where h is the number of heads in the multi-head attention mechanism. The corresponding output is a vector, a weighted sum of V (value), where the weights are the values calculated from the corresponding combinations of Q (query) and K (key). Finally, the different attention results are concatenated.
[0157] The calculation of Attention is shown as follows, where d k The dimension of the key:
[0158]
[0159] head i =Attention(QW i Q ,KW i K ,VW i V )
[0160] The final splicing operation of the multi-head attention mechanism can be expressed as:
[0161] Multihead(Q,K,V)=Concar(head1,head2,...,head i ...,head h )W o
[0162] Positional encoding: Since the Attention mechanism cannot effectively focus on the position information of the input sequence when performing global attention, the Transformer designs a positional encoding module (PositionalEncoding), which is usually calculated by sine and cosine functions, so that the encoding vectors at different positions have obvious differences in space, as shown in the following formula, where pos refers to the position of the data in the sequence, d model is the dimension of the model:
[0163]
[0164] Feedforward Neural Network: The feedforward neural network is used to process the output of multi-head attention. It consists of two linear transformation layers with a ReLU activation function in the middle. The calculation formula is as follows:
[0165] m i =MLP(output i )=W2*RELU(W1×output i +b1)+b2
[0166] Residual connections and normalization: The outputs of MSA and FFN are combined through residual connections to increase the depth of the model. Layer normalization is then performed, which helps speed up the training process and makes the model easier to optimize.
[0167] Step S6: Use the prediction model to predict navigation quality characteristics that can reflect the spatiotemporal security protection situation.
[0168] The prediction model is used to predict the navigation quality characteristics that can reflect the spatiotemporal security protection situation, including navigation signal integrity analysis, navigation signal availability analysis, navigation signal continuity analysis, and navigation positioning error.
[0169] Step S7: Evaluate the spatiotemporal security protection prediction situation based on the predicted navigation quality characteristics.
[0170] The entropy method is used in combination with expert advice to confirm the weights of each navigation quality feature to calculate the comprehensive navigation interference index that can be used to evaluate the spatiotemporal security protection prediction situation.
[0171] Construct navigation quality feature matrix R x ,Navigation quality characteristics include four evaluation indicators: navigation signal integrity analysis, navigation signal availability analysis, navigation signal continuity analysis, and navigation positioning error, X ij is the jth indicator of the i-th evaluation object (where i = 1, 2, ..., m, j = 1, 2, 3, 4):
[0172]
[0173] Construct navigation quality feature matrix R y ,The extreme value method is used to standardize the navigation quality ,characteristic data. The following formula is used for the positive ,indicator navigation signal integrity analysis, navigation signal availability analysis, and ,navigation signal continuity analysis:
[0174]
[0175] The following formula is used to process the negative indicator navigation signal integrity analysis, navigation signal availability analysis, and navigation signal continuity analysis:
[0176]
[0177] Calculate each y ij Proportion:
[0178]
[0179] Calculate the entropy value of each indicator:
[0180]
[0181] Calculate the weight of each indicator:
[0182]
[0183] Through the above calculation, the weight of each indicator is recorded as W1=(w1,w 2, w3, w4), combined with the navigation quality feature weight W2 given by the expert, the final weight W of the navigation quality feature and the navigation comprehensive interference degree index F can be:
[0184] W=α*W1+(1-α)W2
[0185] F=W*X ij
[0186] The spatiotemporal security protection situation is evaluated through the comprehensive navigation interference index. When the comprehensive navigation interference index drops to the set threshold, interference is considered to exist.
[0187] Experimental verification
[0188] With the protection of critical base station infrastructure as the focus, data from the isolation and protection devices installed at base stations is recorded and monitored. These devices can be considered navigation receivers, capturing both real navigation signals and interference signals. By extracting features from the real navigation and interference signals captured by the navigation receivers, a navigation quality indicator system is constructed and predicted, ultimately enabling the prediction of the base station's spatiotemporal security situation. In this scenario, each base station's isolation and protection device can observe 32 satellites, with a step size of 1 second. The prediction objective is to predict the interference situation over 192 steps, or 192 seconds.
[0189] Data collection: Figure 2 As shown in the figure, in a certain area centered on the geographic coordinates 112.877932 East Longitude and 27.880724 North Latitude, the isolation protection devices carried by ten base stations were monitored and data was collected. 12,960,000 real navigation signal and interference signal sample data were collected at a frequency of 1 Hz for five months as collection samples. The collection frequency is sufficient to capture subtle changes in the navigation signal.
[0190] Data recording: The collected data is stored in the database to ensure data integrity and security. Each data record includes a timestamp and the operating information of the relevant equipment.
[0191] The locations of the ten basic protection facilities in this embodiment are shown in Table 1.
[0192] Table 1 Basic protection facilities data table
[0193]
[0194] Step S1: extracting features from the real navigation signal and the interference signal captured by the navigation receiver to construct a navigation quality feature index system.
[0195] The navigation quality characteristic index system is constructed through the following formula:
[0196] (1) Navigation signal integrity analysis:
[0197] Integrity=N / M
[0198] M represents the number of complete observation values. The total number of satellites that can be observed by the isolation protection device carried by the base station is 32. M is set to 32. N is the number of observed satellites that meet the satellite elevation angle exceeding the predetermined cutoff elevation angle. The cutoff elevation angle is set to 15 degrees.
[0199] (2) Navigation signal availability analysis:
[0200]
[0201] Where p n,mis the signal availability of the mth working satellite under the nth combination, m ranges from 1 to (Nk), (1-p n,i ) is the failure probability of a specific i-th satellite under the n-th combination, i takes N values as N-k+1, and there are k cases in total.
[0202] (3) Navigation signal continuity analysis:
[0203]
[0204] t start ,t top ,t end They are the recording start time, selection time, and recording end time respectively. If the satellite health status is healthy at a certain moment, bool(Statu) takes 1, otherwise it takes 0.
[0205] (4) Navigation positioning error:
[0206]
[0207] ρ ri is the pseudo-range of the measured position of the target machine r that is interfered with in the i-th experiment, mean(ρ 0i ) is the average of the pseudoranges of the interference positions initially set in the i-th trial.
[0208] Step S2: Obtain navigation quality features from the collected samples and pre-process the navigation quality features of the sample data.
[0209] Using the typical characteristic indicator calculation formulas in S1, we calculated navigation quality characteristics from 12,960,000 real navigation signal and interference signal samples stored in the database. These characteristics include navigation signal integrity, availability, continuity, interference level, and navigation positioning error. We then inspected the calculated navigation quality characteristic data, removing missing and outliers. We used interpolation to fill missing values and ensure data continuity. We also removed values exceeding three standard deviations.
[0210] The navigation quality characteristic data after inspection is standardized, the mean u and standard deviation σ of the data are calculated, and each data point is standardized. The formula is as follows;
[0211]
[0212] Step S3: Divide the pre-processed sample data into a long-term sample set and a recent sample set.
[0213] The amount of all navigation quality feature data collected and preprocessed in this experiment reached tens of millions. All the navigation quality feature data collected and preprocessed constituted a long-term sample set, and all the navigation quality feature data collected and preprocessed in nearly 15 days constituted a recent sample set.
[0214] Step S4: For the long-term sample set, self-supervised pre-training is used to enable the model to learn common features.
[0215] Build a pre-trained Transformer-based model: Use a standard Transformer encoder, including self-attention layers and feed-forward network layers to map the observed signal to a latent representation.
[0216] Data segmentation: Treat every 1024 navigation quality feature data points as a time series. Set the subsequence block length P to 64 and the step size S to 16. Starting from the first time step, extract a time series block of 64 in length. Then skip 16 time steps and extract a time series block of 64 in length again. Repeat the time series block extraction step until the entire time series is covered. This results in 1024 / 64 = 64 subsequence blocks.
[0217] Masking strategy: Set the masking ratio to 0.2, that is, 20% of the subsequence blocks are masked. Set all data values in the randomly selected subsequence blocks to 0 to construct the masked data.
[0218] The masked fragment sequences are input into the pre-trained model, and the model will output the reconstructed values of these fragment sequences, that is, the predicted values.
[0219] Loss calculation: The MSE loss function is used to calculate the difference between the reconstructed value and the true value.
[0220] Optimization process: The Adam optimizer is used to update the model parameters, with a learning rate of 1e-4, a batch size of 32, and 100 training rounds. In each training round, the training data is randomly shuffled and then divided into multiple batches for training. The gradient descent algorithm is used to update the model parameters:
[0221]
[0222] Among them, θ old is the vector of current model parameters, θ new is the updated parameter vector, α is the learning rate, which controls the step size of parameter update. is the gradient of the loss function loss with respect to the parameter θ, which is a vector whose components are the partial derivatives of the loss function corresponding to each parameter in θ. i , the update of gradient descent can be expressed as:
[0223]
[0224] in, is the value at iteration t, is the loss function L over θ i The partial derivative of .
[0225] Repeat the above optimization steps until the model converges or reaches the preset 100 rounds.
[0226] In step S5, for the recent sample set, the model is adjusted using the fine-tuning method based on the low-rank decomposition idea, and the Transformer-based prediction model is used to conduct situation prediction training for the spatiotemporal security protection of key facilities.
[0227] Fine-tune the model: Use low-rank decomposition to represent the weight matrix W qk and W v renew.
[0228] ΔW qk =A qk ·B qk
[0229] ΔW v =A v ·B v
[0230] Freeze the weight w0 of the pre-trained model and only decompose the low-rank matrix A qk 、B qk 、A v and B v Perform training. Use Adam optimizer to calculate A qk 、B qk 、A v and B v The gradient of θ is calculated and its parameters are updated. Repeat the above steps until the model converges or reaches the training target.
[0231] Transformer-based prediction model:
[0232] Position encoding: Add position encoding to each time series data point to introduce time dimension information. Use sine and cosine functions for encoding, where pos refers to the position of the data in the sequence, d model is the dimension of the model:
[0233]
[0234] Multi-head self-attention mechanism: Initialize the weight matrix of query vector Q, key vector K and value vector V. Calculate the attention weights and perform weighted summation. The outputs of multiple heads are concatenated and linearly transformed to obtain the final output:
[0235] Multihead(Q,K,V)=Concar(head1,head2,...,head i ...,head h )W o
[0236] Feedforward neural network: consists of two linear layers and a ReLU activation function:
[0237] m i =MLP(output i )=W2*RELU(W1×output i +b1)+b2
[0238] The output of the multi-head attention mechanism is input into the feedforward neural network for nonlinear transformation.
[0239] The depth of the Transformer network is set to d = 1, and the hidden layer size is set to h = 32. The number of training rounds is 100.
[0240] Model training: The Transformer model was trained using a recent sample set and the Adam optimization algorithm, with a learning rate of τ = 0.0001, a learning rate of 1e-4, and a mean squared error (MSE) loss function. The loss function value was monitored during training until the model converged or the preset epochs of 100 were reached.
[0241] Step S6: Use the prediction model to predict navigation quality characteristics that can reflect the spatiotemporal security protection situation.
[0242] like Figure 3 As shown in the figure, the prediction model predicts navigation quality characteristics that reflect the spatiotemporal security protection situation, namely navigation signal integrity, availability, continuity, interference level, and navigation positioning error. Experiments show that when the algorithm predicts 192-step navigation quality characteristic data, the average mean square error between the predicted value and the true value is 0.32.
[0243] Step S7: Evaluate the spatiotemporal security protection prediction situation based on the predicted navigation quality characteristics.
[0244] like Figure 4 As shown, the blue line is the true value and the yellow line is the predicted value. The weight of the navigation quality feature of expert opinion is set to 0.5, and the total weight calculated by the entropy method is W1 = (0.2, 0.2, 0.2, 0.4) T , combined with the navigation quality feature weights W2 given by experts = (0.3, 0.2, 0.2, 0.1) T , then the final weight of the navigation quality feature can be
[0245] W = α * W1 + (1 - α) W2 = (0.25, 0.2, 0.2, 0.25). The spatial and temporal security protection situation is assessed using the comprehensive navigation interference index, with a threshold of 0.7 for interference. The situation predictions for the ten basic protection facilities obtained experimentally can be used to determine whether interference will occur within the next three minutes and predict the direction of the spatial and temporal security protection situation.
[0246] The above examples are merely preferred embodiments of the present invention and are not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, they are not intended to limit the present invention. Therefore, any simple modifications, equivalent variations, and modifications to the above examples that do not depart from the technical solution of the present invention and are based on the technical essence of the present invention shall fall within the scope of protection of the technical solution of the present invention.
Claims
1. A method for predicting spatiotemporal security protection situation based on machine learning, characterized in that: The following steps are involved: Step S1, performing feature extraction on the real navigation signal and the interference signal captured by the navigation receiver to construct a navigation quality feature index system; Step S2, obtaining navigation quality features from the collected samples and preprocessing the navigation quality features of the sample data; Said navigation quality characteristics include navigation signal integrity analysis, navigation signal availability analysis, navigation signal continuity analysis and navigation positioning error; The pre-processing process in step S2 is specifically as follows: S2-1, fill in missing values of navigation quality features in the collected samples; fill in missing values according to the following formula: ; in, is the observed value of the jth feature of the i-th sample, This is the actual observed value of the jth feature for the kth sample; K is a constant indicating how many nearest neighbors or observations are considered during the calculation; S2-2, perform data centering and standardization on the navigation quality features in the collected samples; fill in missing values according to the following formula: ; ; Where, 、 、 、 Represent the processed data, sample data, sample mean, and sample standard deviation respectively; S2-3, performing data equalization processing on the navigation quality features in the collected samples; performing data equalization processing according to the following formula: ; in, is a newly generated synthetic sample, is the original minority class sample, Is a random number, uniformly distributed between 0 and 1, used to control the distance between the newly generated sample and the original sample. It is a sample randomly selected from the K nearest neighbors of the minority class sample; Step S3, dividing the pre-processed sample data into a long-term sample set and a recent sample set; Step S4: for the long-term sample set, a self-supervised pre-training method is used to enable the model to learn common features; Step S5: For the recent sample set, the model is adjusted using the low-rank decomposition fine-tuning method, and the Transformer-based prediction model is used to conduct situation prediction training for the spatiotemporal security protection of key facilities; Step S6, using the prediction model to predict navigation quality characteristics that reflect the spatiotemporal security protection situation; Step S7: Evaluate the spatiotemporal security protection prediction situation based on the predicted navigation quality characteristics.
2. The method for predicting spatiotemporal security protection situation based on machine learning according to claim 1 is characterized in that: In step S1, the navigation quality characteristics include navigation signal integrity analysis, navigation signal availability analysis, navigation signal continuity analysis, and navigation positioning error.
3. The method for predicting spatiotemporal security protection situation based on machine learning according to claim 1, characterized in that: The step S4 specifically includes the following steps: S4-1, initialize data segmentation: for the initialized data, split each time series into non-overlapping subsequence blocks; S4-2, self-supervised pre-training: Build a Transformer-based pre-trained model: Use a standard Transformer encoder, including self-attention layers and feed-forward network layers to map the observed signal to a latent representation; Masking strategy: randomly select some subsequence blocks in the input signal and set their values to zero to construct mask data; Pre-training prediction: The masked fragment sequence is input into the Transformer-based pre-training model, and the model outputs the pre-training prediction result, which is the reconstructed value of the masked part; Loss calculation: Use the MSE loss function to calculate the difference between the reconstructed value and the true value to evaluate the reconstruction ability of the model; Optimization process: Update the model parameters through the gradient descent algorithm to minimize the loss function.
4. The method for predicting spatiotemporal security protection situation based on machine learning according to claim 1, characterized in that: In step S5, the model is adjusted using the low-rank decomposition fine-tuning method as follows: S5-1-1, select the weight matrix: The fine-tuning phase focuses on the query in the self-attention layer ,key Sum Adjustment of the projection matrix; Will and Treated as a matrix , the dimension is ,in is the model input / output dimension; The dimension is ; S5-1-2, low-rank decomposition: Low-rank decomposition decomposes the weight matrix into the product of two matrices; for , use random Gaussian distribution to initialize the low rank decomposition into a matrix and ; for , use random Gaussian distribution to initialize the low rank decomposition into a matrix and ; Use low-rank decomposition to represent the update of the weight matrix: ; ; S5-1-3, Model Update: Freeze the weights of a pre-trained model , for the low-rank decomposition matrix 、 、 and Perform training; use the backpropagation algorithm and optimizer to calculate 、 、 and The gradient of , and update its parameters; S5-1-4, Model Deployment: At deployment time, a new weight matrix is calculated ; Use the updated weight matrix for inference to obtain the prediction result.
5. The method for predicting spatiotemporal security protection situation based on machine learning according to claim 4 is characterized in that: In step S5, the situation prediction training process is as follows: S5-2-1, model initialization: First, initialize the Transformer encoder, linear projection layer, and position encoding parameters; S5-2-2, forward propagation: divide the time series data into multiple blocks and map these blocks one by one to the latent space of Transformer; S5-2-3, multi-head attention mechanism: simultaneously focusing on different parts of the input sequence to capture complex relationships in time series data; S5-2-4, feature extraction: extract the features processed by the attention mechanism through the feedforward network; S5-2-5, feature concatenation and prediction: concatenate the extracted features, integrate them through the linear layer and linear head, and finally output the prediction results in training; S5-2-6, loss calculation: use the mean square error loss function to calculate the difference between the predicted value and the true value; S5-2-7, Backpropagation: Use the gradient descent algorithm to update the model parameters and minimize the loss function.
6. The method for predicting spatiotemporal security protection situation based on machine learning according to claim 1, characterized in that: In step S7, the entropy method is used in combination with expert advice to confirm the weights of each navigation quality feature to calculate a comprehensive navigation interference degree index that can evaluate the spatiotemporal security protection prediction situation.
Citation Information
Patent Citations
Generative adversarial multi-head attention neural network self-learning method for aero-engine data reconstruction
CN115659797A
Machine learning in GNSS receivers for improved velocity outputs
US20230126547A1