Torque fluctuation static test method and device
Through genetic algorithms, the optimization of torque application sequence and real-time data acquisition solves the limitations of traditional testing methods in personalization and subtle change capture, improves the targetedness and efficiency of testing, and achieves more accurate equipment performance evaluation.
Patent Information
- Application Number
- CN202411358930.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-09-27
AI Technical Summary
The traditional torque fluctuation testing method has limitations in personalizing adjustments and capturing subtle changes, which affects the pertinence and precision of the test.
Genetic algorithms are used to optimize the torque application sequence, and by encoding the torque application sequence as chromosomes, initial populations are randomly generated, crossing and mutating are generated to generate the optimal torque application scheme, and real-time data acquisition and preprocessing are drawn to draw the torque fluctuation curve for equipment performance evaluation.
It improves the targetedness and effectiveness of the test, can capture subtle changes in torque fluctuations more accurately, reduces the number of repeated tests and time costs, and improves the testing efficiency.
Smart Images

Figure CN118939946A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for static testing of torque fluctuations. Background Art
[0002] Traditional torque fluctuation testing methods usually rely on preset torque application patterns and fixed data acquisition strategies. Although this method is relatively simple to implement, it has gradually revealed some possible limitations.
[0003] For example, traditional methods often rely on predefined torque application sequences, which may limit the space for personalized adjustments based on different equipment characteristics or specific test requirements. Therefore, the pertinence and actual effect of the test may be affected to a certain extent. Due to the use of unchanging data acquisition frequency and torque application method, traditional methods may have certain limitations in capturing subtle changes in torque fluctuations, which may affect the precision of the test results. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a torque fluctuation static test method and device, which can flexibly generate personalized torque application schemes according to the characteristics and test requirements of different devices, thereby improving the pertinence and effectiveness of the test.
[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0006] In a first aspect, a torque fluctuation static test method is provided, the method comprising:
[0007] Determine the test torque range, test time and data collection frequency;
[0008] According to the tested torque range, test time, and data collection frequency, the torque application sequence is encoded into a chromosome;
[0009] A series of torque application schemes are randomly generated as an initial population, and a fitness function for evaluating the pros and cons of each torque application scheme is determined;
[0010] According to the fitness function, the corresponding individuals are determined to enter the next generation, two individuals are randomly determined, and some genes are exchanged to produce new individuals;
[0011] Randomly changing the genes of some individuals with a certain probability until a preset evolutionary generation is reached to obtain a final torque application scheme, so that the torque application device applies a static torque to the device to be tested 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] Preprocessing the output data to obtain preprocessed data;
[0014] Calculate the torque fluctuation value based on the preprocessed data and draw the torque fluctuation curve;
[0015] According to the torque fluctuation curve, the performance of the equipment to be tested is analyzed and evaluated to obtain the evaluation results.
[0016] Furthermore, the calculation formula of the fitness function is:
[0017]
[0018] Among them, M i represents the i-th moment value sample; n1 represents the total number of samples; M max Indicates the maximum value of the collected torque value samples; M min Indicates the minimum value of the collected torque value samples; T indicates the total test time; i is a summation index used to traverse all torque value samples; external summation In the example, i changes from 1 to n1; j is a summation index, and the internal summation The sum of all moment value samples is calculated, j is the index of each moment value sample from 1 to n1; M j is the jth torque value sample; x represents a torque application scheme; F(x) is the fitness function.
[0019] Further, the output data is preprocessed to obtain preprocessed data, including:
[0020] The output data is passed Filtering is performed to obtain a filtered data sequence, where y[n] is the nth data sequence after filtering, representing the filtered output data at time point n; N1 is the window size of the filter; K1 is the window size used to calculate the dynamic weight; β m is the coefficient of the mth data point; x 2 [nmk] represents the square value of the input signal at time point [nmk]; n represents the time point; m is the data point index in the filter window, which varies from 0 to N1-1; p is the data point index in the filter window, which varies from 0 to N1-1; k is the data point index in the history window used to calculate the dynamic weight, which varies from 0 to K1-1; nm represents the data at m time points before time point n; is the attenuation factor of the mth data point; x 2[npk] represents the square value of the input signal at time point npk; N1-1 is the filter window size minus one, which represents the maximum index value of the data point in 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] Further, the filtered data sequence y[n] is processed to obtain preprocessed data, including:
[0023] The nth data sequence after filtering is processed by Processing to obtain preprocessed data;
[0024] Wherein, 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; is a summation expression, which represents the sum of all y[q] from q=0 to q=N2-1; is the mean of the data points in the filtered data sequence; Represents the square of the difference between 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 traverse the data points in the data sequence.
[0025] Furthermore, the preprocessed data includes torque value, device displacement and device 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, traverse to the second to last data point in sequence;
[0028] For each pair of adjacent data points s b-1 and b , where s b-1 Yes b At the previous point, do the following:
[0029] Build with s b-1 Subsequence ending with s b The beginning subsequence;
[0030] Calculate in s b-1 Subsequences ending with s b The distance value between the subsequences at the beginning;
[0031] Take the distance value as data point s b The torque fluctuation value at .
[0032] Furthermore, the torque application sequence includes the magnitude of the torque and the application time point.
[0033] In a second aspect, a torque fluctuation static test device comprises:
[0034] An acquisition module is used to determine the torque range, test time and data collection frequency of the test; according to the torque range, test time and data collection frequency of the test, the torque application sequence is encoded into a chromosome; a series of torque application schemes are randomly generated as the initial population, and a fitness function for evaluating the advantages and disadvantages of each torque application scheme is determined; according to the fitness function, the corresponding individual is determined to enter the next generation, two individuals are randomly determined, and some genes are exchanged to generate new individuals;
[0035] The processing module is used to randomly change the genes of some individuals with a certain probability until a preset evolutionary generation is reached to obtain a final torque application scheme, so that the torque application device applies a static torque to the device under test through the final torque application scheme; in the process of applying the static torque, the output data of the device under test is obtained 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 drawn; according to the torque fluctuation curve, the performance of the device under test is analyzed and evaluated to obtain an evaluation result.
[0036] According to a third aspect, a computing device includes:
[0037] one or more processors;
[0038] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.
[0039] In a fourth aspect, a computer-readable storage medium stores a program, and the program implements the above method when executed by a processor.
[0040] The above solution of the present invention includes at least the following beneficial effects:
[0041] By encoding the torque application sequence into chromosomes and combining it with genetic algorithms for optimization, this method can flexibly generate personalized torque application schemes according to the characteristics and test requirements of different devices, thereby improving the pertinence 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 the subtle changes in torque fluctuations, which helps to more accurately evaluate the performance of the device. Through the optimization process of the 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 test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a flow chart of a torque fluctuation static testing method provided by an embodiment of the present invention.
[0044] Figure 2 It is a schematic diagram of a torque fluctuation static testing device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0046] like Figure 1 As shown, an embodiment of the present invention provides a torque fluctuation static test method, the method comprising:
[0047] Step 11, determine the test torque range, test time and data acquisition frequency;
[0048] Step 12, encoding the torque application sequence into chromosomes according to the tested torque range, test time and data acquisition frequency, wherein the torque application sequence includes the magnitude of the torque and the application time point;
[0049] Step 13, randomly generating a series of torque application schemes as an initial population, and determining a fitness function for evaluating the pros and cons of each torque application scheme;
[0050] Step 14, determine the corresponding individuals to enter the next generation according to the fitness function, randomly determine two individuals, and exchange some genes to generate new individuals;
[0051] Step 15, randomly changing the genes of some individuals with a certain probability until a preset evolutionary generation is reached to obtain a final torque application scheme, so that the torque application device applies a static torque to the device to be tested through the final torque application scheme;
[0052] Step 16, in the process of applying the static torque, the output data of the device under test is acquired in real time at a set data acquisition frequency;
[0053] Step 17, preprocessing the output data to obtain preprocessed data;
[0054] Step 18, calculating the torque fluctuation value according to the preprocessed data, and drawing the torque fluctuation curve;
[0055] Step 19: Analyze and evaluate the performance of the device to be tested according to the torque fluctuation curve to obtain an evaluation result.
[0056] In an embodiment of the present invention, the torque application sequence is converted into a chromosome that can be optimized through the encoding method of the genetic algorithm. The randomly generated initial population increases the diversity of the search and helps to find the global optimal solution; at the same time, the fitness function is defined to provide an evaluation criterion for subsequent individual selection and evolution. Through selection operations and crossover operations, the genes of excellent individuals can be retained, and new and possibly better individuals can be generated through gene exchange, thereby gradually approaching the optimal solution. The mutation operation increases the diversity of the population, which helps the algorithm to jump out of the local optimum and find the global optimal solution; through multiple iterative evolutions, the optimized torque application scheme is finally obtained; real-time data acquisition can ensure the accuracy and timeliness of the test data; data preprocessing can eliminate outliers and noise and improve data quality; the calculation and drawing of torque fluctuation values and fluctuation curves help to intuitively display the performance of the device under test under the action of static torque; by analyzing and evaluating the performance of the device under test, the performance of the device under the action of static torque can be fully understood.
[0057] When applied specifically, the following steps are included:
[0058] Step 11, according to the specifications and design requirements of the device to be tested, determine the torque range to be tested. For example, it can be set to 10Nm to 100Nm; according to the test requirements and equipment characteristics, set the total time of the entire test process. For example, it can be set to 30 minutes; determine the frequency of data collection, that is, how many times data is collected per second. For example, it can be set to collect data 100 times per second.
[0059] Step 12, divide the torque range into several levels and assign a code to each level. For example, using binary code, 00 represents 20Nm, 01 represents 40Nm, 10 represents 60Nm, and 11 represents 80Nm; according to the test time and data acquisition frequency, determine the specific time point of applying the torque and encode it. 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 consists of a torque magnitude and a time point; define a function to evaluate the pros and cons of each torque application scheme.
[0061] In steps 14 and 15, according to the fitness function, individuals with high fitness are selected to enter the next generation, two individuals are randomly selected, some genes on their chromosomes are exchanged to generate new individuals, the genes of some individuals are randomly changed with a certain probability, and the above steps are repeated until the preset evolutionary generation is reached.
[0062] Step 16: During the process of applying the static torque, use the sensor and data acquisition system to obtain the output data of the device under test in real time at a set frequency. The data may include torque value, angle change, etc.
[0063] The following is a specific case to illustrate the specific implementation process of the above solution.
[0064] For example, suppose you want to test the torque fluctuation performance of a robotic arm, set the torque range to 20Nm to 80Nm, the test time to 20 minutes, and the data acquisition frequency to 50 times per second. Encode the torque size as a 2-bit binary number, the time series is in seconds, and collect data 50 times per second, so each time point can be encoded as a number from 0 to 999 (20 minutes is 1200 seconds, and collecting data once per second corresponds to 0-1199 encoding). Generate 100 different torque application schemes as the initial population. Set the evolutionary generation to 50 generations. In each generation, select the top 50% of individuals with the highest fitness to enter the next generation, and then perform crossover and mutation operations. Use a high-precision torque sensor and a high-speed data acquisition card to collect the output data of the robotic arm under the action of torque in real time at a frequency of 50 times per second.
[0065] In a preferred embodiment of the present invention, the calculation formula of the fitness function is:
[0066]
[0067] Among them, M i represents the i-th moment value sample; n1 represents the total number of samples; M max Indicates the maximum value of the collected torque value samples; M min Indicates the minimum value of the collected torque value samples; T indicates the total test time; i is a summation index used to traverse all torque value samples; external summation In the example, i changes from 1 to n1; j is a summation index, and the internal summation The sum of all moment value samples is calculated, j is the index of each moment value sample from 1 to n1; M j is the jth torque value sample; x represents a torque application scheme; F(x) is the fitness function.
[0068] In an embodiment of the present invention, the formula comprehensively considers the volatility and range of the torque value, and obtains 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 value, which is convenient for 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] The output data is passed Filtering is performed to obtain a filtered data sequence, where y[n] is the nth data sequence after filtering, representing the filtered output data at time point n; N1 is the window size of the filter; K1 is the window size used to calculate the dynamic weight; β m is the coefficient of the mth data point; x 2 [nmk] represents the square value of the input signal at time point [nmk]; n represents the time point; m is the data point index in the filter window, which varies from 0 to N1-1; p is the data point index in the filter window, which varies from 0 to N1-1; k is the data point index in the history window used to calculate the dynamic weight, which varies from 0 to K1-1; nm represents the data at m time points before time point n; is the attenuation factor of the mth data point; x 2 [npk] represents the square value of the input signal at time point npk; N1-1 is the filter window size minus one, which represents the maximum index value of the data point in 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 the embodiment of the present invention, the noise and outliers in the original data can be effectively suppressed by filtering. The filtering process can smooth the rapid fluctuations in the data and make the data curve smoother, which helps to reveal the overall trend and periodic changes of the data. By introducing dynamic weights (determined by the square value of the data point in 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. By introducing the coefficient β of the data point m and attenuation factor Individualized weighted processing can be performed for different data points, which helps to highlight key data points while weakening the impact of unimportant data points on the output results. By adjusting the filter window size N1 and the dynamic weight window size K1, data filtering requirements in different scenarios can be flexibly responded to.
[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 Processing to obtain preprocessed data;
[0075] Wherein, 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; is a summation expression, which represents the sum of all y[q] from q=0 to q=N2-1; is the mean of the data points in the filtered data sequence; Represents the square of the difference between 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 traverse the data points in the data sequence.
[0076] In the embodiment of the present invention, the data is standardized by subtracting the mean and dividing by the standard deviation. This standardization process makes the data have zero mean and unit variance, which is helpful for subsequent data analysis; the standardization process removes the dimension of the data, so that data of different units or scales can be compared and analyzed on the same scale. The standardized data is easier to use for identifying outliers.
[0077] In a preferred embodiment of the present invention, the torque fluctuation value is calculated based on the preprocessed data, including:
[0078] Starting from the second data point in the processed data, traverse to the second to last data point in sequence;
[0079] For each pair of adjacent data points s b-1 and b , where s b-1 Yes b At the previous point, do the following:
[0080] Build with s b-1 Subsequence ending with s b The beginning subsequence;
[0081] Calculate in sb-1 Subsequences ending with s b The distance value between the subsequences at the beginning;
[0082] Take the distance value as data point s b The torque fluctuation value at .
[0083] In an embodiment of the present invention, by calculating the distance value between adjacent data point subsequences, it is possible to accurately monitor the slight change of the torque. By observing the change of the torque fluctuation value, the stability and performance of the equipment during operation can be analyzed, and potential problems can be discovered and handled in time. By continuously monitoring the torque fluctuation value, the wear and failure trend of the equipment can be predicted, thereby achieving preventive maintenance, helping to reduce the equipment failure rate, improve production efficiency, and reduce maintenance costs. According to the analysis results of the torque fluctuation value, the control strategy of the equipment can be optimized to improve the operating efficiency and stability of the equipment. For example, more sophisticated control measures are taken in areas with large torque fluctuations to reduce energy consumption and mechanical wear. For production processes that require precise control of torque (such as precision machining, assembly, etc.), the monitoring and analysis of the torque fluctuation value helps to timely discover abnormalities in the production process, thereby improving product quality and qualified rate. Through real-time monitoring and analysis of the torque fluctuation value, external interference or internal failures can be discovered and dealt with in time, thereby enhancing the robustness and reliability of the system.
[0084] In the embodiment of the present invention, the above steps may specifically include:
[0085] Get 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] Start from the second data point of preprocessed_data and traverse until the second to last data point. In each iteration, record the current data point as s b , and the previous data point is recorded as s b-1 .
[0088] For s b-1 , construct a subsequence ending with it:
[0089] From b-1 Take forward data point, denoted as subsequence_ending_at_s_b_minus_1;
[0090] For s b, construct a subsequence starting with it:
[0091] From b Take it backward data point, denoted as subsequence_starting_at_s_b.
[0092] Make sure that the lengths of the two subsequences are the same. If they are different, the shorter subsequence needs to be padded (for example, using 0 padding or interpolation by other methods).
[0093] Calculate the Euclidean distance between subsequence_ending_at_s_b_minus_1 and subsequence_starting_at_s_b. The Euclidean distance calculation formula is:
[0094] Among them, a i and b i are the elements at corresponding positions in the two subsequences, and ε is the length of the subsequence. Add the calculated Euclidean distance value to the torque_fluctuations list as data point s b After the traversal is completed, the torque_fluctuations list is returned.
[0095] For example, assume that there is the following preprocessed data sequence preprocessed_data = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100], and the window size W is set to 5.
[0096] preprocessed_data=[10, 20, 30, 40, 50, 60, 70, 80, 90, 100];
[0097] Traverse 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 ending subsequence: [10, 20] (because the window size is 5, so take 2 points forward);
[0100] Build with s b The beginning subsequence: [30, 40] (take 2 points backward);
[0101] Calculate the 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 equidistant, all the torque fluctuation values will be the same.
[0104] In another preferred embodiment of the present invention, the above step 19 may include:
[0105] Analyzing the overall trend of the torque fluctuation curve and observing whether there are obvious fluctuations or periodic changes will help understand the overall stability of the equipment under the action of static torque; identifying the peaks and valleys in the torque fluctuation curve and recording their occurrence time and amplitude. These extreme points represent the performance of the equipment under certain specific conditions. Comparing the preset performance indicators or industry standards to evaluate whether the torque fluctuation performance of the equipment under test meets the standards can help determine whether the equipment meets the design requirements or usage needs. According to the torque fluctuation curve, analyzing the factors that may cause performance fluctuations, such as external interference, friction and wear inside the equipment, etc., will help find the root cause of performance problems. Based on the above analysis, write a performance evaluation report to record in detail the performance of the equipment under static torque, existing problems and improvement suggestions.
[0106] For example, suppose the torque fluctuation performance of a robot arm is tested and the corresponding torque fluctuation curve is obtained. During the analysis, the following is found: the torque fluctuation curve is relatively stable at the beginning of the test, but the fluctuation gradually increases over time, which may indicate that the stability of the robot arm will be affected after working for a long time. At the 10th and 15th minutes of the test, the torque fluctuation curve showed obvious peaks. By checking the records, it was found that these two time points were exactly when the robot arm performed difficult movements. This shows that under high loads or complex movements, the torque fluctuation performance of the robot arm will be greatly affected. Compared with the industry standard, the torque fluctuation performance of the robot arm is up to standard most of the time, but under high loads or complex movements, its performance has declined and failed to fully meet the preset indicators. Combined with the design and working principle of the robot arm, the analysis believes that the reason for the increase in torque fluctuation may be wear or insufficient lubrication of the transmission system inside the robot arm. In addition, the optimization of the control system may also help improve the stability of the robot arm under high loads.
[0107] like Figure 2 As shown, an embodiment of the present invention further provides a torque fluctuation static testing device 20, comprising:
[0108] The acquisition module 21 is used to determine the torque range, test time and data collection frequency of the test; according to the torque range, test time and data collection frequency of the test, the torque application sequence is encoded into a chromosome; a series of torque application schemes are randomly generated as the initial population, and a fitness function for evaluating the advantages and disadvantages of each torque application scheme is determined; according to the fitness function, the corresponding individual is determined to enter the next generation, two individuals are randomly determined, and some genes are exchanged 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 evolutionary generation is reached to obtain a final torque application scheme, so that the torque application device applies a static torque to the device under test through the final torque application scheme; in the process of applying 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; according to the torque fluctuation curve, the performance of the device under test is analyzed and evaluated to obtain an evaluation result.
[0110] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0111] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0112] The embodiment of the present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0113] The above is 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 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 torque fluctuation static test method, characterized in that: The method comprises: Determine the test torque range, test time and data collection frequency; According to the tested torque range, test time, and data collection frequency, the torque application sequence is encoded into a chromosome; A series of torque application schemes are randomly generated as an initial population, and a fitness function for evaluating the pros and cons of each torque application scheme is determined; According to the fitness function, the corresponding individuals are determined to enter the next generation, two individuals are randomly determined, and some genes are exchanged to produce new individuals; Randomly changing the genes of some individuals with a certain probability until a preset evolutionary generation is reached to obtain a final torque application scheme, so that the torque application device applies a static torque to the device to be tested 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; Preprocessing the output data to obtain preprocessed data; Calculate the torque fluctuation value based on the preprocessed data and draw the torque fluctuation curve; According to the torque fluctuation curve, the performance of the equipment to be tested is analyzed and evaluated to obtain the evaluation results.
2. The torque fluctuation static test method according to claim 1, characterized in that: The calculation formula of the fitness function is: Among them, M i represents the i-th moment value sample; n1 represents the total number of samples; M max Indicates the maximum value of the collected torque value samples; M min Indicates the minimum value of the collected torque value samples; T indicates the total test time; i is a summation index used to traverse all torque value samples; external summation In the example, i changes from 1 to n1; j is a summation index, and the internal summation The sum of all moment value samples is calculated, j is the index of each moment value sample from 1 to n1; M j is the jth torque value sample; x represents a torque application scheme; F(x) is the fitness function.
3. The torque fluctuation static test method according to claim 2, characterized in that: The output data is preprocessed to obtain preprocessed data, including: The output data is passed Filtering is performed to obtain a filtered data sequence, where y[n] is the nth data sequence after filtering, representing the filtered output data at time point n; N1 is the window size of the filter; K1 is the window size used to calculate the dynamic weight; β m is the coefficient of the mth data point; x 2 [nmk] represents the square value of the input signal at time point [nmk]; n represents the time point; m is the data point index in the filter window, which varies from 0 to N1-1; p is the data point index in the filter window, which varies from 0 to N1-1; k is the data point index in the history window used to calculate the dynamic weight, which varies from 0 to K1-1; nm represents the data at m time points before time point n; is the attenuation factor of the mth data point; x 2 [npk] represents the square value of the input signal at time point npk; N1-1 is the filter window size minus one, which represents the maximum index value of the data point in the filter window; x[nm] refers to the input signal value at m time points before time point n; The filtered data sequence y[n] is processed to obtain preprocessed data.
4. The torque fluctuation static test method according to claim 3, characterized in that: The filtered data sequence y[n] is processed to obtain preprocessed data, including: The nth data sequence after filtering is processed by Processing to obtain preprocessed data; Wherein, 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; is a summation expression, which represents the sum of all y[q] from q=0 to q=N2-1; is the mean of the data points in the filtered data sequence; Represents the square of the difference between 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 traverse the data points in the data sequence.
5. The torque fluctuation static test method according to claim 4, characterized in that: The preprocessed data include torque value, equipment displacement and equipment speed.
6. The torque fluctuation static test method according to claim 5, 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, traverse to the second to last data point in sequence; For each pair of adjacent data points s b-1 and b , where s b-1 Yes b At the previous point, do the following: Build with s b-1 Subsequence ending with s b The beginning subsequence; Calculate in s b-1 Subsequences ending with s b The distance value between the subsequences at the beginning; Take the distance value as data point s b The torque fluctuation value at .
7. The torque fluctuation static test method according to claim 1, characterized in that: The torque application sequence includes the magnitude of the torque and the time point of application.
8. A torque fluctuation static test device, characterized in that: include: An acquisition module is used to determine the test torque range, test time and data acquisition frequency; According to the tested torque range, test time and data collection 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 for evaluating the pros and cons of each torque application scheme is determined; the corresponding individuals are determined to enter the next generation according to the fitness function, and two individuals are randomly determined, and some genes are exchanged to generate new individuals; A processing module, used for randomly changing the genes of some individuals with a certain probability until a preset evolutionary generation is reached, so as to obtain a final torque application scheme, so that the torque application device applies a static torque to the device to be tested 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; Preprocessing the output data to obtain preprocessed data; Calculate the torque fluctuation value based on the preprocessed data and draw the torque fluctuation curve; According to the torque fluctuation curve, the performance of the equipment to be tested is analyzed and evaluated to obtain the evaluation results.
9. A computing device, characterized in that include: one or more processors; A storage device, used for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Test method and test system for dynamic torque ripple of motor
CN111721567A
Method for mining variable-length motif in trend data based on GPU (Graphics Processing Unit)
CN117494060A
Risk assessment method and device for ship model design and electronic equipment
CN118260866A
Zebra crossing pedestrian safety early warning method and device
CN118411829A
Method for acquiring friction characteristics of servo system, control method and system of servo system, and storage device
WO2020097769A1
