Anomaly detection method and apparatus, electronic device, storage medium, and computer program product
By calculating the Doppler frequency shift and pseudorange distance variation between the satellite and electronic equipment, and combining the elevation angle and prior accuracy, the accuracy problem of pseudorange anomaly detection in complex environments of pseudosatellite positioning was solved, thus improving positioning accuracy and reliability.
Patent Information
- Application Number
- CN202510668231.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2026-11-24
AI Technical Summary
Pseudo-satellite positioning loses accuracy in complex environments and may even result in positioning errors. Existing anomaly detection methods have problems with misjudgment or increased costs.
By calculating the Doppler frequency shift and pseudorange distance changes between the satellite and electronic equipment, and combining the elevation angle and prior accuracy, the anomaly detection results are determined, avoiding reliance on a single Doppler frequency shift and improving the accuracy of pseudorange anomaly detection.
It improves the accuracy of pseudorange anomaly detection and positioning precision in complex scenarios without increasing additional costs or relying on external equipment.
Smart Images

Figure CN123156243A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of satellite positioning technology, and in particular to an anomaly detection method, device, electronic equipment, storage medium, and computer program product. Background Technology
[0002] Pseudo-satellite positioning is often used in areas with limited satellite signals, such as urban canyons and indoor spaces, as well as in scenarios requiring high-precision positioning, such as emergencies. Compared to the traditional Global Navigation Satellite System (GNSS), the positioning area of pseudo-satellite positioning is more complex. Furthermore, the pseudorange of pseudo-satellites, as one of the main navigation signals, is easily affected by obstruction, reflection, electromagnetic interference, etc., which can lead to a decrease in positioning accuracy or even problems such as inability to locate or incorrect positioning. Summary of the Invention
[0003] To address the related technical issues, embodiments of this application provide an anomaly detection method, apparatus, electronic device, storage medium, and computer program product.
[0004] The technical solution of this application embodiment is implemented as follows:
[0005] This application provides an anomaly detection method, the method comprising:
[0006] Based on the first measurement value at the first moment and the first measurement value at the second moment, a first distance change value between the satellite and the electronic device is calculated; the first measurement value characterizes the Doppler frequency shift between the satellite and the electronic device.
[0007] Based on the second measurement value at the first time point and the second measurement value at the second time point, a second distance change value between the satellite and the electronic device is calculated; the second measurement value represents the pseudorange between the satellite and the electronic device.
[0008] Based on the first distance change value and the second distance change value, anomaly detection results are determined for the second measurement value at the first time and the second measurement value at the second time.
[0009] In the above scheme, if the absolute value of the first difference is greater than the first threshold, the anomaly detection result indicates that there is an anomaly in the second measurement value at the first time and the second measurement value at the second time.
[0010] When the absolute value of the first difference is less than or equal to the first threshold, the anomaly detection result indicates that the second measurement value at the first time moment and the second measurement value at the second time moment are normal; wherein...
[0011] The first difference represents the difference between the second distance change value and the first distance change value.
[0012] The method in the above scheme further includes:
[0013] Based on the satellite's position information and the electronic device's position information, the satellite's elevation angle is calculated;
[0014] If the elevation angle of the satellite is greater than or equal to the second threshold, the first threshold is determined based on the prior accuracy of the pseudorange between the satellite and the electronic device.
[0015] If the satellite's elevation angle is less than the second threshold, the first threshold is determined based on the elevation angle and the prior accuracy.
[0016] In the above scheme, calculating the first distance change between the satellite and the electronic equipment based on the first measurement value at the first time and the first measurement value at the second time includes:
[0017] The first distance change value is calculated based on the first measurement value at the first time, the first measurement value at the second time, the first time, the second time, and the wavelength of the first signal; the first signal represents the signal broadcast by the satellite.
[0018] In the above scheme, calculating the second distance change value between the satellite and the electronic device based on the second measurement value at the first time and the second measurement value at the second time includes:
[0019] The second distance change value is calculated based on the difference between the second measurement value at the second time and the second measurement value at the first time.
[0020] The method in the above scheme further includes:
[0021] Based on the receiving frequency of the first signal broadcast by the satellite at the first time, a first measurement value at the first time is calculated, and based on the receiving frequency of the first signal at the second time, a first measurement value at the second time is calculated; and / or,
[0022] Based on the propagation time of the first signal at the first moment, a second measurement value at the first moment is calculated, and based on the propagation time of the first signal at the second moment, a second measurement value at the second moment is calculated.
[0023] This application also provides an anomaly detection device, including:
[0024] The first calculation unit is used to calculate a first distance change value between the satellite and the electronic device based on a first measurement value at a first time and a first measurement value at a second time; the first measurement value represents the Doppler frequency shift between the satellite and the electronic device.
[0025] The second calculation unit is used to calculate a second distance change value between the satellite and the electronic device based on the second measurement value at the first time and the second measurement value at the second time; the second measurement value represents the pseudorange between the satellite and the electronic device.
[0026] The first determining unit is configured to determine, based on the first distance change value and the second distance change value, anomaly detection results for the second measurement value at the first time and the second measurement value at the second time.
[0027] This application also provides an electronic device, including a processor and a memory for storing a computer program capable of running on the processor.
[0028] When the processor runs the computer program, it executes the steps of any of the above methods.
[0029] This application also provides a storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of any of the above methods.
[0030] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above methods.
[0031] The anomaly detection method, apparatus, electronic device, storage medium, and computer program product provided in this application calculate a first distance change value between the satellite and the electronic device based on a first measurement value at a first time and a first measurement value at a second time; calculate a second distance change value between the satellite and the electronic device based on a second measurement value at the first time and a second measurement value at the second time; and determine an anomaly detection result for the second measurement value at the first time and the second measurement value at the second time based on the first distance change value and the second distance change value. The first measurement value represents the Doppler frequency shift between the satellite and the electronic device; and the second measurement value represents the pseudorange between the satellite and the electronic device. This solution can determine the anomaly detection result of the second measurement value based on the first distance change value corresponding to the Doppler frequency shift and the second distance change value corresponding to the pseudorange, rather than relying entirely on the anomaly of the Doppler frequency shift corresponding to a single pseudorange to determine the pseudorange anomaly. It can more accurately identify abnormal pseudorange measurement values in complex scenarios, increasing the accuracy of pseudorange anomaly detection, thereby improving positioning accuracy and reliability. Furthermore, it does not require external equipment assistance and does not increase additional costs. Attached Figure Description
[0032] Figure 1 This is a schematic diagram of an anomaly detection method according to an embodiment of this application;
[0033] Figure 2 This is a schematic flowchart of an anomaly detection method according to an application embodiment of this application;
[0034] Figure 3 This is a schematic diagram of the anomaly detection device according to an embodiment of this application;
[0035] Figure 4 This is a schematic diagram of the electronic device structure according to an embodiment of this application. Detailed Implementation
[0036] The following explains the relevant concepts:
[0037] Global Navigation Satellite System (GNSS): This refers to a collective term for systems that provide positioning, navigation, and timing services in near-Earth space via navigation satellites. It consists of independent satellite systems from multiple countries, working together to provide users with high-precision position and time information.
[0038] Pseudo-satellite positioning systems use a technique that simulates satellite navigation signals by deploying ground-based or near-ground equipment (pseudo-satellites) to enhance, supplement, or replace traditional GNSS, providing reliable positioning services in scenarios where signals are limited or high-precision positioning is required, such as indoors or in urban canyons.
[0039] Pseudo-random noise (PRN): also known as pseudo-random code or pseudo code, is a predetermined, periodic binary number sequence that also has the good autocorrelation of a binary random sequence. It is a ranging code used in satellite navigation systems.
[0040] Pseudorange: The satellite generates pseudocode by driving a pseudocode generator through its onboard clock. The ground receiver synchronously generates a copy of the pseudocode through its receiving clock. Assuming that the onboard clock and the receiving clock are strictly aligned, the satellite transmits the pseudo-random code outward by modulating it with electromagnetic waves. Since electromagnetic waves propagate outward at the speed of light, when the ground receiver receives the pseudocode transmitted by the satellite, the generated pseudocode copy sequence is actually after the received random code. The propagation time can be obtained by shifting and aligning the pseudocode. The distance from the receiver to the satellite can be obtained by multiplying the propagation time by the speed of light.
[0041] Doppler frequency shift: When a signal transmitter broadcasts a signal at a transmission frequency f, and there is relative motion between the signal source and the receiver, the frequency of the signal received by the receiver is no longer the transmission frequency f, but f+f. d The phenomenon that the received signal frequency changes with the relative motion between the transmitter and receiver is called the Doppler effect, where f... d This is called Doppler shift.
[0042] Measurement errors: Because pseudorange includes various errors such as clock error, atmospheric error, and multipath error, it is not strictly equal to the actual distance between the receiver and the satellite. In the presence of electromagnetic interference, obstructions, or specular reflection, pseudorange may introduce abnormal measurement errors, leading to abnormal positioning results or even failure to locate the target. Therefore, it is necessary to perform anomaly detection on pseudorange observations to eliminate abnormal pseudoranges. The distance between the receiver and the satellite is also called the satellite-to-ground distance.
[0043] There are currently two methods for anomaly detection. The first method involves performing post-hoc residual checks on pseudorange and Doppler separately. When an anomaly is found in the Doppler of the pseudorange, the corresponding pseudorange is also flagged as anomaly. This method assumes a completely consistent correlation between Doppler and pseudorange anomalies, but this assumption is not strictly valid in practice, easily leading to the exclusion of pseudoranges that are actually normal. Furthermore, this method cannot be used to remove anomaly pseudoranges in interference types that have little impact on Doppler but a significant impact on pseudorange, such as multipath interference. The second anomaly detection method requires the use of a strapdown inertial navigation system (SINS) to check both pseudorange and Doppler separately, making the anomaly detection system more complex and increasing costs.
[0044] Based on this, in various embodiments of this application, a first distance change value between the satellite and the electronic device is calculated based on a first measurement value at a first time and a first measurement value at a second time; a second distance change value between the satellite and the electronic device is calculated based on a second measurement value at the first time and a second measurement value at the second time; and an anomaly detection result is determined based on the first distance change value and the second distance change value. The first measurement value represents the Doppler frequency shift between the satellite and the electronic device; and the second measurement value represents the pseudorange between the satellite and the electronic device. This scheme can determine the anomaly detection result of the second measurement value based on the first distance change value corresponding to the Doppler frequency shift and the second distance change value corresponding to the pseudorange, rather than entirely relying on the anomaly of the Doppler frequency shift corresponding to a single pseudorange to determine the pseudorange anomaly. This allows for more accurate identification of abnormal pseudorange measurement values in complex scenarios, increasing the accuracy of pseudorange anomaly detection, thereby improving positioning accuracy and reliability. Furthermore, it does not require external equipment assistance and does not incur additional costs.
[0045] The present application will now be described in further detail with reference to the accompanying drawings and embodiments.
[0046] This application provides an anomaly detection method applied to electronic devices, which may include satellite ground receivers or terminals, such as... Figure 1 As shown, the method includes:
[0047] Step 101: Based on the first measurement value at the first moment and the first measurement value at the second moment, calculate the first distance change value between the satellite and the electronic equipment.
[0048] The first measurement represents the Doppler frequency shift between the satellite and the electronic device.
[0049] Here, the first time and the second time can be the measurement times of any adjacent first measurement value, or any adjacent measurement times in which the first measurement value is effectively measured; the first measurement value can indicate the difference between the receiving frequency of the satellite signal received by the electronic device and the transmitting frequency of the satellite signal; the first distance change value can be understood as the distance change between the satellite and the electronic device between the first time and the second time determined by the Doppler frequency shift, or the distance change value from the first time to the second time, or it can be understood as the satellite-to-ground distance increment corresponding to the Doppler frequency shift between the satellite and the electronic device from the first time to the second time. Before calculating the first distance change value, the first measurement value of the first time and the first measurement value of the second time can be obtained based on the satellite broadcast signal received at the first time and the second time; with the first measurement value of the first time and the first measurement value of the second time obtained, the relative velocity between the satellite and the electronic device is calculated based on the first measurement value of the first time and the first measurement value of the second time, and the first distance change value between the satellite and the electronic device from the first time to the second time is obtained based on the relative velocity between the satellite and the electronic device.
[0050] It should be noted that, after obtaining the first measurement value, the first measurement value can also be verified, such as by post-verification residual verification, to obtain a higher quality and more accurate first measurement value, thereby improving the accuracy of the anomaly detection result of the second measurement value and enhancing the positioning accuracy.
[0051] It should be noted that the interval between the first and second moments does not exceed the set interval threshold to avoid introducing too much error. The set interval threshold can be determined based on the positioning epoch interval or the actual application situation. For example, the set interval threshold can be 30 seconds.
[0052] To improve the accuracy of pseudorange anomaly detection by avoiding reliance on a single Doppler frequency shift, in one embodiment, calculating the first distance change between the satellite and electronic equipment based on a first measurement value at a first time moment and a first measurement value at a second time moment includes:
[0053] The first distance change value is calculated based on the first measurement value at the first time, the first measurement value at the second time, the first time, the second time, and the wavelength of the first signal; the first signal represents the signal broadcast by the satellite.
[0054] Here, given the first measurement value at the first moment and the first measurement value at the second moment, a first distance change value can be calculated based on the first measurement value at the first moment, the first measurement value at the second moment, the first moment, the second moment, and the wavelength of the first signal. Specifically, the first distance change value can be calculated based on the product of a first product and a first time difference. The first product represents the product of the wavelength of the first signal and the average of the first measurement value at the first moment and the first measurement value at the second moment. The first time difference represents the time difference between the first moment and the second moment.
[0055] It should be noted that the calculation method for the first distance change value can be based on the basic theory of electromagnetic wave propagation and the physical definition of velocity. Specifically, based on the basic theory of electromagnetic wave propagation, that is, wavelength equals wave speed divided by frequency, the relationship between Doppler frequency shift and first velocity can be determined. The first velocity characterizes the relative motion speed between the satellite and the electronic equipment. The relationship between Doppler frequency shift and first velocity can be expressed as Doppler frequency shift equals first velocity divided by the wavelength of the satellite signal. The wavelength can be obtained by dividing the speed of light by the transmission power of the satellite signal. That is, the relationship between Doppler frequency shift and first velocity can be expressed as the following formula (1):
[0056]
[0057] Where d represents the Doppler frequency shift, v d λ represents the first velocity, λ represents the wavelength of the satellite broadcast signal, c represents the speed of light, and f represents the transmission power of the satellite signal.
[0058] Since both velocity and position are functions of time, and there is a differential relationship between them: w(t) = dw / dt = v(t), where v represents velocity, p represents position, and t represents time, based on the differential relationship between velocity and position, the expression for the change in position over a period of time can be determined, as shown in the following formula (2):
[0059]
[0060] Where Δw represents the change in position, v(t) i+1 ) represents the velocity at time i+1, v(t) i ) represents the velocity at time i, t i+1 -t i It represents the time difference from time i to time i+1.
[0061] Substituting equation (1) into equation (2), we can determine the expression for the first distance change value. For example, the first distance change value can be calculated using the following equation:
[0062]
[0063] Where Δr′ represents the first distance change value, t j Representing the first moment, t j+1 Characterizing the second time step, v d (t j ) represents the first velocity at the first moment, v d (t j+1 ) represents the first velocity at the second moment, λ d The wavelength that characterizes satellite broadcast signals can be directly detected or measured, or it can be calculated by dividing the speed of light by the transmission frequency of the first signal. The first measurement value representing the first moment, The first measurement value characterizing the second time point.
[0064] Step 102: Based on the second measurement value at the first time and the second measurement value at the second time, calculate the second distance change value between the satellite and the electronic device.
[0065] The second measurement value represents the pseudorange between the satellite and the electronic device.
[0066] Here, the second distance change value can be understood as the distance change between the satellite and the electronic equipment determined by pseudorange between the first and second moments, or the distance change from the first to the second moment. It can also be understood as the satellite-to-ground distance increment corresponding to the pseudorange between the satellite and the electronic equipment from the first to the second moment. Before calculating the second distance change value, the second measurement value at the first moment and the second measurement value at the second moment can be obtained based on the satellite broadcast signals received at the first and second moments. Having obtained the second measurement values at the first and second moments, the distance change value (second distance change value) between the satellite and the electronic equipment at the first and second moments can be directly determined based on these values. The satellite broadcast signal used for the first and second measurement values obtained at the same moment can be the same signal.
[0067] To improve the accuracy of pseudorange anomaly detection by avoiding reliance on a single Doppler frequency shift, in one embodiment, calculating the second distance change value between the satellite and the electronic device based on the second measurement value at the first time and the second measurement value at the second time includes:
[0068] The second distance change value is calculated based on the difference between the second measurement value at the second time and the second measurement value at the first time.
[0069] Here, the second measurement represents the pseudorange between the satellite and the electronic equipment. The change in distance between the satellite and the electronic equipment from the first time point to the second time point can be calculated directly based on the difference between the second measurement at the second time point and the second measurement at the first time point. For example, the second distance change can be calculated using the following formula:
[0070]
[0071] Wherein, Δr represents the change in the second distance. The second measurement value characterizing the second time point, The second measurement value characterizing the first moment.
[0072] The first and second distance change values can be understood as satellite-to-ground distance increments calculated based on different parameters. The difference between the first and second distance change values is used to determine the anomaly detection result of the second measurement value.
[0073] Step 103: Based on the first distance change value and the second distance change value, determine the anomaly detection result of the second measurement value at the first time and the second measurement value at the second time.
[0074] Here, because Doppler frequency shift observations have low noise and are relatively resistant to interference, while pseudorange is easily affected by obstruction, reflected signals, etc., under complex observation conditions, resulting in large errors, Doppler frequency shift observations can be used to detect anomalies in pseudorange. This allows for the detection of potential anomalies in pseudorange, the elimination of pseudoranges with large errors or those exhibiting anomalies, and the improvement of positioning accuracy. Based on this, after calculating the first and second distance change values, anomaly detection can be performed on the second measurement value based on these values, determining the anomaly detection results for the second measurement value at the first and second time points. For example, the anomaly detection result for the second measurement value can be determined by comparing the difference between the first and second distance change values; or, for another example, the anomaly detection result for the second measurement value at the first and second time points can be determined by calculating the similarity between the first and second distance change values.
[0075] It should be noted that if the anomaly detection results of the second measurement value at the first time and the second measurement value at the second time are determined, and the anomaly detection results indicate that the second measurement values at the first time and the second measurement values at the second time are normal, the second measurement values at the first time and the second measurement values at the second time can be used for localization calculation; if the anomaly detection results indicate that there is an anomaly in the second measurement values at the first time and the second measurement values at the second time, the second measurement values at the first time and / or the second measurement values at the second time should be discarded, or a weighting operation should be performed on the second measurement values at the first time and / or the second measurement values at the second time.
[0076] To improve the flexibility of anomaly detection and meet the positioning accuracy requirements of the satellite positioning system, in one embodiment, if the absolute value of the first difference is greater than a first threshold, the anomaly detection result indicates that there is an anomaly in the second measurement value at the first time and the second measurement value at the second time.
[0077] When the absolute value of the first difference is less than or equal to the first threshold, the anomaly detection result indicates that the second measurement value at the first time moment and the second measurement value at the second time moment are normal; wherein...
[0078] The first difference represents the difference between the second distance change value and the first distance change value.
[0079] Here, since the first and second distance changes should be nearly equal when there is no error, in actual measurements, measurement errors can prevent them from being strictly equal. If the difference between the first and second distance changes is within a certain range, the corresponding second measurement value can meet the positioning accuracy requirements of the satellite positioning system. However, if the difference exceeds a certain range, the corresponding second measurement value has a large error and cannot be used for positioning calculation; therefore, abnormal second measurement values need to be discarded. Based on this, given the first and second distance changes, the difference between them can be used to determine the anomaly detection result of the second measurement value, thereby obtaining a second measurement value within the allowable error range of the satellite positioning system and improving positioning accuracy.
[0080] Specifically, the difference between the first distance change value and the second distance change value (the first difference) is calculated; the absolute value of the first difference is compared with a first threshold; if the absolute value of the first difference is greater than the first threshold, it indicates that the difference between the first distance change value and the second distance change value is large, the measurement error of the second measurement value at the first time and the second measurement value at the second time is large, and the anomaly detection result of the second measurement value at the first time and the second measurement value at the second time indicates that there is an anomaly in the measurement value at the first time and the second measurement value at the second time, that is, there may be an anomaly in the second measurement value at the first time and / or the second measurement value at the second time; if the absolute value of the first difference is less than or equal to the first threshold, it indicates that the difference between the first distance change value and the second distance change value is small, the measurement error of the second measurement value at the first time and the second measurement value at the second time is small or negligible, and the anomaly detection result of the second measurement value at the first time and the second measurement value at the second time is normal, that is, the second measurement value at the first time and the second measurement value at the second time can participate in the positioning calculation normally. The first threshold can be determined based on the prior accuracy of pseudorange and / or elevation angle, or it can be determined based on satellite positioning accuracy and / or actual application scenario.
[0081] To further improve the accuracy of pseudorange and enhance positioning precision, in one embodiment, the method further includes:
[0082] Based on the satellite's position information and the electronic device's position information, the satellite's elevation angle is calculated;
[0083] If the elevation angle of the satellite is greater than or equal to the second threshold, the first threshold is determined based on the prior accuracy of the pseudorange between the satellite and the electronic device.
[0084] If the satellite's elevation angle is less than the second threshold, the first threshold is determined based on the elevation angle and the prior accuracy.
[0085] Here, since the elevation angle also affects pseudorange measurements—for example, low elevation angle signals are susceptible to interference from multipath effects and atmospheric delay—the impact of the elevation angle on pseudorange must be considered when detecting anomalies. Therefore, the satellite's elevation angle can be calculated first, and then the first threshold can be determined by comparing the elevation angle with a second threshold. The second threshold can be determined based on practical application or experience; no specific limitation is made here.
[0086] Specifically, the satellite's elevation angle can be calculated first based on the satellite's position information and the electronic equipment's position information. This elevation angle is then compared to a second threshold. If the satellite's elevation angle is greater than or equal to the second threshold, it indicates that the current satellite elevation angle has little impact on pseudorange error, and the first threshold can be determined directly based on the prior accuracy of the pseudorange. If the satellite's elevation angle is less than the second threshold, it indicates that the current satellite elevation angle has a significant impact on pseudorange error, and the first threshold needs to be determined by combining the elevation angle and the prior accuracy of the pseudorange. For example, the first threshold can be determined by the ratio of the prior accuracy to the first value, where the first value represents the product of the second value and the sine of the elevation angle, and the second value is a constant, such as 2. As another example, taking a second threshold of 30°, the first threshold can be determined using the following formula:
[0087]
[0088] Where σ1 represents the first threshold, σ0 represents the prior accuracy of the pseudorange, and e represents the current satellite elevation angle. The above formula can also be understood as an error model established considering the influence of the elevation angle on the error. The satellite's position information and the electronic equipment's position information can be the position information acquired at a set time, the position information obtained from the previous positioning, the position information from the previous epoch, or the latest position information; no specific limitations are made here. The first threshold can also be determined based on the 3σ criterion, that is, the first threshold can be expressed as 3σ1.
[0089] To obtain first and second measurement values at the same time under the same environment, and to ensure the availability of the first and second measurement values, in one embodiment, the method further includes:
[0090] Based on the receiving frequency of the first signal broadcast by the satellite at the first time, a first measurement value at the first time is calculated, and based on the receiving frequency of the first signal at the second time, a first measurement value at the second time is calculated; and / or,
[0091] Based on the propagation time of the first signal at the first moment, a second measurement value at the first moment is calculated, and based on the propagation time of the first signal at the second moment, a second measurement value at the second moment is calculated.
[0092] Here, before calculating the first and second distance change values, the first and second measured values can be obtained first. Specifically, the first measured value at the first moment can be calculated based on the difference between the receiving frequency and the transmission frequency of the first satellite broadcast signal at the first moment; the first measured value at the second moment can be calculated based on the difference between the receiving frequency and the transmission frequency of the first satellite broadcast signal at the second moment. The first measured value at the first moment and the second measured value at the second moment can also be obtained by direct measurement at the first and second moments.
[0093] Specifically, the second measurement value at the first moment can be calculated by multiplying the propagation time of the first satellite broadcast signal at the first moment by the speed of light; similarly, the second measurement value at the second moment can be calculated by multiplying the propagation time of the first satellite broadcast signal at the second moment by the speed of light. The propagation time at the first moment can be understood as the propagation time calculated based on the pseudocode included in the first signal received at the first moment; the propagation time at the second moment can be understood as the propagation time calculated based on the pseudocode included in the first signal received at the second moment.
[0094] It should be noted that at the same time, the first and second measured values can be acquired using the same first signal. After acquiring the first measured value, it can also be verified to ensure its accuracy and completeness, and to improve the accuracy of anomaly detection in the second measured value. For example, a post-verification residual verification can be performed on the first measured value.
[0095] The following section provides a more detailed description of this application with reference to application examples.
[0096] like Figure 2 As shown, the anomaly detection method includes the following steps:
[0097] Step 201: Obtain the first measurement value and the second measurement value.
[0098] Here, the electronic device receives a first signal transmitted via satellite broadcast; based on the receiving frequency and corresponding propagation time of the first signal at a first moment, it calculates a first measurement value and a second measurement value at the first moment; based on the receiving frequency and corresponding propagation time of the first signal at a second moment, it calculates a first measurement value and a second measurement value at the second moment. Alternatively, when the electronic device receives the first signal transmitted via satellite broadcast, it can also directly measure the first measurement value and the first measurement value at the first moment and the second measurement value at the second moment, and calculate the second measurement value at the first moment and the second measurement value at the second moment based on the corresponding propagation times of the first signal at the first and second moments.
[0099] In practical applications, the first and second measurement values at the first and second time points can be obtained by establishing buffers for the first and second measurement values. Specifically, buffers for the first and second measurement values are established; based on the receiving frequency and corresponding propagation time of the first signal measured at the new measurement time, the first and second measurement values at the new measurement time are calculated; the first measurement value at the new measurement time is written into the buffer for the first measurement value, and the second measurement value at the new measurement time is written into the buffer for the second measurement value; if the data in both the buffers for the first and second measurement values are greater than or equal to 2, the first and second measurement values at two adjacent measurement times are retrieved from the buffers for the first and second measurement values, respectively, thus obtaining the first and second measurement values at the first time point, as well as the first and second measurement values at the second time point; the adjacent measurement times can be two randomly determined adjacent measurement times. Alternatively, the first and second measurement values obtained from the previous anomaly detection can be used as the first and second measurement values at the first moment of the current anomaly detection. For example, the first and second measurement values at the second moment used in the previous anomaly detection can be used as the first and second measurement values at the first moment of the current anomaly detection; and the newly obtained first and second measurement values can be used as the first and second measurement values at the second moment of the current anomaly detection.
[0100] Step 202: Based on the first measurement value at the first moment and the first measurement value at the second moment, calculate the first distance change value between the satellite and the electronic equipment.
[0101] For the specific implementation process of steps 202-203, please refer to the relevant description above; it will not be repeated here.
[0102] It should be noted that steps 202 and 203 can be executed simultaneously or separately.
[0103] Step 203: Based on the second measurement value at the first moment and the second measurement value at the second moment, calculate the second distance change value between the satellite and the electronic equipment.
[0104] Step 204: Calculate the satellite's elevation angle based on the satellite's position information and the electronic equipment's position information.
[0105] Here, the latest satellite position information and the latest electronic device position information are obtained; based on the latest satellite position information and the latest electronic device position information, the satellite elevation angle is calculated.
[0106] It should be noted that the execution processes of steps 201-203 and steps 204-207 can be performed simultaneously or in separate steps.
[0107] Step 205: Determine whether the satellite's elevation angle is greater than or equal to the second threshold.
[0108] Here, after calculating the satellite's elevation angle, the satellite's elevation angle is compared with a second threshold; if the satellite's elevation angle is greater than or equal to the second threshold, step 206 is executed; if the satellite's elevation angle is less than the second threshold, step 207 is executed.
[0109] Step 206: Determine the first threshold based on the prior accuracy of the pseudorange between the satellite and the electronic equipment.
[0110] For the specific implementation process of steps 206-207, please refer to the relevant description above; it will not be repeated here.
[0111] Step 207: Determine the first threshold based on the satellite's elevation angle and the prior accuracy of the pseudorange between the satellite and electronic equipment.
[0112] Step 208: Determine whether the absolute value of the first difference is greater than the first threshold.
[0113] Here, after calculating the first distance change value and the second distance change value between the satellite and the electronic device, and determining the first threshold, a first difference value is calculated based on the first distance change value and the second distance change value between the satellite and the electronic device; the absolute value of the first difference value is compared with the first threshold value; if the absolute value of the first difference value is greater than the first threshold value, step 210 is executed; if the absolute value of the first difference value is less than or equal to the first threshold value, step 209 is executed.
[0114] For example, taking the first threshold obtained based on the 3σ criterion as an example, the absolute value of the first difference being greater than the first threshold can be expressed in the following form:
[0115] |Δr-Δr′|>3σ1
[0116] Where Δr represents the second distance change value, Δr′ represents the first distance change value, Δr-Δr′ represents the first difference value, and 3σ1 represents the first threshold value.
[0117] Step 209: The second measurement value is used normally for positioning.
[0118] Here, when the absolute value of the first difference is less than or equal to the first threshold, the abnormal detection results of the second measurement value at the first time and the second measurement value at the second time indicate that the second measurement value at the first time and the second measurement value at the second time are normal, that is, the second measurement value at the first time and the second measurement value at the second time can participate in the satellite positioning calculation normally.
[0119] Step 210: Discard or downweight the second measurement.
[0120] Here, when the absolute value of the first difference is greater than the first threshold, the anomaly detection results of the second measurement value at the first time and the second measurement value at the second time indicate that there is an anomaly in the second measurement value at the first time and the second measurement value at the second time, that is, there is an anomaly in the second measurement value at the first time and / or the second measurement value at the second time. The second measurement value at the first time and / or the second measurement value at the second time are then discarded or downweighted. For example, when the absolute value of the first difference is greater than the first threshold, the second measurement value at the first time and the second measurement value at the second time can be directly discarded or downweighted. Alternatively, it can be further determined that there is an abnormal second measurement value between the second measurement value at the first time and the second measurement value at the second time, and the abnormal second measurement value is discarded or downweighted. For example, this can be determined by comparing the first measurement value at the first time and the second measurement value at the first time, and by comparing the first measurement value at the second time and the second measurement value at the second time.
[0121] To implement the method of the embodiments of this application, the embodiments of this application also provide an anomaly detection device, such as... Figure 3 As shown, the device includes:
[0122] The first calculation unit 301 is used to calculate a first distance change value between the satellite and the electronic device based on a first measurement value at a first time and a first measurement value at a second time; the first measurement value represents the Doppler frequency shift between the satellite and the electronic device.
[0123] The second calculation unit 302 is used to calculate a second distance change value between the satellite and the electronic device based on the second measurement value at the first time and the second measurement value at the second time; the second measurement value represents the pseudorange between the satellite and the electronic device;
[0124] The first determining unit 303 is used to determine anomaly detection results of the second measurement value at the first time and the second measurement value at the second time based on the first distance change value and the second distance change value.
[0125] In one embodiment, if the absolute value of the first difference is greater than a first threshold, the anomaly detection result indicates that there is an anomaly in the second measurement value at the first time and the second measurement value at the second time.
[0126] When the absolute value of the first difference is less than or equal to the first threshold, the anomaly detection result indicates that the second measurement value at the first time moment and the second measurement value at the second time moment are normal; wherein...
[0127] The first difference represents the difference between the second distance change value and the first distance change value.
[0128] In one embodiment, the device further includes:
[0129] The third calculation unit is used to calculate the elevation angle of the satellite based on the satellite's position information and the electronic device's position information;
[0130] The second determining unit is used to determine the first threshold based on the prior accuracy of the pseudorange between the satellite and the electronic device when the elevation angle of the satellite is greater than or equal to the second threshold.
[0131] The third determining unit is used to determine the first threshold based on the elevation angle and the prior accuracy when the satellite's elevation angle is less than the second threshold.
[0132] In one embodiment, the first calculation unit 301 is specifically used to calculate the first distance change value based on the first measurement value at the first time, the first measurement value at the second time, the first time, the second time, and the wavelength of the first signal; the first signal represents the signal broadcast by the satellite.
[0133] In one embodiment, the second calculation unit 302 is specifically used to calculate the second distance change value based on the difference between the second measurement value at the second time and the second measurement value at the first time.
[0134] In one embodiment, the device further includes:
[0135] The fourth calculation unit is configured to calculate a first measurement value at the first time based on the receiving frequency of the first signal broadcast by the satellite at the first time, and to calculate a first measurement value at the second time based on the receiving frequency of the first signal at the second time; and / or,
[0136] The fifth calculation unit is used to calculate the second measurement value at the first time based on the propagation time of the first signal at the first time, and to calculate the second measurement value at the second time based on the propagation time of the first signal at the second time.
[0137] In practical applications, the first calculation unit 301, the second calculation unit 302, the first determination unit 303, the third calculation unit, the second determination unit, the third determination unit, the fourth calculation unit, and the fifth calculation unit can be implemented by the processor in the anomaly detection device.
[0138] It should be noted that the anomaly detection device provided in the above embodiments is only illustrated by the division of the above program modules. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the anomaly detection device and the anomaly detection method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0139] Based on the hardware implementation of the above program modules, embodiments of this application also provide an electronic device, such as... Figure 4 As shown, the electronic device 400 includes:
[0140] Communication interface 401 allows for information exchange with other devices or network nodes.
[0141] The processor 402 is connected to the communication interface 401 to enable information interaction with other devices or network nodes, and to execute the methods provided by one or more technical solutions in the above embodiments when running computer programs.
[0142] Memory 403 is used to store computer programs that can run on processor 402.
[0143] Specifically, the processor 402 is configured to calculate a first distance change value between the satellite and the electronic device based on a first measurement value at a first time and a first measurement value at a second time; the first measurement value characterizes the Doppler frequency shift between the satellite and the electronic device.
[0144] Based on the second measurement value at the first time point and the second measurement value at the second time point, a second distance change value between the satellite and the electronic device is calculated; the second measurement value represents the pseudorange between the satellite and the electronic device.
[0145] Based on the first distance change value and the second distance change value, anomaly detection results are determined for the second measurement value at the first time and the second measurement value at the second time.
[0146] In one embodiment, if the absolute value of the first difference is greater than a first threshold, the anomaly detection result indicates that there is an anomaly in the second measurement value at the first time and the second measurement value at the second time.
[0147] When the absolute value of the first difference is less than or equal to the first threshold, the anomaly detection result indicates that the second measurement value at the first time moment and the second measurement value at the second time moment are normal; wherein...
[0148] The first difference represents the difference between the second distance change value and the first distance change value.
[0149] In one embodiment, the processor 402 is configured to calculate the elevation angle of the satellite based on the satellite's position information and the electronic device's position information;
[0150] If the elevation angle of the satellite is greater than or equal to the second threshold, the first threshold is determined based on the prior accuracy of the pseudorange between the satellite and the electronic device.
[0151] If the satellite's elevation angle is less than the second threshold, the first threshold is determined based on the elevation angle and the prior accuracy.
[0152] In one embodiment, the processor 402 is specifically configured to calculate the first distance change value based on the first measurement value at the first time, the first measurement value at the second time, the first time, the second time, and the wavelength of the first signal; the first signal represents the signal broadcast by the satellite.
[0153] In one embodiment, the processor 402 is specifically configured to calculate the second distance change value based on the difference between the second measurement value at the second time and the second measurement value at the first time.
[0154] In one embodiment, the processor 402 is configured to calculate a first measurement value at the first time based on the receiving frequency of the first signal broadcast by the satellite at the first time, and to calculate a first measurement value at the second time based on the receiving frequency of the first signal at the second time; and / or,
[0155] Based on the propagation time of the first signal at the first moment, a second measurement value at the first moment is calculated, and based on the propagation time of the first signal at the second moment, a second measurement value at the second moment is calculated.
[0156] It should be noted that the specific processing procedure of processor 402 can be understood by referring to the above method.
[0157] Of course, in practical applications, the various components in electronic device 400 are coupled together through bus system 404. It can be understood that bus system 404 is used to realize the connection and communication between these components. In addition to a data bus, bus system 404 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in... Figure 4 The general designated all buses as Bus System 404.
[0158] The memory 403 in this embodiment is used to store various types of data to support the operation of the electronic device 400. Examples of such data include any computer program used to operate on the electronic device 400.
[0159] The methods disclosed in the embodiments of this application can be applied to, or implemented by, the processor 402. The processor 402 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by the integrated logic circuitry of the hardware in the processor 402 or by instructions in software form. The processor 402 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 402 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, specifically in memory 403. The processor 402 reads information from memory 403 and, in conjunction with its hardware, completes the steps of the aforementioned method.
[0160] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0161] It is understood that the memory (memory 403) in this embodiment of the application can be volatile memory or non-volatile memory, or both. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); the magnetic surface memory can be disk storage or magnetic tape storage. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.
[0162] In an exemplary embodiment, this application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a memory 403 storing a computer program, which can be executed by the processor 402 of the electronic device 400 to complete the steps described in any of the aforementioned methods. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.
[0163] For example, embodiments of this application also provide a computer program product, including a computer program that can be executed by a processor 402 of an electronic device 400 to perform the steps described in any of the foregoing methods.
[0164] It should be noted that terms such as "first" and "second" are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. The term "and / or" in this document merely describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, the technical solutions described in the embodiments of this application can be arbitrarily combined without conflict. The above descriptions are merely preferred embodiments of this application and are not intended to limit the scope of protection of this application.
Claims
1. An anomaly detection method, characterized in that, The method includes: Based on the first measurement value at the first moment and the first measurement value at the second moment, a first distance change value between the satellite and the electronic device is calculated; the first measurement value characterizes the Doppler frequency shift between the satellite and the electronic device. Based on the second measurement value at the first time point and the second measurement value at the second time point, a second distance change value between the satellite and the electronic device is calculated; the second measurement value represents the pseudorange between the satellite and the electronic device. Based on the first distance change value and the second distance change value, anomaly detection results are determined for the second measurement value at the first time and the second measurement value at the second time.
2. The method according to claim 1, characterized in that, If the absolute value of the first difference is greater than the first threshold, the anomaly detection result indicates that there is an anomaly in the second measurement value at the first time and the second measurement value at the second time. When the absolute value of the first difference is less than or equal to the first threshold, the anomaly detection result indicates that the second measurement value at the first time moment and the second measurement value at the second time moment are normal; wherein... The first difference represents the difference between the second distance change value and the first distance change value.
3. The method according to claim 2, characterized in that, The method further includes: Based on the satellite's position information and the electronic device's position information, the satellite's elevation angle is calculated; If the elevation angle of the satellite is greater than or equal to the second threshold, the first threshold is determined based on the prior accuracy of the pseudorange between the satellite and the electronic device. If the satellite's elevation angle is less than the second threshold, the first threshold is determined based on the elevation angle and the prior accuracy.
4. The method according to claim 1, characterized in that, The calculation of the first distance change between the satellite and the electronic equipment based on the first measurement value at the first time and the first measurement value at the second time includes: The first distance change value is calculated based on the first measurement value at the first time, the first measurement value at the second time, the first time, the second time, and the wavelength of the first signal; the first signal represents the signal broadcast by the satellite.
5. The method according to claim 1, characterized in that, The calculation of the second distance change value between the satellite and the electronic device based on the second measurement value at the first time and the second measurement value at the second time includes: The second distance change value is calculated based on the difference between the second measurement value at the second time and the second measurement value at the first time.
6. The method according to claim 1, characterized in that, The method further includes: Based on the receiving frequency of the first signal broadcast by the satellite at the first time, a first measurement value at the first time is calculated, and based on the receiving frequency of the first signal at the second time, a first measurement value at the second time is calculated; and / or, Based on the propagation time of the first signal at the first moment, a second measurement value at the first moment is calculated, and based on the propagation time of the first signal at the second moment, a second measurement value at the second moment is calculated.
7. An anomaly detection device, characterized in that, include: The first calculation unit is used to calculate the first distance change value between the satellite and the electronic equipment based on the first measurement value at the first time and the first measurement value at the second time. The first measurement characterizes the Doppler frequency shift between the satellite and the electronic equipment; The second calculation unit is used to calculate the second distance change value between the satellite and the electronic device based on the second measurement value at the first time and the second measurement value at the second time. The second measurement represents the pseudorange between the satellite and the electronic equipment; The first determining unit is configured to determine, based on the first distance change value and the second distance change value, anomaly detection results for the second measurement value at the first time and the second measurement value at the second time.
8. An electronic device, characterized in that, This includes a processor and memory for storing computer programs that can run on the processor. When the processor is used to run the computer program, it performs the steps of the method according to any one of claims 1 to 6.
9. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
