Weighted moving average method-based missed reading influence analysis method and device
By using the weighted moving average method in the analysis of the impact of missing copying, and assigning weights according to the time distribution and numerical size of the data, the problem of large errors in the analysis of the impact of missing copying in the existing technology is solved, and accurate assessment and analysis of missed copying data are achieved. Fee calculation improves the accuracy of revenue data.
Patent Information
- Application Number
- CN202411043538.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-01
AI Technical Summary
Existing impact analysis methods of missing data have large errors when processing complex nonlinear data. They cannot accurately assess the impact of missing data on the overall data, affecting the accuracy of water volume and revenue data.
Using a method based on the weighted moving average method, different weights are assigned according to the time distribution and numerical size of the data. Through data fitting and key prediction indicator selection, the impact of missing data on the overall data can be accurately assessed.
The weighted moving average method can quickly locate the missing water volume and calculate the deferred water fee amount, provide a more accurate revenue data assessment, and help the management of the water supply company to more accurately judge the revenue situation in terms of water volume and water fee.
Smart Images

Figure CN118735355A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of data processing and data analysis, and in particular relates to a method and a device for analyzing the impact of missed copying based on a weighted moving average method. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] At present, the main ways of reading meters are manual and remote transmission IoT meters. Due to the meter reading environment, human factors and other reasons, there will be omissions. The reading visibility is used for billing, marketing difference analysis, etc. Omissions may affect key data on revenue, especially the distortion of marketing difference rate (leakage rate) calculation caused by omissions, so omissions need to be quantified. The current method of calculating slow-read water volume is relatively simple. Most of the existing analysis methods use a simple average method. Such methods often have large errors when dealing with complex nonlinear data. User water consumption is not linear and is affected by seasons, population and other factors. Such methods not only affect the accuracy of water volume, but also affect managers' judgment of revenue data. Summary of the invention
[0004] In order to solve at least one technical problem existing in the above-mentioned background technology, the present invention provides a method and device for analyzing the impact of missed copying based on the weighted moving average method, which assigns different weights according to factors such as the time distribution and numerical value of the data through the weighted moving average method, so as to more accurately evaluate the impact of missed copying data on the overall data.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] A first aspect of the present invention provides a method for analyzing the impact of missed copying based on a weighted moving average method, comprising the following steps:
[0007] Get meter reading data;
[0008] Determine the amount of water leakage to be predicted and the period for deferring water charges;
[0009] Based on the acquired meter reading data and the determined missed water reading volume to be predicted and the period of deferred water fee payment, sample data to be predicted is obtained;
[0010] According to the time distribution characteristics of the sample data to be predicted, a corresponding weight is assigned to each data point;
[0011] Analyze the variables predicting missed copies based on the assigned weights and data fitting results, and select key predictive indicators that affect missed copies;
[0012] Based on the selected key prediction indicators and weighted moving average method, the sample data to be predicted are used to predict the missed water volume and deferred water fee.
[0013] Based on the forecast, the impact of missed water volume and deferred water fee payment on the overall data is analyzed.
[0014] Furthermore, the meter reading data includes meter reading user information and meter reading information, the meter reading user information includes an account number, an account name, a meter reading cycle and a user status, and the meter reading information includes a meter reading time, an actual water volume and an actual water fee.
[0015] Furthermore, the method also includes preprocessing the meter reading data, including obtaining the meter reading data of the latest 6 months before calculating the meter reading cycle.
[0016] Furthermore, the sample data to be predicted is obtained based on the acquired meter reading data and the determined missed water reading volume to be predicted and the period of deferred water fee payment, including:
[0017] Assuming that the meter reading cycle Q of user a is a single month and i is an odd number, the water consumption of user a1 from month i-1 to month i-6 is W i-2 ,W i-4 ,W i-6 The actual water charges are M i-2 ,M i-4 ,M i-6 ;
[0018] Assuming that user a's meter reading cycle Q is a single-month meter reading and i is an even number, user a does not participate in the calculation;
[0019] Assuming that user a's meter reading cycle Q is bimonthly and i is an odd number, user a does not participate in the calculation;
[0020] Assuming that the meter reading cycle Q of user a is bimonthly, and i is an even number, then the water consumption of user a1 from month i-1 to month i-6 is W i-2 ,W i-4 ,W i-6 The actual water charges are M i-2 ,M i-4 ,M i-6 ;
[0021] Assuming that the meter reading cycle Q of user a is monthly, and i is an odd number or an even number, then the water consumption of user a1 from month i-1 to month i-6 is W i-1 ,W i-2 ,W i-3 The actual water charges are M i-1 ,M i-2 ,M i-3 .
[0022] Furthermore, assigning a corresponding weight to each data point according to the time distribution characteristics of the sample data to be predicted includes:
[0023] According to the influence of season and time on water volume data or water fee data, the three most recent water volume meter reading record data or water fee meter reading record data are taken to define three weight coefficients. The first weight coefficient is the weight of the water volume or water fee meter reading record data closest to the prediction time, the second weight coefficient is the weight of the water volume or water fee meter reading record data second closest to the prediction time, and the third weight coefficient is the weight of the water volume or water fee meter reading record data third closest to the prediction time.
[0024] Furthermore, the variables for predicting missed copying are analyzed based on the assigned weights and data fitting results, and key prediction indicators affecting missed copying are selected, including:
[0025] According to the seasonal characteristic indicators, the data of the last six years are selected to calculate the missed water volume or water fee of each household on a quarterly basis:
[0026] According to the meter reading cycle indicator, the data of the last six years are selected, and the missed water volume or water fee of each household is calculated based on the meter reading cycles of single month, double month and monthly, with 6 years, 3 years, 1 year, 6 months and 3 months as a historical data statistical cycle respectively;
[0027] Perform data fitting and compare the difference coefficient between the calculated results and the actual data. When the difference coefficient is the smallest, the data fitting result is the best, and the indicator at this time is used as the key prediction indicator.
[0028] Furthermore, the method of predicting the sample data to be predicted based on the selected key prediction indicators and the weighted moving average method to obtain the missed water volume and deferred water fee payment includes:
[0029] Assuming that the user's meter reading cycle Q is a single-month meter reading, i is an odd number, or the user a's meter reading cycle Q is a double-month meter reading, i is an even number, the calculation result of the missed water volume is:
[0030]
[0031] Among them, W i-2 ,W i-4 ,W i-6 is the user’s water volume from month i-1 to month i-6 when the meter reading cycle Q is monthly or bimonthly;
[0032] The total amount of water leakage of company A in month i is: Where n is the total number of households that company A missed in the i-th month, n ≥ 0, W mi is the water consumption of household m in month i;
[0033] Assuming that user a's meter reading cycle Q is monthly, the calculation result of the missed water volume is:
[0034]
[0035] Among them, W i-1 ,W i-2 ,W i-3 is the meter reading cycle Q is monthly meter reading, the user's water volume from month i-1 to month i-6, R3 is the weight of the water volume meter reading record data closest to the prediction time, R2 is the weight of the water volume meter reading record data second closest to the prediction time, R1 is the weight of the water volume meter reading record data third closest to the prediction time, and R is the coefficient sum of the weights of all water volume meter reading record data;
[0036] or,
[0037] Assuming that the user's meter reading cycle Q is a single-month meter reading, i is an odd number, or the user's meter reading cycle Q is a double-month meter reading, i is an even number, the calculation result of the deferred water fee is:
[0038]
[0039] Among them, M i-2 ,M i-4 ,M i-6 The water charges from month i-1 to month i-6 of the user when the meter reading cycle Q is monthly or bimonthly;
[0040] Then the total deferred water fee of company A in month i is: Where n is the total number of households that Company A missed in the i-th month, n≥0, M mi The water fee for the mth household in the ith month;
[0041] Assuming that user a's meter reading cycle Q is monthly, the calculation result of the deferred water fee is:
[0042]
[0043] Among them, M i-1 ,M i-2 ,M i-3 is the meter reading cycle Q is monthly meter reading, the user's water charges from month i-1 to month i-6, R3′ is the weight of the water meter reading record data closest to the prediction time, R2′ is the weight of the water meter reading record data second closest to the prediction time, R1′ is the weight of the water meter reading record data third closest to the prediction time, and R′ is the coefficient sum of the weights of all water meter reading record data.
[0044] A second aspect of the present invention provides a device for analyzing the impact of missed copying based on a weighted moving average method, comprising:
[0045] A meter reading data acquisition module, which is used to acquire meter reading data;
[0046] A cycle determination module, which is used to determine the missed water reading volume to be predicted and the cycle of deferred water fee payment;
[0047] A sample generation module to be predicted, which is used to obtain sample data to be predicted based on the acquired meter reading data and the determined missed water reading volume to be predicted and the period of deferred water fee payment;
[0048] A weighting module is used to assign corresponding weights to each data point according to the time distribution characteristics of the sample data to be predicted;
[0049] A key indicator selection module is used to analyze the variables that predict missed copies based on the assigned weights and data fitting results, and select key prediction indicators that affect missed copies;
[0050] A prediction module, which is used to predict the sample data to be predicted based on the selected key prediction indicators and the weighted moving average method to obtain the missed water volume and deferred water fee;
[0051] The impact analysis module is used to integrate and analyze the impact of missed water volume and deferred water fee payment on the overall data based on the prediction.
[0052] A third aspect of the present invention provides a computer-readable storage medium.
[0053] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the above-mentioned method for analyzing the impact of missed copying based on the weighted moving average method.
[0054] A fourth aspect of the present invention provides a computer device.
[0055] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the above-mentioned method for analyzing the impact of missed copying based on the weighted moving average method are implemented.
[0056] Compared with the prior art, the present invention has the following beneficial effects:
[0057] The present invention assigns different weights according to factors such as the time distribution and value of the data, and uses the weighted moving average method to more accurately evaluate the impact of missed reading data on the overall data. The algorithm can quickly locate the amount of water reduced due to missed reading in this region this period, and at the same time calculate the amount of water charges that are deferred, which is an important reference for the management of the water supply company to evaluate the revenue data of water volume and water charges this month.
[0058] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0060] Figure 1 The present invention provides a flowchart of a method for analyzing the impact of missed copying based on a weighted moving average method. DETAILED DESCRIPTION
[0061] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0062] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0063] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0064] In view of the fact that the current omission impact analysis method mentioned in the background technology of the present invention has large errors in processing complex nonlinear data, the present invention uses the weighted moving average method to assign different weights according to factors such as the time distribution and value of the data, so as to more accurately evaluate the impact of the omission data on the overall data. The algorithm can quickly locate the amount of water reduced by omission in this region in this period, and at the same time calculate the amount of water charges that were missed, which is an important reference for the management of the water supply company to evaluate the revenue data of water volume and water charges this month.
[0065] Embodiment 1
[0066] like Figure 1 As shown, this embodiment provides a method for analyzing the impact of missed copying based on a weighted moving average method, comprising the following steps:
[0067] Step 1: Get meter reading data;
[0068] At present, water supply companies mainly use APP to read meters. Staff read meters according to the meter reading plan and upload the meter reading data to the system platform through the app. The system reviews the meter reading data and finally forms a meter reading record to complete the data collection.
[0069] The target data source is mainly the user information of the meter being read, including the household number, household name, meter reading cycle, user status, etc. The meter reading information includes meter reading time, actual water volume, actual water fee, etc. User information is used to statistically determine the users who should read the meter within the calculation period, and meter reading information is used to predict the water volume and water fee within the calculation period.
[0070] Step 2: Preprocess the acquired meter reading data;
[0071] The meter reading data of each user in the past six months is obtained. Since the meter reading cycles of each user are different, the meter reading data of the last six months from the calculation period is taken. The latest three data are processed and calculated according to the weighted moving average method to obtain the water volume and water fee missed due to failure to read the meter during the calculation period.
[0072] Step 3: Based on the preprocessed meter reading data, the missed water volume and missed water fee within the preset period are calculated by combining the weighted moving average method.
[0073] The prediction results of missed water volume and delayed water fee collection are explained below.
[0074] Step 301: The process of predicting the amount of water missed includes:
[0075] Step 3011: Determine the forecast month. Assuming that company A needs to forecast the missed water volume data of the company in the i-th month of this year, the forecast month is the i-th month of this year.
[0076] Step 3012: Obtain sample data to be predicted:
[0077] Obtain the meter reading data of all normal users of Company A from month i-1 to month i-6 (defined as the data of the six months before the forecast month. If i ≥ 7, there is no need to consider the cross-year problem; if i < 7, the data of the previous year needs to be obtained) to form historical data. Assume that the user name of Company A is a, the number of households is m, the water volume is W, the meter reading cycle of user a is Q, and the creation time of user a is before the i-th month of this year, then:
[0078] (1) Assuming that user a’s meter reading cycle Q is monthly and i is an odd number, the water consumption of user a1 from month i-1 to month i-6 is W i-2 ,W i-4 ,W i-6 ;
[0079] (2) Assuming that user a's meter reading cycle Q is a single-month meter reading and i is an even number, user a does not participate in the calculation;
[0080] (3) Assuming that user a's meter reading cycle Q is bimonthly and i is an odd number, user a does not participate in the calculation;
[0081] (4) Assuming that the meter reading cycle Q of user a is bimonthly and i is an even number, then the water consumption of user a1 from month i-1 to month i-6 is W i-2 ,W i-4 ,W i-6 ;
[0082] (5) Assuming that the meter reading cycle Q of user a is monthly, and i is an odd number or an even number, then the water consumption of user a1 from month i-1 to month i-6 is W i-1 ,W i-2 ,W i-3 ;
[0083] Step 3013: According to the time distribution characteristics of the historical water volume data, a corresponding weight is assigned to each data point. The specific processing method is as follows:
[0084] A weight coefficient is a value used to measure and adjust the relative importance of different factors in a model or algorithm. In statistics, weight coefficients can also be used to calculate indicators such as weighted averages or weighted variances. For example, in a sample, the weight coefficients of different data points may be adjusted according to their importance, and then the weighted average is calculated to get the overall average.
[0085] Since water volume data is affected by season and time, the closer the time is to the prediction time, the more reliable the data is. In this example, the three most recent water volume meter reading record data are taken at the same time, so three weight coefficients R1, R2, and R3 are defined, among which R3 is the weight of the water volume meter reading record data closest to the prediction time, R2 is the weight of the water volume meter reading record data second closest to the prediction time, and R1 is the weight of the water volume meter reading record data third closest to the prediction time.
[0086] When assigning weights, based on the particularity of water usage data, its influence by season and time, and combined with the characteristics of user portraits, the weight coefficients are taken as: R1=3, R2=2, R3=1.
[0087] Step 3014: Selecting key prediction indicators that affect missed water volume prediction based on the weights assigned to the water volume data points and the feature selection method;
[0088] In this embodiment, in order to reduce the dimension of the data set, a feature selection algorithm is used to select the most effective feature subset from the existing feature set; the purpose of this process is to select those features that have the greatest impact on predicting the target variable, while removing redundant or irrelevant features. Feature selection can be seen as an optimization process that aims to improve the performance of missed water volume prediction by selecting the most relevant features.
[0089] In the missed meter reading impact analysis, the prediction indicators in this embodiment include water consumption, meter reading time, meter reading cycle, etc. The key factors leading to missed meter reading are identified through feature selection, thereby improving the accuracy and efficiency of the prediction model.
[0090] This embodiment uses time series analysis technology to perform feature selection.
[0091] The weights assigned to the water volume data points and the feature selection method are used to select the key prediction indicators that affect the missed water volume prediction, including:
[0092] First, define user a and predict month i, then:
[0093] (1) Based on the seasonal characteristics, the data of the last six years are taken and the amount of water leakage for each household is calculated by quarter (January to March, April to June, July to September, October to December):
[0094] At this time, s1, s2, s3, …, s12 are determined by user characteristics.
[0095] For example, if you want to predict the water consumption data for March, you can use the water consumption data for the first quarter (January to March) of the past six years for calculation.
[0096] Among them, W i-s1 It represents the monthly water consumption in March of the forecast year in this statistical period, W i-s2 represents the monthly water consumption in February of the forecast year in this statistical period, …, W i-s36 In turn, they represent the monthly water consumption of the historical months in this statistical period; define weight coefficients and assign values to them respectively. In statistics, weight coefficients can also be used to calculate indicators such as weighted averages or weighted variances. R1 is the weight coefficient of the monthly water consumption closest to the predicted month, with the largest value. The others are the weight coefficients of the corresponding monthly water consumption. R is the sum of all weight coefficients.
[0097] (2) Based on the characteristics of the meter reading cycle, the data of the last six years are taken. The amount of water missed by each household is calculated based on the meter reading cycles of single month, double month, and monthly, with six years, three years, one year, six months, and three months as a historical data statistical cycle respectively:
[0098] At this time, s1, s2, s3, ..., s36 are determined by user characteristics.
[0099] Among them, W i-s1 It represents the monthly water consumption closest to the predicted month in this statistical period, W i-s2 ,…,W i-s36 In turn, they represent the monthly water consumption of the historical months in this statistical period; define weight coefficients and assign values to them respectively. In statistics, weight coefficients can also be used to calculate indicators such as weighted averages or weighted variances. R1 is the weight coefficient of the monthly water consumption closest to the predicted month, with the largest value. The others are the weight coefficients of the corresponding monthly water consumption. R is the sum of all weight coefficients.
[0100] (3) Finally, the data of the last six months are used for predictive calculations based on the data fitting.
[0101] By comparing the difference coefficients between the calculated data and the actual data, it was found that the difference coefficient calculated using the data from the last three months was the smallest, indicating that the data fit was the best and could best explain the predicted data.
[0102] Difference coefficient Where W i is the calculated predicted value, W R is the true value of the corresponding month, and the indicator data that best suits the sample data is selected by calculating its degree of dispersion.
[0103] Step 3015: Based on the selected key prediction indicators and the weighted moving average method, the sample data to be predicted is predicted to obtain the missed water volume prediction result, including the following steps:
[0104] Step 30151: Assuming that the meter reading cycle Q of user a is monthly and i is an odd number, or that the meter reading cycle Q of user a is bimonthly and i is an even number, the calculation result of the missed water volume is:
[0105]
[0106] When R1=3, R2=2, R1=1, the calculation result of the missed water volume is:
[0107]
[0108] The total amount of water leakage of company A in month i is:
[0109] Where n is the total number of households that Company A missed in the i-th month, n ≥ 0; W mi is the water consumption of household m in month i;
[0110] Step 30152: Assuming that the meter reading cycle Q of user a is monthly, the calculation result of the missed water volume is:
[0111]
[0112] When R1=3, R2=2, R1=1, the calculation result of the missed water volume is:
[0113]
[0114] Step 302: The process of predicting missed water charges includes:
[0115] Step 3021: Determine the forecast month. Assuming that company A needs to forecast the deferred water fee data for the i-th month of this year, the forecast month is the i-th month of this year.
[0116] Step 3022: Obtain sample data to be predicted:
[0117] Obtain the meter reading data of all normal users of Company A from month i-1 to month i-6 (defined as the data of the six months before the forecast month. If i≥7, there is no need to consider the cross-year problem; if i<7, the data of the previous year needs to be obtained) to form historical data. Assume that the user name of Company A is a, there are m households in total, the water fee is M, the meter reading cycle of user a is Q, and the creation time of user a is before the i-th month of this year, then:
[0118] (1) Assuming that user a’s meter reading cycle Q is monthly and i is an odd number, the actual water charges of user a1 from month i-1 to month i-6 are M i-2 ,M i-4 ,M i-6 ;
[0119] (2) Assuming that user a's meter reading cycle Q is a single-month meter reading and i is an even number, user a does not participate in the calculation;
[0120] (3) Assuming that user a's meter reading cycle Q is bimonthly and i is an odd number, user a does not participate in the calculation;
[0121] (4) Assuming that user a’s meter reading cycle Q is bimonthly and i is an even number, then the actual water charges of user a1 from month i-1 to i-6 are M i-2 ,M i-4 ,M i-6 ;
[0122] (5) Assuming that user a’s meter reading cycle Q is monthly, and i is an odd number or an even number, then: the actual water charges of user a1 from month i-1 to i-6 are M i-1 ,M i-2 ,M i-3 ;
[0123] Step 3023: According to the time distribution characteristics of the historical water fee data, a corresponding weight is assigned to each data point. The specific processing method is as follows:
[0124] In this example, since water fee data is affected by season and time, the closer the time is to the prediction time, the more reliable the data is. At the same time, the three most recent water fee meter reading record data are taken, so three weight coefficients are defined, among which R3′ is the weight of the water fee meter reading record data closest to the prediction time, R2′ is the weight of the water fee meter reading record data second closest to the prediction time, and R1′ is the weight of the water fee meter reading record data third closest to the prediction time.
[0125] When assigning weights, based on the particularity of water usage data, its influence by season and time, and combined with the characteristics of user portraits, the weight coefficients are taken as: R1′=3, R2′=2, R3′=1.
[0126] Step 3024: Selecting key prediction indicators that affect the prediction of missed water fee payment based on the weights assigned to the water fee data points and the feature selection method;
[0127] In the prediction impact analysis of missed water charges, the prediction indicators in this embodiment include water consumption, meter reading time, meter reading cycle, etc. The key factors leading to missed water charges are identified through feature selection, thereby improving the accuracy and efficiency of the prediction model.
[0128] This embodiment uses time series analysis technology to perform feature selection.
[0129] The weights assigned based on the water fee data points and the feature selection method are used to select the key prediction indicators that affect the prediction of missed water fees, including:
[0130] First, define user a and predict month i, then:
[0131] (1) Based on the seasonal characteristics, the data of the last six years are taken and the missed water charges for each household are calculated by quarter (January to March, April to June, July to September, October to December):
[0132] At this time, s1, s2, s3, …, s12 are determined by user characteristics.
[0133] For example, if you want to predict the water fee data for March, you can use the water fee data for the first quarter (January to March) of the past six years for calculation.
[0134] Among them, W i-s1 It represents the monthly water fee in March of the forecast year in this statistical period, W i-s2 represents the monthly water fee in February of the forecast year in this statistical period, …, W i-s36The monthly water charges of the historical months in this statistical period are represented in sequence; weight coefficients are defined and assigned values respectively. In statistics, weight coefficients can also be used to calculate indicators such as weighted averages or weighted variances. R1′ is the weight coefficient of the monthly water charge closest to the predicted month, with the largest value, and the others are the weight coefficients of the corresponding monthly water charges. R′ is the sum of all weight coefficients.
[0135] (2) Based on the characteristics of the meter reading cycle, the data of the last six years are taken, and the missed water charges for each household are calculated based on the meter reading cycles of single month, double month, and monthly respectively:
[0136] At this time, s1, s2, s3, ..., s36 are determined by user characteristics.
[0137] Among them, W i-s1 Indicates the monthly water fee data of the month closest to the forecast month in this statistical period, W i-s2 ,…,W i-s36 The monthly water fee data of the historical months in this statistical period are sequentially represented; the weight coefficients are defined and assigned values respectively. In statistics, the weight coefficients can also be used to calculate indicators such as weighted average or weighted variance.
[0138] (3) Finally, the data of the last six months are used for predictive calculations based on the data fitting.
[0139] By comparing the difference coefficients between the calculated data and the actual data, it was found that the difference coefficient calculated using the data from the last three months was the smallest, indicating that the data fit was the best and could best explain the predicted data.
[0140] Difference coefficient Where W i is the calculated predicted value, W R is the true value of the corresponding month, and the indicator data that best suits the sample data is selected by calculating its degree of dispersion.
[0141] Step 3025: Predicting the sample data to be predicted based on the selected key prediction index and the weighted moving average method to obtain the missed water fee prediction result, including the following steps:
[0142] Step 30251: Assuming that the meter reading cycle Q of user a is single-month meter reading and i is an odd number, or that the meter reading cycle Q of user a is double-month meter reading and i is an even number, the calculation result of the deferred water fee is:
[0143]
[0144] When R1=3, R2=2, R1=1, the calculation result of deferred water fee is:
[0145]
[0146] Then the total deferred water fee of company A in month i is: Where n is the total number of households that Company A missed in the i-th month, n≥0; M mi The water fee for the mth household in the ith month;
[0147] Step 30252: Assuming that the meter reading cycle Q of user a is monthly, the calculation result of the deferred water fee is:
[0148]
[0149] When R1=3, R2=2, R1=1, the calculation result of deferred water fee is:
[0150]
[0151] Step 4: Calculate and integrate the data, calculate the missed water volume and missed water charges in different periods according to different demands, and classify them according to regions, routes, and meter readers to statistically calculate the calculation results in different dimensions.
[0152] Water supply companies usually check the missed water reading data or deferred water fee data for a quarter based on the abnormal data of poor marketing, and conduct statistical analysis on the data based on the calculation results. If the predicted months of the quarter are month i, month i+1, and month i+2, the predicted missed water reading volume is:
[0153] W=W i +W i+1 +W i+2 ,
[0154] Similarly, the predicted deferred water charges are:
[0155] W=M i +M i+1 +M i+2 ,
[0156] Finally, the calculation results are analyzed and integrated according to the needs, and presented to the user in a graphical visual way (pie chart, line chart, column chart, bar chart, table, etc.).
[0157] Embodiment 2
[0158] This embodiment provides a device for analyzing the impact of missed copying based on a weighted moving average method, comprising:
[0159] A meter reading data acquisition module, which is used to acquire meter reading data;
[0160] A cycle determination module, which is used to determine the missed water reading volume to be predicted and the cycle of deferred water fee payment;
[0161] A sample generation module to be predicted, which is used to obtain sample data to be predicted based on the acquired meter reading data and the determined missed water reading volume to be predicted and the period of deferred water fee payment;
[0162] A weighting module is used to assign corresponding weights to each data point according to the time distribution characteristics of the sample data to be predicted;
[0163] A key indicator selection module is used to analyze the variables that predict missed copies based on the assigned weights and data fitting results, and select key prediction indicators that affect missed copies;
[0164] A prediction module, which is used to predict the sample data to be predicted based on the selected key prediction indicators and the weighted moving average method to obtain the missed water volume and deferred water fee;
[0165] The impact analysis module is used to integrate and analyze the impact of missed water volume and deferred water fee payment on the overall data based on the prediction.
[0166] Embodiment 3
[0167] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the above-mentioned method for analyzing the impact of missed copying based on the weighted moving average method are implemented.
[0168] Embodiment 4
[0169] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the above-mentioned method for analyzing the impact of missed copying based on the weighted moving average method are implemented.
[0170] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0171] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0172] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0173] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0174] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0175] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for analyzing the impact of missed copying based on weighted moving average method, characterized in that: The steps include: Get meter reading data; Determine the amount of water leakage to be predicted and the period for deferring water charges; Based on the acquired meter reading data and the determined missed water reading volume to be predicted and the period of deferred water fee payment, sample data to be predicted is obtained; According to the time distribution characteristics of the sample data to be predicted, a corresponding weight is assigned to each data point; Analyze the variables predicting missed copies based on the assigned weights and data fitting results, and select key predictive indicators that affect missed copies; Based on the selected key prediction indicators and weighted moving average method, the sample data to be predicted are used to predict the missed water volume and deferred water fee. Based on the forecast, the impact of missed water volume and deferred water fee payment on the overall data is analyzed.
2. The method for analyzing the impact of missed copying based on the weighted moving average method as claimed in claim 1, characterized in that: The meter reading data includes meter reading user information and meter reading information. The meter reading user information includes an account number, an account name, a meter reading cycle and a user status. The meter reading information includes a meter reading time, an actual water volume and an actual water fee.
3. The method for analyzing the impact of missed copying based on the weighted moving average method according to claim 1, characterized in that: The method further comprises preprocessing the meter reading data, including obtaining the meter reading data of the latest 6 months from the calculation of the meter reading cycle.
4. The method for analyzing the impact of missed copying based on the weighted moving average method according to claim 1, characterized in that: The method of obtaining sample data to be predicted based on the acquired meter reading data and the determined missed water reading volume to be predicted and the period of deferred water fee payment includes: Assuming that the meter reading cycle Q of user a is a single month and i is an odd number, the water consumption of user a1 from month i-1 to month i-6 is W i-2 ,W i-4 ,W i-6 The actual water charges are M i-2 ,M i-4 ,M i-6 ; Assuming that user a's meter reading cycle Q is a single-month meter reading and i is an even number, user a does not participate in the calculation; Assuming that user a's meter reading cycle Q is bimonthly and i is an odd number, user a does not participate in the calculation; Assuming that the meter reading cycle Q of user a is bimonthly, and i is an even number, then the water consumption of user a1 from month i-1 to month i-6 is W i-2 ,W i-4 ,W i-6 The actual water charges are M i-2 ,M i-4 ,M i-6 ; Assuming that the meter reading cycle Q of user a is monthly, and i is an odd number or an even number, then the water consumption of user a1 from month i-1 to month i-6 is W i-1 ,W i-2 ,W i-3 The actual water charges are M i-1 ,M i-2 ,M i-3 .
5. The method for analyzing the impact of missed copying based on the weighted moving average method according to claim 1, characterized in that: According to the time distribution characteristics of the sample data to be predicted, each data point is assigned a corresponding weight, including: According to the influence of season and time on water volume data or water fee data, the three most recent water volume meter reading record data or water fee meter reading record data are taken to define three weight coefficients. The first weight coefficient is the weight of the water volume or water fee meter reading record data closest to the prediction time, the second weight coefficient is the weight of the water volume or water fee meter reading record data second closest to the prediction time, and the third weight coefficient is the weight of the water volume or water fee meter reading record data third closest to the prediction time.
6. The method for analyzing the impact of missed copying based on the weighted moving average method according to claim 1, characterized in that: The variables for predicting missed copying are analyzed based on the assigned weights and data fitting results, and key prediction indicators affecting missed copying are selected, including: According to the seasonal characteristic indicators, the data of the last six years are selected to calculate the missed water volume or water fee of each household on a quarterly basis: According to the meter reading cycle indicator, the data of the last six years are selected, and the missed water volume or water fee of each household is calculated based on the meter reading cycles of single month, double month and monthly, with 6 years, 3 years, 1 year, 6 months and 3 months as a historical data statistical cycle respectively; Perform data fitting and compare the difference coefficient between the calculated results and the actual data. When the difference coefficient is the smallest, the data fitting result is the best, and the indicator at this time is used as the key prediction indicator.
7. The method for analyzing the impact of missed copying based on the weighted moving average method according to claim 1, characterized in that: The method of predicting the sample data to be predicted based on the selected key prediction indicators and the weighted moving average method to obtain the missed water volume and deferred water fee payment includes: Assuming that the user's meter reading cycle Q is a single-month meter reading, i is an odd number, or the user a's meter reading cycle Q is a double-month meter reading, i is an even number, the calculation result of the missed water volume is: Among them, W i-2 ,W i-4 ,W i-6 The water volume of the user from month i-1 to month i-6 when the meter reading cycle Q is monthly or bimonthly; The total amount of water leakage of company A in month i is: Where n is the total number of households that company A missed in the i-th month, n ≥ 0, W mi is the water consumption of household m in month i; Assuming that user a's meter reading cycle Q is monthly, the calculation result of the missed water volume is: Among them, W i-1 ,W i-2 ,W i-3 is the meter reading cycle Q is monthly meter reading, the user's water volume from month i-1 to month i-6, R3 is the weight of the water volume meter reading record data closest to the prediction time, R2 is the weight of the water volume meter reading record data second closest to the prediction time, R1 is the weight of the water volume meter reading record data third closest to the prediction time, and R is the coefficient sum of the weights of all water volume meter reading record data; or, Assuming that the user's meter reading cycle Q is a single-month meter reading, i is an odd number, or the user's meter reading cycle Q is a double-month meter reading, i is an even number, the calculation result of the deferred water fee is: Among them, M i-2 ,M i-4 ,M i-6 The water charges from month i-1 to month i-6 of the user are as follows: Then the total deferred water fee of company A in month i is: Where n is the total number of households that Company A missed in the i-th month, n≥0, M mi The water fee for the mth household in the ith month; Assuming that user a's meter reading cycle Q is monthly, the calculation result of the deferred water fee is: Among them, M i-1 ,M i-2 ,M i-3 is the meter reading cycle Q is monthly meter reading, the user's water charges from month i-1 to month i-6, R3′ is the weight of the water meter reading record data closest to the prediction time, R2′ is the weight of the water meter reading record data second closest to the prediction time, R1′ is the weight of the water meter reading record data third closest to the prediction time, and R′ is the coefficient sum of the weights of all water meter reading record data.
8. A device for analyzing the impact of missed copying based on weighted moving average method, characterized in that: include: A meter reading data acquisition module, which is used to acquire meter reading data; A cycle determination module, which is used to determine the missed water reading volume to be predicted and the cycle of deferred water fee payment; A sample generation module to be predicted, which is used to obtain sample data to be predicted based on the acquired meter reading data and the determined missed water reading volume to be predicted and the period of deferred water fee payment; A weighting module is used to assign corresponding weights to each data point according to the time distribution characteristics of the sample data to be predicted; A key indicator selection module is used to analyze the variables that predict missed copies based on the assigned weights and data fitting results, and select key prediction indicators that affect missed copies; A prediction module, which is used to predict the sample data to be predicted based on the selected key prediction indicators and the weighted moving average method to obtain the missed water volume and deferred water fee; The impact analysis module is used to integrate and analyze the impact of missed water volume and deferred water fee payment on the overall data based on the prediction.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the method for analyzing the impact of missed copying based on the weighted moving average method as claimed in any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the method for analyzing the impact of missed copying based on the weighted moving average method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Part inventory management method and system
CN120851771A
A method and system for managing spare parts inventory
CN120851771B
