Error signal processing method and device for circular grating angle measurement system

By optimizing the variational mode decomposition model using the sparrow search algorithm and combining it with Pearson correlation coefficient screening and wavelet threshold denoising, the problem of unstable error signal processing in the circular grating angle measurement system was solved, thus improving measurement accuracy and stability.

CN123111141APending Publication Date: 2026-11-17NATIONAL INSTITUTE OF METROLOGY CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611297226.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In existing circular grating angle measurement systems, the error signal processing is unstable, resulting in poor measurement accuracy. This is especially affected by factors such as installation eccentricity error, installation tilt error, scribing error, and environmental noise.

Method used

The number of modes and penalty factor of the variational mode decomposition model are optimized by using the sparrow search algorithm and a preset fitness function. The effective components and noise components are screened by combining the Pearson correlation coefficient algorithm, and the error signal is accurately reconstructed by wavelet threshold denoising.

Benefits of technology

This method improves the stability and accuracy of error signal processing in circular grating angle measurement systems, overcomes the blindness of parameter setting in traditional methods, and enhances the adaptability and quality of signal decomposition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123111141A_ABST
    Figure CN123111141A_ABST
Patent Text Reader

Abstract

This application relates to an error signal processing method and apparatus for a circular grating angle measurement system. The method acquires the angle error signal of the circular grating angle measurement system; optimizes the number of modes and penalty factor of the variational mode decomposition model based on the sparrow search algorithm and a preset fitness function to obtain the target number of modes and the target penalty factor; processes the angle error signal into the variational mode decomposition model according to the target number of modes and the target penalty factor to obtain multiple intrinsic mode function components; processes each intrinsic mode function component with the angle error signal based on the Pearson correlation coefficient algorithm to obtain each correlation coefficient; performs threshold filtering on each correlation coefficient to obtain effective components and noise components; and superimposes and reconstructs each effective component and each noise component to obtain the target error processing signal, thereby achieving accurate reconstruction of the circular grating angle measurement error signal and improving the stability and accuracy of error signal processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of measurement technology, and more specifically, to an error signal processing method and apparatus for a circular grating angle measurement system. Background Technology

[0002] The circular grating angle measurement system is a high-precision angle measuring device based on the moiré fringe principle. It uses precision engravings on the grating disk in conjunction with a reading head to generate alternating bright and dark moiré fringe signals during relative motion. The photoelectric receiver converts these signals into sinusoidal electrical signals, which are then subdivided and counted electronically to achieve angle measurement.

[0003] Due to its advantages such as high resolution, high precision, and digital output, the circular grating angle measurement system is widely used in precision angle measurement scenarios such as CNC machine tool turntables, robot joints, inertial test turntables, photoelectric tracking equipment, radar antennas, and simulation equipment.

[0004] However, in practical applications, due to factors such as installation eccentricity error, installation tilt error, scribing error, subdivision error, and environmental noise, the measurement signal of the circular grating angle measurement system is often mixed with multiple error components, which seriously affects the measurement accuracy.

[0005] Currently, the measurement signal error processing methods of existing circular grating angle measurement systems typically employ VMD (variational mode decomposition) to separate error signals of different frequency components. However, parameter settings rely on experience and the decomposition effect is unstable, resulting in poor measurement accuracy of circular gratings. Summary of the Invention

[0006] The purpose of this application is to provide an error signal processing method and apparatus for a circular grating angle measurement system, so as to solve the problems of unstable error signal processing and poor measurement accuracy of circular gratings in the existing error processing methods of circular grating angle measurement systems.

[0007] In a first aspect, this application provides an error signal processing method for a circular grating angle measurement system, including: Obtain the angle error signal of the circular grating angle measurement system; Based on the sparrow search algorithm and the preset fitness function, the number of modes and the penalty factor of the variational mode decomposition model are optimized to obtain the target number of modes and the target penalty factor. Based on the target modal number and the target penalty factor, the angle error signal is input into the variational mode decomposition model and processed to obtain multiple intrinsic mode function components. Based on the Pearson correlation coefficient algorithm, the intrinsic mode function components and the angle error signal are processed to obtain the correlation coefficients; the correlation coefficients are then subjected to threshold filtering to obtain the corresponding effective components and the corresponding noise components. The target error processing signal is obtained by superimposing and reconstructing each effective component and each noise component.

[0008] In one embodiment, before the step of superimposing and reconstructing each effective component and each noise component to obtain the target error processing signal, the following steps are included: Wavelet threshold denoising is performed on each noise component to obtain each denoised noise component. The steps of superimposing and reconstructing each effective component and each noise component to obtain the target error processing signal include: The target error processing signal is obtained by superimposing and reconstructing each effective component and each noise component after noise reduction.

[0009] In one embodiment, the step of performing threshold filtering on each correlation coefficient to obtain the corresponding effective component and the corresponding noise component includes: When the correlation coefficient is greater than or equal to the preset screening threshold, the intrinsic mode function components of the corresponding correlation coefficient are determined as effective components; When the correlation coefficient is less than the preset screening threshold, the intrinsic mode function component of the corresponding correlation coefficient is determined as a noise component.

[0010] In one embodiment, the preset screening threshold is calculated using the following formula:

[0011] in, To preset the filtering threshold, The mean of the correlation coefficients is given. The standard deviation of each correlation coefficient is . This is a preset constant.

[0012] In one embodiment, the Pearson correlation coefficient algorithm is as follows:

[0013] in, The correlation coefficient is... This is the angle error signal. This represents the mean value of the corresponding angle error signal. These are the eigenmode function components. This represents the mean value of the corresponding intrinsic mode function components. This represents the number of samples.

[0014] In one embodiment, the preset fitness function is:

[0015] in, The envelope entropy value. , This is the signal envelope containing the mode number and penalty factor of the strain submodal decomposition model.

[0016] In one embodiment, the sparrow search algorithm simulates the division of labor and cooperation mechanism among different individuals in a sparrow population, including three roles: discoverer, follower, and vigilant. The formula for updating the discoverer's location is:

[0017] in, Let t be the location of the discoverer. Let this be the location of the discoverer at time t+1. The maximum number of iterations, It is a random number. This is a warning value. Let Q be a random number following a normal distribution, and L be a matrix with all elements equal to 1. The formula for updating the position of followers is:

[0018] in, Let t be the position of the follower. Let this be the position of the follower at time t+1. The optimal position for the discoverer This is the worst position in the current global context. A matrix whose elements are randomly selected from ±1; The formula for updating the vigilant's position is:

[0019] in, Let t be the position of the vigilant at time t. Let be the position of the vigilant at time t+1. The optimal position globally. These are step size control parameters. It is a random number. , , These are the fitness values ​​for the current individual, the global best, and the global worst, respectively.

[0020] In one embodiment, the step of performing wavelet threshold denoising on each noise component to obtain each denoised noise component includes: Based on the preset wavelet basis function and the preset number of decomposition layers, wavelet decomposition is performed on the corresponding noise components to obtain the signal coefficients of each layer. The wavelet coefficients of each target are obtained by processing each signal coefficient using a soft threshold function. The wavelet coefficients of each target are subjected to inverse wavelet transform to obtain the corresponding noise components after denoising.

[0021] In one embodiment, before the step of processing the angle error signal input to the variational mode decomposition model according to the target mode number and the target penalty factor to obtain multiple intrinsic mode function components, the following steps are included: based on The criterion is to perform outlier removal processing on the angle error signal to obtain the first intermediate signal; Linear interpolation is performed on the outlier locations of the first intermediate signal to obtain the second intermediate signal; The second intermediate signal is normalized to obtain the preprocessed angle error signal.

[0022] Secondly, this application also provides an error signal processing device for a circular grating angle measurement system, characterized in that it includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of any of the above-described error signal processing methods for a circular grating angle measurement system.

[0023] One of the above technical solutions has the following advantages and beneficial effects: In the aforementioned error signal processing method for the circular grating angle measurement system, the angle error signal of the circular grating angle measurement system is obtained; based on the sparrow search algorithm and a preset fitness function, the number of modes and the penalty factor of the variational mode decomposition model are optimized to obtain the target number of modes and the target penalty factor; according to the target number of modes and the target penalty factor, the angle error signal is input into the variational mode decomposition model for processing to obtain multiple intrinsic mode function components; based on the Pearson correlation coefficient algorithm, each intrinsic mode function component and the angle error signal are processed to obtain each correlation coefficient; each correlation coefficient is threshold-filtered to obtain the corresponding effective components and the corresponding noise components; each effective component and each noise component are superimposed and reconstructed to obtain the target error processing signal, thereby achieving accurate reconstruction of the error signal of the circular grating angle measurement system.

[0024] This application uses the sparrow search algorithm and a preset fitness function to adaptively optimize the parameters of the variational mode decomposition model, overcoming the blindness of traditional variational mode decomposition model parameter settings and improving the adaptability and decomposition quality of signal decomposition.

[0025] By calculating the correlation coefficient based on the Pearson correlation coefficient algorithm and filtering the effective and noise components according to the correlation coefficient, the intrinsic mode function components containing error characteristics can be accurately identified, providing a basis for subsequent signal reconstruction. This improves the stability of error signal processing and the processing accuracy of circular grating error signals in the circular grating angle measurement system. Attached Figure Description

[0026] Figure 1 This is a schematic diagram of the error signal processing device of the circular grating angle measurement system in the embodiments of this application; Figure 2 This is a flowchart illustrating the error signal processing method of the circular grating angle measurement system in the embodiments of this application; Figure 3 This is a flowchart illustrating the threshold filtering process in an embodiment of this application. Figure 4 This is a schematic diagram of the convergence curve of the fitness function of the sparrow search algorithm in the embodiments of this application; Figure 5 This is a schematic diagram showing the decomposition results of the sparrow search algorithm and the variational mode decomposition model in the embodiments of this application; Figure 6 This is a schematic diagram illustrating the correlation between intrinsic mode function components and angle error signals in an embodiment of this application. Figure 7 This is a schematic diagram of the three-dimensional curves of the decomposition results of the variational mode decomposition model in the embodiments of this application. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments.

[0028] Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.

[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0030] It should be understood that the data used in this way can be interchanged where appropriate, so as to the embodiments of this application described herein.

[0031] Furthermore, the terms “comprising” and “having”, and any variations thereof, are intended to cover non-exclusive inclusion, such that a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or apparatus.

[0032] In addition, the term "multiple" should mean two or more.

[0033] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0034] The error signal processing method for the circular grating angle measurement system provided in this application can be applied to, for example... Figure 1 The application environment shown.

[0035] The error signal processing device of the circular grating angle measurement system includes a processor 10 and a memory 20. The memory 20 is linked to the processor 10 and is used to store angle error signals, sparrow search algorithm, preset fitness function, variational mode decomposition model, Pearson correlation coefficient algorithm, intrinsic mode function components and target error processing signals.

[0036] The processor 10 is used to acquire the angle error signal of the circular grating angle measurement system; based on the sparrow search algorithm and the preset fitness function, it optimizes the number of modes and the penalty factor of the variational mode decomposition model to obtain the target number of modes and the target penalty factor; according to the target number of modes and the target penalty factor, it processes the angle error signal into the variational mode decomposition model to obtain multiple intrinsic mode function components; based on the Pearson correlation coefficient algorithm, it processes each intrinsic mode function component with the angle error signal to obtain each correlation coefficient; it performs threshold filtering on each correlation coefficient to obtain the corresponding effective components and the corresponding noise components; it superimposes and reconstructs each effective component and each noise component to obtain the target error processing signal, thereby realizing the accurate reconstruction of the error signal of the circular grating angle measurement system.

[0037] In one example, the error signal processing device of the circular grating angle measurement system may also include a display, which can be used to display data such as angle error signal, intrinsic mode function components, and target error processing signal.

[0038] It should be noted that the error signal processing device of the circular grating angle measurement system can be applied to precision angle measurement scenarios such as CNC machine tool turntables, robot joints, inertial test turntables, photoelectric tracking equipment, radar antennas, and simulation equipment.

[0039] In one embodiment, such as Figure 2 As shown, an error signal processing method for a circular grating angle measurement system is also provided, which can be applied to, for example... Figure 1 The error signal processing device shown includes the following error signal processing method: Step S210: Obtain the angle error signal of the circular grating angle measurement system.

[0040] The angle error signal can be the initial angle error signal continuously acquired by the circular grating angle measurement system based on a preset acquisition time.

[0041] For example, a continuous circular angle standard device is used as a true reference to drive the coaxial rotation of the circular grating under test; the standard angle value of the continuous circular angle standard device and the measured angle value output by the circular grating are read synchronously; the difference between the standard angle value and the measured angle value is processed to obtain the corresponding angle error signal; sampling is performed based on a preset time frequency to obtain a continuous initial angle error signal.

[0042] Step S220: Based on the sparrow search algorithm and the preset fitness function, optimize the number of modes and the penalty factor of the variational mode decomposition model to obtain the target number of modes and the target penalty factor.

[0043] Among them, the Sparrow Search Algorithm (SSA), as a novel swarm intelligence optimization algorithm, has the characteristics of fast convergence speed and strong optimization ability, and is suitable for optimizing the key parameters of variational mode decomposition (VMD).

[0044] Variational mode decomposition is an adaptive, fully non-recursive signal decomposition method that decomposes a non-stationary signal into multiple eigenmode functions with finite bandwidth by constructing and solving a variational optimization problem.

[0045] The number of modes (K) refers to how many intrinsic mode components (IMFs) the algorithm decomposes the original signal into. If K is too small, it will lead to under-decomposition (multi-component aliasing), and if K is too large, it will lead to over-decomposition (generating spurious noise components).

[0046] The penalty factor (α) controls the bandwidth constraint for each mode around the center frequency in the frequency domain. A larger α results in a narrower bandwidth and higher frequency purity, but may lead to loss of transient details; a smaller α results in a wider bandwidth but is more prone to mode aliasing. It should be noted that the number of modes is an integer, and the penalty factor is a positive real number. In one example, the preset fitness function is: .

[0047] in, The envelope entropy value. , This is the signal envelope containing the mode number and penalty factor of the strain submodal decomposition model.

[0048] For example, by using the sparrow search algorithm to optimize the number of modes and the penalty factor of the variational mode decomposition model, the optimal target number of modes and the target penalty factor can be determined based on the preset fitness function.

[0049] Step S230: Based on the target mode number and target penalty factor, process the angle error signal input to the variational mode decomposition model to obtain multiple intrinsic mode function components.

[0050] Based on the obtained target mode number and target penalty factor, VMD decomposition is performed on the variational mode decomposition model input to the angle error signal, thereby obtaining multiple intrinsic mode function components. For example, as shown... Figure 5 As shown, IMF1 to IMF8 are the corresponding intrinsic mode function components obtained from the decomposition, and the original data refers to the initial angle error signal.

[0051] Set the target number of modes as The target penalty factor is Based on the target number of modes and the target penalty factor is Perform VMD decomposition on the angle error signal.

[0052] The core idea of ​​VMD is to transform the original signal Decomposed into K eigenmode function components Each intrinsic mode function component has a specific center frequency. And finite bandwidth. This problem can be formulated as a constrained variational problem: , .

[0053] The alternating direction multiplier method (ADMM) is used to solve the problem, and then the following is obtained: Each intrinsic mode function component , , ,… ,like Figure 7 As shown, these are the three-dimensional curves of the intrinsic mode function components from IMF1 to IMF8 obtained by corresponding decomposition.

[0054] Step S240: Based on the Pearson correlation coefficient algorithm, process each intrinsic mode function component and the angle error signal to obtain each correlation coefficient; perform threshold filtering on each correlation coefficient to obtain the corresponding effective component and the corresponding noise component.

[0055] The Pearson correlation coefficient (PCC) algorithm is a statistic that measures the degree of linear correlation between two continuous variables, with values ​​ranging from [-1, 1]. For example, the Pearson correlation coefficient algorithm can be obtained by dividing the covariance by the product of the standard deviations of the two variables.

[0056] In one example, the Pearson correlation coefficient algorithm is as follows: .

[0057] in, The correlation coefficient is... This is the angle error signal. This represents the mean value of the corresponding angle error signal. These are the eigenmode function components. This represents the mean value of the corresponding intrinsic mode function components. This represents the number of samples.

[0058] like Figure 6 The figure shows the Pearson correlation coefficients of the intrinsic mode function components corresponding to IMF1 to IMF8 obtained from the experiment.

[0059] The intrinsic mode function components and the angle error signal are input into the Pearson correlation coefficient algorithm for processing, and then the corresponding correlation coefficients are obtained. The correlation coefficients are then subjected to threshold filtering, and the corresponding effective components and the corresponding noise components are selected according to the adaptive threshold.

[0060] Step S250: Superimpose and reconstruct each effective component and each noise component to obtain the target error processing signal.

[0061] For example, by superimposing and reconstructing each effective component and each noise component, and then performing inverse normalization on the reconstructed signal, the target error processing signal can be obtained, thereby achieving accurate reconstruction of the error signal of the circular grating angle measurement system and improving the error analysis accuracy of the circular grating angle measurement system.

[0062] In the above embodiments, the angle error signal of the circular grating angle measurement system is acquired; based on the sparrow search algorithm and a preset fitness function, the number of modes and the penalty factor of the variational mode decomposition model are optimized to obtain the target number of modes and the target penalty factor; according to the target number of modes and the target penalty factor, the angle error signal is input into the variational mode decomposition model for processing to obtain multiple intrinsic mode function components; based on the Pearson correlation coefficient algorithm, each intrinsic mode function component and the angle error signal are processed to obtain each correlation coefficient; each correlation coefficient is threshold-filtered to obtain the corresponding effective components and the corresponding noise components; each effective component and each noise component are superimposed and reconstructed to obtain the target error processing signal, thereby realizing the accurate reconstruction of the error signal of the circular grating angle measurement system.

[0063] This application uses the sparrow search algorithm and a preset fitness function to adaptively optimize the parameters of the variational mode decomposition model, overcoming the blindness of traditional variational mode decomposition model parameter settings and improving the adaptability and decomposition quality of signal decomposition.

[0064] By calculating the correlation coefficient based on the Pearson correlation coefficient algorithm and filtering the effective and noise components according to the correlation coefficient, the intrinsic mode function components containing error characteristics can be accurately identified, providing a basis for subsequent signal reconstruction. This improves the stability of error signal processing and the processing accuracy of circular grating error signals in the circular grating angle measurement system.

[0065] In one embodiment, before the step of superimposing and reconstructing each effective component and each noise component to obtain the target error processing signal, the method includes: performing wavelet threshold denoising on each noise component to obtain each denoised noise component.

[0066] Wavelet thresholding denoising can employ hard thresholding, soft thresholding, or improved thresholding methods (such as semi-soft thresholding, continuously differentiable functions, or adaptive adjustment factors) to perform wavelet decomposition, thresholding, and wavelet reconstruction.

[0067] In one example, the steps of performing wavelet threshold denoising on each noise component to obtain each denoised noise component include: performing wavelet decomposition on the corresponding noise component based on a preset wavelet basis function and a preset number of decomposition layers to obtain signal coefficients of each layer; processing each signal coefficient based on a soft threshold function to obtain each target wavelet coefficient; and performing inverse wavelet transform on each target wavelet coefficient to obtain the corresponding denoised noise component.

[0068] For example, the process of wavelet thresholding for noise components is as follows: select wavelet basis functions and determine the number of decomposition levels (e.g., 4 levels); perform wavelet decomposition on each noise component to obtain the approximation coefficients and detail coefficients of each level; estimate the noise standard deviation, usually using the median estimate of the first level detail coefficients. .

[0069] in, These are the level of detail coefficients for the first layer. Calculate the general threshold: Applying a soft thresholding function to handle detail coefficients: ,in, For the threshold, These are wavelet coefficients; finally, an inverse wavelet transform is performed to obtain the corresponding denoised noise components. .

[0070] In one example, the step of superimposing and reconstructing each effective component and each noise component to obtain the target error processing signal includes: superimposing and reconstructing each effective component and each noise-reduced noise component to obtain the target error processing signal.

[0071] For example, by superimposing and reconstructing each effective component and each noise component after noise reduction, and then performing inverse normalization on the reconstructed signal, the target error processing signal can be obtained, thereby realizing the accurate reconstruction of the error signal of the circular grating angle measurement system and improving the error analysis accuracy of the circular grating angle measurement system.

[0072] For example, the reconstructed signal can be represented as: ;in, For the set of valid component indices, This is a set of indexes for noise components.

[0073] In the above embodiments, the sparrow search algorithm is combined with the variational mode decomposition model, and with the Pearson correlation coefficient (PCC) algorithm for screening and wavelet threshold denoising (WDD), a complete signal processing flow is constructed. This is of great significance for improving the error analysis accuracy of the circular grating angle measurement system. It can effectively extract the characteristic components of the error signal of the circular grating angle measurement system, suppress noise interference, provide reliable data support for error compensation, and improve the stability and accuracy of the error signal processing of the circular grating angle measurement system.

[0074] In one embodiment, such as Figure 3 As shown, the steps for threshold filtering of each correlation coefficient to obtain the corresponding effective component and the corresponding noise component include: Step S310: When the correlation coefficient is greater than or equal to the preset screening threshold, the intrinsic mode function component of the corresponding correlation coefficient is determined as the effective component.

[0075] The preset filtering threshold can be calculated using an adaptive filtering threshold algorithm.

[0076] In one embodiment, the preset screening threshold is calculated using the following formula: .

[0077] in, To preset the filtering threshold, The mean of the correlation coefficients is given. The standard deviation of each correlation coefficient is . This is a preset constant.

[0078] It should be noted that, The value range is between 0.5 and 1.5.

[0079] For example, the absolute value of the correlation coefficient is obtained by performing absolute value processing on the correlation system; the absolute value of the correlation coefficient is compared with a preset screening threshold, and based on the comparison result, when the correlation coefficient is greater than or equal to the preset screening threshold, it is determined that the corresponding intrinsic mode function component has a high correlation with the initial angle error signal and contains the main feature information, and the intrinsic mode function component of the corresponding correlation coefficient is determined as an effective component.

[0080] Step S320: When the correlation coefficient is less than the preset screening threshold, the intrinsic mode function component of the corresponding correlation coefficient is determined as a noise component.

[0081] The absolute value of the correlation coefficient is compared with a preset screening threshold. Based on the comparison results, when the correlation coefficient is less than the preset screening threshold, it is determined that the correlation between the corresponding intrinsic mode function component and the initial angle error signal is low and it is mainly a noise component. Therefore, the intrinsic mode function component of the corresponding correlation coefficient is determined as a noise component.

[0082] In one embodiment, the sparrow search algorithm simulates the division of labor and cooperation mechanism among different individuals in a sparrow population, including three roles: discoverer, follower, and vigilant. The formula for updating the discoverer's location is: .

[0083] in, Let t be the location of the discoverer. Let this be the location of the discoverer at time t+1. The maximum number of iterations, It is a random number. This is a warning value. Let Q be a random number following a normal distribution, and L be a matrix with all elements equal to 1. The formula for updating the position of followers is: .

[0084] in, Let t be the position of the follower. Let this be the position of the follower at time t+1. The optimal position for the discoverer This is the worst position in the current global context. A matrix whose elements are randomly selected from ±1; The formula for updating the vigilant's position is: .

[0085] in, Let t be the position of the vigilant at time t. Let be the position of the vigilant at time t+1. The optimal position globally. These are step size control parameters. It is a random number. , , These are the fitness values ​​for the current individual, the global best, and the global worst, respectively.

[0086] For example, the parameters of the variational mode decomposition (VMD) model are optimized using the Sparrow Search Algorithm (SSA), with the minimum envelope entropy as the preset fitness function, to determine the target number of modes and the target penalty factor.

[0087] For example, setting the sparrow population size as The search space dimension is , No. The position of a sparrow can be represented as: Sparrow search algorithm parameters: population size Maximum number of iterations T .

[0088] Discoverer ratio The proportion of vigilant individuals .

[0089] Set the search range for variational mode decomposition (VMD) model parameters: number of modes Punishment factor .

[0090] Initialize the sparrow population locations, with each location representing a set of VMD parameters. .

[0091] Calculate the initial fitness value, using the minimum envelope entropy criterion as the fitness function.

[0092] The formula for calculating envelope entropy is: .

[0093] in, , This represents the signal envelope.

[0094] The minimum envelope entropy criterion states that the smaller the envelope entropy of each modal component after decomposition, the better the decomposition effect. Figure 4 As shown.

[0095] Execute SSA to optimize the main loop: update the discoverer's position.

[0096] The discoverer is responsible for finding food sources, and its location is updated using the following formula: .

[0097] in, The maximum number of iterations, It is a random number. This is a warning value. As a safety threshold, For random numbers that follow a normal distribution, It is a matrix whose elements are all 1s.

[0098] Update follower positions.

[0099] Followers forage around the discoverer, and their position is updated using the following formula: .

[0100] in, The optimal position for the discoverer This is the worst position in the current global context. A matrix in which elements are randomly selected ±1.

[0101] Update the vigilant's position. The vigilant's position is updated when it engages in anti-predation behavior, using the following formula: .

[0102] in, The optimal position globally. These are step size control parameters. It is a random number. , , These are the fitness values ​​for the current individual, the global best, and the global worst, respectively.

[0103] Recalculate the fitness value and update the global optimum. After the loop ends, output the optimal number of target modes and the target penalty factor. .

[0104] In one embodiment, before the step of processing the angle error signal input to the variational mode decomposition model according to the target mode number and the target penalty factor to obtain multiple intrinsic mode function components, the following steps are included:

[0105] based on The criteria are as follows: outlier removal is performed on the angle error signal to obtain the first intermediate signal; the outlier positions of the first intermediate signal are linearly interpolated to obtain the second intermediate signal; and the second intermediate signal is normalized to obtain the preprocessed angle error signal.

[0106] For example, based on The criterion is to remove outliers from the angle error signals of the acquired circular grating angle measurement system. If the difference between the data point of the corresponding angle error signal and the mean exceeds 3 times the standard deviation, it is considered an outlier, and the first intermediate signal is obtained.

[0107] Linear interpolation is performed on the outlier positions of the first intermediate signal to complete the second intermediate signal.

[0108] Finally, the second intermediate signal is normalized to obtain the preprocessed angle error signal, thereby improving the accuracy of subsequent angle error signal processing.

[0109] For example, the normalization formula is: .

[0110] in, and These are the mean and standard deviation of the second intermediate signal, respectively.

[0111] It should be understood that, although Figures 2 to 3 The steps in the flowchart are shown sequentially according to the arrows, but these steps are not necessarily executed in the order indicated by the arrows.

[0112] Unless otherwise specified in this document, there is no strict order in which these steps are performed, and they may be performed in any other order.

[0113] and, Figures 2 to 3 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0114] In one embodiment, this application also provides an error signal processing module for a circular grating angle measurement system, comprising: The signal acquisition unit is used to acquire the angle error signal of the circular grating angle measurement system.

[0115] The parameter optimization unit is used to optimize the number of modes and the penalty factor of the variational mode decomposition model based on the sparrow search algorithm and the preset fitness function, so as to obtain the target number of modes and the target penalty factor.

[0116] The intrinsic mode function component acquisition unit is used to process the angle error signal input variational mode decomposition model according to the target mode number and the target penalty factor to obtain multiple intrinsic mode function components.

[0117] The correlation coefficient processing unit is used to process the intrinsic mode function components and angle error signals based on the Pearson correlation coefficient algorithm to obtain the correlation coefficients; and to perform threshold filtering on the correlation coefficients to obtain the corresponding effective components and the corresponding noise components.

[0118] The signal reconstruction unit is used to superimpose and reconstruct each effective component and each noise component to obtain the target error processing signal.

[0119] For specific limitations on the error signal processing module of the circular grating angle measurement system, please refer to the limitations on the error signal processing method of the circular grating angle measurement system mentioned above, which will not be repeated here.

[0120] Each module in the error signal processing module of the aforementioned circular grating angle measurement system can be implemented entirely or partially through software, hardware, or a combination thereof.

[0121] The above modules can be embedded in the processor of the error signal processing device of the circular grating angle measurement system in hardware form or independent of it, or they can be stored in the memory of the error signal processing device of the circular grating angle measurement system in software form, so that the processor can call and execute the corresponding operations of the above modules.

[0122] In one embodiment, such as Figure 1As shown, this application also provides an error signal processing device for a circular grating angle measurement system, characterized in that it includes a memory 20 and a processor 10, the memory 20 storing a computer program, and the processor 10 executing the computer program to implement the steps of any of the above-described error signal processing methods for a circular grating angle measurement system.

[0123] The specific descriptions of the memory 20 and the processor 10 can be found in the descriptions of the controller 10, memory 20 and processor 10 in the above embodiments, and will not be repeated here.

[0124] The processor 10 acquires the angle error signal of the circular grating angle measurement system; based on the sparrow search algorithm and a preset fitness function, it optimizes the number of modes and the penalty factor of the variational mode decomposition model to obtain the target number of modes and the target penalty factor; according to the target number of modes and the target penalty factor, it inputs the angle error signal into the variational mode decomposition model for processing to obtain multiple intrinsic mode function components; based on the Pearson correlation coefficient algorithm, it processes each intrinsic mode function component with the angle error signal to obtain each correlation coefficient; it performs threshold filtering on each correlation coefficient to obtain the corresponding effective components and the corresponding noise components; it superimposes and reconstructs each effective component and each noise component to obtain the target error processing signal, thereby realizing the accurate reconstruction of the error signal of the circular grating angle measurement system.

[0125] In the above embodiments, the processor 10 adaptively optimizes the variational mode decomposition model parameters based on the sparrow search algorithm and the preset fitness function, overcoming the blindness of traditional variational mode decomposition model parameter settings and improving the adaptability and decomposition quality of signal decomposition. The processor 10 calculates the correlation coefficient based on the Pearson correlation coefficient algorithm and filters the effective components and noise components according to the correlation coefficient, which can accurately identify the intrinsic mode function components containing error characteristics, providing a basis for subsequent signal reconstruction, thereby improving the stability of error signal processing and the processing accuracy of circular grating error signals in the circular grating angle measurement system.

[0126] In one embodiment, a computer storage medium is also provided, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the error signal processing method of the circular grating angle measurement system described above are implemented.

[0127] For example, when a computer program is executed by a processor, it performs the following steps: The process involves: acquiring the angle error signal of a circular grating angle measurement system; optimizing the number of modes and penalty factor of a variational mode decomposition model based on a sparrow search algorithm and a preset fitness function to obtain the target number of modes and the target penalty factor; inputting the angle error signal into the variational mode decomposition model based on the target number of modes and the target penalty factor to obtain multiple intrinsic mode function components; processing each intrinsic mode function component with the angle error signal using the Pearson correlation coefficient algorithm to obtain each correlation coefficient; performing threshold filtering on each correlation coefficient to obtain the corresponding effective components and corresponding noise components; and superimposing and reconstructing each effective component and each noise component to obtain the target error processed signal.

[0128] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the division operation methods described above.

[0129] Any references to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory.

[0130] Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory.

[0131] By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), direct memory bus RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0132] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0133] The above-described embodiments are merely examples of several implementation methods of this application. They are described in a relatively specific and detailed manner, but should not be construed as limiting the scope of the patent application.

[0134] It should be noted that, for those skilled in the art, several modifications and improvements can be made without departing from the concept of this application, and these all fall within the scope of protection of this application.

[0135] Therefore, the scope of protection of this patent application shall be determined by the appended claims.

Claims

1. A method for processing error signals in a circular grating angle measurement system, characterized in that, include: Obtain the angle error signal of the circular grating angle measurement system; Based on the sparrow search algorithm and the preset fitness function, the number of modes and the penalty factor of the variational mode decomposition model are optimized to obtain the target number of modes and the target penalty factor. Based on the target number of modes and the target penalty factor, the angle error signal is input into the variational mode decomposition model for processing to obtain multiple intrinsic mode function components; Based on the Pearson correlation coefficient algorithm, the intrinsic mode function components and the angle error signal are processed to obtain the correlation coefficients; the correlation coefficients are then subjected to threshold filtering to obtain the corresponding effective components and the corresponding noise components. The effective components and noise components are superimposed and reconstructed to obtain the target error processing signal.

2. The error signal processing method for the circular grating angle measurement system according to claim 1, characterized in that, Before the step of superimposing and reconstructing each of the effective components and each of the noise components to obtain the target error processing signal, the following steps are included: Each of the noise components is subjected to wavelet threshold denoising to obtain each denoised noise component. The step of superimposing and reconstructing each of the effective components and each of the noise components to obtain the target error processing signal includes: The target error processing signal is obtained by superimposing and reconstructing each effective component and each noise component after noise reduction.

3. The error signal processing method for the circular grating angle measurement system according to claim 1, characterized in that, The step of performing threshold filtering on each of the correlation coefficients to obtain the corresponding effective components and the corresponding noise components includes: When the correlation coefficient is greater than or equal to a preset screening threshold, the intrinsic mode function component of the corresponding correlation coefficient is determined as the effective component; When the correlation coefficient is less than a preset screening threshold, the intrinsic mode function component of the corresponding correlation coefficient is determined as the noise component.

4. The error signal processing method of the circular grating angle measurement system according to claim 3, characterized in that, The preset screening threshold is calculated using the following formula: in, The preset filtering threshold, The mean of the aforementioned correlation coefficients is... The standard deviation of each correlation coefficient is given. This is a preset constant.

5. The error signal processing method for the circular grating angle measurement system according to claim 1, characterized in that, The Pearson correlation coefficient algorithm is as follows: in, The correlation coefficient is... The angle error signal is... This corresponds to the mean value of the angle error signal. The intrinsic mode function components, This corresponds to the mean value of the intrinsic mode function components. This represents the number of samples.

6. The error signal processing method for the circular grating angle measurement system according to claim 1, characterized in that, The preset fitness function is: in, The envelope entropy value. , This refers to the signal envelope corresponding to the mode number and penalty factor of the variational mode decomposition model.

7. The error signal processing method for the circular grating angle measurement system according to claim 1, characterized in that, The sparrow search algorithm simulates the division of labor and cooperation mechanism among different individuals in a sparrow population, including three roles: discoverer, follower, and vigilant. The location update formula for the discoverer is: in, Let t be the location of the discoverer. Let this be the location of the discoverer at time t+1. The maximum number of iterations, It is a random number. This is a warning value. Let Q be a random number following a normal distribution, and L be a matrix with all elements equal to 1. The position update formula for the follower is: in, Let t be the position of the follower. Let this be the position of the follower at time t+1. The optimal position for the discoverer This is the worst position in the current global context. A matrix whose elements are randomly selected from ±1; The formula for updating the location of the vigilant is: in, Let t be the position of the vigilant at time t. Let be the position of the vigilant at time t+1. To be the globally optimal position These are step size control parameters. It is a random number. , , These are the fitness values ​​for the current individual, the global best, and the global worst, respectively.

8. The error signal processing method for the circular grating angle measurement system according to claim 2, characterized in that, The step of performing wavelet threshold denoising on each of the noise components to obtain each denoised noise component includes: Based on the preset wavelet basis function and the preset number of decomposition layers, wavelet decomposition is performed on the corresponding noise components to obtain the signal coefficients of each layer. The signal coefficients are processed using a soft thresholding function to obtain the target wavelet coefficients. Perform inverse wavelet transform on each of the target wavelet coefficients to obtain the corresponding noise components after denoising.

9. The error signal processing method for the circular grating angle measurement system according to any one of claims 1 to 8, characterized in that, Before the step of processing the angle error signal into the variational mode decomposition model based on the target mode number and the target penalty factor to obtain multiple intrinsic mode function components, the following steps are included: based on The criterion is to perform outlier removal processing on the angle error signal to obtain the first intermediate signal; Linear interpolation is performed on the outlier positions of the first intermediate signal to obtain the second intermediate signal; The second intermediate signal is normalized to obtain the preprocessed angle error signal.

10. An error signal processing device for a circular grating angle measurement system, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the error signal processing method of the circular grating angle measurement system according to any one of claims 1 to 9.