A method, device and equipment for data time alignment

By acquiring the sampling data of multiple acquisition devices, determining the reference sampling interval and aligning the working condition switching points, the problem of increasing time error of multiple devices in offline state is solved, and the time alignment and analysis efficiency of data signals are improved.

CN119202033BActive Publication Date: 2025-03-14JINCHENG NANJING ELECTROMECHANICAL HYDRAULIC PRESSURE ENG RES CENT AVIATION IND OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411703492.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-14
Estimated Expiration
2044-11-26

AI Technical Summary

Technical Problem

In offline state, the time error between multiple acquisition devices causes the collected signal error to gradually increase, and how to eliminate these time errors has become an urgent problem.

Method used

By acquiring the sampling data collected by multiple acquisition devices, determining the reference sampling interval, and average processing of each group of sampled data, determining the working condition switching point, and aligning the starting points of each group of sampled data to eliminate time errors.

Benefits of technology

It realizes time alignment of the data signals of multiple acquisition devices in offline state, eliminates time errors, ensures time consistency of data, thereby improving the efficiency of data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119202033B_ABST
    Figure CN119202033B_ABST
Patent Text Reader

Abstract

The present application provides a data time alignment method, device and equipment. The method provided by the present application includes: for each acquisition device for signal acquisition of the test object, a set of sampling data collected by the acquisition device is obtained; according to the minimum value of multiple sampling frequencies corresponding to multiple sets of sampling data collected by multiple acquisition devices, a reference sampling interval is determined; each set of sampling data is averaged with the interval as the time interval to obtain processed data; for each set of processed data, the first point of the set of processed data is used as the target point to determine whether the target point is a working condition switching point; when the target point is a working condition switching point, the target point is marked as the starting point of the set of data, and when it is not a working condition switching point, the next point is used as the target point, and the judgment step is performed again until the working condition switching point is found; the starting point of each set of sampling data is determined as a sampling point at the same time, so as to align each set of sampling data in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data time alignment method, device and equipment. Background Art

[0002] In recent years, with the continuous advancement of science and technology and the increasing demand for data analysis, in order to improve the comprehensiveness and accuracy of the collected data, more and more research and applications have begun to use multiple acquisition devices to collect data on the test objects at the same time. This can significantly improve the richness of the data and ensure that the characteristics of the test objects are captured from different angles and dimensions.

[0003] However, when performing signal analysis, the clocks of multiple acquisition devices are not aligned, resulting in a gradual increase in the error of the collected signal when the acquisition devices are not connected to the Internet. Therefore, how to eliminate the time error between the acquisition devices in an offline state has become an urgent problem that needs to be solved. Summary of the invention

[0004] In view of this, the present application provides a data time alignment method, apparatus and device for eliminating the time error between various acquisition devices in an offline state, so that the data signals collected by each acquisition device are aligned in time.

[0005] Specifically, the present application is implemented through the following technical solutions:

[0006] A first aspect of the present application provides a data time alignment method, the method comprising:

[0007] For each of the multiple acquisition devices for acquiring signals from the test object, a set of sampling data acquired by the acquisition device when acquiring the designated signal is acquired; wherein each acquisition device is used to acquire at least one signal of the test object when the test object is tested according to a standard load spectrum; the test includes multiple cycles, each cycle includes at least two working conditions; the designated signal undergoes a sudden change when the working condition is switched;

[0008] Determine a reference sampling interval according to the minimum value of multiple sampling frequencies corresponding to multiple groups of sampling data collected by the multiple collection devices; wherein the reference sampling interval is greater than or equal to the sampling interval corresponding to the minimum value;

[0009] For each group of sampling data, performing mean processing on the group of sampling data with the reference sampling interval as the time interval to obtain processed data corresponding to the group of sampling data;

[0010] For each set of processed data, the first point of the set of processed data is taken as the target point to determine whether the target point is a working condition switching point;

[0011] When the target point is a working condition switching point, the target point is marked as the starting point of the group of data. When the target point is not a working condition switching point, the next point is taken as the target point, and the step of determining whether the target point is a working condition switching point is performed again until the working condition switching point is found.

[0012] The starting points of each group of sampling data are determined as sampling points at the same time, so as to align the groups of sampling data in time.

[0013] The second aspect of the present application provides a data time alignment device, the device comprising an acquisition module, a determination module, a processing module, a judgment module and an alignment module, wherein the acquisition module is used to acquire, for each of a plurality of acquisition devices for signal acquisition of a test object, a set of sampled data collected by the acquisition device when the acquisition device acquires a specified signal; wherein each acquisition device is used to collect at least one signal of the test object when the test object is tested according to a standard load spectrum; the test includes a plurality of cycles, each cycle includes at least two working conditions; the specified signal undergoes a sudden change when the working condition switches;

[0014] The determination module is used to determine a reference sampling interval according to a minimum value of multiple sampling frequencies corresponding to multiple groups of sampling data collected by the multiple collection devices; wherein the reference sampling interval is greater than or equal to the sampling interval corresponding to the minimum value;

[0015] The processing module is used to perform mean processing on each group of sampling data with the reference sampling interval as the time interval to obtain processed data corresponding to the group of sampling data;

[0016] The judgment module is used to judge whether the first point of each group of processed data is a working condition switching point by taking the first point of the group of processed data as a target point;

[0017] The determination module is used to mark the target point as the starting point of the group of data when the target point is a working condition switching point, and to use the next point as the target point when the target point is not a working condition switching point, and to perform the step of determining whether the target point is a working condition switching point again until the working condition switching point is found;

[0018] The alignment module is used to determine the starting point of each group of sampling data as a sampling point at the same time, so as to align the groups of sampling data in time.

[0019] The third aspect of the present application provides a data time alignment device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods provided in the first aspect of the present application are implemented.

[0020] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods provided in the first aspect of the present application.

[0021] The data time alignment method, device and equipment provided by the present application, for each of the multiple acquisition devices for signal acquisition of the test object, obtains a set of sampling data that occurs suddenly when the operating condition switches when the acquisition device acquires the specified signal, and determines the reference sampling interval according to the minimum value of multiple sampling frequencies corresponding to the multiple sets of sampling data collected by the multiple acquisition devices, and then for each set of sampling data, the group of sampling data is averaged with the reference sampling interval as the time interval to obtain the processed data corresponding to the group of sampling data, so that for each set of processed data, the first point of the group of processed data is used as the target point to determine whether the target point is a working condition switching point, and when the target point is a working condition switching point, the target point is marked as the starting point of the group of processed data, and when the target point is not a working condition switching point, Take the next point as the target point, and execute the step of determining whether the target point is the operating condition switching point again until the operating condition switching point is found, and then determine the starting point of each group of sampling data as the sampling point at the same time, so as to align the groups of sampling data in time. In this way, on the one hand, by systematically judging and marking the target point, the operating condition switching point can be accurately identified, and then the data starting point can be accurately identified, and based on the starting point of each group of sampling data, each group of processed data can be aligned to the same time, which can ensure that data from different acquisition devices are compared and analyzed in the same time frame, further improving the efficiency of data analysis; on the other hand, the method provided in the present application aims to align several cycles of starting the operating condition cycle by aligning the starting point, which can improve the accuracy more than aligning the sampling point at a certain moment. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A flowchart of a first embodiment of a data time alignment method provided by the present application;

[0023] Figure 2 A schematic diagram of a pressure signal before alignment according to an exemplary embodiment of the present application;

[0024] Figure 3 To use the method provided by this application Figure 2 A schematic diagram of the alignment result after the alignment processing of two sets of collected data is shown;

[0025] Figure 4 A schematic diagram of the structure of the second embodiment of the data time alignment device provided by the present application;

[0026] Figure 5This is a hardware structure diagram of the data time alignment device in which the data time alignment device of the present application is located. DETAILED DESCRIPTION

[0027] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.

[0028] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.

[0029] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0030] Specifically, in one application scenario, when conducting performance tests, endurance tests, and other tests on electromechanical products such as hydraulic pumps based on standard load spectra, the operating conditions of the electromechanical products are generally controlled by a measurement and control console to meet the operating conditions required by the relevant standards. During the test, the measurement and control console is used to collect and record various parameters of the electromechanical products during the test. However, the data collected by the measurement and control console may be incomplete, have a low sampling rate, and low accuracy. At this point, according to business needs, additional other acquisition equipment is needed to collect the parameters of the electromechanical products to meet more comprehensive, high sampling rate, and high-precision signal acquisition needs.

[0031] However, when performing signal analysis, the data recorded by the measurement and control station and other acquisition devices need to be used at the same time. The measurement and control station is regarded as acquisition device 1, and other acquisition devices are regarded as acquisition device 2. The clocks of the two acquisition devices will be misaligned. When the two acquisition devices are not connected to the Internet, the clock error between the two will even gradually increase. Therefore, when the data of two acquisition devices need to be analyzed at the same time, the time error between the two needs to be eliminated first. The present application proposes an offline data time alignment method. The signals collected by multiple acquisition devices can be aligned in time to eliminate the time error of multiple devices.

[0032] Specific embodiments are given below to introduce the technical solution of the present application in detail.

[0033] Figure 1 This is a flow chart of the first embodiment of the data time alignment method provided by this application. Please refer to Figure 1 , the method provided in this embodiment may include:

[0034] S101. For each of a plurality of acquisition devices for acquiring signals from a test object, a group of sampling data acquired when the acquisition device acquires a designated signal is acquired.

[0035] It should be noted that the data time alignment method and apparatus provided in the present application are applied to a data time alignment device, which may be a server, a computer, etc. Furthermore, the data time alignment method and apparatus provided in the present application are used to time align multiple sampling data collected by multiple acquisition devices for signal acquisition of a test object.

[0036] It should be noted that each acquisition device is used to collect at least one signal of the test object when the test object is tested according to the standard load spectrum; wherein, the standard load spectrum is a unified standard and specification formulated for the testing of various types of products according to relevant standards; the at least one signal can be a temperature signal, a pressure signal or a flow signal.

[0037] In addition, in the present application, the test includes multiple cycles. Optionally, for example, in a hydraulic pump durability test, the test includes multiple test phases, each test phase includes multiple cycles, each cycle includes at least two working conditions, and when the two working conditions are switched, the specified signal will suddenly change.

[0038] Optionally, in a possible implementation, the test object is a hydraulic pump, and the test is an endurance test.

[0039] Combined with the above example, when conducting a durability test on a hydraulic pump, the hydraulic pump is tested according to the standard load spectrum. The standard load spectrum is shown in Table 1:

[0040] Table 1 Standard load spectrum of hydraulic pump durability test

[0041]

[0042] Please refer to Table 1. It can be understood that the hydraulic pump endurance test includes 8 test stages, each test stage includes multiple cycles (multiple cycles are specifically reflected in the test time); each cycle includes two working conditions, which are working conditions 1 and working conditions 2 in Table 1 (working conditions 1 and working conditions 2 pass); each cycle lasts 30 seconds. It should be noted that, please refer to Table 1, in the endurance test, the working condition is jointly defined by the speed, outlet pressure, and outlet flow. It should be noted that in Table 1, the overpressure ratio is 20%; b represents the maximum pressure of 95% full flow; C represents the pressure when the outlet pressure is adjusted to the specified flow.

[0043] Furthermore, when the test object is tested, multiple acquisition devices are used to collect signals from the test object.

[0044] It should be noted that the specific number of multiple acquisition devices is set according to actual needs, and is not limited in this embodiment. For example, in combination with the above example, when performing a durability test on a hydraulic pump, acquisition devices 1 and 2 are used to simultaneously acquire signals from the hydraulic pump. Among them, acquisition device 1 acquires the temperature signal, pressure signal, and flow signal of the hydraulic pump at acquisition frequencies fs1_temp, fs1_pressure, and fs1_flow, respectively; acquisition device 2 acquires the pressure signal and vibration signal of the hydraulic pump at acquisition frequencies fs2_pressure and fs2_vibration, respectively.

[0045] It should be noted that the type and quantity of the signals collected by each collection device are set according to actual needs, and are not limited in this embodiment. Further, the sampling frequency of each collected signal is also set according to actual needs, and is not limited in this embodiment.

[0046] It is understandable that the acquisition frequencies of the collected signals are not the same. For example, for signals with slow change rates (such as temperature signals), a lower sampling rate is used; for signals with high change rates (such as vibration signals), a higher sampling rate is used. It is understandable that the signals collected by each acquisition device have a consistent clock, and the clocks of each acquisition device are not completely consistent.

[0047] In combination with the above example, for example, when conducting a durability test on a hydraulic pump, the acquisition device 1 may be a measurement and control station, which is used to collect temperature signals, pressure signals and flow signals, wherein the sampling frequency of the temperature signal is 5 Hz, the sampling frequency of the pressure signal is 5 Hz, and the sampling frequency of the flow signal is 5 Hz; further, the acquisition device 2 may be a collection instrument independent of the measurement and control station, which is used to collect pressure signals and vibration signals, wherein the sampling frequency of the pressure signal is 10 kHz, and the sampling frequency of the vibration signal is 20 kHz.

[0048] In this step, for each acquisition device, multiple groups of sampling data collected by the acquisition device can be directly obtained first, and then a group of sampling data that undergoes a sudden change when the working condition is switched can be screened out from the multiple groups of sampling data.

[0049] It should be noted that each acquisition device selects a representative signal to implement the time data time alignment algorithm. Since the clocks of the signals collected by each device are consistent, it is only necessary to select a signal signal1 continuously collected by acquisition device 1 and a signal signal2 continuously collected by acquisition device 2 for alignment.

[0050] The selection criteria of signal 1 and signal 2 are as follows: when the working conditions are switched, many signals will change suddenly, for example, the pressure signal will change suddenly, and the signal with the change can be selected. For example, the pressure signal of acquisition device 1 is selected as signal 1, and the pressure signal of acquisition device 2 is selected as signal 2.

[0051] S102: Determine a reference sampling interval according to a minimum value of a plurality of sampling frequencies corresponding to a plurality of groups of sampling data collected by the plurality of collection devices.

[0052] It should be noted that the multiple sets of sampled data collected by multiple acquisition devices refer to the multiple sets of sampled data that are screened out when the working conditions are switched. For example, in the above example, the multiple sets of sampled data include the pressure signal collected by acquisition device 1 and the pressure signal collected by acquisition device 2.

[0053] Specifically, multiple groups of sampling data collected by multiple acquisition devices correspond to different sampling frequencies. By determining the minimum value of the multiple sampling frequencies and further determining the benchmark sampling interval based on the minimum value of the multiple sampling frequencies, a unified time scale standard is provided for subsequent sampling data processing and analysis.

[0054] Combined with the above example, for example, acquisition device 1 acquires the test object and pressure signal at acquisition frequency fs1_pressure; while acquisition device 2 acquires the pressure signal of the test object at acquisition frequency fs2_pressure. At this time, let fs be the minimum value of the sampling frequency, fs=min(fs1_pressure, fs2_pressure). Furthermore, the sampling interval delta corresponding to the minimum value is equal to 1 / fs.

[0055] It should be noted that the reference sampling interval my_delta is determined according to the sampling interval delta corresponding to the minimum value, and is greater than or equal to the sampling interval corresponding to the minimum value, that is, my delta>=delta.

[0056] In this embodiment, the specific value of the reference adoption interval is not limited, and can be set according to actual needs when the conditions are met.

[0057] In combination with the above example, for example, in one embodiment, fs1_pressure=5 Hz, fs2_pressure=10 kHz, at this time fs=5 Hz, delta=0.2 s, and further, the reference sampling interval my delta is set to 1 s.

[0058] S103 , for each group of sampling data, perform mean processing on the group of sampling data at a time interval of the reference sampling interval to obtain processed data corresponding to the group of sampling data.

[0059] Specifically, for each group of sampling data, according to the determined reference sampling interval my delta, the average value of the data of the group of sampling data in the time slice is calculated every my delta time to obtain the processed data corresponding to the group of sampling data.

[0060] It should be noted that after processing in this step, the signal sampling interval of the processed data is my delta.

[0061] Combined with the above example, for example, when my delta=1s, at this time, every 1s, the average value of each group of sampled data within 1s is calculated, so that the processing data (the average value is calculated every 1s, and the average value constitutes a point of the processing data. The processing data is composed of multiple average values, and the time interval between two adjacent average values ​​is 1s), the sampling interval of the processing data is 1s, so that when the signal is aligned later, the alignment time error resolution is 1s.

[0062] Combining the above example, the mean of the signal pressure1 and the signal pressure2 is calculated every 1 second. After processing, pressure1_process and pressure2_process are obtained respectively.

[0063] S104 . For each group of processed data, take the first point of the group of processed data as a target point, and determine whether the target point is a working condition switching point.

[0064] It should be noted that the first point of the processed data is the beginning of a specific time period or test phase, and there is a great possibility that the operating condition will switch. Therefore, in this step, the first point of the processed data is checked as the target point, which can effectively prevent the omission of a possible operating condition switching point due to failure to detect, and can also improve the process standardization of the overall operating condition switching point detection.

[0065] Referring to the previous description, it can be understood that the standard load spectrum has the characteristics of periodicity and sudden changes in the signal when the working condition is switched. Therefore, when the acquisition device starts to operate the working condition periodically, the above characteristics of the two acquisition devices are captured and aligned, and the subsequent data are also aligned accordingly. That is, the working condition switching point is captured and aligned, and the subsequent data are also aligned accordingly.

[0066] Furthermore, after selecting a target point that may be a working condition switching point, it is necessary to judge it according to a series of preset conditions to determine whether it is a working condition switching point.

[0067] Among them, the preset conditions include a first condition, a second condition and a third condition, wherein the first condition is that the target point is an extreme point in a specified neighborhood or the absolute value of the difference between the target point and the k points after the target point is less than a first preset threshold; the second condition is that the difference between the target point and the previous point is greater than a second preset threshold; the third condition is that the point after the target point separated by N preset reference periods still satisfies the first condition and the second condition; N is 1 to 3; the preset reference period is determined based on the period.

[0068] The following is an explanation of the first, second and third conditions in the preset conditions:

[0069] (1) The first condition is that the target point is an extreme point in the specified area or the absolute value of the difference between the target point and the k points after the target point is less than a first preset threshold.

[0070] Specifically, when considering whether the target point is an extreme point in the specified area, the specified neighborhood includes the left neighborhood and the right neighborhood of the target point, and the number of points contained in the left neighborhood and the right neighborhood are both less than the third preset threshold; wherein the third preset threshold is calculated according to the following formula:

[0071] ;

[0072] in, is a third preset threshold; for said period; is the reference sampling interval.

[0073] Further, when considering whether the absolute value of the difference between the target point and the k points after the target point is less than the first preset threshold, it is necessary to determine the specific value of k, which is determined based on the following formula:

[0074] ;

[0075] in, is the shortest value of the duration of each operating condition in at least two operating conditions; is the reference sampling interval.

[0076] It should be noted that the first preset threshold is a relatively small number. In specific implementation, its specific value can be set according to actual needs and is not limited here. For example, in one embodiment, the first preset threshold can be 0.01.

[0077] Further, in combination with Table 1, in the example shown in Table 1, the period is 30s, the reference sampling interval is 1s, and the shortest value of the duration of each of the at least two working conditions is 5s. Further, for example, in one embodiment, the left and right areas each include 5 points. In this step, in the first condition, it is determined whether the target point is an extreme value within the 10 points in the neighborhood.

[0078] (2) The second condition is that the difference between the target point and the previous point is greater than a second preset threshold.

[0079] Specifically, for the i-th point in the processed data, it is determined whether the difference between the point and the i-1-th point is greater than the second preset threshold value. If it is greater, the second condition is met, and if it is less, the second condition is not met. It should be noted that the second preset threshold value is set according to actual needs and is not limited here. For example, in one embodiment, the second preset threshold value can be set to 0.1.

[0080] (3) The third condition is that a point N preset reference periods after the target point still satisfies the first condition and the second condition.

[0081] Specifically, when the target point satisfies the first condition and the second condition, it is still necessary to consider whether the point after the target point that is N preset reference periods away also satisfies the first condition and the second condition.

[0082] It is understandable that when the target point itself satisfies the first condition and the second condition, it is judged that the target point is a working condition switching point, and misjudgment may occur. For example, in one embodiment, there may be various noise interferences in the processing data, resulting in momentary abnormal fluctuations in the data, and if the target point happens to be the point of such abnormal fluctuations, it may be misjudged if it is determined as a working condition switching point only when the first condition and the second condition are met at the point; in addition, during the switching process of the working condition, there may be data points that undergo unstable changes, but the point is not a true working condition switching point, and it may be misjudged if it is determined as a working condition switching point only when the first condition and the second condition are met at the point.

[0083] Therefore, in the present application, it is required that the point after the target point that is N preset reference periods away still meets the first condition and the second condition.

[0084] Further, the value range of N is 1 to 3. It is understood that the specific value of N is set according to actual needs and is not limited here. For example, in one embodiment, N can be 2. For another example, in another embodiment, N is 3. It is understood that when N is equal to 3, after judging that the target point meets the first condition and the second condition, it is further judged whether the point after the target point is separated by a preset reference period, the point after the target point is separated by two preset reference periods, and the point after the target point is separated by three preset reference periods still meet the first condition and the second condition.

[0085] It should be noted that the preset reference period is determined based on the period T. It can be understood that due to possible errors (the errors may be caused by the accuracy of the data measurement equipment), in one embodiment, the preset reference period may be equal to the above period. In another embodiment, the preset reference period may be relaxed to Tr / A or T+r / A, where T is the period, A is the minimum value of the multiple sampling frequencies, and r is a preset value.

[0086] The specific value of r is set according to actual needs and is not limited here. For example, when T=30s, the preset reference period can be relaxed to 29s to 31s.

[0087] Based on the above description, if a target point in the processed data meets all the conditions in the preset conditions, the target point is determined to be a working condition switching point. If the target point does not meet any of the three conditions in the preset conditions, the target point is determined not to be a working condition switching point.

[0088] S105. When the target point is a working condition switching point, mark the target point as the starting point of the group of processed data. When the target point is not a working condition switching point, take the next point as the target point and execute again the step of determining whether the target point is a working condition switching point until the working condition switching point is found.

[0089] Specifically, when the target point is determined to be a working condition switching point, the target point is marked as the starting point of the group of data. For example, if the i-th point in the processed data meets all the conditions in the preset conditions, the target point can be marked as the starting point of the processed data, and the target point is recorded as idx1.

[0090] Furthermore, if the target point does not meet the preset conditions, the target point is not a working condition switching point, and the next point is taken as the target point and continues to be judged until a working condition switching point that meets the preset conditions is found.

[0091] S106: Determine the starting point of each group of processed data as a sampling point at the same time, so as to align the groups of processed data in time.

[0092] Specifically, the starting point of each group of sampling data is determined as a sampling point at the same time. When these two points are aligned, the points behind these two points also correspond accordingly, so that the sampling data is aligned in time.

[0093] Assume that the serial number of the starting point that meets the preset conditions in the processed data pressure1_process corresponding to a group of sampling data collected by the acquisition device 1 is idx1, and the serial number of the starting point that meets the preset conditions in the processed data pressure2_process corresponding to another group of sampling data collected by the acquisition device 2 is idx2. In this step, the point with the serial number idx1 in pressure1_process and the point with the serial number idx2 in pressure2_process are taken as sampling points at the same time. After these two points are aligned, the points after the two groups of sampling data are also aligned accordingly.

[0094] For example, in one embodiment, taking the pressure signal collected by the acquisition device 1 and the pressure signal collected by the acquisition device 2 as an example, Figure 2 This is a schematic diagram of a pressure signal before alignment according to an exemplary embodiment of the present application, wherein: Figure 2 Figure (A) is a schematic diagram of the pressure signal pressure1 collected by the collection device 1. Figure 2 Figure (B) is a schematic diagram of the pressure signal pressure2 collected by the acquisition device. Please refer to Figure 2 , pressure1 and pressure2 are not aligned in time.

[0095] Furthermore, Figure 3 To use the method provided by this application Figure 2 The schematic diagram of the alignment result after the two sets of collected data are aligned is shown in Figure 1. Figure 3 Through the method provided in this application, data time alignment can be achieved accurately and data analysis efficiency can be effectively improved.

[0096] Referring to the above description, it can be understood that the method provided by the present application is applicable to the alignment of data collected in the durability test of a hydraulic pump, in which the working conditions are switched periodically. It should be noted that the method provided by the present application is not only applicable to the durability test of a hydraulic pump, but also to the problem of data time alignment in similar periodic switching of working conditions.

[0097] The data time alignment method provided in the present embodiment, for each of the multiple acquisition devices for signal acquisition of the test object, obtains a set of sampling data that occurs suddenly when the operating condition switches when the acquisition device acquires the specified signal, and determines the reference sampling interval according to the minimum value of multiple sampling frequencies corresponding to the multiple sets of sampling data collected by the multiple acquisition devices, and then for each set of sampling data, performs mean processing on the set of sampling data with the reference sampling interval as the time interval to obtain the processed data corresponding to the set of sampling data, and then for each set of processed data, takes the first point of the set of processed data as the target point, judges whether the target point is the operating condition switching point, and when the target point is the operating condition switching point, marks the target point as the starting point of the set of processed data, and when the target point is not the operating condition switching point, marks the target point as the starting point of the set of processed data. The next point is taken as the target point, and the step of determining whether the target point is the operating condition switching point is executed again until the operating condition switching point is found, and then the starting point of each group of sampling data is determined as the sampling point at the same time, so as to align the groups of sampling data in time. In this way, on the one hand, by systematically judging and marking the target point, the operating condition switching point can be accurately identified, and then the data starting point can be accurately identified, and based on the starting point of each group of sampling data, each group of processed data can be aligned to the same time, which can ensure that data from different acquisition devices are compared and analyzed in the same time frame, thereby further improving the efficiency of data analysis; on the other hand, the method provided in the present application aims to align several cycles of starting the operating condition cycle by aligning the starting point, which can improve accuracy compared to only aligning the sampling point at a certain moment.

[0098] In addition, when judging the operating condition switching point, using preset conditions for comprehensive judgment can not only improve the accuracy, but also adapt to the signal characteristics of different types and under different conditions, thereby improving the applicability of the method.

[0099] Furthermore, in the present application, a certain fault tolerance range is set during alignment for the cycle of working mode switching, which can further improve the applicability and accuracy of the method.

[0100] Corresponding to the aforementioned embodiment of a data time alignment method, the present application also provides an embodiment of a data time alignment device.

[0101] The embodiment of a data time alignment device of the present application can be applied to a data time alignment device. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, the processor of the data time alignment device in which it is located reads the corresponding computer program instructions in the non-volatile memory into the memory and runs them. From the hardware level, if Figure 5As shown, it is a hardware structure diagram of the data time alignment device where the data time alignment device of the present application is located, except Figure 5 In addition to the processor, memory, network interface, and non-volatile memory shown, the data time alignment device in which the device in the embodiment is located may also include other hardware according to the actual function of the data time alignment device, which will not be described in detail.

[0102] Figure 4 This is a structural diagram of the second embodiment of the data time alignment device provided by this application. Please refer to Figure 4 The device provided in this embodiment includes an acquisition module 410, a determination module 420, a processing module 430, a judgment module 440 and an alignment module 450, wherein:

[0103] The acquisition module 410 is used to acquire, for each of the multiple acquisition devices for acquiring signals of the test object, a set of sampled data acquired by the acquisition device when acquiring the designated signal; wherein each acquisition device is used to acquire at least one signal of the test object when the test object is tested according to a standard load spectrum; the test includes multiple cycles, each cycle includes at least two working conditions; the designated signal undergoes a sudden change when the working condition switches;

[0104] The determination module 420 is used to determine a reference sampling interval according to the minimum value of multiple sampling frequencies corresponding to the multiple groups of sampling data collected by the multiple collection devices; wherein the reference sampling interval is greater than or equal to the sampling interval corresponding to the minimum value of the multiple sampling frequencies;

[0105] The processing module 430 is used to perform mean processing on each group of sampling data with the reference sampling interval as the time interval to obtain processed data corresponding to the group of sampling data;

[0106] The judgment module 440 is used to determine, for each set of processed data, whether the first point of the set of processed data is a working condition switching point by taking the first point of the set of processed data as a target point;

[0107] The determination module 420 is used to mark the target point as the starting point of the group of processed data when the target point is a working condition switching point, and to use the next point as the target point when the target point is not a working condition switching point, and to perform the step of determining whether the target point is a working condition switching point again until the working condition switching point is found;

[0108] The alignment module 450 is used to determine the starting point of each group of processed data as a sampling point at the same time, so as to align the groups of processed data in time.

[0109] The device of this embodiment can be used to perform Figure 1The steps, specific implementation principles and implementation processes of the method embodiment shown are similar and will not be repeated here.

[0110] Please continue to refer to Figure 5 The present application also provides a data time alignment device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods provided in the first aspect of the present application are implemented.

[0111] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of any one of the methods provided in the present application are implemented.

[0112] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0113] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application. Ordinary technicians in this field can understand and implement it without creative work.

[0114] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A data time alignment method, characterized in that: The method comprises: For each of the multiple acquisition devices for acquiring signals from the test object, a set of sampling data acquired by the acquisition device when acquiring the designated signal is acquired; wherein each acquisition device is used to acquire at least one signal of the test object when the test object is tested according to a standard load spectrum; the test includes multiple cycles, each cycle includes at least two working conditions; the designated signal undergoes a sudden change when the working condition is switched; Determine a reference sampling interval according to the minimum value of multiple sampling frequencies corresponding to multiple groups of sampling data collected by the multiple collection devices; wherein the reference sampling interval is greater than or equal to the sampling interval corresponding to the minimum value of the multiple sampling frequencies; For each group of sampling data, performing mean processing on the group of sampling data with the reference sampling interval as the time interval to obtain processed data corresponding to the group of sampling data; For each set of processed data, the first point of the set of processed data is taken as the target point to determine whether the target point is a working condition switching point; When the target point is a working condition switching point, the target point is marked as the starting point of the group of processed data; when the target point is not a working condition switching point, the next point is taken as the target point, and the step of determining whether the target point is a working condition switching point is performed again until the working condition switching point is found; The starting point of each group of processed data is determined as a sampling point at the same time, so as to align the groups of processed data in time.

2. The method according to claim 1, characterized in that The determining whether the target point is a working condition switching point includes: Determine whether the target point meets the preset conditions; wherein the preset conditions include a first condition, a second condition and a third condition; wherein the first condition is that the target point is an extreme point in a specified neighborhood or the absolute value of the difference between the target point and the k points after the target point is less than a first preset threshold; the second condition is that the difference between the target point and the previous point is greater than a second preset threshold; the third condition is that the point after the target point that is N preset reference periods apart still meets the first condition and the second condition; the N ranges from 1 to 3; the preset reference period is determined based on the period; If so, the target point is determined to be a working condition switching point, otherwise it is determined that the target point is not a working condition switching point.

3. The method according to claim 2, characterized in that Said Determined based on the following formula: ; Among them, the is the shortest value among the durations of each of the at least two operating conditions; Said is the reference sampling interval.

4. The method according to claim 2 or 3, characterized in that: The designated neighborhood includes the left neighborhood and the right neighborhood of the target point, and the number of points contained in the left neighborhood and the right neighborhood are both less than a third preset threshold; wherein the third preset threshold is calculated according to the following formula: ; Among them, the is the third preset threshold; Said for said period; Said is the reference sampling interval.

5. The method according to claim 4, characterized in that The preset reference period is equal to the period; Alternatively, the preset reference period is in [Tr / A, T+r / A]; wherein T is the period, A is the minimum value of the multiple sampling frequencies; and r is a preset value.

6. The method according to claim 1, characterized in that The step of obtaining a set of sampled data collected by the acquisition device when acquiring the specified signal includes: Acquire multiple groups of sampling data collected by the collection device; A group of sampling data that undergoes a sudden change when the operating mode is switched is screened out from the multiple groups of sampling data.

7. The method according to claim 1, characterized in that The test object is a hydraulic pump; the test is an endurance test.

8. A data time alignment device, characterized in that: The device includes an acquisition module, a determination module, a processing module, a judgment module and an alignment module, wherein: The acquisition module is used to acquire, for each of the multiple acquisition devices for acquiring signals of the test object, a set of sampled data acquired by the acquisition device when acquiring the designated signal; wherein each acquisition device is used to acquire at least one signal of the test object when the test object is tested according to a standard load spectrum; the test includes multiple cycles, each cycle includes at least two working conditions; the designated signal undergoes a sudden change when the working condition switches; The determination module is used to determine a reference sampling interval according to a minimum value of multiple sampling frequencies corresponding to multiple groups of sampling data collected by the multiple collection devices; wherein the reference sampling interval is greater than or equal to a sampling interval corresponding to the minimum value of the multiple sampling frequencies; The processing module is used to perform mean processing on each group of sampling data with the reference sampling interval as the time interval to obtain processed data corresponding to the group of sampling data; The judgment module is used to judge whether the first point of each group of processed data is a working condition switching point by taking the first point of the group of processed data as a target point; The determination module is used to mark the target point as the starting point of the group of processed data when the target point is a working condition switching point, and to use the next point as the target point when the target point is not a working condition switching point, and to perform the step of determining whether the target point is a working condition switching point again until the working condition switching point is found; The alignment module is used to determine the starting point of each group of processed data as a sampling point at the same time, so as to align the groups of processed data in time.

9. A data time alignment device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Secondary equipment time scale alignment method based on recording file reference channel

    CN110895321A

  • Electric energy meter sampling signal abnormal jump identification method and device, electric energy meter and medium

    CN118536046A