Compensation of Rotary Encoders Using Fourier Expansion-Back Propagation Neural Network Optimized by Genetic Algorithm

Hua-Kun Jia, Liandong Yu, Yizhou Jiang, Huining Zhao, Jia-Ming Cao2020

TL;DR

This paper tackles the challenge of improving the accuracy of rotary encoders, crucial components in precision measuring instruments, which are significantly affected by ambient temperature variations. The authors propose a novel method, FE-GABPNN, that combines Fourier expansion, a back-propagation neural network, and a genetic algorithm to effectively compensate for these temperature-induced errors, achieving a remarkable reduction in measurement errors.

What Problem Does This Paper Address?

Precision measuring instruments like articulated coordinate measuring machines (ACMMs) rely heavily on rotary encoders for accurate angle measurements. However, these encoders are susceptible to errors arising from manufacturing imperfections, installation inaccuracies, and, critically, variations in ambient temperature. While previous research has focused on compensating for static errors like eccentricity, the dynamic impact of temperature changes on encoder accuracy has been less thoroughly addressed. This paper aims to bridge this gap by developing a robust method to compensate for angle measurement errors caused by fluctuating ambient temperatures, thereby enhancing the overall precision of these instruments.

Methods

The core of the proposed solution is the Fourier Expansion-Back Propagation Neural Network optimized by Genetic Algorithm (FE-GABPNN). This method innovatively integrates three key components:

  • Fourier Expansion: This technique is used to model the periodic nature of angle measurement errors, particularly at a stable temperature (20°C). It helps to capture the fundamental error patterns.
  • Back Propagation (BP) Neural Network: A BP neural network is employed to learn and compensate for the more complex, non-linear errors, especially those induced by ambient temperature variations. The network takes the angular position and ambient temperature as inputs and predicts the error compensation value.
  • Genetic Algorithm (GA): To overcome the limitations of traditional BP neural network training (e.g., getting stuck in local minima and sensitivity to initial weights), a genetic algorithm is used to optimize the initial weights and biases of the BP network. This global search capability of GA leads to better prediction performance.

The overall process involves:

  1. Calibrating the rotary encoder at various temperatures to collect discrete angle measurement error data.
  2. Using Fourier expansion to model errors at a reference temperature (20°C).
  3. Subtracting these reference errors to obtain "remained discrete error values."
  4. Training the BP neural network with these remained errors, using angular position and ambient temperature as inputs.
  5. Optimizing the BP network's initial parameters (weights and biases) using a genetic algorithm.
  6. Finally, establishing the FE-GABPNN model for angle measurement error compensation.

Datasets

The study utilized a dataset of 483 discrete angle measurement error values. These were obtained from calibrating a rotary encoder installed in an ACMM. The calibration was performed using an autocollimator and a regular optical polygon with 23 faces across seven different temperatures (10°C, 15°C, 20°C, 25°C, 30°C, 35°C, and 40°C). Experiments were repeated three times at each temperature, resulting in the total of 483 data points. For training and validation of the BP neural network, these data sets were randomly divided, with 90% used for training and 10% for validation.

Key Insights and Ideas

  • Temperature is a significant error source: The experiments clearly demonstrated that ambient temperature variations can introduce substantial angle measurement errors in rotary encoders, even at the same angular position.
  • Hybrid approach is powerful: Combining Fourier expansion for periodic errors with a GA-optimized BP neural network for complex, non-linear temperature-dependent errors proves to be a highly effective strategy.
  • GA's role in robust optimization: The genetic algorithm is crucial for finding optimal initial parameters for the BP neural network, preventing it from getting trapped in local minima and leading to more reliable compensation.
  • FE-GABPNN's potential: The proposed method shows promise not only for rotary encoders but also for other precision instruments with rotation joints, such as laser trackers.

Key Results

The FE-GABPNN method achieved a significant reduction in angle measurement errors.

  • Error Reduction: The initial angle measurement errors ranged from -110.2" to 43.9". After compensation using FE-GABPNN, the residual errors were within a much tighter range of -2.2" to 2.5".
  • Mean RMSE: The mean root mean square error (RMSE) of the residual errors after compensation was 0.85".
  • Comparison: The FE-GABPNN method outperformed other methods like standard BP neural network (BPNN), Fourier expansion-BP neural network (FE-BPNN), two-dimensional polynomial fitting, and Fourier expansion-polynomial fitting (FEPF) in terms of mean RMSE and mean extreme deviation of residual errors. Specifically, the RMSE was reduced from 1.20" (FEPF) to 0.85" (FE-GABPNN).

Limitations and Future Work

  • Single Reading Head Limitation: The authors acknowledge that with a single reading head, it is difficult to further improve angle measurement accuracy beyond the current level, as residual errors are comparable to random errors.
  • Future Work - Multi-Reading Heads: To further enhance accuracy, the paper suggests installing multi-reading heads. This approach, along with developing algorithms tailored for them, is proposed as the next step to improve the angle measurement accuracy of rotary encoders, especially when considering ambient temperature effects. The paper also mentions that different arrangements of multi-reading heads can have varying compensation effects.

Summary updated

BibTeX
@misc{jia2020compensation,
  author = {Hua-Kun Jia and Liandong Yu and Yizhou Jiang and Huining Zhao and Jia-Ming Cao},
  title = {{Compensation of Rotary Encoders Using Fourier Expansion-Back Propagation Neural Network Optimized by Genetic Algorithm}},
  year = {2020},
  doi = {10.3390/s20092603},
}
Figure