A X-ray pulsar signal processing method based on particle swarm optimization and reinforcement learning

By combining the particle swarm algorithm with reinforcement learning, the problem of real-time synchronization and low computational efficiency of pulsar signal processing in the existing technology is solved, and efficient and adaptive pulsar signal processing is achieved, which is suitable for complex spacecraft environments.

CN115017807BActive Publication Date: 2024-08-30NAT UNIV OF DEFENSE TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210622503.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-01
Publication Date
2024-08-30
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

In the existing technology, the pulsar signal processing method based on period folding is difficult to achieve real-time synchronous solution of the initial phase and frequency of the pulsar signal, and the signal processing method directly using photon TOA has low computational efficiency and is easy to converge to the local optimal solution, intelligent optimization The algorithm parameter setting is highly dependent and lacks adaptability.

Method used

Using a method based on particle swarm optimization and reinforcement learning, the algorithm parameters are adaptively adjusted through a staged iterative process and an automatic learning machine, combined with the excellent characteristics of CLPSO and GPSO algorithms, to enhance exploration and convergence capabilities and achieve efficient processing of pulsar signals.

Benefits of technology

It significantly improves the computational efficiency and adaptability of pulsar signal processing, ensures high success rate and low estimation error, adapts to complex spacecraft environments, and supports the implementation of fast navigation algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115017807B
    Figure CN115017807B
Patent Text Reader

Abstract

The application provides an X-ray pulsar signal processing method based on a particle swarm algorithm and reinforcement learning, comprising the following steps: determining a target function, judging the historical optimal position pbest<subgt;i of the i-th particle in its own iteration process and the population optimal position gbest reached by the particle population in the iteration process according to the target function; processing the pulsar signal based on the particle swarm algorithm, and adaptively adjusting the particle swarm algorithm parameters based on an automatic learning machine in the reinforcement learning in the process of pulsar signal processing. The iteration process of the IPSO algorithm is sequentially divided into a preliminary exploration stage, a learning exploration stage and a population convergence stage, a plurality of particle velocity updating strategies are combined in stages, and the excellent characteristics of the CLPSO algorithm and the GPSO algorithm are integrated; the automatic learning machine is introduced on the basis of the IPSO algorithm, the adaptive adjustment of the algorithm parameters is realized, the LAIPSO algorithm is proposed for pulsar signal processing, and the adaptability of the signal processing method is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of X-ray pulsar signal processing, and in particular to an X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning. Background Art

[0002] A pulsar is a celestial body with a high degree of rotational stability. When it rotates, it will radiate electromagnetic waves with a stable frequency. Among them, pulsars that radiate X-rays are called X-ray pulsars. Compared with traditional astronomical navigation, the advantages of X-ray pulsar navigation are mainly reflected in the following two aspects: first, the frequency of electromagnetic waves emitted by X-ray pulsars is highly stable, which can provide a high-precision reference time benchmark for spacecraft; second, the navigation accuracy of X-ray pulsar navigation is independent of the distance between the spacecraft and the reference celestial body, and the accuracy can be maintained within ten kilometers.

[0003] In X-ray pulsar navigation, the estimation of the pulse arrival time (TOA) is a key step in navigation signal processing. The existing pulse TOA estimation method that directly uses photon TOA needs to first process the photon TOA measured by the detector, estimate the initial phase and frequency of the pulsar signal, and then obtain the pulse TOA. This method transforms the estimation problem of the initial phase and frequency of the pulsar signal into a two-dimensional optimization problem by constructing a maximum likelihood estimation problem. The two-dimensional optimization problem is a multi-peak optimization problem with a large number of local optimal solutions. By solving the problem with an optimization algorithm, the initial phase and frequency of the pulsar signal can be obtained. The above method makes full use of pulsar observation data and has a high estimation accuracy.

[0004] When solving multi-peak optimization problems, intelligent optimization algorithms can use known information for heuristic search, thus having higher computational efficiency. Various studies have shown that the performance of intelligent optimization algorithms is closely related to the setting of algorithm parameters. For different optimization problems, intelligent optimization algorithms need to select different parameter settings to ensure algorithm performance.

[0005] In the prior art, there is a method for estimating the phase delay of a pulsar signal based on a spacecraft orbital dynamics model and period folding, as specifically disclosed in Chinese patent document CN110940332B. This method first calculates the phase estimate and corrects the Doppler shift through the orbital dynamics model and large-scale time conversion, and then obtains the phase delay by comparing the observed pulse profile through period folding; and there is a method for maximum likelihood phase estimation based on an X-ray pulsar, as specifically disclosed in Chinese patent document CN103776454B. This method constructs a maximum likelihood estimation unit for estimating the initial phase and period and improves the cost function search performance through a parallel computing unit. However, the prior art still has the following deficiencies:

[0006] (1) The pulsar signal processing method based on period folding requires the pulsar signal frequency to be determined in advance through long-term observation data and orbital dynamics models, which makes it difficult to achieve real-time synchronous solution of the initial phase and frequency of the pulsar signal;

[0007] (II) The computational time of the signal processing method that directly uses the photon TOA for maximum likelihood estimation increases dramatically with the increase in the amount of observation data. When using traditional optimization algorithms such as gradient descent and Newton iteration to search for solutions, there are problems of low efficiency and easy convergence to local optimal solutions. When using intelligent optimization algorithms to solve, the performance of the algorithm is closely related to its parameter settings. When fixed-parameter intelligent optimization algorithms are used for pulsar signal processing, they are not very adaptable to the changing working environment of spacecraft. Summary of the invention

[0008] In order to solve the problems existing in the above-mentioned prior art solutions, the present invention proposes an X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning.

[0009] The present invention provides an X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning, comprising the following steps:

[0010] Step 1: Determine the objective function and determine the historical optimal position pbest of the i-th particle in its own iteration process according to the objective function i and the optimal position gbest of the particle population that has been reached during the iteration process;

[0011] Step 2: Process the pulsar signal based on the particle swarm algorithm, and adaptively adjust the particle swarm algorithm parameters based on the automatic learning machine in reinforcement learning during the pulsar signal processing.

[0012] Optionally, in step 2, the iterative process of the particle swarm algorithm includes a preliminary exploration phase, a learning exploration phase, and a population convergence phase.

[0013] Optionally, in step 2, before the particle swarm algorithm is run, an automatic learning machine in reinforcement learning is used to set the maximum number of iterations stage1 in the preliminary exploration stage, the maximum number of iterations stage2 in the learning exploration stage, and the comprehensive learning probability Pc of different particles. i Parameter dPc of the degree of difference, initial value of particle drift probability And the particle learning object update interval gap is adaptively adjusted; where Pc i For the i-th particle from other particles pbest j The probability of learning, i = (1, 2, ..., N), j ≠ i.

[0014] Optionally, the maximum number of iterations in the preliminary exploration stage stage1, the maximum number of iterations in the learning exploration stage stage2, and the control of the comprehensive learning probability Pc of different particles i Parameter dPc of the degree of difference, initial value of particle drift probability And the process of adaptive adjustment of the particle learning object update interval gap based on the automatic learning machine in reinforcement learning is as follows:

[0015] Step A: Before each particle swarm algorithm runs, the automatic learning machine LA H The action will be selected according to the probability matrix P set inside it, so that the above parameters are increased by a fixed value or decreased by a fixed value or remain unchanged;

[0016] Step B, determine whether the particle swarm algorithm has successfully converged and the time consumption has been reduced: after each particle swarm algorithm is run, if the particle swarm algorithm has successfully converged to the global optimal solution and the algorithm time consumption is reduced compared with the previous run result, then the action taken before the particle swarm algorithm is run is rewarded, and the linear reward and punishment algorithm T is used to update the probability matrix to increase the possibility of the rewarded action being selected again; otherwise, the action taken at the beginning of the particle swarm algorithm iteration is punished, and the linear reward and punishment algorithm T is used to update the probability matrix to reduce the possibility of the punished action being selected again;

[0017] Step C: If the convergence criterion is satisfied When , the particle swarm algorithm iteration terminates and outputs the estimated value of the initial phase and frequency of the pulsar signal This training is completed; if the convergence criterion is not satisfied When , the particle swarm algorithm continues to iterate the search until the convergence criterion is satisfied. in:

[0018] Optionally, the strategy for updating the velocity of the particle population in the preliminary exploration phase and the learning exploration phase is as follows:

[0019] If rand ≤ Pc i

[0020] but

[0021] If rand>Pc i

[0022] but

[0023] Among them: rand, Take random numbers in the interval [0,1] respectively, is the velocity of the ith particle in the dth dimension, w is the inertia factor, c1 and c2 are both acceleration coefficients, and f i(d) is the learning object of the ith particle in the dth dimension; Pc i is the probability of comprehensive learning for the i-th particle, when rand<Pc i , particles conduct comprehensive learning.

[0024] Optionally, the strategy for updating the particle population in the preliminary exploration phase also includes a particle drift operation. The specific process of updating the particle population using the particle drift operation is as follows:

[0025] In the kth iteration, for the i-th particle:

[0026] like

[0027]

[0028]

[0029] in, is the maximum value of the particle velocity in the dth dimension, and are the upper and lower bounds of the search space in the dth dimension, is the probability of random drift of particles in the kth iteration, and The following conditions should be met:

[0030]

[0031] Optionally, the process of adaptively adjusting the inertia factor w, the acceleration coefficient c1, and the acceleration coefficient c2 in the preliminary exploration phase based on the automatic learning machine in reinforcement learning is as follows:

[0032] Step (1), according to the automatic learning machine LA s1 The probability matrix P in the selection action updates the particle velocity position in the preliminary exploration phase so that the particle velocity update parameter increases by a fixed value, decreases by a fixed value, or remains unchanged;

[0033] Step (2) determines whether the exploration range of the particle population has increased and whether the optimal position of the population has been updated: if the exploration range of the particle population has increased and the optimal position of the population has been updated, the automatic learning machine is rewarded for the action taken at the beginning of the iteration, and the linear reward and punishment algorithm T is used to update the probability matrix P; if the exploration range of the particle population has not increased and the optimal position of the population has not been updated, the automatic learning machine is punished for the action taken at the beginning of the iteration, and the linear reward and punishment algorithm T is used to update the probability matrix P;

[0034] Step (3): When the number of iterations k>stage1, enter the learning exploration stage; when the number of iterations k≤stage1, repeat steps (1) and (2) for k+1 iterations until the number of iterations k>stage1 is satisfied.

[0035] Optionally, the process of adaptively adjusting the inertia factor w, the acceleration factor c1, and the acceleration factor c2 in the learning exploration phase based on the automatic learning machine in reinforcement learning is as follows:

[0036] Step 1: According to the automatic learning machine LA s2 The probability matrix P in the learning and exploration phase is used to select an action to update the particle velocity position, so that the particle velocity update parameter increases by a fixed value, decreases by a fixed value, or remains unchanged;

[0037] Step ②, determine whether the fitness of particles in the particle population has been improved: after the particle population speed position update is completed, if the fitness of particles in the particle population has been improved, the automatic learning machine rewards the action taken at the beginning of this iteration, and uses the linear reward and punishment algorithm T to update the probability matrix to increase the possibility of the rewarded action being selected again; if the particles whose fitness in the particle population has been improved are less than the required improvement ratio, the automatic learning machine punishes the action taken at the beginning of this iteration, and uses the linear reward and punishment algorithm T to update the probability matrix to reduce the possibility of the punished action being selected again;

[0038] Step ③: When the number of iterations k>stage2, enter the population convergence stage; when the number of iterations k≤stage2, repeat steps ① and ② until the number of iterations k>stage2.

[0039] Optionally, the strategy for updating the particle population during the population convergence phase is as follows:

[0040]

[0041] Optionally, a linear reward and punishment algorithm T is used to reward the i-th action in the action set α, and the expression of the updated probability matrix P is:

[0042]

[0043] Where: P j is the probability of the jth action being selected in the action set α, k is the number of iterations, and a is the reward step length;

[0044] The linear reward and punishment algorithm T is used to punish the i-th action in the action set α, and the expression of the updated probability matrix P is:

[0045]

[0046] Where: r is the number of elements in the action set α, and b is the penalty step size.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] (1) The present invention divides the iterative process of the IPSO algorithm into the preliminary exploration stage, the learning exploration stage and the population convergence stage, combines multiple particle velocity update strategies in stages, and integrates the excellent characteristics of the CLPSO algorithm and the GPSO algorithm.

[0049] (2) The present invention refers to the CLPSO algorithm in the iterative process of the initial exploration phase and the learning exploration phase of the IPSO algorithm, allowing the i-th particle to be located at the historical optimal position pbest of other particles. j Learning can be carried out to enhance information exchange within the population.

[0050] (3) The present invention refers to the GPSO algorithm during the iteration process of the IPSO algorithm in the population convergence stage, and takes the population optimal position gbest as the most important learning object when updating the particle velocity, so that the particle population converges rapidly.

[0051] (4) The IPSO algorithm proposed in the present invention iterates the particle swarm in a way that has stronger exploration ability and convergence ability than the traditional particle swarm algorithm in the early and late iteration stages, respectively, and exhibits better pulsar signal processing performance.

[0052] (5) Based on the traditional particle swarm algorithm, the present invention divides the iterative process of the traditional particle swarm algorithm into different stages, and adopts different speed update strategies in different stages. An improved IPSO algorithm is proposed for pulsar signal processing, which overcomes the problems of low computational efficiency of traditional optimization algorithms and insufficient reliability of pulsar signal processing by other intelligent optimization algorithms, and significantly improves the computational efficiency while ensuring a high success rate and a low estimation error.

[0053] The present invention realizes adaptive adjustment of key parameters of the IPSO algorithm (i.e., improved into LAIPSO algorithm, Learning Automata based Improved ParticleSwarm Optimization algorithm) through the automatic learning machine (i.e., LA model) in reinforcement learning, further improves the computational efficiency of the pulsar signal processing method, enhances the adaptability of the pulsar signal processing method, and provides support for the rapid implementation of the pulsar navigation algorithm, so as to better cope with the complex and changeable working conditions of the spacecraft when working in orbit.

[0054] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0056] Figure 1 It is a flow chart of an X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning of the present invention;

[0057] Figure 2 is the LA for adaptively adjusting the inertia factor w, acceleration coefficients c1 and c2 in the parameter set S1 in embodiment 2 of the present invention. s1 Schematic diagram of the workflow;

[0058] Figure 3 is the LA for adaptively adjusting the inertia factor w, acceleration coefficients c1 and c2 in the parameter set S2 in embodiment 3 of the present invention. s2 Schematic diagram of the workflow;

[0059] Figure 4 It is the maximum number of iterations stage1 of the initial exploration stage, the maximum number of iterations stage2 of the learning exploration stage, and the comprehensive learning probability Pc of different particles in the parameter set H in Example 1 of the present invention. i Parameter dPc of the degree of difference, initial value of particle drift probability And the particle learning object update interval gap is adaptively adjusted and the LA in Example 4 H Schematic diagram of the workflow;

[0060] Figure 5 It is a comparison curve of the success rate of X-ray pulsar signal processing using IPSO algorithm, PSO algorithm (particle swarm optimization algorithm), DE algorithm (differential evolution algorithm) and LAIPSO algorithm (IPSO algorithm after adaptive adjustment based on LA model);

[0061] Figure 6 It is a time-consuming comparison curve of the algorithms for processing X-ray pulsar signals using IPSO algorithm, PSO algorithm, DE algorithm and LAIPSO algorithm;

[0062] Figure 7 The LAIPSO training effect of using IPSO algorithm, PSO algorithm, DE algorithm and LAIPSO algorithm to process X-ray pulsar signals

[0063] Figure 8 It is a schematic diagram of a curve showing a change in the average relative time consumption of the LAIPSO algorithm according to the present invention as a function of the number of training rounds;

[0064] Fig. 9 It is a schematic diagram of the initial phase error comparison curve of the X-ray pulsar signal processing using the IPSO algorithm, PSO algorithm, DE algorithm and LAIPSO algorithm;

[0065] Fig.10 It is a diagram of the frequency error comparison curve for processing X-ray pulsar signals using the IPSO algorithm, PSO algorithm, DE algorithm and LAIPSO algorithm. DETAILED DESCRIPTION

[0066] In order to make the above-mentioned purposes, features and advantages of the present invention more clear and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. It should be noted that the drawings of the present invention are all simplified and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the implementation of the present invention; the "number" mentioned in the present invention is not limited to the specific number in the examples in the accompanying drawings; the directions or positional relationships indicated by "front", "middle", "back", "left", "right", "up", "down", "top", "bottom", "middle", etc. mentioned in the present invention are based on the directions or positional relationships shown in the drawings of the present invention, and do not indicate or imply that the devices or components referred to must have a specific direction, nor can they be understood as limitations on the present invention.

[0067] See also Figure 1 As shown, a method for processing X-ray pulsar signals based on particle swarm optimization and reinforcement learning includes the following steps:

[0068] Step 1: Determine the objective function LLF, and determine the historical optimal position pbest of the i-th particle in its own iteration process according to the objective function i and the optimal position gbest of the population that the i-th particle population has reached during the iteration process; where, gbest=(gbest 1 ,gbest 2 ,…,gbest D ), i = (1, 2, ..., N), N is the number of particle populations.

[0069] Specifically, for the particle swarm algorithm based on the D search space, the position of the i-th particle is recorded as Then the position of each particle is evaluated by the objective function LLF. The larger the objective function value of the particle position, the better the particle position, and vice versa. The i-th particle will be affected by pbest in the iteration process. i The attraction of gbest generates a velocity v i , and update the formula according to the position Run towards a better fitness, where: d=1,2,…,D。

[0070] Specifically, in step 1, the objective function LLF is defined as:

[0071]

[0072] λ(φ det (t i ))=αh(φ det (t i ))+β (2)

[0073] φ det (t i )=φ0+f s (t-t0) (3)

[0074] Where: λ is the photon rate function of the pulsar signal, φ det is the phase of the pulsar signal, h is the normalized recovery profile function of the pulsar, t i is the pulse arrival time of the i-th photon, α is the flow rate of the pulsar signal, β is the noise flow rate, φ0 is the initial phase of the pulsar signal to be estimated, and f s is the pulsar signal frequency to be estimated.

[0075] Furthermore, φ0 and f s Estimated value of It is expressed as:

[0076]

[0077] Step 2: Update the speed of the particle population based on the improved particle swarm algorithm (IPSO algorithm), and adaptively adjust the IPSO algorithm parameters based on the automatic learning machine (LA model) in reinforcement learning during the particle population speed update process.

[0078] Specifically, the process of updating the speed of the particle population based on the IPSO algorithm includes the preliminary exploration stage, the learning exploration stage and the population convergence stage; and before updating the speed of the particle population, the LA model is used to adjust the maximum number of iterations stage1 in the preliminary exploration stage, the maximum number of iterations stage2 in the learning exploration stage, and the control of different particles Pc i Parameter dPc of the degree of difference, initial value of particle drift probability And the particle learning object update interval gap is adaptively adjusted; where Pc i For the i-th particle from other particles pbest j The probability of learning, j≠i.

[0079] Step 3: In the process of updating the particle population velocity, the parameters are adaptively adjusted based on the automatic learning machine (LA model) in reinforcement learning;

[0080] Specifically, the adaptive adjustment process of IPSO algorithm parameters based on LA model is as follows:

[0081] Step 1), according to the sequential segmented iteration of the IPSO algorithm and the category of the IPSO algorithm speed update parameters, the key parameters of the IPSO algorithm are divided into the particle speed update parameter S1 = {w, c1, c2} in the preliminary exploration stage, the particle speed update parameter S2 = {w, c1, c2} in the learning exploration stage, and the macroscopic parameters that control the overall behavior of the particle population during the iteration process. Three groups.

[0082] Step 2) Use the LA model to divide the above three groups of key parameters in the IPSO algorithm into independent LA s1 , LA s2 and LA H The three groups are adaptively adjusted. Specifically, LA s1 It consists of three independent LAs, each responsible for adjusting the parameters S1 = {w, c1, c2} at the beginning of each iteration in the initial exploration phase; LA s2 It consists of three independent LAs, each responsible for adjusting the parameters S2 = {w, c1, c2} at the beginning of each iteration in the learning exploration phase; LA H It consists of five independent LAs, each responsible for adjusting the parameters at the beginning of each algorithm run. Make adjustments.

[0083] Furthermore, the LA model can be defined using the quaternion {P, α, β, T}:

[0084] P = [p1, p2, p3] is the probability matrix inside the LA model, which controls the probability of the LA model taking different actions;

[0085] α = {α1, α2, α3} is the set of actions that the LA model can take, and the elements in the set correspond to the actions of the LA model to increase the parameter by a fixed value, decrease the parameter by a fixed value, or keep it unchanged;

[0086] β is the input of the LA model. When β=0, it means that the environment gives positive feedback to the LA model, and the LA model updates the probability matrix P to reward the previously taken action and increase the probability of it being selected again. When β=1, it means that the environment gives negative feedback to the LA model, and the LA model updates the probability matrix P to punish the previously taken action and reduce the probability of it being selected again.

[0087] T is a linear reward and punishment algorithm, which is used to update the probability matrix P. When β = 0 at the time t when the probability matrix P is updated, the LA model will i For rewards, there are:

[0088]

[0089] When the probability matrix P is updated at time t and β = 1, the LA model is i Punishment is:

[0090]

[0091] Among them, r is the number of elements in the set α, that is, the number of optional actions of LA; a and b are the reward step size and penalty step size respectively.

[0092] Example 1: Before updating the velocity of the particle population, the LA model LA is used H The maximum number of iterations in the initial exploration stage stage1, the maximum number of iterations in the learning exploration stage stage2, and the comprehensive learning probability Pc of different particles are controlled i Parameter dPc of the degree of difference, initial value of particle drift probability And the particle learning object update interval gap is adaptively adjusted

[0093] The specific process is as follows:

[0094] Step A: Before each particle swarm algorithm runs, the automatic learning machine will select actions according to the probability matrix P set inside it, so that the above parameters increase by a fixed value, decrease by a fixed value, or remain unchanged;

[0095] Step B, determine whether the particle swarm algorithm has successfully converged and the time consumption has been reduced: after each particle swarm algorithm is run, if the particle swarm algorithm has successfully converged to the global optimal solution and the algorithm time consumption is reduced compared with the previous run result, then the action taken before the particle swarm algorithm is run is rewarded, and the linear reward and punishment algorithm T is used to update the probability matrix to increase the possibility of the rewarded action being selected again; otherwise, the action taken at the beginning of the particle swarm algorithm iteration is punished, and the linear reward and punishment algorithm T is used to update the probability matrix to reduce the possibility of the punished action being selected again;

[0096] Step C: If the convergence criterion is satisfied When , the particle swarm algorithm iteration terminates and outputs the estimated value of the initial phase and frequency of the pulsar signal This training is completed; if the convergence criterion is not satisfied When , the particle swarm algorithm continues to iterate the search until the convergence criterion is satisfied. in:

[0097] Example 2: Updating the velocity of the particle population and using the LA model in the initial exploration phase s1 Adaptive adjustment of the inertia factor w, acceleration coefficients c1 and c2 in the initial exploration phase

[0098] 1. The strategy for updating the velocity of the particle population in the initial exploration phase is as follows:

[0099] (1) Update the particle velocity by referring to the comprehensive learning particle swarm algorithm (CLPSO algorithm) so that the i-th particle can obtain the pbest of other particles. j Conduct learning to enhance information exchange within the particle population;

[0100] (2) The strategy for speed update in the initial exploration phase is as follows:

[0101] If rand ≤ Pc i

[0102] but

[0103] If rand>Pc i

[0104] but

[0105] Among them: rand, Take random numbers in the interval [0,1] respectively, is the velocity of the ith particle in the dth dimension, w is the inertia factor, c1 and c2 are both acceleration coefficients, and f i (d) is the learning object of the ith particle in the dth dimension; Pc i is the probability of comprehensive learning for the i-th particle, when rand<Pc i , particles conduct comprehensive learning.

[0106] Furthermore, f i (d) The specific rule for determining the learning object of the i-th particle in the d-th dimension is: randomly select two particles in the particle population and compare their fitness, and take the one with better fitness as the learning object of particle i in the d-th dimension.

[0107] Furthermore, each particle Pc in the population i The value of should satisfy formula (7):

[0108]

[0109] Furthermore, in order to avoid the difficulty of algorithm convergence caused by frequent changes in particle learning objects, the CLPSO algorithm sets the update interval gap of the particle learning object. If and only if the pbest of the i-th particle in a consecutive a (a ≥ gap) iterations i Not updated, f i (d) The learning object will be reselected for the i-th particle.

[0110] Furthermore, in order to further enhance the particle population's ability to explore the search space in the initial exploration phase, a particle drift operation is added in the initial exploration phase, so that the position and velocity of each particle in the particle population are randomly initialized with a certain probability during the iteration process of the initial exploration phase. Specifically, in the kth iteration, for the i-th particle:

[0111] like

[0112]

[0113]

[0114] in, is the maximum value of the particle velocity in the dth dimension; and They are the upper and lower bounds of the search space in the dth dimension respectively; is the probability of random drift of particles in the kth iteration, satisfying:

[0115]

[0116] When the number of iterations k>stage1, the preliminary exploration stage ends and enters the learning exploration stage.

[0117] 2. See Figure 2 As shown in FIG. 1 , the process of adaptively adjusting the inertia factor w, acceleration coefficient c1 and acceleration coefficient c2 in the preliminary exploration phase based on the LA model is as follows:

[0118] Step (1), selecting an action to update the particle velocity position in the preliminary exploration phase according to the probability matrix P in the LA model, so that the particle velocity update parameter increases by a fixed value, decreases by a fixed value, or remains unchanged;

[0119] Step (2) determines whether the exploration range of the particle population has increased and whether the optimal position of the population has been updated: if the exploration range of the particle population has increased and the optimal position of the population has been updated, the LA model is rewarded for the action taken at the beginning of the iteration, and the linear reward and punishment algorithm T is used to update the probability matrix P; if the exploration range of the particle population has not increased and the optimal position of the population has not been updated, the LA model is punished for the action taken at the beginning of the iteration, and the linear reward and punishment algorithm T is used to update the probability matrix P;

[0120] Step (3): When the number of iterations k>stage1, enter the learning exploration stage; when the number of iterations k≤stage1, repeat steps (1) and (2) for k+1 iterations until the number of iterations k>stage1 is satisfied.

[0121] Example 3: Updating the velocity of the particle population and adopting the LA model in the learning exploration phase s2 Adaptively adjust the inertia factor w, acceleration coefficients c1 and c2 in the learning and exploration phase

[0122] 1. The strategy for updating the velocity of the particle population in the learning and exploration phase is as follows:

[0123] In the learning and exploration phase of the IPSO algorithm, the speed update formula is the same as that in the preliminary exploration phase, but the particle drift operation is cancelled, so that the particle population can gradually approach the optimal position gbest of the population after fully exploring the search space.

[0124] 2. See Figure 3 As shown in FIG. 1 , the process of adaptively adjusting the inertia factor w, acceleration coefficient c1, and acceleration coefficient c2 in the learning exploration phase based on the automatic learning machine in reinforcement learning is as follows:

[0125] Step ①, selecting an action to update the particle velocity position in the learning exploration phase according to the probability matrix P in the automatic learning machine, so that the particle velocity update parameter increases by a fixed value, decreases by a fixed value, or remains unchanged;

[0126] Step ②, determine whether the fitness of particles in the particle population has been improved: after the particle population speed position update is completed, if more than a certain proportion of particles in the particle population have improved fitness, the automatic learning machine rewards the action taken at the beginning of this iteration, and uses the linear reward and punishment algorithm T to update the probability matrix to increase the possibility of the rewarded action being selected again; if the particles whose fitness has been improved in the particle population are less than a certain proportion (that is, if the particles whose fitness has been improved in the particle population are less than the required improvement ratio), the automatic learning machine punishes the action taken at the beginning of this iteration, and uses the linear reward and punishment algorithm T to update the probability matrix to reduce the possibility of the punished action being selected again;

[0127] Step ③: When the number of iterations k>stage2, enter the population convergence stage; when the number of iterations k≤stage2, repeat steps ① and ② until the number of iterations k>stage2.

[0128] Example 4: Updating the velocity of the particle population during population convergence

[0129] 1. The strategy for updating the particle population during the population convergence phase is as follows:

[0130]

[0131] 2. After each particle swarm algorithm runs (i.e., judging that the particle swarm algorithm meets the convergence criterion Output pulsar signal initial phase and frequency estimates After that, to LA H The probability matrix of the model is updated.

[0132] Embodiment 5:

[0133] The specific process of applying the above-mentioned X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning to process X-ray pulsar signals is as follows:

[0134] 1. Example

[0135] Taking the pulsar PSR B1821-24 as an example, the Monte Carlo method was used to generate 500 sets of pulsar observation data with different true values ​​and different observation times were used for data processing. In order to comprehensively analyze the advantages of the patent of this invention, the traditional particle swarm algorithm, differential evolution algorithm and IPSO algorithm without the introduction of automatic learning machine were selected as examples to compare with the patent of this invention in terms of algorithm success rate, algorithm time consumption and algorithm error.

[0136] Among them, through the observation of a large number of processing results, the criterion for the algorithm to successfully converge to the global optimal solution is defined as: if and only if the initial phase error of the calculation result is less than or equal to 0.02, the algorithm is considered to have successfully converged to the global optimal solution.

[0137] 2. The processing results of the simulation example are as follows:

[0138] Figure 5 The success rate of the four algorithms converging to the global optimal solution under different observation durations is shown. It can be seen that the success rates of the four algorithms fluctuate with the increase of observation duration. Compared with PSO and DE algorithms, the LAIPSO algorithm and IPSO algorithm proposed in the present invention have certain advantages in calculating the success rate.

[0139] See also Figure 6 and Figure 7The calculation time and relative calculation time of the four algorithms under different observation durations are shown respectively. Among them, the relative calculation time is defined as the ratio of the algorithm time to the observation duration. It can be seen that compared with the other three algorithms, the algorithm time of the LAIPSO algorithm proposed in the patent of this invention is significantly reduced, and it has a significant advantage in calculation efficiency, and this advantage is further expanded as the observation duration increases.

[0140] Figure 8 The average relative time consumption of the LAIPSO algorithm proposed in the present invention is shown as a function of the number of training rounds. The definition of the average relative time consumption is as follows: first, the relative computational time consumption of the LAIPSO algorithm for processing each set of data at different observation times during the training process is recorded, and then the processing results at different observation times are averaged to obtain the average relative time consumption. It can be seen that the LAIPSO algorithm can reduce the computational time consumption through data training, reflecting strong adaptability.

[0141] Fig. 9 and Fig.10 The initial phase error and frequency error of the four algorithms under different observation durations are shown respectively. It can be seen that the calculation errors of the four algorithms gradually decrease with the increase of observation duration. Compared with the DE algorithm, the calculation accuracy of the other three algorithms is higher when the observation duration is longer.

[0142] From the above results, it can be seen that the patent of the present invention significantly reduces the algorithm time consumption and improves the computational efficiency of the pulsar signal processing method while ensuring the success rate and calculation error of the algorithm by improving the particle velocity update strategy and using an automatic learning machine to achieve adaptive adjustment of the key parameters of the algorithm. It enhances the adaptability of the signal processing method and provides strong support for the rapid on-orbit implementation of the pulsar navigation algorithm.

[0143] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for processing X-ray pulsar signals based on particle swarm optimization and reinforcement learning, characterized in that: The following steps are involved: Step 1: Determine the objective function and determine the historical optimal position pbest of the i-th particle in its own iteration process according to the objective function i and the optimal position gbest of the particle population that has been reached during the iteration process; Step 2: Process the pulsar signal based on the particle swarm algorithm, and adaptively adjust the particle swarm algorithm parameters based on the automatic learning machine in reinforcement learning during the pulsar signal processing; The iterative process of the particle swarm algorithm includes the initial exploration phase, the learning exploration phase, and the population convergence phase; Before the particle swarm algorithm is run, the automatic learning machine in reinforcement learning is used to set the maximum number of iterations in the preliminary exploration stage stage1, the maximum number of iterations in the learning exploration stage stage2, and the comprehensive learning probability Pc of different particles. i Parameter dPc of the degree of difference, initial value of particle drift probability And the particle learning object update interval gap is adaptively adjusted; where Pc i For the i-th particle from other particles pbest j The probability of learning, i = (1, 2, ..., N), j ≠ i; The maximum number of iterations in the preliminary exploration stage stage1, the maximum number of iterations in the learning exploration stage stage2, and the comprehensive learning probability Pc of different particles are controlled i Parameter dPc of the degree of difference, initial value of particle drift probability And the process of adaptive adjustment of the particle learning object update interval gap based on the automatic learning machine in reinforcement learning is as follows: Step A: Before each particle swarm algorithm runs, the automatic learning machine LA H The action will be selected according to the probability matrix P set inside it, so that the above parameters are increased by a fixed value or decreased by a fixed value or remain unchanged; Step B, determine whether the particle swarm algorithm has successfully converged and the time consumption has been reduced: after each particle swarm algorithm is run, if the particle swarm algorithm has successfully converged to the global optimal solution and the algorithm time consumption is reduced compared with the previous run result, then the action taken before the particle swarm algorithm is run is rewarded, and the linear reward and punishment algorithm T is used to update the probability matrix to increase the possibility of the rewarded action being selected again; otherwise, the action taken at the beginning of the particle swarm algorithm iteration is punished, and the linear reward and punishment algorithm T is used to update the probability matrix to reduce the possibility of the punished action being selected again; Step C: If the convergence criterion is satisfied When , the particle swarm algorithm iteration terminates and outputs the estimated value of the initial phase and frequency of the pulsar signal This training is completed; if the convergence criterion is not satisfied When , the particle swarm algorithm continues to iterate the search until the convergence criterion is satisfied. in:

2. The X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning according to claim 1, characterized in that: The strategy for updating the velocity of the particle population in the preliminary exploration phase and the learning exploration phase is as follows: If rand ≤ Pc i but If rand>Pc i but Among them: rand, Take random numbers in the interval [0,1] respectively, is the velocity of the ith particle in the dth dimension, w is the inertia factor, c1 and c2 are both acceleration coefficients, and f i (d) is the learning object of the ith particle in the dth dimension; Pc i is the probability of comprehensive learning for the i-th particle, when rand<Pc i , particles conduct comprehensive learning.

3. The X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning according to claim 2, characterized in that: The strategy for updating the particle population in the initial exploration phase also includes particle drift operation. The specific process of updating the particle population using particle drift operation is as follows: In the kth iteration, for the i-th particle: like in, is the maximum value of the particle velocity in the dth dimension, and are the upper and lower bounds of the search space in the dth dimension, is the probability of random drift of particles in the kth iteration, and The following conditions should be met:

4. The X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning according to claim 3 is characterized in that: The process of adaptively adjusting the inertia factor w, acceleration coefficient c1 and acceleration coefficient c2 in the initial exploration phase based on the automatic learning machine in reinforcement learning is as follows: Step (1), according to the automatic learning machine LA s1 The probability matrix P in the selection action updates the particle velocity position in the preliminary exploration phase so that the particle velocity update parameter increases by a fixed value, decreases by a fixed value, or remains unchanged; Step (2) determines whether the exploration range of the particle population has increased and whether the optimal position of the population has been updated: if the exploration range of the particle population has increased and the optimal position of the population has been updated, the automatic learning machine is rewarded for the action taken at the beginning of the iteration, and the linear reward and punishment algorithm T is used to update the probability matrix P; if the exploration range of the particle population has not increased and the optimal position of the population has not been updated, the automatic learning machine is punished for the action taken at the beginning of the iteration, and the linear reward and punishment algorithm T is used to update the probability matrix P; Step (3): When the number of iterations k>stage1, enter the learning exploration stage; when the number of iterations k≤stage1, repeat steps (1) and (2) for k+1 iterations until the number of iterations k>stage1 is satisfied.

5. The X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning according to claim 2, characterized in that: The process of adaptively adjusting the inertia factor w, acceleration coefficient c1 and acceleration coefficient c2 in the learning exploration phase based on the automatic learning machine in reinforcement learning is as follows: Step 1: According to the automatic learning machine LA s2 The probability matrix P in the learning and exploration phase is used to select an action to update the particle velocity position, so that the particle velocity update parameter increases by a fixed value, decreases by a fixed value, or remains unchanged; Step ②, determine whether the fitness of particles in the particle population has been improved: after the particle population speed position update is completed, if the fitness of particles in the particle population has been improved, the automatic learning machine rewards the action taken at the beginning of this iteration, and uses the linear reward and punishment algorithm T to update the probability matrix, increasing the possibility of the rewarded action being selected again; if more than a certain proportion of the fitness of particles in the particle population has not been improved, the automatic learning machine punishes the action taken at the beginning of this iteration, and uses the linear reward and punishment algorithm T to update the probability matrix, reducing the possibility of the punished action being selected again; Step ③: When the number of iterations k>stage2, enter the population convergence stage; when the number of iterations k≤stage2, repeat steps ① and ② until the number of iterations k>stage2.

6. The X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning according to claim 1, characterized in that: The strategy for updating the particle population during the population convergence phase is as follows:

7. The X-ray pulsar signal processing method based on particle swarm algorithm and reinforcement learning according to claim 1, 4 or 5, characterized in that: The linear reward and punishment algorithm T is used to reward the i-th action in the action set α, and the expression of the updated probability matrix P is: Where: P j is the probability of the jth action being selected in the action set α, k is the number of iterations, and a is the reward step length; The linear reward and punishment algorithm T is used to punish the i-th action in the action set α, and the expression of the updated probability matrix P is: Where: r is the number of elements in the action set α, and b is the penalty step size.

Citation Information

Patent Citations

  • A Maximum Likelihood Phase Estimation Method Based on X-ray Pulsars

    CN103776454B

  • Pulsar signal phase delay estimation method considering spacecraft orbital dynamics

    CN110940332B

  • Improved particle swarm algorithm and application thereof

    CN103544526A

  • Dynamic liquid level prediction method of beam-pumping unit based on particle swarm extreme learning machine

    CN110029986A