Abnormal low-value data trend-preserving interpolation correction method

By performing statistical tests and spline smoothing interpolation on data without seasonal changes, the problem of abnormal changes caused by special factors in data analysis is solved, maintaining data trends and improving the accuracy of analysis results.

CN118760829AInactive Publication Date: 2024-10-11JILIN UNIVERSITY
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410750979.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Data without seasonal changes may cause data analysis results to be inconsistent with expectations due to changes in festivals or special environmental factors. Appropriate preprocessing is required to maintain data trends and improve analysis accuracy.

Method used

By sorting the data to be processed according to natural years, calculating the annual average and distinguishing between low and high values, conducting statistical tests, assigning monthly data to reduced or non-reducing abnormal change sets, and calculating the monthly average of no-reducing abnormal seasonal changes. Mean and accumulate, using spline smooth interpolation to maintain data trends.

Benefits of technology

On the basis of maintaining data trends, reduce the role of influencing factors, improve the accuracy of data analysis and information exposure, and obtain more accurate analysis results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760829A_ABST
    Figure CN118760829A_ABST
Patent Text Reader

Abstract

The invention relates to a trend-preserving interpolation correction method for abnormal low-value data. The method is suitable for processing seasonal abnormal low values occurring in the collection process of data without seasonal changes. The method comprises the following steps: firstly, arranging to-be-processed data according to a unified time scale, counting monthly data and drawing a data change trend broken line graph; secondly, comparing the monthly data with the annual average value, and defining the data which is lower than the annual average value and has statistical difference as a seasonal abnormal low value; and calculating the monthly data mean value of months without reduced abnormal seasonal change in the whole year, and accumulating the parts higher than the mean value. And finally, performing spline smooth interpolation processing for keeping a data trend on the data. According to the method, the seasonal abnormal low-value data can be corrected under the condition of keeping the data trend.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to an interpolation correction method for abnormal low-value data while preserving its trend. Background Art

[0002] Data without seasonal changes may show abnormal seasonal changes during the data collection process due to certain festivals or special social activities, changes in special environmental factors, etc., which will affect the final analysis results when using such data for analysis, and may not be consistent with expectations. Therefore, it is necessary to properly preprocess such data. This method can correct seasonal abnormal data values ​​while maintaining data trends. The preprocessed data will be more accurate in subsequent analysis and prediction. Summary of the invention

[0003] 1. Technical issues to be resolved

[0004] In view of the deficiencies of existing research, the present invention provides an interpolation correction method for abnormal low-value data while preserving the trend, which solves the problems raised in the background technology.

[0005] (II) Technical solution

[0006] To achieve the above objectives, the present invention is implemented through the following technical scheme: an interpolation correction method for abnormal low-value data to maintain trend, the steps include the following:

[0007] S1: Arrange the data to be processed according to a unified time scale;

[0008] S2: Calculate the annual average, subtract the monthly data from the annual average, and distinguish between low and high values;

[0009] S3: Conduct statistical tests on the low value and the annual average value to determine whether there is a significant downward change; conduct statistical tests on the high value and the annual average value to determine whether there is a statistical difference;

[0010] S4: According to the abnormal value judgment in S3, the months of the monthly data are divided into two sets: a set of decreasing abnormal changes and a set of non-decreasing abnormal changes;

[0011] S5: Calculate the monthly data mean of the months without decreasing abnormal seasonal changes throughout the year, and accumulate the part that exceeds the mean value;

[0012] S6: Perform spline smoothing interpolation processing on the monthly data to maintain the data trend according to the original data trend ratio.

[0013] Preferably, the unified time scale in step S1 specifically includes: performing data interpolation in natural years, and calculating monthly data on a monthly basis in each natural year.

[0014] Preferably, the specific calculation method of the annual average value in step S2 is as follows:

[0015]

[0016] x i : collated monthly data;

[0017] Monthly data are averaged over the entire year;

[0018] N: The number of months involved in the calculation in a natural year (N≤12).

[0019] Then, the monthly data is subtracted from the annual average. is a low value when When it is high value.

[0020] Preferably, the statistical test method in step S3 is as follows: first, a t-test is performed on the low value and the annual average value, the test is a two-sided test, and α is 0.05. The t-value is calculated using the following formula:

[0021]

[0022]

[0023] ν=N-1

[0024] S: standard deviation of monthly data for the whole year;

[0025] v: degrees of freedom.

[0026] When |t|≥t α,v When p≤0.05, the difference is statistically significant, and the low value has a significant decrease; when |t| <t α,ν When p>0.05, the difference was not statistically significant, and it could not be considered that there was a significant decrease in the low value.

[0027] Then, a t-test was performed on the high value and the annual average value. The test was a two-sided test, α was taken as 0.05, and the t-value calculation formula was the same as above. The statistical test of the high value was required to satisfy p>0.05, that is, the difference was not statistically significant.

[0028] Preferably, the specific manner of allocating the two sets in step S4 is as follows: when the monthly data is a low value and the low value has a significant decreasing change, it is defined as a month with decreasing abnormal change; when the monthly data is a low value and the difference is not statistically significant or the monthly data is a high value, it is defined as a month with no decreasing abnormal change.

[0029] E={k|k is the month with no abnormal change of decreasing type},

[0030] F={j|j is the month with decreasing abnormal change}.

[0031] Preferably, the specific formula calculated in step S5 is as follows:

[0032]

[0033] a: The number of months without decreasing abnormal seasonal changes in the whole year;

[0034] The monthly data mean for the months without decreasing abnormal seasonal changes throughout the year;

[0035] x c : The cumulative value of the part of the monthly data of the months without decreasing abnormal seasonal changes that is higher than the mean of the monthly data of the months without decreasing abnormal seasonal changes in the whole year.

[0036] Preferably, the specific method of the spline smoothing interpolation processing for maintaining the data trend in step S6 is as follows: First, the original data trend ratio is calculated, that is, the ratio of each monthly data with reduced abnormal seasonal changes to all monthly data with reduced abnormal seasonal changes and the ratio of each monthly data without reduced abnormal seasonal changes to all monthly data without reduced abnormal seasonal changes, the formula is as follows:

[0037]

[0038]

[0039] Then, the monthly data of the processed months are obtained by interpolating the part of the monthly data that is statistically different from the annual average and lower than the annual average, which is higher than the monthly data average of the months without decreasing abnormal seasonal changes in the whole year, according to the trend proportion of the original raw data. The formula is as follows:

[0040]

[0041]

[0042] j: the month with decreasing abnormal seasonal changes in the whole year, j∈F;

[0043] b k : The proportion of each monthly data with decreasing abnormal seasonal changes to all monthly data with decreasing abnormal seasonal changes;

[0044] After processing, there are no monthly data of the months with abnormal seasonal changes of decreasing type;

[0045] b j: The proportion of monthly data of seasonal changes without decreasing abnormality to all monthly data of seasonal changes without decreasing abnormality;

[0046] After processing, there are monthly data of each month with reduced abnormal seasonal changes.

[0047] (III) Beneficial effects

[0048] The present invention provides an interpolation correction method for abnormally low-value data to maintain the trend. It has the following beneficial effects: The present invention mainly considers processing data without seasonal changes by using a data processing method for spline smoothing data interpolation. The data processing method of this patent can reduce the effects of some factors that affect the data while maintaining the data trend, so that the data exposes more accurate information and enables data analysis to obtain better and more accurate results. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A step diagram of the interpolation correction method for abnormally low-value data to maintain trend of the present invention;

[0050] Figure 2 This is a high-value and low-value distinction diagram for the confirmed information data of a certain disease in 2015;

[0051] Figure 3 This is a graph of statistical test results in 2015;

[0052] Figure 4 This is a data chart of confirmed disease information in 2015 after data interpolation. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0054] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.

[0055] The interpolation correction method for abnormal low value data to maintain trend includes the following steps:

[0056] S1: Arrange the data to be processed according to a unified time scale;

[0057] S2: Calculate the annual average, subtract the monthly data from the annual average, and distinguish between low and high values;

[0058] S3: Conduct statistical tests on the low value and the annual average value to determine whether there is a significant downward change; conduct statistical tests on the high value and the annual average value to determine whether there is a statistical difference;

[0059] S4: According to the abnormal value judgment in S3, the months of the monthly data are divided into two sets: a set of decreasing abnormal changes and a set of non-decreasing abnormal changes;

[0060] S5: Calculate the monthly data mean of the months without decreasing abnormal seasonal changes throughout the year, and accumulate the part that exceeds the mean value;

[0061] S6: Perform spline smoothing interpolation processing on the monthly data to maintain the data trend according to the original data trend ratio.

[0062] Preferably, the unified time scale in step S1 specifically includes: performing data interpolation in natural years, and calculating monthly data on a monthly basis in each natural year.

[0063] Preferably, the specific calculation method of the annual average value in step S2 is as follows:

[0064]

[0065] x i : collated monthly data;

[0066] Monthly data are averaged over the entire year;

[0067] N: The number of months involved in the calculation in a natural year (N≤12).

[0068] Then, the monthly data is subtracted from the annual average. is a low value when When it is high value.

[0069] Preferably, the statistical test method in step S3 is as follows: first, a t-test is performed on the low value and the annual average value, the test is a two-sided test, and α is 0.05. The t-value is calculated using the following formula:

[0070]

[0071] ν=N-1

[0072] S: standard deviation of monthly data for the whole year;

[0073] ν: degrees of freedom.

[0074] When |t|≥t α,v When p≤0.05, the difference is statistically significant, and the low value has a significant decrease; when |t| <tα,ν When p>0.05, the difference was not statistically significant, and it could not be considered that there was a significant decrease in the low value.

[0075] Then, a t-test was performed on the high value and the annual average value. The test was a two-sided test, α was taken as 0.05, and the t-value calculation formula was the same as above. The statistical test of the high value was required to satisfy p>0.05, that is, the difference was not statistically significant.

[0076] Preferably, the specific manner of allocating the two sets in step S4 is as follows: when the monthly data is a low value and the low value has a significant decreasing change, it is defined as a month with decreasing abnormal change; when the monthly data is a low value and the difference is not statistically significant or the monthly data is a high value, it is defined as a month with no decreasing abnormal change.

[0077] E={k|k is the month with no abnormal change of decreasing type},

[0078] F={j|j is the month with decreasing abnormal change}.

[0079] Preferably, the specific formula calculated in step S5 is as follows:

[0080]

[0081] a: The number of months without decreasing abnormal seasonal changes in the whole year;

[0082] The monthly data mean for the months without decreasing abnormal seasonal changes throughout the year;

[0083] x c : The cumulative value of the part of the monthly data of the months without decreasing abnormal seasonal changes that is higher than the mean of the monthly data of the months without decreasing abnormal seasonal changes in the whole year.

[0084] Preferably, the specific method of the spline smoothing interpolation processing for maintaining the data trend in step S6 is as follows: First, the original data trend ratio is calculated, that is, the ratio of each monthly data with reduced abnormal seasonal changes to all monthly data with reduced abnormal seasonal changes and the ratio of each monthly data without reduced abnormal seasonal changes to all monthly data without reduced abnormal seasonal changes, the formula is as follows:

[0085]

[0086] Then, the monthly data of the processed months are obtained by interpolating the part of the monthly data that is statistically different from the annual average and lower than the annual average, which is higher than the monthly data average of the months without decreasing abnormal seasonal changes in the whole year, according to the trend proportion of the original raw data. The formula is as follows:

[0087]

[0088]

[0089] j: the month with decreasing abnormal seasonal changes in the whole year, j∈F;

[0090] b k : The proportion of each monthly data with decreasing abnormal seasonal changes to all monthly data with decreasing abnormal seasonal changes;

[0091] After processing, there are no monthly data of the months with abnormal seasonal changes of decreasing type;

[0092] b j : The proportion of monthly data of seasonal changes without decreasing abnormality to all monthly data of seasonal changes without decreasing abnormality;

[0093] After processing, there are monthly data of each month with reduced abnormal seasonal changes.

[0094] Implementation examples:

[0095] Taking the diagnosis information data of a certain disease collected in 2015 in a certain place as an example, the diagnosis information data of the disease has no seasonal changes. The specific implementation steps are as follows:

[0096] S1: Arrange the collected diagnosis information data of a certain disease each year by month.

[0097] S2: Calculate the mean of the diagnosis information of a disease in 2015, and make a difference between the monthly data and the annual average to distinguish the low and high values:

[0098] 2015:

[0099] The confirmed information data in February was 875 < 1241, which was a low value; the confirmed information data in August was 1367 > 1241, which was a high value. Figure 2 shown.

[0100] S3: Perform a t-test on the low-value data of a disease diagnosis information in February 2015 and the mean data of a disease diagnosis information in 2015. The test is a two-sided test, and α is 0.05.

[0101]

[0102] v=12-1=11

[0103] Look up the t threshold table to get t 0.05,11 =2.201, |t|>2.201, p<0.05, the difference is statistically significant, and the disease diagnosis information data in February 2015 is abnormally low in seasonality.

[0104] A t-test was performed on the low-value data of a disease diagnosis information in August 2015 and the mean data of a disease diagnosis information in 2015. The test was a two-sided test and α was 0.05.

[0105]

[0106] v=12-1=11

[0107] |t|<2.201, p>0.05, the difference is not statistically significant.

[0108] Specific statistical test results are as follows Figure 3 shown.

[0109] S4: Divide January to December 2015 into two sets according to the outlier judgment in S3: E = {3, 4, 5, 6, 7, 8, 9, 10, 11, 12}, F = {1, 2}.

[0110] S5: Calculate the mean value of the confirmed disease information data in the months without abnormal seasonal changes in 2015, and accumulate the part that is higher than the mean value:

[0111]

[0112] x c =(x6-1347)+(x7-1347)+(x8-1347)+(x 10 -1347)+(x 11 -1347)=19+18+20+13+20=90

[0113] S6: Calculate the trend ratio of the original data, that is, the ratio of February data to all the confirmed information data of a disease with abnormal seasonal changes of decreasing type and the ratio of August data to all the confirmed information data of a disease without abnormal seasonal changes of decreasing type:

[0114]

[0115] Then, the monthly data of each month after processing is obtained, and the formula is as follows:

[0116]

[0117] The specific calculation results are as follows Figure 4 shown.

[0118] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved.

[0119] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. An interpolation correction method for abnormally low-value data to maintain trend, characterized by: The steps include: S1: Arrange the data to be processed according to a unified time scale; S2: Calculate the annual average, subtract the monthly data from the annual average, and distinguish between low and high values; S3: Perform a statistical test on the low value and the annual average value to determine whether there is a significant downward change; perform a statistical test on the high value and the annual average value to determine whether there is a statistical difference; S4: Divide the months of the monthly data into two sets according to the outlier judgment in S3: a set with decreasing abnormal changes and a set with no decreasing abnormal changes; S5: Calculate the monthly data mean of the months without decreasing abnormal seasonal changes throughout the year, and accumulate the part that exceeds the mean; S6: Perform spline smoothing interpolation processing on the monthly data to maintain the data trend according to the trend ratio of the original data.

2. The interpolation and correction method for abnormally low-value data with trend preservation according to claim 1, characterized in that: The unified time scale in step S1 specifically includes: performing data interpolation based on natural years, and calculating monthly data on a monthly basis in each natural year.

3. The interpolation and correction method for abnormally low-value data with trend preservation according to claim 1, characterized in that: The specific calculation method of the annual average value in step S2 is as follows: x i : collated monthly data; The full-year average for monthly data; N: The number of months involved in the calculation in a natural year (N≤12). Then, the monthly data is subtracted from the annual average. When the value is low, When the value is high.

4. The interpolation and correction method for abnormally low-value data with trend preservation according to claim 1, characterized in that: The statistical test method in step S3 is as follows: First, a t-test is performed on the low value and the annual average value. The test is a two-sided test with α set to 0.

05. The t-value is calculated using the following formula: v=n-1 S: standard deviation of monthly data for the whole year; v: degrees of freedom. When |t| ≥ t α,v When p≤0.05, the difference is statistically significant, and the low value has a significant decrease change; when |t| <t α,v When p>0.05, the difference is not statistically significant, and it cannot be considered that there is a significant decrease in the low value. Then, a t-test is performed on the high value and the annual average value. The test is a two-sided test, α is taken as 0.05, and the t-value calculation formula is the same as above. The statistical test of the high value is required to meet p>0.05, that is, the difference is not statistically significant.

5. The interpolation and correction method for abnormally low-value data with trend preservation according to claim 1, characterized in that: The specific method of allocating the two sets in step S4 is as follows: when the monthly data is a low value and there is a significant decrease in the low value, it is defined as a month with a decrease in abnormal change; when the monthly data is a low value and the difference is not statistically significant or the monthly data is a high value, it is defined as a month with no decrease in abnormal change. E={k|k is the month with no abnormal change of decreasing type}, F = {j|j is the month with decreasing abnormal change}.

6. The interpolation and correction method for abnormally low-value data with trend preservation according to claim 1, characterized in that: The specific formula calculated in step S5 is as follows: a: The number of months in the year without abnormal decreasing seasonal changes; The monthly data mean for the months without abnormal seasonal changes of decreasing type in the whole year; x c : The cumulative value of the part of the monthly data of the months without decreasing abnormal seasonal changes that is higher than the average value of the monthly data of the months without decreasing abnormal seasonal changes in the whole year.

7. The interpolation and correction method for abnormally low-value data with trend preservation according to claim 1, characterized in that: The specific method of the spline smoothing interpolation process for maintaining the data trend in step S6 is as follows: First, the original data trend ratio is calculated, that is, the ratio of the monthly data with decreasing abnormal seasonal changes to the total monthly data with decreasing abnormal seasonal changes and the ratio of the monthly data without decreasing abnormal seasonal changes to the total monthly data without decreasing abnormal seasonal changes, and the formula is as follows: Then, the monthly data of each month after processing are obtained by interpolating the part of the monthly data that is statistically different from the annual average and lower than the annual average and higher than the monthly data average of the months without abnormal seasonal changes in the whole year according to the trend proportion of the original raw data. The formula is as follows: j: the month with decreasing abnormal seasonal changes in the whole year, j∈F; b k : The proportion of monthly data with decreasing abnormal seasonal changes to all monthly data with decreasing abnormal seasonal changes; After processing, there are no monthly data of the months with abnormal seasonal changes of decreasing type; b j : The proportion of monthly data with no decreasing abnormal seasonal changes to all monthly data with no decreasing abnormal seasonal changes; After processing, there are monthly data of each month with decreasing abnormal seasonal changes.

Citation Information

Cited By

  • Intelligent data analysis method and system

    CN119513549A

  • Temperature and humidity big data curve trend chart processing method

    CN120849921A