A method, device, equipment and medium for expanding data samples
By decomposing and enhancing time series data, the problems of insufficient data sets and insufficient coverage are solved, and the data quality and model prediction accuracy are improved.
Patent Information
- Application Number
- CN202111017164.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-08-31
AI Technical Summary
In the existing technology, the number of time series data sets is insufficient, the features are single, and the coverage of business scenarios is not strong, resulting in poor model prediction results.
By decomposing the original time series data, extracting periodic and trend component data, and performing enhancement processing according to the proportion of the component data, including scaling, noise addition and slicing enhancement, the expanded time series data is synthesized.
It improves the diversity of data sets and business scenario coverage, improves data quality, ensures that the expanded time series data can more accurately cover business characteristics, and improves the prediction accuracy of the model.
Smart Images

Figure CN113705910B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of model prediction technology, and in particular to a method, device, equipment and computer-readable storage medium for expanding data samples. Background Art
[0002] Time series data is data collected at different times. This type of data reflects the state or degree of change of a thing or phenomenon over time. Time series analysis is a statistical method for processing time series data. This method is based on random process theory and mathematical statistics methods. It studies the statistical laws followed by time series data in order to solve practical problems.
[0003] The task of time series forecasting is to build a model based on historical data and predict the future trend of the series. In order for the model to more accurately predict future trends, it is necessary to collect sufficient data sets to train the model. This requires that the data set has a sufficient number of samples and that there is sufficient difference between the samples to cover all scenarios. However, in actual environments, the collected data sets are often insufficient in number, have single data features, and have weak coverage of business scenarios, resulting in poor prediction results for the model trained based on the data set.
[0004] It can be seen that how to obtain high-quality data sets is a problem that technical personnel in this field need to solve. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a data sample expansion method, device, equipment and computer-readable storage medium, which can obtain a high-quality data set.
[0006] In order to solve the above technical problems, the present application provides a method for expanding data samples, including:
[0007] Get the original time series data;
[0008] Decomposing the original time series data to obtain periodic component data and trend component data;
[0009] According to the proportion of the periodic component data in the original time series data, the periodic component data is enhanced to obtain periodic component enhanced data;
[0010] The periodic component enhanced data and the trend component data are superimposed to obtain expanded time series data.
[0011] Optionally, the performing enhancement processing on the periodic component data to obtain periodic component enhanced data according to the proportion of the periodic component data in the original time series data includes:
[0012] When the proportion is greater than or equal to a preset threshold, the periodic component data is scaled and denoised to obtain periodic component enhanced data.
[0013] Optionally, the performing enhancement processing on the periodic component data to obtain periodic component enhanced data according to the proportion of the periodic component data in the original time series data includes:
[0014] When the proportion is less than a preset threshold, the periodic component data is sliced and enhanced according to a set business distribution rule to obtain periodic component enhanced data.
[0015] Optionally, the performing slice enhancement processing on the periodic component data according to a set service distribution rule to obtain periodic component enhanced data includes:
[0016] Extracting data segments from the periodic component data according to a set business distribution rule;
[0017] Extending the data segment according to the set data demand;
[0018] The extended data segments are scaled and denoised to obtain periodic component enhanced data.
[0019] Optionally, extending the data segment according to the set data demand includes:
[0020] Determining an extension multiple based on the data demand and the data length of the data segment;
[0021] The data segments are repeatedly copied according to the extension multiple to obtain extended data segments.
[0022] Optionally, with respect to determining the proportion of the periodic component data in the original time series data, the method includes:
[0023] Obtaining a first range value of the periodic component data and a second range value of the original time series data;
[0024] The sum of the first range value and the second range value is taken as the total range value; and the ratio of the first range value to the total range value is taken as the proportion of the periodic component data in the original time series data.
[0025] Optionally, the original time series data is equipment operation status data; the method further includes:
[0026] The expanded time series data is used to train the initial equipment state classification model to obtain an equipment state classification model that meets the accuracy requirements, so as to determine the equipment state corresponding to the newly acquired equipment operation state data according to the equipment state classification model.
[0027] The embodiment of the present application also provides a data sample expansion device, including an acquisition unit, a decomposition unit, an enhancement unit and a superposition unit;
[0028] The acquisition unit is used to acquire original time series data;
[0029] The decomposition unit is used to decompose the original time series data to obtain periodic component data and trend component data;
[0030] The enhancement unit is used to enhance the periodic component data according to the proportion of the periodic component data in the original time series data to obtain periodic component enhanced data;
[0031] The superposition unit is used to superimpose the periodic component enhanced data and the trend component data to obtain expanded time series data.
[0032] Optionally, the enhancement unit is used to scale and add noise to the periodic component data to obtain periodic component enhanced data when the proportion is greater than or equal to a preset threshold.
[0033] Optionally, the enhancement unit is used to perform slice enhancement processing on the periodic component data according to a set business distribution rule when the proportion is less than a preset threshold, so as to obtain periodic component enhanced data.
[0034] Optionally, the enhancement unit includes a truncation subunit, an extension subunit, and a noise addition subunit;
[0035] The interception subunit is used to intercept data segments from the periodic component data according to a set service distribution rule;
[0036] The extension subunit is used to extend the data segment according to the set data demand;
[0037] The noise adding subunit is used to scale and add noise to the extended data segment to obtain periodic component enhanced data.
[0038] Optionally, the extension subunit is used to determine an extension multiple based on the data demand and the data length of the data segment; and repeatedly copy the data segment according to the extension multiple to obtain the extended data segment.
[0039] Optionally, for determining the proportion of the periodic component data in the original time series data, the apparatus includes as a unit;
[0040] The acquisition unit is used to acquire the first range value of the periodic component data and the second range value of the original time series data;
[0041] The as unit is used to take the sum of the first range value and the second range value as the total range value; and take the ratio of the first range value to the total range value as the proportion of the periodic component data in the original time series data.
[0042] Optionally, the original time series data is equipment operation status data; the device further includes a training unit;
[0043] The training unit is used to train the initial equipment state classification model using the expanded time series data to obtain an equipment state classification model that meets the accuracy requirements, so as to determine the equipment state corresponding to the newly acquired equipment operation state data based on the equipment state classification model.
[0044] The embodiment of the present application also provides a data sample expansion device, including:
[0045] Memory for storing computer programs;
[0046] A processor is used to execute the computer program to implement the steps of any one of the above methods for expanding data samples.
[0047] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data sample expansion method as described in any one of the above items are implemented.
[0048] It can be seen from the above technical solution that the original time series data is obtained; the original time series data is decomposed to obtain periodic component data and trend component data; the diversity of periodic component data can improve the coverage of the data set for business scenarios and improve the data quality of the data set. Therefore, in this technical solution, the periodic component data can be processed to achieve the purpose of expanding the data set. According to the proportion of periodic component data in the original time series data, the periodic component data is enhanced to obtain periodic component enhanced data; the periodic component enhanced data is superimposed with the trend component data to obtain the expanded time series data. In this technical solution, according to the proportion of periodic component data in the original time series data, the periodic component data can be enhanced in different ways to obtain data with sufficient differences, and the obtained data can better cover the characteristics of the business scenario, ensuring the high quality of the expanded time series data. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0050] Figure 1 A schematic diagram of a scenario of data sample expansion provided in an embodiment of the present application;
[0051] Figure 2 A flowchart of a method for expanding a data sample provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of the structure of a data sample expansion device provided in an embodiment of the present application;
[0053] Figure 4 A schematic diagram of the structure of a data sample expansion device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0055] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0056] In the traditional way, in order to make the model predict the results more accurately, it is necessary to collect sufficient data sets to train the model. However, the data sets collected currently often have problems such as insufficient quantity, single data features, and weak coverage of business scenarios, resulting in poor prediction results of the model trained based on the data set.
[0057] Therefore, the embodiments of the present application provide a data sample expansion method, device, equipment and medium to obtain original time series data; decompose the original time series data to obtain periodic component data and trend component data. Figure 1 A schematic diagram of a scenario of data sample expansion shown, relying on a computer device to achieve the expansion of the original time series data, can be set on the computer device for seasonal decomposition of the original time series data and for enhancing the processing of the periodic component data. The original time series data can be seasonally decomposed to separate periodic component data, random component data and trend component data. The diversity of periodic component data can improve the coverage of the data set for business scenarios and improve the data quality of the data set. Therefore, in the embodiment of the present application, the periodic component data can be enhanced to obtain periodic component enhanced data based on the proportion of periodic component data in the original time series data. The proportion of periodic component data in the original time series data is different, and the corresponding enhancement processing method will also be different. When the proportion is high, scaling and noise can be used for processing, and when the proportion is low, slicing enhancement can be used for processing.
[0058] Scaling can increase or decrease the amplitude of the periodic component data, and noise addition can add noise signals to the scaled periodic component data. By scaling the periodic component data, periodic component data that is different from the original periodic component data can be obtained. Noise addition processing on this basis can meet the randomness of the periodic component data, thereby ensuring that the final periodic component enhanced data is different from the original periodic component data, and can cover the characteristics of the business scenario and meet the sample quantity requirements.
[0059] Slice enhancement processing can be to extract data segments that better reflect the characteristics of the business scenario from the periodic component data, and the data segments can be extended, so as to scale and add noise to the extended data segments. Considering that the amount of data in the extracted data segments is often small, in order to make the extracted data segments more fully reflect the characteristics of the business scenario, the data segments can be extended, and the extension is mainly to repeat the data segments.
[0060] The extended time series data can be obtained by superimposing the periodic component enhanced data with the trend component data. The extended time series data has sufficient differences and can better cover the characteristics of business scenarios, ensuring the high quality of the extended time series data.
[0061] Next, a method for expanding data samples provided in an embodiment of the present application is described in detail. Figure 2 A flowchart of a method for expanding a data sample provided in an embodiment of the present application, the method comprising:
[0062] S201: Obtain original time series data.
[0063] The original time series data can be in various forms, and the form of the original time series data to be obtained can be determined in combination with the actual business scenario. For example, when it is necessary to predict the occupancy of system resources, the original time series data can be the data of the occupancy of system resources by each device in a preset time period; when it is necessary to classify the operating status of the device, the original time series data can be the corresponding operating status data of the device in a preset time period.
[0064] In the embodiment of the present application, the specific form of the original time series data is not limited and can be determined according to the actual business scenario.
[0065] S202: Decompose the original time series data to obtain periodic component data and trend component data.
[0066] The main purpose of decomposing the original time series data is to obtain data that can reflect the characteristics of the business scenario.
[0067] In the embodiment of the present application, seasonal decomposition can be used to separate periodic component data, trend component data and random component data from the original time series data. In practical applications, the random component data is not processed, so only the periodic component data and trend component data are mentioned in S202.
[0068] S203: According to the proportion of the periodic component data in the original time series data, the periodic component data is enhanced to obtain periodic component enhanced data.
[0069] The diversity of periodic component data can improve the coverage of the data set for business scenarios and improve the data quality of the data set. Therefore, in an embodiment of the present application, the periodic component data can be enhanced to achieve the purpose of expanding the data set.
[0070] Taking into account the actual application, in different business scenarios, the proportion of periodic component data in the original time series data is different. Therefore, in the embodiment of the present application, different enhancement methods can be set for different proportions. When the proportion of periodic component data in the original time series data is high, the periodic component data can be directly scaled and noised. When the proportion of periodic component data in the original time series data is low, in order to be able to more effectively enhance the data reflecting the characteristics of the business scenario, data segments that can reflect the characteristics of the business scenario can be intercepted from the periodic component data based on the business distribution law of the business scenario, and the data segments are extended, so as to scale and noise the extended data segments.
[0071] S204: Superimposing the periodic component enhanced data and the trend component data to obtain expanded time series data.
[0072] After obtaining the periodic component enhanced data, the periodic component enhanced data can be superimposed with the trend component data to obtain the expanded time series data.
[0073] It can be seen from the above technical solution that the original time series data is obtained; the original time series data is decomposed to obtain periodic component data and trend component data; the diversity of periodic component data can improve the coverage of the data set for business scenarios and improve the data quality of the data set. Therefore, in this technical solution, the periodic component data can be processed to achieve the purpose of expanding the data set. According to the proportion of periodic component data in the original time series data, the periodic component data is enhanced to obtain periodic component enhanced data; the periodic component enhanced data is superimposed with the trend component data to obtain the expanded time series data. In this technical solution, according to the proportion of periodic component data in the original time series data, the periodic component data can be enhanced in different ways to obtain data with sufficient differences, and the obtained data can better cover the characteristics of the business scenario, ensuring the high quality of the expanded time series data.
[0074] In the embodiment of the present application, the periodic component data can be enhanced according to the proportion of the periodic component data in the original time series data to obtain periodic component enhanced data. In a specific implementation, the proportion can be classified by a preset threshold.
[0075] A method for determining the proportion of periodic component data in the original time series data may include obtaining a first range value of the periodic component data and a second range value of the original time series data; taking the sum of the first range value and the second range value as the total range value; and taking the ratio of the first range value to the total range value as the proportion of the periodic component data in the original time series data.
[0076] Among them, the first range value represents the difference between the maximum value of the periodic component data and the minimum value of the periodic component data; the second range value represents the value after adding the difference between the maximum value and the minimum value corresponding to the periodic component data, trend component data and random component data in the original time series data.
[0077] The calculation method of the proportion of periodic component data in the original time series data can be found in the following formula:
[0078]
[0079] Among them, η p Indicates the proportion of periodic component data in the original time series data; max(p) indicates the maximum value of periodic component data; min(p) indicates the minimum value of periodic component data; max(p)-min(p) indicates the first range value of periodic component data; when i=p, max(i) indicates the maximum value of periodic component data, and min(i) indicates the minimum value of periodic component data; when i=t, max(i) indicates the maximum value of trend component data, and min(i) indicates the minimum value of trend component data; when i=r, max(i) indicates the maximum value of random component data, and min(i) indicates the minimum value of random component data; ∑ i=p,t,r (max(i)-min(i)) represents the second range value of the original time series data.
[0080] When the proportion is greater than or equal to the preset threshold, it means that the original time series data shows obvious periodicity. Therefore, the periodic component data can be directly scaled and denoised to obtain periodic component enhanced data.
[0081] In practical applications, the periodic component data can be scaled and denoised according to the following formula:
[0082] P aug =α*P ori +ε;
[0083] Among them, P ori Represents periodic component data; P augrepresents the periodic component enhanced data; α is the scaling factor, which can be used to control the amplitude of the periodic component enhanced data; ε is the noise signal, which obeys the normal distribution with mean μ and standard deviation σ.
[0084] In the embodiment of the present application, in order to ensure that there is a difference between the periodic component enhancement data and the periodic component data, but the deviation is not too large, the scaling factor can be controlled within a suitable range. For example, the scaling factor can be in the range of [0.9, 1.1].
[0085] When the proportion is less than the preset threshold, it means that the original time series data has no obvious periodic pattern. Considering that in practical applications, the length of the original time series data obtained is limited, and the period length of the original time series data may be long, it is impossible to find the periodic pattern from the current original time series data. Therefore, when the proportion is less than the preset threshold, the periodic component data can be sliced and enhanced according to the set business distribution law to obtain periodic component enhanced data.
[0086] In practical applications, the periodic component data can be scaled and denoised according to the following formula:
[0087] P aug =α*P o ' ri +ε;
[0088] Among them, P o ' ri Represents the extended data segment; P aug represents the periodic component enhanced data; α is the scaling factor, which can be used to control the amplitude of the periodic component enhanced data; ε is the noise signal, which obeys the normal distribution with mean μ and standard deviation σ.
[0089] In an embodiment of the present application, data segments can be extracted from the periodic component data according to a set business distribution rule; the data segments can be extended according to a set data demand; and the extended data segments can be scaled and noised to obtain periodic component enhanced data.
[0090] The data demand can be set according to the amount of data required for model training in the current business scenario.
[0091] Extending a data segment mainly involves repeating the data segment. Based on the data demand and the data length of the data segment, an extension multiple can be determined; the data segment is repeatedly copied according to the extension multiple to obtain the extended data segment.
[0092] The business distribution pattern refers to the periodicity of the business itself in the current business scenario. For example, some businesses have obvious weekly periodicity, and some businesses have obvious monthly periodicity.
[0093] Assuming that the business distribution pattern is a cycle of every 7 days and the original time series data currently obtained is 10 days of data, 7 days of data can be intercepted from the periodic component data as a data segment. Assuming that the determined extension multiple is 3, the data segment can be repeated twice to obtain 3 identical data segments. These 3 data segments are the data segments after extension.
[0094] In an embodiment of the present application, when the proportion of periodic component data in the original time series data is greater than or equal to a preset threshold, it indicates that the periodic component data can characterize the characteristics of the current business scenario. At this time, the periodic component data can be directly scaled and denoised to obtain periodic component enhanced data; the periodic component enhanced data is superimposed with the trend component data to obtain the expanded time series data. When the proportion of periodic component data in the original time series data is less than the preset threshold, it indicates that the proportion of periodic component data is small. In order to improve the ability of periodic component data to characterize the characteristics of the current business scenario, the periodic component data can be sliced and enhanced according to the set business distribution law to obtain periodic component enhanced data; the periodic component enhanced data is superimposed with the trend component data to obtain the expanded time series data. In this technical solution, according to the proportion of periodic component data in the original time series data, the periodic component data is processed in different ways, and data with sufficient differences can be obtained, and the obtained data can better cover the characteristics of the business scenario to ensure the high quality of the expanded time series data.
[0095] In the embodiment of the present application, the expanded time series data can be used for model training. Taking the original time series data as the equipment operation status data as an example, in a specific implementation, the expanded time series data can be used to train the initial equipment status classification model to obtain an equipment status classification model that meets the accuracy requirements, so as to determine the equipment status corresponding to the newly acquired equipment operation status data according to the equipment status classification model.
[0096] The device status may include a device normal load status, a device overload status, and a device idle status.
[0097] In the embodiment of the present application, the expanded time series data not only characterizes the characteristics of the business scenario, but also has sufficient differences between the data, effectively solving the problems of insufficient data sample volume, single data features, and weak coverage of business scenarios. The model is trained based on the expanded time series data, so that the trained model has better accuracy and improves the accuracy of the prediction of the model execution results.
[0098] Figure 3 A schematic diagram of the structure of a data sample expansion device provided in an embodiment of the present application, comprising an acquisition unit 31, a decomposition unit 32, an enhancement unit 33 and a superposition unit 34;
[0099] An acquisition unit 31, used for acquiring original time series data;
[0100] A decomposition unit 32, used for decomposing the original time series data to obtain periodic component data and trend component data;
[0101] The enhancement unit 33 is used to enhance the periodic component data according to the proportion of the periodic component data in the original time series data to obtain periodic component enhanced data;
[0102] The superposition unit 34 is used to superimpose the periodic component enhanced data and the trend component data to obtain the expanded time series data.
[0103] Optionally, the enhancement unit is used to scale and add noise to the periodic component data when the proportion is greater than or equal to a preset threshold to obtain periodic component enhanced data.
[0104] Optionally, the enhancement unit is used to perform slice enhancement processing on the periodic component data according to a set business distribution rule when the proportion is less than a preset threshold, so as to obtain periodic component enhanced data.
[0105] Optionally, the enhancement unit includes a truncation subunit, an extension subunit, and a noise addition subunit;
[0106] The interception subunit is used to intercept data segments from the periodic component data according to the set business distribution law;
[0107] The extension subunit is used to extend the data segment according to the set data demand;
[0108] The denoising subunit is used to scale and denoise the extended data segment to obtain periodic component enhanced data.
[0109] Optionally, the extension subunit is used to determine an extension multiple based on the data demand and the data length of the data segment; and repeatedly copy the data segment according to the extension multiple to obtain the extended data segment.
[0110] Optionally, for determining the proportion of periodic component data in the original time series data, the apparatus includes as a unit;
[0111] The acquisition unit is used to acquire the first range value of the periodic component data and the second range value of the original time series data;
[0112] As a unit, it is used to take the sum of the first range value and the second range value as the total range value; and take the ratio of the first range value to the total range value as the proportion of the periodic component data in the original time series data.
[0113] Optionally, the original time series data is equipment operation status data; the device further includes a training unit;
[0114] The training unit is used to train the initial equipment state classification model using the expanded time series data to obtain an equipment state classification model that meets the accuracy requirements, so as to determine the equipment state corresponding to the newly acquired equipment operation state data based on the equipment state classification model.
[0115] Figure 3 The description of the features in the corresponding embodiments can be found in Figure 2 The relevant descriptions of the corresponding embodiments will not be repeated here one by one.
[0116] It can be seen from the above technical solution that the original time series data is obtained; the original time series data is decomposed to obtain periodic component data and trend component data; the diversity of periodic component data can improve the coverage of the data set for business scenarios and improve the data quality of the data set. Therefore, in this technical solution, the periodic component data can be processed to achieve the purpose of expanding the data set. According to the proportion of periodic component data in the original time series data, the periodic component data is enhanced to obtain periodic component enhanced data; the periodic component enhanced data is superimposed with the trend component data to obtain the expanded time series data. In this technical solution, according to the proportion of periodic component data in the original time series data, the periodic component data can be enhanced in different ways to obtain data with sufficient differences, and the obtained data can better cover the characteristics of the business scenario, ensuring the high quality of the expanded time series data.
[0117] Figure 4 A schematic diagram of a data sample expansion device 40 provided in an embodiment of the present application includes:
[0118] A memory 41, used for storing computer programs;
[0119] The processor 42 is used to execute a computer program to implement the steps of any one of the above data sample expansion methods.
[0120] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned data sample expansion methods are implemented.
[0121] The above is a detailed introduction to a method, device, equipment and computer-readable storage medium for expanding a data sample provided in an embodiment of the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in the technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0122] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0123] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Claims
1. A method for expanding a data sample, characterized in that: include: Get the original time series data; Decomposing the original time series data to obtain periodic component data, trend component data and random component data; When the proportion of the periodic component data in the original time series data is less than a preset threshold, extracting data segments from the periodic component data according to a set business distribution rule; Extending the data segment according to the set data demand; The extended data segments are scaled and denoised to obtain periodic component enhanced data; different enhancement methods are set for different proportions; The periodic component enhanced data and the trend component data are superimposed to obtain expanded time series data.
2. The method for expanding data samples according to claim 1, characterized in that: According to the proportion of the periodic component data in the original time series data, performing enhancement processing on the periodic component data to obtain periodic component enhanced data includes: When the proportion is greater than or equal to a preset threshold, the periodic component data is scaled and denoised to obtain periodic component enhanced data.
3. The method for expanding data samples according to claim 1, characterized in that: The extending the data segment according to the set data demand comprises: Determining an extension multiple based on the data demand and the data length of the data segment; The data segments are repeatedly copied according to the extension multiple to obtain extended data segments.
4. The method for expanding data samples according to claim 1, characterized in that: With respect to determining the proportion of the periodic component data in the original time series data, the method includes: Obtaining a first range value of the periodic component data and a second range value of the original time series data; The sum of the first range value and the second range value is used as the total range value; the ratio of the first range value to the total range value is used as the proportion of the periodic component data in the original time series data; Among them, the first range value is the difference between the maximum value of the periodic component data and the minimum value of the periodic component data; the second range value is the value obtained by adding the differences between the maximum value and the minimum value corresponding to the periodic component data, trend component data and random component data in the original time series data.
5. The method for expanding data samples according to any one of claims 1 to 4, characterized in that: The original time series data is equipment operation status data; the method further includes: The expanded time series data is used to train the initial equipment state classification model to obtain an equipment state classification model that meets the accuracy requirements, so as to determine the equipment state corresponding to the newly acquired equipment operation state data according to the equipment state classification model.
6. A data sample expansion device, characterized in that: It includes an acquisition unit, a decomposition unit, an enhancement unit and a superposition unit; The acquisition unit is used to acquire original time series data; The decomposition unit is used to decompose the original time series data to obtain periodic component data, trend component data and random component data; The enhancement unit is configured to, when the proportion of the periodic component data in the original time series data is less than a preset threshold, intercept data segments from the periodic component data according to a set business distribution rule; Extending the data segment according to the set data demand; The extended data segments are scaled and denoised to obtain periodic component enhanced data; different enhancement methods are set for different proportions; The superposition unit is used to superimpose the periodic component enhanced data and the trend component data to obtain expanded time series data.
7. A data sample expansion device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the data sample expansion method as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for expanding a data sample as claimed in any one of claims 1 to 5 are implemented.
