A static testing method and apparatus for torque fluctuation

By optimizing the torque application sequence and real-time data processing using genetic algorithms, the inflexibility of traditional torque fluctuation testing methods is solved, enabling more efficient and accurate equipment performance evaluation and control.

CN118939946BActive Publication Date: 2026-11-17XIAN TELICO OIL TECH SERVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411358930.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2026-11-17
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

Traditional torque fluctuation testing methods lack flexibility and cannot be customized according to different equipment characteristics and testing requirements, resulting in insufficient testing specificity and precision.

Method used

A genetic algorithm is used to optimize the torque application sequence, which is encoded into chromosomes. A personalized torque application scheme is generated by randomly generating an initial population, evaluating the fitness function, exchanging genes, and evolving. Combined with real-time data acquisition and preprocessing, torque fluctuation values ​​are calculated and curves are plotted.

Benefits of technology

It improves the targeting and effectiveness of testing, enabling more accurate capture of subtle changes in torque fluctuations, reducing the number of repeated tests and time costs, improving testing efficiency, timely detection of equipment performance problems, and optimization of control strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939946B_ABST
    Figure CN118939946B_ABST
Patent Text Reader

Abstract

This invention provides a method and apparatus for static torque fluctuation testing, relating to the field of data processing technology. The method includes: determining a fitness function for evaluating the merits of each torque application scheme; determining corresponding individuals to enter the next generation based on the fitness function, randomly selecting two individuals, and exchanging some genes to generate new individuals; randomly altering the genes of some individuals with a certain probability until a preset number of generations is reached to obtain the final torque application scheme, so that the torque application device applies a static torque to the device under test according to the final torque application scheme; during the application of static torque, acquiring the output data of the device under test in real time at a set data acquisition frequency; and preprocessing the output data to obtain preprocessed data. This invention can flexibly generate personalized torque application schemes according to the characteristics of different devices and testing requirements, improving the targeting and effectiveness of the test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a method and apparatus for static testing of torque fluctuations. Background Technology

[0002] Traditional methods for testing torque fluctuations typically rely on preset torque application patterns and fixed data acquisition strategies. While this approach is relatively simple to implement, it is gradually revealing some potential limitations.

[0003] For example, traditional methods often rely on predefined torque application sequences, which may limit the scope for personalized adjustments based on different equipment characteristics or specific testing needs. Therefore, the relevance and effectiveness of the tests may be affected. Due to the use of a fixed data acquisition frequency and torque application method, traditional methods may have limitations in capturing subtle changes in torque fluctuations, potentially impacting the accuracy of the test results. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a static test method and apparatus for torque fluctuation, which can flexibly generate personalized torque application schemes according to the characteristics of different equipment and test requirements, thereby improving the pertinence and effectiveness of the test.

[0005] To solve the above-mentioned technical problems, the technical solution of the present invention is as follows:

[0006] Firstly, a static testing method for torque fluctuation, the method comprising:

[0007] Determine the torque range, test time, and data acquisition frequency for the test;

[0008] Based on the test torque range, test time, and data acquisition frequency, the torque application sequence is encoded as a chromosome;

[0009] A series of torque application schemes are randomly generated as the initial population, and a fitness function is determined to evaluate the merits of each torque application scheme.

[0010] Based on the fitness function, the corresponding individuals are determined to enter the next generation. Two individuals are randomly selected, and some genes are exchanged to generate new individuals.

[0011] The genes of some individuals are randomly altered with a certain probability until a preset number of evolutionary generations is reached to obtain the final torque application scheme, so that the torque application device can apply static torque to the device under test through the final torque application scheme.

[0012] During the application of static torque, the output data of the device under test is acquired in real time at a set data acquisition frequency;

[0013] The output data is preprocessed to obtain preprocessed data;

[0014] The torque fluctuation value is calculated based on the preprocessed data, and the torque fluctuation curve is plotted.

[0015] Based on the torque fluctuation curve, the performance of the device under test is analyzed and evaluated to obtain the evaluation results.

[0016] Furthermore, the formula for calculating the fitness function is as follows:

[0017]

[0018] Among them, M i This represents the i-th torque value sample; n1 represents the total number of samples; M max M represents the maximum value among the collected torque value samples; min The minimum value among the collected torque value samples is represented by ; T represents the total test time; i is a summation index used to iterate through all torque value samples; summation is performed externally. In the expression, i changes from 1 to n1; j is a summation index, used for internal summation. The calculation is the sum of all torque value samples, where j is the index of each torque value sample from 1 to n1; M j It is the j-th torque value sample; x represents a torque application scheme; F(x) is the fitness function.

[0019] Furthermore, the output data is preprocessed to obtain preprocessed data, including:

[0020] Output data through Filtering is performed to obtain the filtered data sequence, where y[n] is the nth filtered data sequence, representing the filtered output data at time point n; N1 is the filter window size; K1 is the window size used to calculate the dynamic weights; β m It is the coefficient of the m-th data point; x 2 [nmk] represents the square of the input signal at time point [nmk]; n represents the time point; m is the data point index within the filter window, varying from 0 to N1-1; p is the data point index within the filter window, varying from 0 to N1-1; k is the data point index within the historical window used to calculate the dynamic weights, varying from 0 to K1-1; nm represents the data from m time points prior to time point n. It is the attenuation factor for the m-th data point; x 2[npk] represents the square of the input signal at time point npk; N1-1 is the filter window size minus one, representing the maximum index value of the data point within the filter window; x[nm] refers to the input signal value at m time points before time point n;

[0021] The filtered data sequence y[n] is processed to obtain preprocessed data.

[0022] Furthermore, the filtered data sequence y[n] is processed to obtain preprocessed data, including:

[0023] The nth data sequence after filtering is processed by... The data is processed to obtain preprocessed data;

[0024] Where z[n] is the nth data point in the filtered data sequence; y[q] is the qth data sequence after filtering, representing the filtered output data at time point q; y[r] is the rth data sequence after filtering, representing the filtered output data at time point r; N2 is the total number of data points in the filtered data sequence; It is a summation expression representing the sum of all y[q] from q = 0 to q = N² - 1; It is the mean of the data points in the filtered data sequence; This represents the square of the difference between the mean of the filtered output data at time point q and the mean of the filtered output data at time point r; q and r are index variables used in the summation symbol to iterate through the data points in the data sequence.

[0025] Furthermore, the preprocessed data includes torque values, equipment displacement, and equipment rotation speed.

[0026] Furthermore, the torque fluctuation value is calculated based on the preprocessed data, including:

[0027] Starting from the second data point in the processed data, iterate sequentially to the second-to-last data point;

[0028] For each pair of adjacent data points s b-1 and s b , where s b-1 It is s b For the previous point, perform the following operations:

[0029] Build with s b-1 Ending subsequence; constructing with s b The subsequence at the beginning;

[0030] Calculation in s b-1 The ending subsequence and the one ending with s b The distance between the initial subsequences;

[0031] Use the distance value as data point s b Torque fluctuation value at the location.

[0032] Furthermore, the torque application sequence includes the magnitude of the torque and the timing of its application.

[0033] Secondly, a static torque fluctuation testing device includes:

[0034] The acquisition module is used to determine the torque range, test time, and data acquisition frequency for the test; based on the torque range, test time, and data acquisition frequency, the torque application sequence is encoded into chromosomes; a series of torque application schemes are randomly generated as the initial population, and a fitness function is determined to evaluate the merits of each torque application scheme; based on the fitness function, the corresponding individuals are determined to enter the next generation, and two individuals are randomly selected to exchange some genes to generate new individuals;

[0035] The processing module is used to randomly alter the genes of some individuals with a certain probability until a preset number of evolutionary generations is reached to obtain the final torque application scheme. This scheme enables the torque application device to apply a static torque to the device under test. During the application of the static torque, the output data of the device under test is acquired in real time at a set data acquisition frequency. The output data is preprocessed to obtain preprocessed data. The torque fluctuation value is calculated based on the preprocessed data, and the torque fluctuation curve is plotted. Based on the torque fluctuation curve, the performance of the device under test is analyzed and evaluated to obtain the evaluation result.

[0036] Thirdly, a computing device includes:

[0037] One or more processors;

[0038] A storage device for storing one or more programs that, when executed by one or more processors, cause the one or more processors to perform the above-described method.

[0039] Fourthly, a computer-readable storage medium storing a program that, when executed by a processor, implements the above-described method.

[0040] The above-described solution of the present invention has at least the following beneficial effects:

[0041] By encoding the torque application sequence into chromosomes and optimizing it using a genetic algorithm, this method can flexibly generate personalized torque application schemes based on the characteristics of different devices and testing requirements, thereby improving the relevance and effectiveness of the test.

[0042] By optimizing the torque application sequence and acquiring the output data of the device under test in real time at a set data acquisition frequency, this method can more accurately capture subtle changes in torque fluctuations, helping to more accurately evaluate the device's performance. Through the optimization process of a genetic algorithm, this method can find a better torque application scheme in a shorter time, thereby reducing the number of repeated tests and time costs, and improving testing efficiency. Attached Figure Description

[0043] Figure 1 This is a flowchart illustrating the static torque fluctuation testing method provided in an embodiment of the present invention.

[0044] Figure 2 This is a schematic diagram of a static torque fluctuation testing device provided in an embodiment of the present invention. Detailed Implementation

[0045] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0046] like Figure 1 As shown, an embodiment of the present invention proposes a static test method for torque fluctuation, the method comprising:

[0047] Step 11: Determine the torque range, test time, and data acquisition frequency for the test;

[0048] Step 12: Based on the tested torque range, test time, and data acquisition frequency, encode the torque application sequence into a chromosome. The torque application sequence includes the magnitude of the torque and the application time point.

[0049] Step 13: Randomly generate a series of torque application schemes as the initial population, and determine the fitness function used to evaluate the merits of each torque application scheme;

[0050] Step 14: Determine the corresponding individuals to enter the next generation based on the fitness function, randomly select two individuals, and exchange some genes to generate new individuals;

[0051] Step 15: Randomly change the genes of some individuals with a certain probability until a preset number of generations is reached to obtain the final torque application scheme, so that the torque application device can apply static torque to the device under test through the final torque application scheme.

[0052] Step 16: During the application of static torque, acquire the output data of the device under test in real time at the set data acquisition frequency;

[0053] Step 17: Preprocess the output data to obtain preprocessed data;

[0054] Step 18: Calculate the torque fluctuation value based on the preprocessed data and plot the torque fluctuation curve;

[0055] Step 19: Analyze and evaluate the performance of the device under test based on the torque fluctuation curve to obtain the evaluation results.

[0056] In this embodiment of the invention, the torque application sequence is transformed into chromosomes capable of optimization through a genetic algorithm. A randomly generated initial population increases the diversity of the search, aiding in finding the global optimum. Simultaneously, a defined fitness function provides an evaluation criterion for subsequent individual selection and evolution. Through selection and crossover operations, the genes of superior individuals are preserved, and new, potentially even better individuals are generated through gene exchange, gradually approaching the optimal solution. Mutation operations increase population diversity, helping the algorithm escape local optima and find the global optimum. Through multiple iterative evolutions, an optimized torque application scheme is ultimately obtained. Real-time data acquisition ensures the accuracy and timeliness of test data. Data preprocessing eliminates outliers and noise, improving data quality. The calculation and plotting of torque fluctuation values ​​and curves visually demonstrate the performance of the device under test under static torque. By analyzing and evaluating the performance of the device under test, a comprehensive understanding of its performance under static torque can be achieved.

[0057] When applied in practice, the specific steps include the following:

[0058] Step 11: Determine the torque range to be tested based on the specifications and design requirements of the device under test. For example, it can be set to 10 Nm to 100 Nm; Set the total time of the entire test process according to the test requirements and device characteristics. For example, it can be set to 30 minutes; Determine the data acquisition frequency, i.e., how many times data are collected per second. For example, it can be set to collect 100 times data per second.

[0059] Step 12: Divide the torque range into several levels and assign a code to each level. For example, using binary coding, 00 represents 20 Nm, 01 represents 40 Nm, 10 represents 60 Nm, and 11 represents 80 Nm; determine the specific time point at which the torque is applied based on the test time and data acquisition frequency, and encode it accordingly. For example, the index value of the time series can be used as the code.

[0060] Step 13: Randomly generate a series of torque application schemes, each scheme consisting of torque magnitude and time point; define a function to evaluate the merits of each torque application scheme.

[0061] In steps 14 and 15, individuals with high fitness are selected to enter the next generation according to the fitness function. Two individuals are randomly selected and some genes on their chromosomes are exchanged to generate new individuals. The genes of some individuals are randomly changed with a certain probability. The above steps are repeated until the preset number of evolutionary generations is reached.

[0062] Step 16: During the application of static torque, use sensors and a data acquisition system to acquire the output data of the device under test in real time at a set frequency. This data may include torque values, angle changes, etc.

[0063] The following case study illustrates the specific implementation process of the above solution.

[0064] For example, suppose we want to test the torque fluctuation performance of a robotic arm, setting the torque range to 20 Nm to 80 Nm, the test duration to 20 minutes, and the data acquisition frequency to 50 times per second. The torque magnitude is encoded as a 2-bit binary number, with the time series measured in seconds. Since data is acquired 50 times per second, each time point can be encoded as a number from 0 to 999 (20 minutes is 1200 seconds, and one acquisition per second corresponds to the encoding of 0-1199). 100 different torque application schemes are generated as the initial population. The evolutionary generation is set to 50 generations. In each generation, the top 50% of individuals with the highest fitness are selected to enter the next generation, and then crossover and mutation operations are performed. High-precision torque sensors and high-speed data acquisition cards are used to acquire the output data of the robotic arm under torque in real time at a frequency of 50 times per second.

[0065] In a preferred embodiment of the present invention, the formula for calculating the fitness function is:

[0066]

[0067] Among them, M i This represents the i-th torque value sample; n1 represents the total number of samples; M max M represents the maximum value among the collected torque value samples; min The minimum value among the collected torque value samples is represented by ; T represents the total test time; i is a summation index used to iterate through all torque value samples; summation is performed externally. In the expression, i changes from 1 to n1; j is a summation index, used for internal summation. The calculation is the sum of all torque value samples, where j is the index of each torque value sample from 1 to n1; M j It is the j-th torque value sample; x represents a torque application scheme; F(x) is the fitness function.

[0068] In this embodiment of the invention, the formula comprehensively considers the volatility and range of the torque value, deriving the fitness score by multiplying two main parts. The first part focuses on the volatility of the torque value (reflected by calculating the variance of the torque value), while the second part considers the range of the torque value (the difference between the maximum and minimum values). This method can comprehensively evaluate the stability of the torque application scheme and the dynamic range of the torque output. The formula quantifies the effect of the torque application scheme into a specific numerical value, facilitating objective comparison and ranking of different schemes.

[0069] In a preferred embodiment of the present invention, the output data is preprocessed to obtain preprocessed data, including:

[0070] Output data through Filtering is performed to obtain the filtered data sequence, where y[n] is the nth filtered data sequence, representing the filtered output data at time point n; N1 is the filter window size; K1 is the window size used to calculate the dynamic weights; β m It is the coefficient of the m-th data point; x 2 [nmk] represents the square of the input signal at time point [nmk]; n represents the time point; m is the data point index within the filter window, varying from 0 to N1-1; p is the data point index within the filter window, varying from 0 to N1-1; k is the data point index within the historical window used to calculate the dynamic weights, varying from 0 to K1-1; nm represents the data from m time points prior to time point n. It is the attenuation factor for the m-th data point; x 2 [npk] represents the square of the input signal at time point npk; N1-1 is the filter window size minus one, representing the maximum index value of the data point within the filter window; x[nm] refers to the input signal value at m time points before time point n;

[0071] The filtered data sequence y[n] is processed to obtain preprocessed data.

[0072] In this embodiment of the invention, filtering effectively suppresses noise and outliers in the original data. Filtering smooths rapid fluctuations in the data, making the data curve smoother, which helps reveal the overall trend and periodic changes of the data. By introducing dynamic weights (determined by the squared value of the data points within the K1 window), the filtering algorithm can dynamically adjust the filtering effect according to the signal strength at different time points, which helps to better adapt to the time-varying nature of the signal. This is achieved by introducing the coefficient β of the data points. m and attenuation factor It allows for personalized weighting of different data points, helping to highlight key data points while reducing the impact of unimportant data points on the output. By adjusting the filter window size N1 and the dynamic weight window size K1, it can flexibly address data filtering needs in different scenarios.

[0073] In a preferred embodiment of the present invention, the filtered data sequence y[n] is processed to obtain preprocessed data, including:

[0074] The nth data sequence after filtering is processed by... The data is processed to obtain preprocessed data;

[0075] Where z[n] is the nth data point in the filtered data sequence; y[q] is the qth data sequence after filtering, representing the filtered output data at time point q; y[r] is the rth data sequence after filtering, representing the filtered output data at time point r; N2 is the total number of data points in the filtered data sequence; It is a summation expression representing the sum of all y[q] from q = 0 to q = N² - 1; It is the mean of the data points in the filtered data sequence; This represents the square of the difference between the mean of the filtered output data at time point q and the mean of the filtered output data at time point r; q and r are index variables used in the summation symbol to iterate through the data points in the data sequence.

[0076] In this embodiment of the invention, data is standardized by subtracting the mean and dividing by the standard deviation. This standardization process gives the data a zero mean and unit variance, which is helpful for subsequent data analysis. Standardization removes the dimensions of the data, allowing data from different units or scales to be compared and analyzed on the same scale. Standardized data is also easier to use for identifying outliers.

[0077] In a preferred embodiment of the present invention, calculating the torque fluctuation value based on preprocessed data includes:

[0078] Starting from the second data point in the processed data, iterate sequentially to the second-to-last data point;

[0079] For each pair of adjacent data points s b-1 and s b , where s b-1 It is s b For the previous point, perform the following operations:

[0080] Build with s b-1 Ending subsequence; constructing with s b The subsequence at the beginning;

[0081] Calculation in sb-1 The ending subsequence and the one ending with s b The distance between the initial subsequences;

[0082] Use the distance value as data point s b Torque fluctuation value at the location.

[0083] In this embodiment of the invention, minute changes in torque can be precisely monitored by calculating the distance between adjacent data point subsequences. By observing changes in torque fluctuation values, the stability and performance of the equipment during operation can be analyzed, and potential problems can be identified and addressed in a timely manner. Continuous monitoring of torque fluctuation values ​​can predict equipment wear and failure trends, thereby enabling preventative maintenance, reducing equipment failure rates, improving production efficiency, and lowering maintenance costs. Based on the analysis results of torque fluctuation values, equipment control strategies can be optimized to improve equipment operating efficiency and stability. For example, more refined control measures can be taken in areas with large torque fluctuations to reduce energy consumption and mechanical wear. For production processes requiring precise torque control (such as precision machining and assembly), monitoring and analysis of torque fluctuation values ​​helps to promptly detect anomalies in the production process, thereby improving product quality and yield. Real-time monitoring and analysis of torque fluctuation values ​​can promptly detect and respond to external interference or internal faults, thereby enhancing the robustness and reliability of the system.

[0084] In this embodiment of the invention, the above steps may specifically include:

[0085] Obtain a preprocessed data sequence, denoted as preprocessed_data.

[0086] Determine the window size W, which is an odd number, so that there can be a center point; create an empty list torque_fluctuations to store the calculated torque fluctuation values.

[0087] Iterate through the data points starting from the second data point in `preprocessed_data` until the second-to-last data point. In each iteration, denote the current data point as `s`. b The preceding data point is denoted as s. b-1 .

[0088] For s b-1 Construct a subsequence ending with it:

[0089] From s b-1 Take forward There are 1 data point, denoted as subsequence_ending_at_s_b_minus_1;

[0090] For s bConstruct a subsequence that begins with it:

[0091] From s b Take back There are 10 data points, denoted as subsequence_starting_at_s_b.

[0092] Ensure that the two subsequences have the same length. If they are different, the shorter subsequence needs to be padded (e.g., with zeros or by interpolation).

[0093] Calculate the Euclidean distance between subsequence_ending_at_s_b_minus_1 and subsequence_starting_at_s_b. The formula for calculating the Euclidean distance is:

[0094] Among them, a i and b i These are the elements at corresponding positions in the two subsequences, and ε is the length of the subsequence. The calculated Euclidean distance is added to the `torque_fluctuations` list as the data point `s`. b The torque fluctuation value at each point. After the iteration is complete, a list of torque_fluctuations is returned.

[0095] For example, suppose we have the following preprocessed data sequence preprocessed_data = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100], and the window size W = 5.

[0096] preprocessed_data=[10, 20, 30, 40, 50, 60, 70, 80, 90, 100];

[0097] Iterate from the second data point 20 to the second-to-last data point 90.

[0098] For each pair of adjacent data points (e.g., s) b-1 =20 and s b =30):

[0099] Build with s b-1 The final subsequence: [10, 20] (because the window size is 5, we take 2 points forward);

[0100] Build with s b The initial subsequence is [30, 40] (taking 2 points forward);

[0101] Calculate Euclidean distance:

[0102]

[0103] Add 28.28 to the `torque_fluctuations` list; repeat the above steps for each pair of adjacent data points; eventually, the `torque_fluctuations` list will contain the torque fluctuation value for each data point (except the first and last). In this example, since the data is arithmetic progression, all torque fluctuation values ​​will be the same.

[0104] In another preferred embodiment of the present invention, step 19 above may include:

[0105] Analyzing the overall trend of the torque fluctuation curve and observing whether there are obvious fluctuations or periodic changes helps to understand the overall stability of the equipment under static torque. Identifying the peaks and troughs in the torque fluctuation curve and recording their occurrence time and amplitude, these extreme points indicate the equipment's performance under certain specific conditions. Comparing the torque fluctuation performance of the equipment under test with preset performance indicators or industry standards helps to determine whether the equipment meets design requirements or usage needs. Analyzing the factors that may cause performance fluctuations based on the torque fluctuation curve, such as external interference, internal friction, and wear, helps to identify the root cause of performance problems. Based on the above analysis, a performance evaluation report is written, detailing the performance of the equipment under test under static torque, existing problems, and improvement suggestions.

[0106] For example, suppose the torque fluctuation performance of a robotic arm was tested, and the corresponding torque fluctuation curve was obtained. During the analysis, the following was observed: the torque fluctuation curve was relatively stable in the initial stage of the test, but the fluctuation gradually increased over time, which may indicate that the stability of the robotic arm is affected after prolonged operation. Significant peaks appeared in the torque fluctuation curve at the 10th and 15th minutes of the test. Checking the records revealed that these two time points coincided with the robotic arm performing high-difficulty movements. This indicates that the torque fluctuation performance of the robotic arm is significantly affected under high loads or complex movements. Compared with industry standards, the torque fluctuation performance of the robotic arm met the requirements for most of the time, but its performance declined under high loads or complex movements, failing to fully meet the preset indicators. Considering the design and working principle of the robotic arm, the analysis suggests that the increased torque fluctuation may be due to wear or insufficient lubrication in the internal transmission system of the robotic arm. Furthermore, optimization of the control system may also help improve the stability of the robotic arm under high loads.

[0107] like Figure 2 As shown, an embodiment of the present invention also provides a static torque fluctuation testing device 20, comprising:

[0108] The acquisition module 21 is used to determine the torque range, test time, and data acquisition frequency of the test; based on the torque range, test time, and data acquisition frequency, the torque application sequence is encoded into chromosomes; a series of torque application schemes are randomly generated as the initial population, and a fitness function is determined to evaluate the merits of each torque application scheme; based on the fitness function, the corresponding individuals are determined to enter the next generation, and two individuals are randomly selected to exchange some genes to generate new individuals;

[0109] The processing module 22 is used to randomly change the genes of some individuals with a certain probability until a preset number of evolutionary generations is reached to obtain the final torque application scheme, so that the torque application device can apply static torque to the device under test according to the final torque application scheme; during the application of static torque, the output data of the device under test is acquired in real time at a set data acquisition frequency; the output data is preprocessed to obtain preprocessed data; the torque fluctuation value is calculated based on the preprocessed data and the torque fluctuation curve is plotted; the performance of the device under test is analyzed and evaluated based on the torque fluctuation curve to obtain the evaluation result.

[0110] It should be noted that this device is a device corresponding to the above method. All implementation methods in the above method embodiments are applicable to this embodiment and can achieve the same technical effect.

[0111] Embodiments of the present invention also provide a computing device, including: a processor and a memory storing a computer program, wherein the computer program, when executed by the processor, performs the method described above. All implementations in the above method embodiments are applicable to this embodiment and can achieve the same technical effects.

[0112] Embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method described above. All implementations in the above method embodiments are applicable to this embodiment and can achieve the same technical effects.

[0113] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A static test method for torque fluctuation, characterized in that, The method includes: Determine the torque range, test time, and data acquisition frequency for the test; Based on the test torque range, test time, and data acquisition frequency, the torque application sequence is encoded as a chromosome; A series of torque application schemes are randomly generated as the initial population, and a fitness function is determined to evaluate the merits of each torque application scheme, including: The formula for calculating the fitness function is: ; in, Indicates the first One sample of torque values; Indicates the total number of samples; This represents the maximum value among the collected torque value samples; This represents the minimum value among the collected torque value samples; Indicates the total test time; It is a summation index used to iterate through all torque value samples; summing is performed externally. middle, From 1 to ; It is a summation index, internal summation. The calculation is the sum of all torque value samples. From 1 to The index of each torque value sample; It is the first One sample of torque values; This represents a torque application scheme; It is the fitness function; Based on the fitness function, the corresponding individuals are determined to enter the next generation. Two individuals are randomly selected, and some genes are exchanged to generate new individuals. The genes of some individuals are randomly altered with a certain probability until a preset number of evolutionary generations is reached to obtain the final torque application scheme, so that the torque application device can apply static torque to the device under test through the final torque application scheme. During the application of static torque, the output data of the device under test is acquired in real time at a set data acquisition frequency; The output data is preprocessed to obtain preprocessed data; The torque fluctuation value is calculated based on the preprocessed data, and the torque fluctuation curve is plotted. Based on the torque fluctuation curve, the performance of the device under test is analyzed and evaluated to obtain the evaluation results.

2. The static test method for torque fluctuation according to claim 1, characterized in that, The output data is preprocessed to obtain preprocessed data, including: Output data through Filtering is performed to obtain the filtered data sequence, where, It is the filtered first A data sequence, representing points in time. Filtered output data; It is the window size of the filter; It is the window size used to calculate dynamic weights; It is the first The coefficients of each data point; Indicates a point in time The square of the input signal; Indicates a point in time; It is the index of the data point within the filter window, varying from 0 to... ; It is the index of the data point within the filter window, varying from 0 to... ; It is the index of the data point within the historical window used when calculating dynamic weights, changing from 0 to... ; Indicates a point in time Before Data at each point in time; It is the first The attenuation factor for each data point; Indicates a point in time The square of the input signal; It is the filter window size minus one, representing the maximum index value of the data points within the filter window; This refers to a point in time. Before Input signal values ​​at each time point; For the filtered data sequence The data is then processed to obtain preprocessed data.

3. The static test method for torque fluctuation according to claim 2, characterized in that, For the filtered data sequence The data is processed to obtain preprocessed data, including: For the filtered first A data sequence through The data is processed to obtain preprocessed data; in, It is the first in the filtered data sequence One data point; It is the filtered first A data sequence, representing points in time. Filtered output data; It is the filtered first A data sequence, representing points in time. Filtered output data; It is the total number of data points in the filtered data sequence; It is a summation expression, representing from arrive All The sum of; It is the mean of the data points in the filtered data sequence; Indicates a point in time The filtered output data and at time point The square of the difference between the mean values ​​of the filtered output data; and It is the index variable used in the summation symbol to iterate through the data points in the data sequence.

4. The static test method for torque fluctuation according to claim 3, characterized in that, The preprocessed data includes torque values, equipment displacement, and equipment rotation speed.

5. The static test method for torque fluctuation according to claim 4, characterized in that, The torque fluctuation value is calculated based on the preprocessed data, including: Starting from the second data point in the processed data, iterate sequentially to the second-to-last data point; For each pair of adjacent data points and ,in, yes For the previous point, perform the following operations: Build with Ending subsequence; constructing with The subsequence at the beginning; Calculation with The ending subsequence and the beginning The distance between the initial subsequences; Use distance values ​​as data points Torque fluctuation value at the location.

6. The static test method for torque fluctuation according to claim 1, characterized in that, The torque application sequence includes the magnitude of the torque and the time of application.

7. A static testing device for torque fluctuation, characterized in that, The apparatus is used to perform the method as described in any one of claims 1 to 6, comprising: The acquisition module is used to determine the torque range, test time, and data acquisition frequency for the test; based on the torque range, test time, and data acquisition frequency, the torque application sequence is encoded into chromosomes; a series of torque application schemes are randomly generated as the initial population, and a fitness function is determined to evaluate the merits of each torque application scheme; based on the fitness function, the corresponding individuals are determined to enter the next generation, and two individuals are randomly selected to exchange some genes to generate new individuals; The processing module is used to randomly alter the genes of some individuals with a certain probability until a preset number of evolutionary generations is reached to obtain the final torque application scheme. This scheme enables the torque application device to apply a static torque to the device under test. During the application of the static torque, the output data of the device under test is acquired in real time at a set data acquisition frequency. The output data is preprocessed to obtain preprocessed data. The torque fluctuation value is calculated based on the preprocessed data, and the torque fluctuation curve is plotted. Based on the torque fluctuation curve, the performance of the device under test is analyzed and evaluated to obtain the evaluation result.

8. A computing device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program that, when executed by a processor, implements the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Risk assessment method and device for ship model design and electronic equipment

    CN118260866A

  • Zebra crossing pedestrian safety early warning method and device

    CN118411829A