{'fraction_non_alphanumeric': 0.023826208829712685, 'fraction_numerical': 0.01051156271899089, 'mean_word_length': 5.4324324324324325, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Nonlinear Error Compensation of Capacitive Angular Encoders Based on Improved Particle Swarm Optimization Support Vector Machines

Rotary encoders are widely applied in a variety of industrial fields. However, as the exist of the installation, processing and demodulation circuits errors, the test result of the encoder is superimposed with periodic nonlinear errors and the encoder needs compensation to achieve high measurement accuracy. Traditional methods including the least square method (LSM) and back propagation artificial neural network (BP-ANN), are not capable of addressing nonlinear errors. Thus, a novel method based on improved particle swarm optimization (IPSO) and support vector machines (SVM) is proposed to provide better compensation. The proposed method incorporates the SVM method into the design of the compensation model, and the IPSO algorithm is applied to tune the SVM parameters. To validate the algorithm, four sets of data were obtained from encoders with different numbers of segments. The experimental results show that the IPSO-SVM algorithm has a better prediction precision and the nonlinear standard deviation of 180 petal-shaped numbers has dropped from 0.08° to 0.0005° after compensation over 0° to 360° measurement range. Based on the results, the proposed IPSO-SVM model provided more accurate compensation on the nonlinear errors to the capacitive angular encoders than other method.