Contact encoder qualified detection method and system
By obtaining the encoder application scenario information and operating status collection, combined with the machine learning model, the problem that traditional detection methods are difficult to evaluate the encoder under complex operating conditions is solved, and detailed, accurate and automated detection of encoder quality and performance is achieved.
Patent Information
- Application Number
- CN202410559523.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-05-08
AI Technical Summary
Traditional encoder detection methods are difficult to fully consider the real working state of the encoder under complex operating conditions, resulting in inaccurate evaluation and insufficient adaptability.
By obtaining the application scenario information of the encoder, input it into the pre-trained running state division model, output multiple running state sets, and collect electrical characterization parameters in these states, convert them into quality characteristic matrix, and use the pre-constructed quality evaluation model to perform Evaluation, combined with machine learning models to improve the objectivity and accuracy of detection.
The comprehensive evaluation of the encoder under various working conditions is achieved, the accuracy and efficiency of detection is improved, the flexibility and adaptability of detection is enhanced, human error is reduced, and a detailed and intuitive quality view is provided.
Smart Images

Figure CN118408582B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of encoder detection, and in particular to a contact encoder qualified detection method and system. Background Art
[0002] With the development of industrial automation and precision mechanical equipment, encoders, as key motion control and position detection components, play a vital role in many fields such as robots, CNC machine tools, elevator control, wind power generation, etc.; contact encoders directly sense and measure the rotation or linear motion of the shaft by mechanical means, and convert them into electrical signals, thereby realizing accurate monitoring of the position, speed and direction of the moving object; however, it is crucial to ensure the stability and reliability of the encoder in various application scenarios, which requires strict quality inspection and performance evaluation before leaving the factory.
[0003] However, it is crucial to ensure that the encoder works stably and reliably under various complex working conditions, especially to maintain accurate electrical performance and signal quality in different speed ranges. Traditional encoder detection methods usually rely on static testing and comparison of standard parameters. This method lacks comprehensive consideration of the encoder's actual working conditions to a certain extent, making it difficult to accurately evaluate the encoder's overall quality and adaptability. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a contact encoder qualification detection method and system which can accurately evaluate the quality and performance of the encoder and improve the accuracy and efficiency of detection.
[0005] In a first aspect, the present invention provides a method for detecting a qualified contact encoder, the method comprising:
[0006] Obtain application scenario information of the encoder to be detected;
[0007] Inputting application scenario information of the encoder to be detected into a pre-trained encoder operation state classification model, and outputting an operation state detection set of the encoder to be detected, wherein the operation state detection set includes a plurality of different operation states;
[0008] Based on the running state detection set of the encoder to be detected, the encoder to be detected is tested, and electrical characterization parameters of the encoder to be detected under different running states are collected;
[0009] Convert electrical characterization parameters under different operating conditions into encoder quality characteristic matrix;
[0010] Inputting the encoder quality characteristic matrix into a pre-built encoder quality evaluation model to obtain an encoder quality evaluation result;
[0011] The encoder quality evaluation results are compared and analyzed with the preset encoder quality evaluation standards to obtain the encoder qualified detection results.
[0012] Furthermore, the running state detection set includes a plurality of forward rotation speed intervals, a plurality of reverse rotation speed intervals, a plurality of acceleration detection intervals and a plurality of deceleration detection intervals.
[0013] Furthermore, the electrical characterization parameters include signal frequency, signal phase, signal amplitude, signal noise, signal jitter and dynamic response characteristics.
[0014] Furthermore, the encoder quality characteristic matrix is:
[0015] ;
[0016] in, Indicates the signal frequency of the nth forward speed interval, Indicates the signal phase of the nth forward speed interval, Indicates the signal amplitude of the nth forward speed interval, Represents the signal noise in the nth forward speed range, Indicates the signal jitter in the nth forward speed range, Indicates the dynamic response characteristics of the nth forward speed range;
[0017] Represents the signal frequency of the mth reverse speed interval, Indicates the signal phase of the mth reverse speed interval, represents the signal amplitude of the mth reversal speed interval, represents the signal noise in the mth reverse speed interval, Indicates the signal jitter in the mth reverse speed range, It represents the dynamic response characteristics of the mth reverse speed range;
[0018] represents the signal frequency of the kth acceleration detection interval, represents the signal phase of the kth acceleration detection interval, represents the signal amplitude of the kth acceleration detection interval, represents the signal noise of the kth acceleration detection interval, represents the signal jitter of the kth acceleration detection interval, represents the dynamic response characteristics of the kth acceleration detection interval;
[0019] represents the signal frequency of the tth deceleration detection interval, represents the signal phase of the tth deceleration detection interval, represents the signal amplitude of the tth deceleration detection interval, represents the signal noise of the t-th deceleration detection interval, represents the signal jitter of the tth deceleration detection interval, It represents the dynamic response characteristics of the tth deceleration detection interval.
[0020] Furthermore, the method for obtaining the encoder quality characteristic moment includes:
[0021] Define electrical characterization parameter sets;
[0022] For each electrical characterization parameter, data preprocessing is performed, and the preprocessing methods include normalization and standardization;
[0023] Design the dimensions and structure of the encoder quality characteristic matrix;
[0024] Fill in the electrical characterization parameter values into the constructed quality characteristics matrix.
[0025] Furthermore, the method for constructing the encoder quality evaluation model includes:
[0026] Collect electrical characterization parameter data of the encoder under different operating conditions, and preprocess the collected data, including missing value processing, outlier detection and correction, data standardization and normalization;
[0027] Perform feature extraction and engineering processing on the pre-processed electrical characterization parameters to generate feature variables;
[0028] Selecting machine learning models as the basis of the encoder quality evaluation model, the machine learning models including linear regression, logistic regression, support vector machine, decision tree, random forest, neural network and deep neural network;
[0029] Divide the feature variables into training set, validation set and test set;
[0030] Use the training set to train the encoder quality evaluation model;
[0031] Use the validation set to evaluate the performance of the encoder quality assessment model on unseen data;
[0032] Use the test set to perform a final evaluation of the tuned encoder quality assessment model;
[0033] The trained encoder quality evaluation model is encapsulated into an easy-to-call interface and integrated into the detection process.
[0034] Furthermore, the preset encoder quality evaluation criteria include signal frequency stability, signal phase accuracy, signal amplitude consistency, signal noise level, signal jitter index and dynamic response characteristics.
[0035] On the other hand, the present application also provides a contact encoder qualification detection system, the system comprising:
[0036] An information acquisition module, used to acquire application scenario information of the encoder to be detected;
[0037] An operating state classification module is used to input application scenario information of the encoder to be detected into a pre-trained encoder operating state classification model, and output an operating state detection set of the encoder to be detected, wherein the operating state detection set includes a plurality of different operating states;
[0038] A dynamic test module is used to test the encoder to be detected according to the running state detection set of the encoder to be detected, and collect electrical characterization parameters of the encoder to be detected under different running states;
[0039] A quality characteristic matrix generation module, used for converting electrical characterization parameters under different operating conditions into an encoder quality characteristic matrix;
[0040] The quality evaluation model module is used to input the encoder quality characteristic matrix into the pre-built encoder quality evaluation model to obtain the encoder quality evaluation result;
[0041] The detection result determination module is used to compare and analyze the encoder quality evaluation result with the preset encoder quality evaluation standard to obtain the encoder qualified detection result.
[0042] In a third aspect, the present application provides an electronic device, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, and the computer program, when executed by the processor, implements the steps of any one of the above methods.
[0043] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps in any one of the above-mentioned methods when executed by a processor.
[0044] Compared with the prior art, the invention has the following beneficial effects: the method can comprehensively evaluate the performance of the encoder under various working conditions, including forward rotation, reverse rotation, acceleration and deceleration, etc., through a plurality of different operating state sets; the electrical characterization parameters involved in the method provide a detailed and comprehensive evaluation of the encoder performance;
[0045] Converting electrical characterization parameters under different operating conditions into encoder quality characteristic matrix helps to form a more intuitive view of encoder quality, which is convenient for subsequent analysis and comparison;
[0046] The pre-built encoder quality evaluation model is used for evaluation, which enhances the objectivity and accuracy of the evaluation. It can adapt to encoders of different types and specifications, and can adjust the detection parameters according to specific application scenarios, with strong flexibility and adaptability.
[0047] The entire testing process is automated, from information acquisition to test result determination, which greatly improves testing efficiency and reduces the possibility of human error;
[0048] In summary, this contact encoder qualification inspection method can accurately evaluate the quality and performance of the encoder in a comprehensive, detailed and automated manner, thereby improving the accuracy and efficiency of inspection. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a flow chart of the present invention;
[0050] Figure 2 is a flow chart of a method for constructing an encoder quality evaluation model;
[0051] Figure 3 It is the structural diagram of the contact encoder qualification detection system. DETAILED DESCRIPTION
[0052] In the description of this application, those skilled in the art should know that this application can be implemented as a method, an apparatus, an electronic device, and a computer-readable storage medium. Therefore, this application can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, this application can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.
[0053] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, flash memories, optical fibers, optical disc read-only memories, optical storage devices, magnetic storage devices, or any combination of the above. In the present application, computer-readable storage media can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device.
[0054] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws.
[0055] The present application describes the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.
[0056] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.
[0057] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.
[0058] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0059] The present application is described below in conjunction with the drawings in the present application.
[0060] Embodiment 1: Figure 1 to Figure 2 As shown, the contact encoder qualified detection method of the present invention specifically includes the following steps:
[0061] S1. Obtain application scenario information of the encoder to be detected;
[0062] Step S1 completes the comprehensive acquisition and systematic sorting of the application scenario information of the encoder to be tested, laying a solid foundation for subsequent encoder testing and quality evaluation based on actual working conditions; this process fully reflects the application-oriented and working condition-based encoder testing concept, which helps to ensure that the encoder has excellent stability and reliability in actual use;
[0063] According to the model, specifications, functional characteristics and market demand of the encoder to be tested, identify its application fields, understand the basic working principles, process flow, equipment composition, and the role and functional requirements of the encoder in these fields;
[0064] Communicate with customers, equipment manufacturers, and industry experts to understand the detailed requirements and expected performance of encoders in specific application scenarios. At the same time, collect relevant technical documents such as national standards, industry standards, and internal corporate specifications as an important basis for setting encoder quality evaluation standards;
[0065] The collected information on various application scenarios is sorted, summarized, and standardized to form a structured description of the application scenario.
[0066] In this step, by deeply understanding the specific application fields, working principles, process flows and functional requirements of the encoder to be tested, it is possible to ensure that the testing procedure is highly targeted and simulate the use environment of the encoder under real working conditions, so as to more accurately evaluate the performance of the encoder; testing based on actual working conditions and user expected performance is helpful to evaluate whether the encoder can meet the needs of a specific environment, ensure its stability and reliability in actual applications, and reduce the failure rate; by collecting technical documents such as national standards, industry standards and internal enterprise specifications, a standardized and systematic quality evaluation system can be formed to make the testing and evaluation of encoders more scientific and standardized; communication with customers, equipment manufacturers and industry experts helps to accurately grasp the needs of the market and users, thereby guiding the continuous improvement and optimization of products; identifying and solving possible problems and difficulties in the early stages of design, reducing risks in the production process, and improving the success rate and market competitiveness of the final product;
[0067] In summary, the S1 step provides a solid foundation for customized inspection and quality control of encoders, ensuring that the encoders meet specific performance requirements during actual use, thereby enhancing customer satisfaction and market trust.
[0068] S2, inputting the application scenario information of the encoder to be detected into a pre-trained encoder operation state classification model, and outputting an operation state detection set of the encoder to be detected, wherein the operation state detection set includes a plurality of different operation states;
[0069] The running state detection set includes a plurality of forward rotation speed intervals, a plurality of reverse rotation speed intervals, a plurality of acceleration detection intervals and a plurality of deceleration detection intervals;
[0070] Step S2 uses an advanced operating state classification model to convert the application scenario information of the encoder to be tested into a specific, customized operating state detection set, ensuring that the subsequent dynamic test can accurately simulate the complex working conditions of the encoder in actual work, and comprehensively evaluate its electrical performance and signal quality in different speed ranges and acceleration and deceleration processes, thereby effectively solving the problem that traditional detection methods cannot fully consider the actual working state of the encoder, and improving the accuracy and applicability of quality inspection before leaving the factory;
[0071] The method for constructing the encoder operation state division model includes:
[0072] S21. Collect the actual working data of the encoder under different working conditions, including the electrical signal output of the encoder under different operating conditions of forward rotation, reverse rotation, acceleration and deceleration, as well as the corresponding speed range and working environment parameter information; clean, denoise, standardize, process missing values and perform feature engineering on the data;
[0073] S22, dividing the preprocessed data into a training set, a validation set and a test set;
[0074] S23, selecting a machine learning model as the basis of the model, wherein the machine learning model includes a decision tree, a support vector machine, and a neural network;
[0075] S24. Design a model architecture, wherein the model architecture includes the number of network layers, activation functions, loss functions, and optimizers;
[0076] S25, initialize model parameters, use the training set to train the model and adjust hyperparameters;
[0077] S26. Use the validation set and test set to evaluate the model performance, calculate the evaluation index, and optimize the model based on the evaluation results;
[0078] S27. Package the trained model and integrate it into the contact encoder qualification detection system.
[0079] In this step, through this model, according to the specific application scenario information of the encoder to be detected, a detection set including forward, reverse, acceleration, deceleration and other different operating states can be output; thereby more accurately reflecting the situations that may occur in the actual work of the encoder, and improving the pertinence and applicability of the detection; by simulating the electrical performance and signal quality of the encoder in different speed ranges and acceleration and deceleration processes, the working state of the encoder can be comprehensively evaluated; it is helpful to discover possible problems or potential risks and take corresponding measures to solve them, thereby improving the stability and reliability of the encoder; traditional encoder detection methods often rely on static testing and comparison of standard parameters, lacking a comprehensive consideration of the actual working state of the encoder; it can more accurately simulate the complex working conditions of the encoder in actual work, thereby effectively solving the limitations of traditional methods; by inputting the application scenario information of the encoder into the operating state division model, a more accurate operating state detection set can be obtained, thereby improving the accuracy and applicability of quality detection; it is helpful to discover potential problems early and conduct effective quality control, thereby improving product quality and customer satisfaction;
[0080] In summary, the encoder operation status classification system constructed using this model can provide more comprehensive and accurate information in the quality detection process, thereby effectively improving the quality and reliability of the encoder;
[0081] S3. Based on the running state detection set of the encoder to be detected, the encoder to be detected is tested, and electrical characterization parameters of the encoder to be detected under different running states are collected;
[0082] The electrical characterization parameters include signal frequency, signal phase, signal amplitude, signal noise, signal jitter and dynamic response characteristics;
[0083] In step S3, professional test environment and equipment are used to perform dynamic tests on the encoder to be tested in strict accordance with the running state detection set, and the electrical characterization parameters of the encoder under different running states are comprehensively and accurately collected; this process overcomes the limitations of traditional static testing, truly reflects the electrical performance of the encoder under complex working conditions, and provides detailed and reliable data support for subsequent performance evaluation and quality assessment;
[0084] Based on the running status detection set of the encoder to be detected, the influencing factors for testing the encoder to be detected include:
[0085] Test environment preparation: Before testing, ensure that the test environment meets the expected application scenario requirements; this involves the control of temperature, humidity, and vibration to ensure the accuracy and reliability of the test results;
[0086] Test equipment selection: Choose appropriate test equipment to test the encoder, including oscilloscopes, signal generators, and spectrum analyzers; these can help collect electrical characterization parameters of the encoder under different operating conditions;
[0087] Test method, design test scheme according to the encoder's running state detection set; this includes simulating the encoder's different working conditions of forward rotation, reverse rotation, acceleration and deceleration, and recording the corresponding electrical signal output;
[0088] Electrical characterization parameter collection: During the test, the electrical signal output of the encoder under different operating conditions is collected; electrical characterization parameters include signal frequency, phase, amplitude, noise, jitter, and dynamic response characteristics;
[0089] Data recording and analysis: record and analyze the collected electrical signal data to ensure accurate and reliable electrical characterization parameters;
[0090] Test result verification: Verify the test results to ensure the credibility and repeatability of the test results.
[0091] In this step, the electrical performance of the encoder can be fully understood through dynamic testing of the encoder under different operating conditions; dynamic testing can overcome the limitations of traditional static testing and truly reflect the electrical performance of the encoder under complex working conditions, including performance in different speed ranges, acceleration and deceleration processes; using professional testing environment and equipment, and strictly testing according to the operating state detection set of the encoder to be tested can improve the reliability and accuracy of the test results; the collected electrical characterization parameters provide detailed and reliable data support for subsequent performance evaluation and quality evaluation, making the evaluation more objective and accurate; by collecting and analyzing the electrical characterization parameters under different operating conditions, the adaptability and stability of the encoder under various working conditions can be accurately evaluated, thereby improving the reliability and stability of the encoder;
[0092] In summary, the main effect of step S3 is to ensure a comprehensive understanding of the electrical performance of the encoder, improve the reliability and accuracy of the test results, and provide important data support for subsequent performance evaluation and quality assessment.
[0093] S4, converting electrical characterization parameters under different operating conditions into encoder quality characteristic matrix;
[0094] In the process of contact encoder qualification detection, step S4 aims to integrate and structure the electrical characterization parameters of the encoder to be detected under different operating conditions to form an encoder quality characteristic matrix; this matrix is the key bridge connecting the actual test data and the encoder quality evaluation model, and it comprehensively reflects the comprehensive performance of the electrical performance of the encoder under various operating conditions in mathematical form; the method for obtaining the encoder quality characteristic moment includes:
[0095] Define the electrical characterization parameter set, including signal frequency, signal phase, signal amplitude, signal noise, signal jitter and dynamic response characteristics; these parameters are the core indicators for evaluating the electrical performance of the encoder, corresponding to the periodicity, synchronization, strength, purity, stability and ability to follow motion changes of the encoder output signal;
[0096] For each electrical characterization parameter, data preprocessing is performed according to its physical meaning and measurement unit; the preprocessing methods include normalization and standardization, which convert each parameter value to the same scale, eliminate the influence of the dimension and order of magnitude differences between different parameters, and make the items in the quality characteristic matrix comparable;
[0097] Design the dimensions and structure of the encoder quality characteristic matrix;
[0098] Fill the electrical characterization parameter values into the constructed quality characteristic matrix according to the corresponding operating status and parameter category;
[0099] The encoder quality characteristic matrix is:
[0100] ;
[0101] in, Indicates the signal frequency of the nth forward speed interval, Indicates the signal phase of the nth forward speed interval, Indicates the signal amplitude of the nth forward speed interval, Represents the signal noise in the nth forward speed range, Indicates the signal jitter in the nth forward speed range, Indicates the dynamic response characteristics of the nth forward speed range;
[0102] Represents the signal frequency of the mth reverse speed interval, Indicates the signal phase of the mth reverse speed interval, represents the signal amplitude of the mth reversal speed interval, represents the signal noise in the mth reverse speed interval, Indicates the signal jitter in the mth reverse speed range, It represents the dynamic response characteristics of the mth reverse speed range;
[0103] represents the signal frequency of the kth acceleration detection interval, represents the signal phase of the kth acceleration detection interval, represents the signal amplitude of the kth acceleration detection interval, represents the signal noise of the kth acceleration detection interval, represents the signal jitter of the kth acceleration detection interval, represents the dynamic response characteristics of the kth acceleration detection interval;
[0104] represents the signal frequency of the tth deceleration detection interval, represents the signal phase of the tth deceleration detection interval, represents the signal amplitude of the tth deceleration detection interval, represents the signal noise of the t-th deceleration detection interval, represents the signal jitter of the tth deceleration detection interval, It represents the dynamic response characteristics of the tth deceleration detection interval.
[0105] In this step, by integrating the electrical characterization parameters under different operating conditions, the encoder quality characteristic matrix provides a comprehensive evaluation of the comprehensive performance of the encoder; it enables the evaluator to understand the performance of the encoder under various working conditions in a comprehensive framework; the data preprocessing step ensures the comparability between the various electrical parameters and eliminates the influence of dimension and order of magnitude differences; it enables the evaluator to intuitively compare the performance of the encoder under different operating conditions and better understand their differences; the designed encoder quality characteristic matrix has a clear structure, making the data expression more intuitive and easy to understand; each parameter has its specific position, which helps the evaluator to quickly locate and analyze the performance of the encoder under a specific operating state; the encoder quality characteristic matrix presents the comprehensive results of the electrical characterization parameters in mathematical form, providing quantitative evaluation indicators for subsequent quality evaluation; this enables the evaluator to make objective evaluations and decisions based on the data; the final encoder quality characteristic matrix is an objective description of the encoder performance, which can serve as an important basis for the evaluator to make decisions; by comparing and analyzing with the preset encoder quality evaluation standards, the evaluator can accurately determine whether the encoder meets the requirements, and thus make corresponding qualified detection decisions;
[0106] In summary, the beneficial effect of step S4 is that it transforms complex electrical characterization parameters into a structured, comparable, and quantitative quality characteristic matrix, which provides an important data basis and decision support for subsequent quality evaluation.
[0107] S5, inputting the encoder quality characteristic matrix into a pre-built encoder quality evaluation model to obtain an encoder quality evaluation result;
[0108] Step S5 uses the pre-built encoder quality evaluation model to conduct an in-depth analysis of the encoder quality characteristic matrix to quantitatively evaluate the overall quality and adaptability of the encoder. With the help of advanced data analysis technology and machine learning algorithms, the electrical performance of the encoder under various operating conditions is comprehensively evaluated, which improves the scientificity and accuracy of the detection.
[0109] The method for constructing the encoder quality evaluation model includes:
[0110] S51. Collect electrical characterization parameter data of the encoder under different operating conditions, and pre-process the collected data, including missing value processing, outlier detection and correction, data standardization and normalization, to ensure data integrity and consistency;
[0111] S52, performing feature extraction and engineering processing on the preprocessed electrical characterization parameters to generate feature variables;
[0112] S53, selecting a machine learning model as the basis of the model, wherein the machine learning model includes linear regression, logistic regression, support vector machine, decision tree, random forest, neural network and deep neural network;
[0113] S54, dividing the feature variables into a training set, a validation set and a test set;
[0114] S55. Use the training set to train the model and continuously update the model parameters through the optimization strategy to minimize the loss function between the predicted results and the true labels;
[0115] S56. Use the validation set to evaluate the performance of the model on unseen data and improve the generalization ability of the model;
[0116] S57. Use the test set to perform a final evaluation on the tuned model to ensure stability and generalization performance.
[0117] S58. Encapsulate the trained model into an easy-to-call interface and integrate it into the detection process.
[0118] In this step, the actual collected encoder electrical characterization parameter data is used to ensure that the evaluation is based on the actual operating status and reflects the real working performance; rigorous data preprocessing steps ensure the integrity, consistency and validity of the data, providing a reliable basis for subsequent analysis; feature extraction and engineering processing transform the original electrical parameters into explanatory feature variables to fully capture the complex characteristics of encoder performance; spanning multiple dimensions such as basic statistics, time series, and frequency domain, it helps to reveal hidden failure modes and quality-related laws; a diversified machine learning model is used to adapt to different characteristics and problem complexities and improve the model prediction ability; through iterative optimization on the training set, the model parameters are refined. Fine-tuning enhances the model's ability to learn and model the relationship between electrical performance and quality level; the use of validation and test sets ensures that the model not only performs well on training data, but also maintains stable prediction performance on new samples, effectively preventing overfitting and improving the practical application value of the model; strict validation and testing processes ensure that the model can still accurately and reliably perform quality assessment when faced with unknown encoder data; encapsulating the trained model as a convenient interface simplifies the application of the model in the actual detection process, facilitating rapid integration and updating; through automated model application, the time and subjective errors of manual analysis are reduced, the process of encoder quality detection and assessment is accelerated, and work efficiency is improved;
[0119] To summarize, this step uses the pre-built encoder quality evaluation model to conduct an in-depth analysis of the encoder quality characteristic matrix, which not only realizes the accurate quantitative evaluation of the encoder quality, but also significantly enhances the scientificity, accuracy and efficiency of encoder quality detection through multiple advantages such as data-driven, multi-dimensional feature insights, machine learning empowerment, robustness and generalization capability assurance, process integration and efficiency improvement.
[0120] S6, comparing and analyzing the encoder quality evaluation result with the preset encoder quality evaluation standard to obtain the encoder qualified detection result;
[0121] Step S6 objectively and impartially evaluates whether the encoder meets the qualified standards through rigorous comparison and analysis of the encoder quality evaluation results and the preset quality evaluation standards, thereby completing the entire contact encoder qualified inspection process; this process is closely combined with the technical specifications and actual needs in the encoder inspection field, ensuring the scientificity, fairness and traceability of the inspection results, and providing strong support for the factory acceptance, application selection and subsequent maintenance of the encoder; the following is a detailed introduction to step S6:
[0122] Compare each electrical performance index in the encoder quality evaluation result with the preset standard one by one; for each index, check whether it exceeds the corresponding qualified threshold; for continuous indexes, calculate its relative deviation to determine whether it is within the allowable range; for discrete indexes, directly compare whether it conforms to the category specified in the standard;
[0123] For results involving multiple operating states, each state needs to be compared separately to ensure that the encoder can meet the standard requirements under all expected working conditions;
[0124] Based on the comparison results, the encoder is comprehensively judged; if all key electrical performance indicators meet the preset standards, the encoder is judged to be "qualified", indicating that it has good stability and reliability in the expected application scenario;
[0125] The comparison and analysis process and conclusions are organized into an encoder qualified test report, which records in detail the actual values of various electrical performance indicators, the comparison with the standards, the final qualified test results and classification; ensure the proper preservation of the test data and reports to form an encoder quality file;
[0126] The preset encoder quality evaluation criteria include:
[0127] Signal frequency stability, which stipulates that the frequency of the output signal of the encoder should be within the specified stable range under various operating conditions; ensuring that the encoder can provide stable periodic pulses under various speed change conditions for accurate measurement of position and speed;
[0128] Signal phase accuracy, setting the maximum allowable deviation between the encoder output signal phase and the actual motion position, especially in multi-channel encoders, the synchronization of the phase relationship between channels should also have clear requirements; ensure that the phase information provided by the encoder can accurately reflect the real-time position and motion direction of the measured object;
[0129] Signal amplitude consistency stipulates that the amplitude of the output signal of the encoder should be kept within the specified range under all operating conditions, and there may be a certain tolerance between the minimum and maximum values allowed; ensuring the stability of the signal amplitude is conducive to the processing and anti-interference ability of the subsequent circuit, while avoiding measurement errors or system malfunctions caused by sudden changes in amplitude;
[0130] Signal noise level, sets the upper limit of the noise level of the encoder output signal, usually measured by signal-to-noise ratio and total harmonic distortion parameters; reduces the impact of noise on signal quality, improves measurement accuracy and the system's anti-interference ability;
[0131] Signal jitter index, which defines the jitter parameters of the encoder output signal; these parameters are expressed in time and angle units; ensure the timing stability of the signal, especially in high-speed or high-precision applications, signal jitter directly affects positioning accuracy and system response speed;
[0132] Dynamic response characteristics specify the performance indicators of the encoder when facing rapid motion changes; these parameters should be set to reasonable values according to the needs of the actual application scenario; ensure that the encoder can still quickly and accurately track motion changes under dynamic conditions, and maintain good tracking and control accuracy;
[0133] The influencing factors for setting the preset encoder quality evaluation standard include:
[0134] Application scenario requirements: Encoders are used in different fields such as robots, CNC machine tools, elevator control, and wind power generation. Each field has different performance requirements for encoders. Therefore, the evaluation criteria should be set according to the working conditions of specific application scenarios.
[0135] System integration requirements: The encoder needs to work with control systems, motors, sensors and other equipment. The evaluation criteria should consider factors such as system integration compatibility, communication protocols, and interface requirements to ensure that the encoder performance meets the overall system requirements.
[0136] Industry-specific standards: Some industries have more stringent encoder performance requirements, and evaluation criteria need to be set based on industry-specific standards or specifications;
[0137] The product manual, a technical document provided by the manufacturer, specifies the encoder's electrical performance indicators, working conditions, environmental adaptability and other information, and is an important basis for setting evaluation standards;
[0138] Quality assurance agreement: The quality assurance agreement or service contract signed between the manufacturer and the customer contains specific performance indicators, warranty period, and failure rate requirements, which should be included in the evaluation criteria;
[0139] Historical test data: By analyzing the data of previous encoder tests, common failure modes and performance shortcomings can be discovered, which helps to set evaluation standards in a targeted manner.
[0140] User feedback and complaints, users' actual usage experience, fault reports, and improvement suggestions reflect the performance of the encoder in actual applications and help to improve and adjust the evaluation criteria.
[0141] In this step, the various electrical performance indicators in the encoder quality evaluation results are carefully compared to ensure a comprehensive examination of the encoder performance; according to the preset standards, the relative deviation of the continuous indicators is calculated, and the discrete indicators are directly compared in categories to ensure that the encoder meets the standard requirements under all expected working conditions and accurately judge whether it meets the qualified standards; based on the comparison results of various electrical performance indicators, the encoder is comprehensively judged to clarify its stability and reliability in the expected application scenarios, which helps users quickly understand the overall quality level of the encoder; the encoder qualified inspection report is compiled to record in detail the actual values of various electrical performance indicators, the comparison with the standards, the final qualified inspection results and classification, and form a complete quality file for easy query, traceability and management; the preset quality evaluation standards fully consider various factors to ensure the pertinence and applicability of the standards and effectively guide the encoder performance evaluation; it provides strong data support for the factory acceptance, application selection and later maintenance of the encoder, which helps users make wise purchasing decisions, ensure the encoder performs at its best in actual applications, reduce the risk of failure, and ensure stable operation of the equipment;
[0142] In summary, this step forms standardized test reports and files through scientific and reasonable comparison analysis and compliance judgment, realizes a comprehensive and accurate evaluation of encoder performance, and provides strong support for the full life cycle management of encoders based on adaptability standard settings, which significantly improves the scientificity, fairness and practicality of encoder testing.
[0143] Embodiment 2: Figure 3 As shown, the contact encoder qualification detection system of the present invention specifically includes the following modules:
[0144] An information acquisition module, used to acquire application scenario information of the encoder to be detected;
[0145] An operating state classification module is used to input application scenario information of the encoder to be detected into a pre-trained encoder operating state classification model, and output an operating state detection set of the encoder to be detected, wherein the operating state detection set includes a plurality of different operating states;
[0146] A dynamic test module is used to test the encoder to be detected according to the running state detection set of the encoder to be detected, and collect electrical characterization parameters of the encoder to be detected under different running states;
[0147] A quality characteristic matrix generation module, used for converting electrical characterization parameters under different operating conditions into an encoder quality characteristic matrix;
[0148] The quality evaluation model module is used to input the encoder quality characteristic matrix into the pre-built encoder quality evaluation model to obtain the encoder quality evaluation result;
[0149] The detection result determination module is used to compare and analyze the encoder quality evaluation result with the preset encoder quality evaluation standard to obtain the encoder qualified detection result.
[0150] The system can identify multiple different operating states according to the application scenario information of the encoder to be tested through the operating state classification module, so as to more comprehensively consider the performance of the encoder in actual work;
[0151] The dynamic test module can test the encoder according to the different operating states identified, and collect its electrical characterization parameters under different working conditions, making the evaluation more real-time and accurate;
[0152] The quality characteristic matrix generation module converts the electrical characterization parameters under different operating conditions into the encoder quality characteristic matrix, comprehensively considering the performance characteristics of the encoder under various working conditions, making the evaluation more comprehensive and accurate;
[0153] The quality evaluation model module uses a pre-built model to evaluate the encoder quality characteristic matrix. The model-based evaluation can more objectively reflect the quality of the encoder.
[0154] The entire system adopts an automated testing process, which can realize automated operations from information acquisition to test result determination, thus improving the testing efficiency and consistency;
[0155] In summary, the system achieves a comprehensive evaluation of the quality and adaptability of the encoder through dynamic testing and comprehensive evaluation of various electrical characterization parameters, which can more effectively ensure the stability and reliability of the encoder in various application scenarios.
[0156] The various variations and specific embodiments of the contact encoder qualification detection method in the aforementioned embodiment 1 are also applicable to the contact encoder qualification detection system of this embodiment. Through the aforementioned detailed description of the contact encoder qualification detection method, those skilled in the art can clearly know the implementation method of the contact encoder qualification detection system of this embodiment, so for the sake of brevity of the specification, it will not be described in detail here.
[0157] In addition, the present application also provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor. The transceiver, the memory, and the processor are respectively connected via a bus. When the computer program is executed by the processor, each process of the above-mentioned method for controlling output data is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0158] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for testing the quality of a contact encoder, characterized in that: The method comprises: Obtain application scenario information of the encoder to be detected; Inputting application scenario information of the encoder to be detected into a pre-trained encoder operation state classification model, and outputting an operation state detection set of the encoder to be detected, wherein the operation state detection set includes a plurality of different operation states; Based on the running state detection set of the encoder to be detected, the encoder to be detected is tested, and electrical characterization parameters of the encoder to be detected under different running states are collected; Convert electrical characterization parameters under different operating conditions into encoder quality characteristic matrix; Inputting the encoder quality characteristic matrix into a pre-built encoder quality evaluation model to obtain an encoder quality evaluation result; Compare and analyze the encoder quality evaluation results with the preset encoder quality evaluation standards to obtain the encoder qualified test results; The running state detection set includes a plurality of forward rotation speed intervals, a plurality of reverse rotation speed intervals, a plurality of acceleration detection intervals and a plurality of deceleration detection intervals; The electrical characterization parameters include signal frequency, signal phase, signal amplitude, signal noise, signal jitter and dynamic response characteristics; The encoder quality characteristic matrix is: ; in, Indicates the signal frequency of the nth forward speed interval, Indicates the signal phase of the nth forward speed interval, Indicates the signal amplitude of the nth forward speed interval, Represents the signal noise in the nth forward speed range, Indicates the signal jitter in the nth forward speed range, Indicates the dynamic response characteristics of the nth forward speed range; Represents the signal frequency of the mth reverse speed interval, Indicates the signal phase of the mth reverse speed interval, represents the signal amplitude of the mth reversal speed interval, represents the signal noise in the mth reverse speed interval, Indicates the signal jitter in the mth reverse speed range, It represents the dynamic response characteristics of the mth reverse speed range; represents the signal frequency of the kth acceleration detection interval, represents the signal phase of the kth acceleration detection interval, represents the signal amplitude of the kth acceleration detection interval, represents the signal noise of the kth acceleration detection interval, represents the signal jitter of the kth acceleration detection interval, represents the dynamic response characteristics of the kth acceleration detection interval; represents the signal frequency of the tth deceleration detection interval, represents the signal phase of the tth deceleration detection interval, represents the signal amplitude of the tth deceleration detection interval, represents the signal noise of the t-th deceleration detection interval, represents the signal jitter of the tth deceleration detection interval, It represents the dynamic response characteristics of the tth deceleration detection interval.
2. The contact encoder qualification detection method according to claim 1, characterized in that: The method for obtaining the encoder quality characteristic moment includes: Define electrical characterization parameter sets; For each electrical characterization parameter, data preprocessing is performed, and the preprocessing methods include normalization and standardization; Design the dimensions and structure of the encoder quality characteristic matrix; Fill in the electrical characterization parameter values into the constructed quality characteristics matrix.
3. The contact encoder qualification detection method according to claim 1, characterized in that: The method for constructing the encoder quality evaluation model includes: Collect electrical characterization parameter data of the encoder under different operating conditions, and preprocess the collected data, including missing value processing, outlier detection and correction, data standardization and normalization; Perform feature extraction and engineering processing on the pre-processed electrical characterization parameters to generate feature variables; Selecting machine learning models as the basis of the encoder quality evaluation model, the machine learning models including linear regression, logistic regression, support vector machine, decision tree, random forest, neural network and deep neural network; Divide the feature variables into training set, validation set and test set; Use the training set to train the encoder quality evaluation model; Use the validation set to evaluate the performance of the encoder quality assessment model on unseen data; Use the test set to perform a final evaluation of the tuned encoder quality assessment model; The trained encoder quality evaluation model is encapsulated into an easy-to-call interface and integrated into the detection process.
4. The contact encoder qualification detection method according to claim 1, characterized in that: The preset encoder quality evaluation criteria include signal frequency stability, signal phase accuracy, signal amplitude consistency, signal noise level, signal jitter index and dynamic response characteristics.
5. A contact encoder qualification detection system, characterized in that: The system is applied to the contact encoder qualified detection method according to claim 1, and the system comprises: An information acquisition module, used to acquire application scenario information of the encoder to be detected; An operating state classification module is used to input application scenario information of the encoder to be detected into a pre-trained encoder operating state classification model, and output an operating state detection set of the encoder to be detected, wherein the operating state detection set includes a plurality of different operating states; A dynamic test module is used to test the encoder to be detected according to the running state detection set of the encoder to be detected, and collect electrical characterization parameters of the encoder to be detected under different running states; A quality characteristic matrix generation module, used for converting electrical characterization parameters under different operating conditions into an encoder quality characteristic matrix; The quality evaluation model module is used to input the encoder quality characteristic matrix into the pre-built encoder quality evaluation model to obtain the encoder quality evaluation result; The detection result determination module is used to compare and analyze the encoder quality evaluation result with the preset encoder quality evaluation standard to obtain the encoder qualified detection result.
6. An electronic device for testing the qualified contact encoder, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, and characterized in that: When the computer program is executed by the processor, the steps in the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 4 are implemented.
