Pulse per second batch test algorithm
By using a cesium atomic clock and a digital time interval analyzer in the second pulse batch test system, combined with a deep learning network, real-time synchronization with the international atomic time and parameter optimization are achieved, solving the problems of test result accuracy and scalability, and improving System adaptability and productivity.
Patent Information
- Application Number
- CN202410562706.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing second-pulse batch test system fails to effectively verify the accuracy of test results and lacks scalability, which limits the improvement of production efficiency and the application of new technologies.
It uses a cesium atomic clock synchronized with the international atomic time and a digital time interval analyzer with sub-nanosecond resolution, combined with a deep learning network (convolutional neural network and long short-term memory network) to achieve real-time automatic synchronization testing and parameter optimization to enhance the system's adaptability. sex and accuracy.
It significantly improves the accuracy of test results and system adaptability, reduces human errors, improves production efficiency and test throughput, and ensures real-time adjustment and stability of frequency deviation.
Smart Images

Figure CN118655378A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of time service, and in particular to a second pulse batch testing algorithm. Background Art
[0002] High-precision timing technology plays a vital role in key areas such as global positioning systems, data center synchronization, and high-frequency trading. Although the existing second pulse batch test system provides basic support for these applications, its several major shortcomings limit further technological progress and application expansion.
[0003] First, most current batch test systems do not compare test results to a rigorously calibrated pulse-per-second reference. This practice ignores the need for external accuracy verification and can cause the system to operate with undetected error accumulation, which in turn affects the performance and reliability of critical applications. For example, a time signal that is not aligned with the International Atomic Time (TAI) can cause synchronization errors around the world.
[0004] Secondly, traditional pulse-per-second test systems are usually not scalable in design and cannot adapt to changes in production scale or updates in technical standards. This fixed configuration system not only restricts the improvement of production efficiency, but also hinders the integration and application of new technologies. Summary of the invention
[0005] In view of the problems that the test results are not compared with the calibrated second pulse benchmark, resulting in the inability to verify the accuracy of the test results; the system's test capabilities are not scalable, limiting the improvement of production efficiency, etc., the present invention proposes a second pulse batch test algorithm, which integrates cutting-edge cesium atomic clocks and sub-nanosecond resolution digital time interval analyzers to achieve real-time, automatic synchronization testing with the international atomic time, which not only improves the accuracy of the test results, but also reduces the possibility of human errors through the automated comparison process; introduces an automatic adjustment mechanism based on a deep learning network, especially a combination of convolutional neural networks and long short-term memory networks, which can dynamically learn and predict the performance of the timing terminal. This intelligent adaptive adjustment not only enables the system to be optimized for different test environments and requirements, but also enhances the system's adaptability to future technological changes.
[0006] In order to achieve the above object, the present invention is implemented by the following technical solutions:
[0007] A second pulse batch testing algorithm includes the following steps:
[0008] Inside the timing terminal, a dual-mode temperature compensated crystal oscillator is used to generate a second pulse signal, wherein the frequency stability of the crystal oscillator is better than 0.1ppm;
[0009] Use a cesium atomic clock synchronized with the international atomic time to generate a standard second pulse signal. The frequency stability of the cesium atomic clock reaches 10^-14 level.
[0010] A digital time interval analyzer with a sub-nanosecond resolution is used to compare the second pulse signal with the standard second pulse signal in real time and calculate the time deviation;
[0011] Based on the time deviation result, the parameters of the timing terminal are automatically adjusted, and the performance qualification is evaluated according to the set threshold.
[0012] As a preferred solution of the present invention, the dual-mode temperature compensated crystal oscillator includes an automatic temperature compensation system for real-time monitoring and adjusting frequency deviations caused by changes in ambient temperature.
[0013] As a preferred solution of the present invention, the digital time interval analyzer with sub-nanosecond resolution has an automatic calibration function to ensure the consistency of analysis accuracy in long-term operation.
[0014] As a preferred solution of the present invention, the step of automatically adjusting the timing terminal parameters based on the time deviation result further includes using a deep learning network to automatically adjust the frequency control parameters of the timing terminal to adapt to environmental changes and optimize future test performance;
[0015] The deep learning network specifically uses a convolutional neural network combined with a long short-term memory network to process and learn the time series data generated by the timing terminal to dynamically predict and adjust the oscillator behavior. The training process includes the following steps:
[0016] S41: forming a training data set based on historical time deviation data and corresponding environmental parameters;
[0017] S42: Convolutional neural network layer, used to extract features of time series data;
[0018] Long short-term memory network layer, used to analyze long-term dependencies of time series;
[0019] Fully connected layer, used to output adjustment parameters;
[0020] S43: The back propagation algorithm is used to optimize the network weights. The loss function is defined as the mean square error (MSE) between the predicted time deviation and the actual measured deviation. The formula is:
[0021]
[0022] In the formula, y i is the actual time deviation of the ith sample, y i is the time deviation of the network prediction, n is the number of samples;
[0023] S44: Adjust the network parameters according to the result of the loss function until the preset performance index is reached.
[0024] As a preferred solution of the present invention, it also includes the step of generating a test report, which records in detail the pulse-per-second signal performance of each timing terminal, including time deviation, adjustment history and current status evaluation.
[0025] As a preferred solution of the present invention, the threshold for evaluating performance eligibility is dynamically adjusted according to the actual use environment and historical performance data of the timing terminal to adapt to different levels of time synchronization accuracy requirements. The threshold adjustment adopts an adaptive algorithm based on Kalman filtering, which can effectively handle measurement noise and system uncertainty. The specific formula is as follows:
[0026] The state prediction formula is:
[0027]
[0028] In the formula, is the state prediction at time step k, Fk is the state transfer matrix, is the optimal state estimate of the previous time step, B k is the control input matrix, uk is the control input;
[0029] The update formula is as follows:
[0030]
[0031] In the formula, K k is the Kalman gain, z k is the actual measurement at the current time step, H K is the observation matrix, which is used to map the predicted state to the observation space;
[0032] The Kalman gain calculation formula is:
[0033]
[0034] Where P k|k-1 is the forecast error covariance, R k is the measurement noise covariance.
[0035] As a preferred solution of the present invention, a secure communication protocol is included between the cesium atomic clock and the digital time interval analyzer to ensure the transmission security and tamper-proof of the standard second pulse signal.
[0036] As a preferred solution of the present invention, it further includes performing a system self-check before the second pulse signal of the timing terminal is generated, including detecting the health status of the crystal oscillator and the functional integrity of the communication interface.
[0037] As a preferred solution of the present invention, it also includes a user interface for displaying the test progress and results of the timing terminal in real time, and the interface supports the user to input specific test parameters and thresholds.
[0038] As a preferred embodiment of the present invention, it further includes a method for dynamically adjusting test parameters based on a hybrid genetic algorithm and particle swarm optimization to optimize future test performance and accuracy. The specific implementation steps of the hybrid algorithm include:
[0039] Step S1: Generate the initial population, each individual represents a set of test parameters, and each individual also acts as a particle with speed and position attributes;
[0040] Step S2: For each particle, the fitness is calculated according to the test parameter setting it represents. The fitness function is defined as the ability to reduce time deviation. The calculation formula is:
[0041]
[0042] Where x is the test parameter setting, and MSE(x) is the mean square error of the time deviation under this parameter setting;
[0043] Step S3: perform selection, crossover and mutation operations to generate a new generation of population;
[0044] Step S4: For each particle, update its speed and position according to the historical best position of the individual and the group, the formula is:
[0045] v new =w·v old +c1·r1·(p best -x)+c2·r2·(g best -x);
[0046] x new =x+v new
[0047] Where: v old and v new are the velocities of the particle in the current and new generations, x is the current position, p is the best is the best position of the particle in history, g best is the global optimal position, w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers;
[0048] Step S5: Repeat the genetic operation and particle swarm optimization steps until a preset number of generations or performance threshold is reached.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] Utilizing a cesium atomic clock synchronized with the International Atomic Time and a sub-nanosecond digital time interval analyzer, the present invention ensures extremely high accuracy of the pulse-per-second signal, significantly outperforming existing systems. By combining deep learning technology, the automatic optimization of the timing terminal parameters is achieved, which can respond to environmental changes and predict future performance requirements, improving the adaptability and foresight of the system. Automated testing and intelligent parameter adjustment reduce the need for manual operation, reduce human errors, and improve production efficiency and test throughput. Real-time adjustment and optimization of frequency deviations caused by environmental changes ensure the stability and accuracy of the test process. The use of genetic algorithms and particle swarm optimization technology to dynamically adjust test parameters provides the system with continuous learning and optimization capabilities, maintaining continuous technological advancement and compatibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0052] in:
[0053] Figure 1 is a flow chart of a method according to an embodiment of the present invention;
[0054] Figure 2 This is a schematic diagram of the experimental data in Table 1 in the embodiments of the present invention;
[0055] Figure 3 This is a schematic diagram of the experimental data in Table 2 in the embodiments of the present invention;
[0056] Figure 4 It is a schematic diagram of the experimental data in Table 3 in the embodiments of the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.
[0058] Example 1
[0059] Reference Figure 1 As shown in FIG. 1 , an embodiment of the present invention is provided, which provides a second pulse batch test algorithm, comprising the following steps:
[0060] Inside the timing terminal, a dual-mode temperature compensated crystal oscillator is used to generate a second pulse signal, wherein the frequency stability of the crystal oscillator is better than 0.1ppm;
[0061] Use a cesium atomic clock synchronized with the international atomic time to generate a standard second pulse signal. The frequency stability of the cesium atomic clock reaches 10^-14 level.
[0062] The dual-mode temperature compensated crystal oscillator includes an automatic temperature compensation system for real-time monitoring and adjustment of frequency deviations caused by ambient temperature changes.
[0063] Further, a digital time interval analyzer with sub-nanosecond resolution is used to compare the second pulse signal with the standard second pulse signal in real time and calculate the time deviation;
[0064] Digital time interval analyzer with sub-nanosecond resolution, featuring auto-calibration to ensure consistent analysis accuracy over long term operation.
[0065] Furthermore, based on the time deviation result, the parameters of the timing terminal are automatically adjusted, and the performance qualification is evaluated according to the set threshold.
[0066] The step of automatically adjusting the timing terminal parameters based on the time deviation results further includes using a deep learning network to automatically adjust the frequency control parameters of the timing terminal to adapt to environmental changes and optimize future test performance;
[0067] The deep learning network specifically uses a convolutional neural network combined with a long short-term memory network to process and learn the time series data generated by the timing terminal to dynamically predict and adjust the oscillator behavior. The training process includes the following steps:
[0068] S41: forming a training data set based on historical time deviation data and corresponding environmental parameters;
[0069] S42: Convolutional neural network layer, used to extract features of time series data;
[0070] Long short-term memory network layer, used to analyze long-term dependencies of time series;
[0071] Fully connected layer, used to output adjustment parameters;
[0072] S43: The back propagation algorithm is used to optimize the network weights. The loss function is defined as the mean square error (MSE) between the predicted time deviation and the actual measured deviation. The formula is:
[0073]
[0074] In the formula, y i is the actual time deviation of the ith sample, y iis the time deviation of the network prediction, n is the number of samples;
[0075] S44: Adjust the network parameters according to the result of the loss function until the preset performance index is reached.
[0076] Furthermore, the method also includes the step of generating a test report, which records in detail the pulse-per-second signal performance of each timing terminal, including time deviation, adjustment history, and current status evaluation.
[0077] Furthermore, the threshold for evaluating performance eligibility is dynamically adjusted according to the actual use environment and historical performance data of the timing terminal to adapt to different levels of time synchronization accuracy requirements. The threshold adjustment adopts an adaptive algorithm based on Kalman filtering, which can effectively handle measurement noise and system uncertainty. The specific formula is as follows:
[0078] The state prediction formula is:
[0079]
[0080] In the formula, is the state prediction at time step k, Fk is the state transfer matrix, is the optimal state estimate of the previous time step, B k is the control input matrix, uk is the control input;
[0081] The update formula is as follows:
[0082]
[0083] In the formula, K k is the Kalman gain, z k is the actual measurement at the current time step, H K is the observation matrix, which is used to map the predicted state to the observation space;
[0084] The Kalman gain calculation formula is:
[0085]
[0086] Where P k|k-1 is the forecast error covariance, R k is the measurement noise covariance.
[0087] Furthermore, a secure communication protocol is included between the cesium atomic clock and the digital time interval analyzer to ensure the transmission security and anti-tampering of the standard second pulse signal.
[0088] Furthermore, the method further includes performing a system self-check before the second pulse signal of the timing terminal is generated, including detecting the health status of the crystal oscillator and the functional integrity of the communication interface.
[0089] Furthermore, the method also includes a user interface for displaying the test progress and results of the timing terminal in real time, and the interface supports the user to input specific test parameters and thresholds.
[0090] Furthermore, the method further includes using a hybrid method of dynamically adjusting test parameters based on genetic algorithm and particle swarm optimization to optimize future test performance and accuracy, and the specific implementation steps of the hybrid algorithm include:
[0091] Step S1: Generate the initial population, each individual represents a set of test parameters, and each individual also acts as a particle with speed and position attributes;
[0092] Step S2: For each particle, the fitness is calculated according to the test parameter setting it represents. The fitness function is defined as the ability to reduce time deviation. The calculation formula is:
[0093]
[0094] Where x is the test parameter setting, and MSE(x) is the mean square error of the time deviation under this parameter setting;
[0095] Step S3: perform selection, crossover and mutation operations to generate a new generation of population;
[0096] Step S4: For each particle, update its speed and position according to the historical best position of the individual and the group, the formula is:
[0097] Vnew=W·Vold+c1·r1·(pbest-X)+c2·r2·(gbest-X);
[0098] X new =X+V new
[0099] Where: V old and V new are the velocities of the particle in the current and new generations, x is the current position, p is the best is the best position of the particle in history, g best is the global optimal position, w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers;
[0100] Step S5: Repeat the genetic operation and particle swarm optimization steps until a preset number of generations or performance threshold is reached.
[0101] Example 2
[0102] Reference Figure 2As shown in FIG. 1 , another embodiment of the present invention is shown. In order to show the optimized and improved test data and compare and show the effects of the present invention and the traditional method, we have recorded the following test data in detail, as shown in Table 1 below:
[0103] Parameters / System Traditional systems System of the present invention Remark Time synchronization accuracy ±5 nanoseconds ±0.5 nanoseconds This is achieved by synchronizing with a cesium atomic clock Test frequency stability 1ppm 0.1ppm Improvements brought by cesium atomic clocks Automatic parameter adjustment none have Deep learning network support Environmental adaptability test Error ±10 nanoseconds under changing environment Error in changing environment ±1 nanosecond Deep learning network prediction and adjustment Operational efficiency Manual testing, 100 per hour Automatic testing, 500 per hour Increased automation System adaptability Low high Genetic Algorithms and Particle Swarm Optimization
[0104] Experimental description:
[0105] Time synchronization accuracy: This shows that the present invention has greatly improved the accuracy of time synchronization by using a high-precision cesium atomic clock to synchronize with the international atomic time.
[0106] Test frequency stability: This demonstrates the advantage of the present invention in frequency stability, the key of which lies in the high-stability cesium atomic clock and the optimized crystal oscillator.
[0107] Automatic parameter adjustment: This invention adopts a deep learning method based on convolutional neural network and long short-term memory network to achieve real-time automatic adjustment and optimize test performance.
[0108] Environmental adaptability test: The present invention shows significant advantages in terms of the impact of environmental changes (such as temperature and humidity changes) on test results.
[0109] Operational efficiency: Automated testing processes significantly improve operational efficiency and test throughput.
[0110] System adaptability: Through the hybrid approach of genetic algorithm and particle swarm optimization, the present invention provides superior system adaptability and can dynamically adapt to technological changes and environmental changes.
[0111] Table 1 shows the obvious advantages of the present invention over the traditional system in multiple key indicators.
[0112] Example 3
[0113] Reference Figure 3 As shown, it is another embodiment of the present invention. In order to further demonstrate the performance of the second pulse batch test algorithm, it is very important to test in different experimental environments and record detailed data. The following are some specific experimental data examples. Table 2 shows the performance of the present invention under different conditions:
[0114] Experiment number Environmental conditions Test Parameters Traditional system results Results of the system of the present invention Improvements 1 Temperature 25℃ Time synchronization accuracy ±2.5ns ±0.3ns Significantly improved accuracy 2 Humidity 50% Frequency stability 0.8ppm 0.05ppm Improved frequency stability 3 Vibration 5Hz Vibration immunity performance Error ±5ns Error ±0.8ns Significantly reduces the effects of vibration 4 High electromagnetic interference Anti-electromagnetic interference performance Error ±3ns Error ±0.4ns Significantly improve the ability to resist electromagnetic interference 5 Strong light Lighting impact test Error ±4ns Error ±1ns Reduce the impact of light 6 Network delay 100ms Network environment adaptability Error ±6ns Error ±1.5ns Improve network environment adaptability
[0115] Experimental description:
[0116] Time synchronization accuracy: tested at standard room temperature, the present invention greatly improves the accuracy of time synchronization by using a high-precision cesium atomic clock.
[0117] Frequency Stability: Tested in a controlled humidity environment, this invention utilizes high performance temperature compensation technology to achieve better frequency stability.
[0118] Vibration immunity performance: tested in an artificially simulated vibration environment, the present invention reduces the impact of vibration by optimizing the mechanical structure and signal processing algorithm.
[0119] Anti-electromagnetic interference performance: Tests were conducted in a high electromagnetic interference environment, demonstrating the improvements of the present invention in electromagnetic shielding and signal integrity.
[0120] Light impact test: Test under different light intensities to evaluate the impact of light on system performance.
[0121] Network environment adaptability: Test in environments simulating different network delays to evaluate the impact of network changes on time synchronization.
[0122] The experimental data in Table 2 clearly demonstrate the excellent performance of the present invention in a variety of complex environments, and effectively prove its reliability and high performance in practical applications.
[0123] Example 4
[0124] Reference Figure 4 As shown, it is another embodiment of the present invention, and the experimental data set is further expanded to reflect the performance of the present invention under more environmental conditions. The following is the added experimental data, which involves new test environments and parameters, as shown in Table 3:
[0125] Experiment number Environmental conditions Test Parameters Traditional system results Results of the system of the present invention Improvements 7 Temperature -10℃ Time synchronization accuracy ±3.5ns ±0.4ns Significantly improves time synchronization accuracy at low temperatures 8 Humidity 80% Frequency stability 1.2ppm 0.06ppm Improved frequency stability in high humidity environments 9 Vibration 10Hz Vibration immunity performance Error ±7ns Error ±0.9ns Significantly reduces the impact of high frequency vibration 10 Very high electromagnetic interference Anti-electromagnetic interference performance Error ±4.5ns Error ±0.5ns Greatly improve the ability to resist electromagnetic interference 11 Very weak light Lighting impact test Error ±3.5ns Error ±0.8ns Significantly reduces the impact of low light conditions 12 Network delay 200ms Network environment adaptability Error ±7ns Error ±1.2ns Significantly improved performance on high-latency networks
[0126] Experimental description:
[0127] Experiment No. 7-12: Expanded the extremes of the test environment, from extremely low temperatures to high humidity, stronger vibrations and more severe electromagnetic interference, as well as different lighting and network latency conditions.
[0128] Time synchronization accuracy: Tested in an extremely low temperature environment, it was verified that the time synchronization technology of the present invention can still maintain extremely high accuracy under adverse conditions.
[0129] Frequency Stability: Testing in a high humidity environment demonstrated the robustness of the frequency control technology, demonstrating significant improvements in frequency stability in challenging environments.
[0130] Vibration immunity performance: In higher frequency vibration tests, the present invention significantly reduces the impact of vibration by optimizing the vibration compensation algorithm.
[0131] Anti-electromagnetic interference performance: In tests with extremely high electromagnetic interference, the invention demonstrated its excellent anti-interference ability, which is especially important for industrial and military applications.
[0132] Light impact test: In tests under extremely low light conditions, the present invention reduced the impact of light on device performance, demonstrating its adaptability in a variety of lighting environments.
[0133] Network environment adaptability: The test results under higher network delay conditions demonstrate the ability of the present invention to maintain good performance even when the network is unstable.
[0134] The extended experimental data in Table 3 further verify the superior performance and adaptability of the present invention in various extreme and challenging environments, and enhance the authenticity and application value of the invention.
[0135] In summary, the present invention integrates cesium atomic clocks and international atomic time synchronization technology to achieve sub-nanosecond precise comparison of second pulse signals, significantly improving the accuracy of time synchronization. A deep learning network (including convolutional neural networks and long short-term memory networks) is used to automatically learn and optimize the performance of timing terminals to cope with different environmental changes. Genetic algorithms and particle swarm optimization techniques are used to dynamically adjust system thresholds according to environmental and performance data to enhance environmental adaptability. A modular and open interface design is adopted to support technology upgrades and future expansions to adapt to market and technological development. Through extensive experimental tests, the superior performance and high reliability of the present invention in a variety of extreme environments have been verified.
[0136] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0137] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0138] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A second pulse batch testing algorithm, characterized in that: The method comprises the following steps: Inside the timing terminal, a dual-mode temperature compensated crystal oscillator is used to generate a second pulse signal, wherein the frequency stability of the crystal oscillator is better than 0.1ppm; Use a cesium atomic clock synchronized with the international atomic time to generate a standard second pulse signal. The frequency stability of the cesium atomic clock reaches 10^-14 level. A digital time interval analyzer with a sub-nanosecond resolution is used to compare the second pulse signal with the standard second pulse signal in real time and calculate the time deviation; Based on the time deviation result, the parameters of the timing terminal are automatically adjusted, and the performance qualification is evaluated according to the set threshold.
2. The second pulse batch test algorithm according to claim 1 is characterized in that: The dual-mode temperature compensated crystal oscillator includes an automatic temperature compensation system for real-time monitoring and adjusting frequency deviations caused by ambient temperature changes.
3. The second pulse batch test algorithm according to claim 1 is characterized in that: The sub-nanosecond resolution digital time interval analyzer has an automatic calibration function to ensure the consistency of analysis accuracy in long-term operation.
4. The second pulse batch test algorithm according to claim 1 is characterized in that: The step of automatically adjusting the timing terminal parameters based on the time deviation result further includes using a deep learning network to automatically adjust the frequency control parameters of the timing terminal to adapt to environmental changes and optimize future test performance; The deep learning network specifically uses a convolutional neural network combined with a long short-term memory network to process and learn the time series data generated by the timing terminal to dynamically predict and adjust the oscillator behavior. The training process includes the following steps: S41: forming a training data set based on historical time deviation data and corresponding environmental parameters; S42: Convolutional neural network layer, used to extract features of time series data; Long short-term memory network layer, used to analyze long-term dependencies of time series; Fully connected layer, used to output adjustment parameters; S43: The back propagation algorithm is used to optimize the network weights. The loss function is defined as the mean square error (MSE) between the predicted time deviation and the actual measured deviation. The formula is: In the formula, y i is the actual time deviation of the ith sample, y i is the time deviation of the network prediction, n is the number of samples; S44: Adjust the network parameters according to the result of the loss function until the preset performance index is reached.
5. The second pulse batch test algorithm according to claim 1 is characterized in that: The method also includes the step of generating a test report, which records in detail the pulse-per-second signal performance of each timing terminal, including time deviation, adjustment history and current status evaluation.
6. The second pulse batch test algorithm according to claim 1 is characterized in that: The threshold for evaluating the performance eligibility is dynamically adjusted according to the actual use environment and historical performance data of the timing terminal to adapt to different levels of time synchronization accuracy requirements. The threshold adjustment adopts an adaptive algorithm based on Kalman filtering, which can effectively handle measurement noise and system uncertainty. The specific formula is as follows: The state prediction formula is: In the formula, is the state prediction at time step k, Fk is the state transfer matrix, is the optimal state estimate of the previous time step, B k is the control input matrix, uk is the control input; The update formula is as follows: In the formula, K k is the Kalman gain, z k is the actual measurement at the current time step, H K is the observation matrix, which is used to map the predicted state to the observation space; The Kalman gain calculation formula is: Where P k|k-1 is the forecast error covariance, R k is the measurement noise covariance.
7. The second pulse batch test algorithm according to claim 1 is characterized in that: A secure communication protocol is included between the cesium atomic clock and the digital time interval analyzer to ensure the transmission security and tamper-proof of the standard second pulse signal.
8. The second pulse batch test algorithm according to claim 1 is characterized in that: The method further includes performing a system self-check before the second pulse signal of the timing terminal is generated, including detecting the health status of the crystal oscillator and the functional integrity of the communication interface.
9. The second pulse batch test algorithm according to claim 1 is characterized in that: The method also includes a user interface for displaying the test progress and results of the timing terminal in real time, and the interface supports the user to input specific test parameters and thresholds.
10. The second pulse batch test algorithm according to claim 1 is characterized in that: The method further includes using a hybrid method of dynamically adjusting test parameters based on genetic algorithm and particle swarm optimization to optimize future test performance and accuracy, and the specific implementation steps of the hybrid algorithm include: Step S1: Generate the initial population, each individual represents a set of test parameters, and each individual also acts as a particle with speed and position attributes; Step S2: For each particle, the fitness is calculated according to the test parameter setting it represents. The fitness function is defined as the ability to reduce time deviation. The calculation formula is: Where x is the test parameter setting, and MSE(x) is the mean square error of the time deviation under this parameter setting; Step S3: perform selection, crossover and mutation operations to generate a new generation of population; Step S4: For each particle, update its speed and position according to the historical best position of the individual and the group. The formula is: V new =W·Vold+c1·r1·(p best -x)+c2·r2·(g best -x); X new =X+V new Where: V old and V new are the velocities of the particle in the current and new generations, x is the current position, p is the best is the best position of the particle in history, g best is the global optimal position, w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers; Step S5: Repeat the genetic operation and particle swarm optimization steps until a preset number of generations or performance threshold is reached.
Citation Information
Cited By
Self-adaptive high-precision time service method and system based on deep learning
CN120233659A
