Data analysis method of water volume intelligent prediction model based on ultra-short-term data
Through an intelligent water quantity prediction model based on ultra-short-term data, combined with meteorological and population data, a deep learning model is constructed, which solves the problem of traditional water consumption prediction methods ignoring environmental factors, achieves highly accurate and adaptable water consumption prediction, and supports scientific water resources management.
Patent Information
- Application Number
- CN202410754347.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Traditional water consumption prediction methods ignore environmental factors, resulting in inaccurate prediction results, and require a large amount of historical data. The difficulty and cost of data collection are high, which limits the application of the method.
An intelligent water quantity prediction model based on ultra-short-term data obtains water consumption and meteorological data by dividing standard periods, calculates per capita water consumption, builds an intelligent prediction model, considers the impact of temperature and humidity on water consumption, and uses deep learning frameworks such as TensorFlow for prediction.
Real-time and accurate water consumption prediction is achieved, taking into account meteorological factors and population dynamics, improving the accuracy and adaptability of prediction, reducing resource waste, and supporting scientific water resource management decisions.
Smart Images

Figure CN118350512B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water volume prediction, and in particular to a data analysis method of a water volume intelligent prediction model based on ultra-short-term data. Background Art
[0002] With the acceleration of urbanization and the growth of population, the demand for water resources is increasing. How to accurately predict regional water consumption in order to carry out effective water resources planning and management has become an important issue currently faced.
[0003] Traditional water consumption forecasting methods mainly rely on historical water consumption data and build mathematical models for forecasting. However, this method often ignores the impact of environmental factors on water consumption, resulting in low accuracy of forecast results. For example, changes in meteorological conditions such as temperature and humidity will directly affect people's water consumption behavior, and these factors are often ignored in traditional forecasting methods.
[0004] In addition, most of the existing water consumption forecasting methods are based on statistical models, which require a large amount of historical data as input and have high requirements for data quality and integrity. In actual operation, due to the difficulty and cost of data collection, it is often difficult to obtain enough historical data, which also limits the application of traditional forecasting methods.
[0005] Therefore, there is an urgent need for a water consumption prediction method that can take environmental factors into consideration, adapt to complex environments, and has high accuracy to solve the above problems. Summary of the invention
[0006] The purpose of the present invention is to provide a data analysis method for a water volume intelligent prediction model based on ultra-short-term data, which solves the technical problems raised in the background technology.
[0007] The purpose of the present invention can be achieved through the following technical solutions:
[0008] The data analysis method of the water volume intelligent prediction model based on ultra-short-term data includes:
[0009] Step 1: Data Acquisition
[0010] In a specified historical period, the specified historical period is divided into several standard time periods, and then the regional water consumption in each standard time period in the specified area and the meteorological data of the corresponding standard time period are obtained. At the same time, in the specified area, the existing population data of each standard time period in the specified area is collected; the meteorological data includes the temperature value and humidity value obtained at multiple time nodes preset in the standard time period; the existing population data includes the existing population number corresponding to the start and end time ends of the standard time period, and they are respectively recorded as the number of people before the period and the number of people after the period corresponding to the standard period, and the existing population number is represented as the current number of people in the specified area;
[0011] Step 2: Data processing
[0012] First, the number of analyzed personnel, that is, the average number of people in the standard period, is calculated through the existing population data. Then, the temperature and humidity values in the standard period are extracted from the meteorological data, and their average values are calculated respectively to obtain the analysis temperature and analysis humidity. Then, the regional water consumption is divided by the number of analyzed personnel to obtain the per capita water consumption in the standard period. Then, the analysis temperature is compared and matched with the preset temperature range, and the analysis humidity is compared and matched with the preset humidity range. The per capita water consumption in each temperature range and the per capita water consumption in each humidity range are sorted and classified, and the average per capita water consumption in each temperature range and humidity range is obtained.
[0013] Step 3: Model construction
[0014] Based on the average water consumption per capita in each temperature range and the average water consumption per capita in each humidity range obtained in the data processing step, an intelligent prediction model is constructed;
[0015] Step 4: Predictive Analysis
[0016] Collect meteorological data, regional water consumption and existing population data of the standard period before the current time, as well as meteorological data of the next standard period and the existing population at the current time. Calculate the per capita water consumption of the period based on the regional water consumption and existing population data of the previous standard period. Then extract temperature and humidity data from the meteorological data of the previous and next standard periods, calculate their average values, and then determine the temperature difference and humidity difference between the previous and next standard periods; obtain the corresponding input parameters from the intelligent prediction model, and then calculate the expected water consumption range value of the next standard period through the preset formula, and use it as the prediction result.
[0017] As a further solution of the present invention: the specific method of data processing in step 2 is as follows:
[0018] Select a standard time period:
[0019] StepA1. Calculate the number of analysts
[0020] The number of analysts is obtained by: number of analysts = (number of employees after the segment + number of employees before the segment) / 2;
[0021] StepA2: Calculate and analyze temperature
[0022] From the meteorological data, the temperature values obtained at multiple time nodes within the standard period are extracted, and the average of all temperature values within the standard period is calculated, and then marked as the analysis temperature;
[0023] Step A3: Calculate per capita water consumption
[0024] In the same target period, the per capita water consumption in the target period is obtained by: per capita water consumption = regional water consumption / number of analysts;
[0025] StepA4: Adapt the analysis temperature to the preset temperature range
[0026] The analysis temperature in each target period is adapted to the preset multiple temperature intervals respectively, and all the analysis temperatures are allocated to the corresponding temperature intervals;
[0027] Step A5: Calculate the average per capita water consumption in each temperature range
[0028] Get the target time periods corresponding to the analysis temperatures in each temperature interval, and get the corresponding per capita water consumption according to the multiple target time periods in a single temperature interval. Then classify and calculate all per capita water consumption corresponding to each temperature interval, and get the average per capita water consumption in each temperature interval:
[0029] Step A6: Calculate and analyze humidity
[0030] From the meteorological data, the humidity values obtained at multiple time nodes within the standard period are extracted, and the average of all humidity values within the standard period is calculated, and then marked as analysis humidity;
[0031] Step A7: Adapt and analyze humidity to the preset humidity range
[0032] The analysis humidity in each target time period is respectively matched with a plurality of preset humidity intervals, and the analysis humidity corresponding to each humidity interval is obtained;
[0033] StepA8: Calculate the average per capita water consumption in each humidity range
[0034] Then, according to the method of Step A5, the temperature range and its corresponding analysis temperature are replaced by the humidity range and its corresponding analysis humidity, and then all per capita water consumption corresponding to each humidity range is classified and calculated, and the average per capita water consumption in each humidity range is obtained.
[0035] As a further solution of the present invention: the specific method of Step A4 is as follows:
[0036] Select a temperature range and an analysis temperature;
[0037] If the value of the analysis temperature is less than or equal to the maximum value of the temperature interval and greater than the minimum value of the temperature interval, the analysis temperature is allocated to the temperature interval; otherwise, the analysis temperature is adapted to other temperature intervals and the analysis temperature is allocated to other corresponding temperature intervals;
[0038] And so on, until all analysis temperatures are assigned to corresponding temperature intervals.
[0039] As a further solution of the present invention: the classification calculation method in Step A5 is as follows:
[0040] Select the per capita water consumption corresponding to a temperature range;
[0041] SA51, obtain all per capita water consumption within the temperature range, and then sort the values from small to large;
[0042] Then, the absolute value of the difference between the per capita water consumption of two adjacent people is obtained from the sorted per capita water consumption;
[0043] SA52. Compare the adjacent absolute values of the difference with the difference threshold one by one in the sorting order. According to the comparison result, the per capita water consumption corresponding to the absolute values of the difference that are continuously less than or equal to the difference threshold as the minuend is classified into a newly generated set. Similarly, multiple sets containing the corresponding per capita water consumption in the temperature range are obtained.
[0044] SA53, find the average of the per capita water consumption in each set and mark it as the average per capita water consumption;
[0045] SA54. According to steps SA51 to SA53, calculate the average per capita water consumption in each temperature range.
[0046] As a further solution of the present invention: the construction method in step 3 is as follows:
[0047] SD1. Select a deep learning model framework, where the deep learning model framework is the TensorFlow machine learning framework;
[0048] SD2, import the average per capita water consumption in each temperature range and the average per capita water consumption in each humidity range into the deep learning model framework, and generate an intelligent prediction model;
[0049] Among them, after importing the corresponding information into the deep learning model framework, the model measurement indicators are calculated for the temperature range and humidity range based on the average per capita water consumption, and the model measurement indicators are used for the water volume prediction analysis of the intelligent prediction model.
[0050] As a further solution of the present invention: the calculation method of the model measurement index in SD2 is as follows:
[0051] D21, selecting a middle temperature value in each temperature interval. In this embodiment, the middle temperature value refers to the average value between the maximum value and the minimum value in the temperature interval;
[0052] D22, select two adjacent temperature intervals, calculate the difference between their middle temperature values, and record it as ZC;
[0053] Then, the average per capita water consumption of all people in the two temperature ranges is obtained, and the difference between the two groups of average values is calculated and recorded as PC:
[0054] D23, then calculate the difference in per capita water consumption when a one degree Celsius change occurs in the two adjacent temperature intervals through SC=PC / ZC, and record it as the temperature rise water consumption difference SC;
[0055] D24. Similarly, calculate the temperature rise water use difference of all two adjacent temperature intervals;
[0056] D25. Calculate the difference in water consumption per capita between two adjacent humidity intervals in the same manner as D21 to D24. The difference in water consumption per capita between two adjacent humidity intervals is expressed as the difference in per capita water consumption when an integer humidity value change occurs in two adjacent humidity intervals.
[0057] D26. The water consumption difference for temperature rise between two adjacent temperature intervals and the water consumption difference for humidity rise between two adjacent humidity intervals are used as model calculation indicators of the intelligent prediction model.
[0058] As a further solution of the present invention: the specific method of prediction analysis in step 4 is as follows:
[0059] Collect meteorological data, regional water consumption and corresponding existing population data of the previous standard period before the current time, and calculate the per capita water consumption of the standard period based on the regional water consumption and the corresponding existing population data according to Step A3 in data processing;
[0060] At the same time, collect the meteorological data of the next standard period from the current time and the current population at the current time;
[0061] Then, the corresponding temperature data and humidity data are obtained from the meteorological data of the previous standard period and the meteorological data of the next standard period, and the average value of the temperature data and humidity data is calculated;
[0062] The average values of the temperature data and humidity data of the previous standard period are marked as W0P and S0P respectively;
[0063] Then mark the average values of the temperature data and humidity data of the previous standard period as W1P and S1P respectively;
[0064] Then, the temperature difference W1C and humidity difference S1C between the meteorological data of the previous standard period and the meteorological data of the next standard period are calculated through W1C=W1P-W0P and S1C=S1P-S0P;
[0065] Based on the per capita water consumption in the previous standard period, which is marked as R0Y, the corresponding temperature rise water consumption difference and humidity rise water consumption difference are obtained from the corresponding temperature range and humidity range;
[0066] Then, through CY1=XR×(R0Y+W1C×temperature rise water use difference) and CY2=XR×(R0Y+S1C×wet rise water use difference), we can get the water consumption interval values CY1 and CY2 corresponding to the specified area in the next standard period, and combine CY1 and CY2 to form the predicted water consumption interval [CY1, CY2].
[0067] As a further solution of the present invention: wherein, the existing population data is collected as follows:
[0068] The regional population is collected in real time through offline surveys at a specified time, and is expressed as the number of people in the specified area.
[0069] At the designated time, the number of people going out and the number of people entering are obtained through the human flow detection equipment set up in the designated area;
[0070] Then, the current population is obtained by: current population = regional population + number of people entering - number of people leaving;
[0071] The corresponding existing population numbers are obtained at the start and end time ends of the standard time period, and are recorded as the number of people before and after the standard time period, respectively.
[0072] Beneficial effects of the present invention:
[0073] Real-time: By analyzing historical data, the model can be updated in real time and predict water consumption in the short term, which helps to adjust water supply and management in a timely manner.
[0074] Accuracy: The model takes into account the impact of meteorological factors on water use behavior, which are often closely related to people's water use habits, thereby improving the accuracy of the prediction.
[0075] Comprehensiveness: The model integrates population dynamics and meteorological conditions, and can more comprehensively reflect the various factors affecting water consumption.
[0076] Flexibility: The model is built on a deep learning framework and can be adjusted and optimized for different datasets and environments.
[0077] Preventive: By predicting water usage in the upcoming period, relevant departments can prepare in advance to prevent possible water shortages or surpluses.
[0078] Economic benefits: Accurate water usage forecasting can help reduce unnecessary waste of resources, thereby saving costs.
[0079] Environmental benefits: Proper water resource management helps protect the environment and avoid environmental problems caused by overexploitation or improper use of water resources.
[0080] Social benefits: Ensure a stable supply of water resources, meet the daily needs of residents, and improve the quality of life.
[0081] Decision support: Providing scientific evidence to governments and decision makers to help them develop more effective water resources management policies and emergency plans.
[0082] Adaptability: The model can be adjusted according to the characteristics and needs of different regions and has good adaptability.
[0083] In conclusion, this data analysis method of the water volume intelligent prediction model based on ultra-short-term data can provide an efficient, accurate and practical tool for water resources management, which will help achieve the sustainable use of water resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] The present invention will be further described below in conjunction with the accompanying drawings.
[0085] Figure 1 It is a flow chart of the data analysis method of the water volume intelligent prediction model based on ultra-short-term data of the present invention.
[0086] Figure 2 It is a flow chart of data processing of a data analysis method of a water volume intelligent prediction model based on ultra-short-term data according to the present invention. DETAILED DESCRIPTION
[0087] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.
[0088] Embodiment 1
[0089] See also Figure 1 and Figure 2As shown, the present invention is a data analysis method of a water volume intelligent prediction model based on ultra-short-term data, comprising the following steps:
[0090] Step 1: Data Acquisition
[0091] In a specified historical period, the specified historical period is divided into several standard periods, and then the regional water consumption in each standard period in the specified area and the meteorological data corresponding to the standard period are obtained;
[0092] Meteorological data include: temperature data and humidity data collected in real time during the corresponding standard period, and the temperature data and humidity data decibels include temperature values and humidity values obtained at multiple time nodes preset during the standard period;
[0093] At the same time, within the designated area, collect the existing population data for each standard period within the designated area;
[0094] The existing population data includes the corresponding existing population numbers at the start and end time of the standard time period, and are recorded as the number of people before and after the standard time period. The existing population number is expressed as the current number of people in the specified area;
[0095] Step 2: Data processing
[0096] Take a standard period as an example.
[0097] StepA1, obtain the current population data within the standard period;
[0098] The number of analysts is obtained by: number of analysts = (number of employees after the segment + number of employees before the segment) / 2;
[0099] Step A2, extracting the temperature values obtained at multiple time nodes within the standard period from the meteorological data, and calculating the average of all temperature values within the standard period, and then marking it as the analysis temperature;
[0100] StepA3: In the same target period, calculate the regional water consumption and the number of corresponding analysts, and obtain the per capita water consumption in the target period;
[0101] The calculation formula is: per capita water consumption = regional water consumption / number of analysts;
[0102] Step A4, adapting the analysis temperature in each target period to multiple preset temperature ranges respectively;
[0103] Take a temperature interval and an analysis temperature as an example;
[0104] If the value of the analysis temperature is less than or equal to the maximum value of the temperature interval and greater than the minimum value of the temperature interval, the analysis temperature is allocated to the temperature interval;
[0105] If the value of the analysis temperature is greater than the maximum value of the temperature interval, or less than or equal to the minimum value of the temperature interval, the analysis temperature is adapted to other temperature intervals and the analysis temperature is allocated to other corresponding temperature intervals;
[0106] And so on, until all analysis temperatures are assigned to corresponding temperature intervals;
[0107] Step A5. Obtain each target period corresponding to the analysis temperature contained in each temperature interval, and obtain the corresponding per capita water consumption according to multiple target periods of a single temperature interval. Then classify and calculate all per capita water consumption corresponding to each temperature interval, and obtain the average per capita water consumption in each temperature interval:
[0108] The classification calculation method is as follows:
[0109] Take the per capita water consumption corresponding to a temperature range as an example;
[0110] SA51, obtain all per capita water consumption within the temperature range, and then sort the values from small to large;
[0111] Then, the absolute value of the difference between the per capita water consumption of two adjacent people is obtained from the sorted per capita water consumption;
[0112] SA52. Compare the adjacent absolute values of the difference with the difference threshold one by one in the sorting order. According to the comparison result, the per capita water consumption corresponding to the absolute values of the difference that are continuously less than or equal to the difference threshold as the minuend is classified into a newly generated set. Similarly, multiple sets containing the corresponding per capita water consumption in the temperature range are obtained.
[0113] SA53, find the average of the per capita water consumption in each set and mark it as the average per capita water consumption;
[0114] SA54, calculating the average water consumption per capita in each temperature range according to steps SA51 to SA53;
[0115] Right now ;
[0116] In this embodiment, the ambient temperature is an important factor affecting the water consumption of residents; changes in temperature will directly affect people's daily living habits, especially in hot and cold weather conditions;
[0117] Here are the key points about how ambient temperature affects people’s water consumption:
[0118] Hot weather: In hot weather, people may increase the frequency and duration of showers to keep cool, using more water to bathe and cool the body. At the same time, summer may lead to an increase in outdoor activities, which requires more water to drink and replenish lost water.
[0119] Cold weather: Although people may reduce outdoor activities in winter, indoor heating may cause dry air, requiring the use of humidifiers or other means to increase indoor humidity, which may also indirectly increase water consumption;
[0120] Step A6, extracting humidity values obtained at multiple time nodes within the standard period from the meteorological data, and calculating the average of all humidity values within the standard period, and then marking it as analysis humidity;
[0121] Step A7, respectively matching the analysis humidity in each target time period with a plurality of preset humidity intervals, and obtaining the analysis humidity corresponding to each humidity interval;
[0122] Step A8, then, according to the method of Step A5, the temperature interval and its corresponding analysis temperature are replaced with the humidity interval and its corresponding analysis humidity, and then all per capita water consumption corresponding to each humidity interval is classified and calculated, and the average per capita water consumption in each humidity interval is obtained;
[0123] Right now ;
[0124] In this embodiment, environmental humidity has a significant impact on human comfort and health, which in turn indirectly affects people's water use behavior;
[0125] Here are a few ways how ambient humidity affects the human body and water usage:
[0126] Heat dissipation efficiency: In a high humidity environment, the evaporation rate of human sweat slows down, resulting in reduced heat dissipation efficiency. In order to maintain body temperature balance, people may take a bath more frequently or use wet wipes to lower their body surface temperature, thereby increasing water consumption.
[0127] Health and comfort: Studies have shown that the most suitable humidity range for human health is 45%-60%. Within this range, the human respiratory system and skin feel most comfortable; if the humidity is too high or too low, it may cause physical discomfort, such as sticky skin and difficulty breathing, which may prompt people to use more water for cleaning or treatment of related symptoms;
[0128] Indoor environment: High indoor humidity can lead to mold and bacteria growth, which not only affects air quality but may also cause allergic reactions and respiratory problems. In order to maintain indoor air quality and personal hygiene, people may increase the frequency of cleaning and washing, thereby increasing water consumption.
[0129] Feeling of temperature: High humidity can make people feel hotter and more uncomfortable even at lower temperatures; this discomfort may cause people to shower more frequently to cool down, especially in hot weather.
[0130] Step 3: Model construction
[0131] Based on the average water consumption per capita in each temperature range and the average water consumption per capita in each humidity range obtained in the data processing step, an intelligent prediction model is constructed;
[0132] The specific construction method is as follows:
[0133] SD1. Select a deep learning model framework. In this example, the deep learning model framework is the TensorFlow machine learning framework, which is an existing technology, so it will not be described in detail.
[0134] SD2, import the average per capita water consumption in each temperature range and the average per capita water consumption in each humidity range into the deep learning model framework;
[0135] Conduct fusion reasoning analysis on temperature range and humidity range based on average per capita water consumption;
[0136] The fusion reasoning analysis method is as follows:
[0137] D21, selecting a middle temperature value in each temperature interval. In this embodiment, the middle temperature value refers to the average value between the maximum value and the minimum value in the temperature interval;
[0138] D22, select two adjacent temperature intervals, calculate the difference between their middle temperature values, and record it as ZC;
[0139] Then, the average per capita water consumption of all people in the two temperature ranges is obtained, and the difference between the two groups of average values is calculated and recorded as PC:
[0140] D23, then calculate the difference in per capita water consumption when a one degree Celsius change occurs in the two adjacent temperature intervals through SC=PC / ZC, and record it as the temperature rise water consumption difference SC;
[0141] D24. Similarly, calculate the temperature rise water use difference of all two adjacent temperature intervals;
[0142] D25. Calculate the difference in water consumption per capita between two adjacent humidity intervals in the same manner as D21 to D24. The difference in water consumption per capita between two adjacent humidity intervals is expressed as the difference in per capita water consumption when an integer humidity value change occurs in two adjacent humidity intervals.
[0143] D26, taking the temperature rise water usage difference between two adjacent temperature intervals and the humidity rise water usage difference between two adjacent humidity intervals as model calculation indicators to obtain an intelligent prediction model;
[0144] Step 4: Predictive Analysis
[0145] Collect meteorological data, regional water consumption and corresponding existing population data of the previous standard period before the current time, and calculate the per capita water consumption of the standard period based on the regional water consumption and the corresponding existing population data according to Step A3 in data processing;
[0146] At the same time, collect the meteorological data of the next standard period from the current time and the current population at the current time;
[0147] Then, the corresponding temperature data and humidity data are obtained from the meteorological data of the previous standard period and the meteorological data of the next standard period, and the average value of the temperature data and humidity data is calculated;
[0148] The average values of the temperature data and humidity data of the previous standard period are marked as W0P and S0P respectively;
[0149] Then mark the average values of the temperature data and humidity data of the previous standard period as W1P and S1P respectively;
[0150] Then, the temperature difference W1C and humidity difference S1C between the meteorological data of the previous standard period and the meteorological data of the next standard period are calculated through W1C=W1P-W0P and S1C=S1P-S0P;
[0151] Based on the per capita water consumption in the previous standard period, which is marked as R0Y, the corresponding temperature rise water consumption difference and humidity rise water consumption difference are obtained from the corresponding temperature range and humidity range;
[0152] Then, through CY1=XR×(R0Y+W1C×temperature rise water use difference) and CY2=XR×(R0Y+S1C×wet rise water use difference), the water consumption interval values CY1 and CY2 corresponding to the specified area in the next standard period are obtained, and CY1 and CY2 are combined to form the predicted water consumption interval [CY1, CY2];
[0153] Step 5: Result output
[0154] Transmit the predicted water consumption interval [CY1, CY2] to relevant personnel or departments;
[0155] This embodiment can timely reflect the impact of environmental changes on water consumption by analyzing meteorological data and regional water consumption within a specified historical period; use existing population data to calculate per capita water consumption, which can more accurately reflect the actual water consumption situation; combine temperature and humidity data with water consumption, consider the impact of climate factors on water use behavior, and make the prediction more in line with the actual situation; integrate multiple factors (such as temperature, humidity, population, etc.) through deep learning models, improve the model's adaptability to complex environments; provide an interval value [CY1, CY2] for predicting water consumption, rather than just a specific value, which provides decision makers with more flexibility. Accurate water consumption prediction can reduce unnecessary waste of water resources, thereby saving costs and improving economic benefits.
[0156] Embodiment 2
[0157] As the second embodiment of the present invention, when the present application is implemented, compared with the first embodiment, the technical solution of the present embodiment is different from the first embodiment only in that in the present embodiment, the existing population data is collected as follows:
[0158] The regional population is collected in real time through offline surveys at a specified time, and is expressed as the number of people in the specified area.
[0159] At the designated time, the number of people going out and the number of people entering are obtained through the human flow detection equipment set up in the designated area;
[0160] In this embodiment, the number of people going out and the number of people entering are obtained by pedestrian gates that are set at the entrance and exit of the community and can identify the flow of people;
[0161] Then, the current population is obtained by: current population = regional population + number of people entering - number of people leaving;
[0162] At the start and end time of the standard time period, the corresponding existing population is obtained, and recorded as the number of people before and after the standard time period respectively;
[0163] This embodiment can collect the regional population at a specified time in real time through offline surveys and human flow detection equipment, providing accurate real-time data; the use of pedestrian gates and other equipment can accurately count the number of people entering and leaving, reducing human errors and improving data accuracy; through data collection at specified times, the population flow situation can be dynamically monitored to better understand and analyze population dynamics; combining the regional population, the number of people entering and the number of people leaving can obtain a comprehensive current population number, and the data is more comprehensive.
[0164] Embodiment 3
[0165] As the third embodiment of the present invention, when the present application is implemented, compared with the first and second embodiments, the technical solution of this embodiment is to combine the solutions of the first and second embodiments;
[0166] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.
[0167] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data analysis method for a water volume intelligent prediction model based on ultra-short-term data, characterized in that: include: Step 1: within a specified historical period, the specified historical period is divided into several standard time periods, and then the regional water consumption of each standard time period in the specified area and the meteorological data of the corresponding standard time period are obtained. At the same time, within the specified area, the existing population data of each standard time period in the specified area is collected; the meteorological data includes the temperature value and humidity value obtained at multiple time nodes preset in the standard time period; the existing population data includes the existing population corresponding to the start and end time ends of the standard time period, and they are respectively recorded as the number of people before and after the period corresponding to the standard time period, and the existing population number is represented as the current number of people in the specified area; Step 2: First, the number of analyzed personnel is calculated through the existing population data, that is, the average number of people in the standard period, and then the temperature and humidity values in the standard period are extracted from the meteorological data, and their average values are calculated respectively to obtain the analysis temperature and analysis humidity, and then the regional water consumption is divided by the number of analyzed personnel to obtain the per capita water consumption in the standard period, and then the analysis temperature is compared and matched with the preset temperature range, and the analysis humidity is compared and matched with the preset humidity range, and the per capita water consumption in each temperature range and the per capita water consumption in each humidity range are sorted and classified, and the average per capita water consumption in each temperature range and humidity range is obtained; The specific method in step 2 is as follows: Select a standard time period: StepA1. Obtain the number of analysts by: Analyst number = (number of analysts after the segment + number of analysts before the segment) / 2; Step A2, extracting the temperature values obtained at multiple time nodes within the standard period from the meteorological data, and calculating the average of all temperature values within the standard period, and then marking it as the analysis temperature; StepA3, in the same target period, the per capita water consumption in the target period is obtained by: per capita water consumption = regional water consumption / number of analysts; Step A4, adapt the analysis temperature in each target period to the preset multiple temperature intervals, and assign all analysis temperatures to the corresponding temperature intervals; The specific method is as follows: Select a temperature range and an analysis temperature; If the value of the analysis temperature is less than or equal to the maximum value of the temperature interval and greater than the minimum value of the temperature interval, the analysis temperature is allocated to the temperature interval; otherwise, the analysis temperature is adapted to other temperature intervals and the analysis temperature is allocated to other corresponding temperature intervals; And so on, until all analysis temperatures are assigned to corresponding temperature intervals; Step A5, obtaining each target time period corresponding to the analysis temperature contained in each temperature interval, and obtaining the corresponding per capita water consumption according to multiple target time periods of a single temperature interval, and then classifying and calculating all per capita water consumption corresponding to each temperature interval, and obtaining the average of all per capita water consumption in each temperature interval; The classification calculation method is as follows: Select the per capita water consumption corresponding to a temperature range; SA51, obtain all per capita water consumption within the temperature range, and then sort the values from small to large; Then, the absolute value of the difference between the per capita water consumption of two adjacent people is obtained from the sorted per capita water consumption; SA52. Compare the adjacent absolute values of the difference with the difference threshold one by one in the sorting order. According to the comparison result, the per capita water consumption corresponding to the absolute values of the difference that are continuously less than or equal to the difference threshold as the minuend is classified into a newly generated set. Similarly, multiple sets containing the corresponding per capita water consumption in the temperature range are obtained. SA53, find the average of the per capita water consumption in each set and mark it as the average per capita water consumption; SA54, calculating the average water consumption per capita in each temperature range according to steps SA51 to SA53; Step A6, extracting humidity values obtained at multiple time nodes within the standard period from the meteorological data, and calculating the average of all humidity values within the standard period, and then marking it as analysis humidity; Step A7, respectively matching the analysis humidity in each target time period with a plurality of preset humidity intervals, and obtaining the analysis humidity corresponding to each humidity interval; Step A8, then, according to the method of Step A5, the temperature interval and its corresponding analysis temperature are replaced with the humidity interval and its corresponding analysis humidity, and then all per capita water consumption corresponding to each humidity interval is classified and calculated, and the per capita water consumption of all humidity intervals is obtained; Step 3: construct an intelligent prediction model based on the average per capita water consumption in each temperature range and the average per capita water consumption in each humidity range obtained in step 2; Step 4: Collect meteorological data, regional water consumption and corresponding existing population data of the previous standard period before the current time, and calculate the per capita water consumption of the standard period based on the regional water consumption and the corresponding existing population data according to Step A3 in Step 2; At the same time, collect the meteorological data of the next standard period from the current time and the current population at the current time; Then, the corresponding temperature data and humidity data are obtained from the meteorological data of the previous standard period and the meteorological data of the next standard period, and the average value of the temperature data and humidity data is calculated; The average values of the temperature data and humidity data of the previous standard period are marked as W0P and S0P respectively; Then the average values of the temperature data and humidity data of the next standard period are marked as W1P and S1P respectively; Then, the temperature difference W1C and humidity difference S1C between the meteorological data of the previous standard period and the meteorological data of the next standard period are calculated through W1C=W1P-W0P and S1C=S1P-S0P; Based on the per capita water consumption in the previous standard period, which is marked as R0Y, the corresponding temperature rise water consumption difference and humidity rise water consumption difference are obtained from the corresponding temperature range and humidity range; Then, through CY1=XR×(R0Y+W1C×temperature rise water use difference) and CY2=XR×(R0Y+S1C×wet rise water use difference), we can get the water consumption interval values CY1 and CY2 corresponding to the specified area in the next standard period, and combine CY1 and CY2 to form the predicted water consumption interval [CY1, CY2].
2. The data analysis method of the water volume intelligent prediction model based on ultra-short-term data according to claim 1 is characterized in that: The construction method in step three is as follows: SD1. Select a deep learning model framework, where the deep learning model framework is the TensorFlow machine learning framework; SD2, import the average per capita water consumption in each temperature range and the average per capita water consumption in each humidity range into the deep learning model framework, and generate an intelligent prediction model; Among them, after importing the corresponding information into the deep learning model framework, the model measurement indicators are calculated for the temperature range and humidity range based on the average per capita water consumption, and the model measurement indicators are used for the water volume prediction analysis of the intelligent prediction model.
3. The data analysis method of the water volume intelligent prediction model based on ultra-short-term data according to claim 2 is characterized in that: The calculation method of the model measurement indicators in SD2 is as follows: D21. In each temperature interval, select the middle temperature value of the temperature interval, where the middle temperature value refers to the average value between the maximum value and the minimum value in the temperature interval; D22, select two adjacent temperature intervals, calculate the difference between their middle temperature values, and record it as ZC; Then, the average per capita water consumption of all people in the two temperature ranges is obtained, and the difference between the two groups of average values is calculated and recorded as PC: D23, then calculate the difference in per capita water consumption when a one degree Celsius change occurs in the two adjacent temperature intervals through SC=PC / ZC, and record it as the temperature rise water consumption difference SC; D24. Similarly, calculate the water consumption difference of temperature rise in all two adjacent temperature intervals; D25. Calculate the difference in water consumption per capita between two adjacent humidity intervals in the same manner as D21 to D24. The difference in water consumption per capita between two adjacent humidity intervals is expressed as the difference in per capita water consumption when an integer humidity value change occurs in two adjacent humidity intervals. D26. The water consumption difference for temperature rise between two adjacent temperature intervals and the water consumption difference for humidity rise between two adjacent humidity intervals are used as model calculation indicators of the intelligent prediction model.
4. The data analysis method of the water volume intelligent prediction model based on ultra-short-term data according to claim 1 is characterized in that: in, Existing population data is collected as follows: The regional population is collected in real time through offline surveys at a specified time, and is expressed as the number of people in the specified area. At the designated time, the number of people going out and the number of people entering are obtained through the human flow detection equipment set up in the designated area; Then, the current population is obtained by: current population = regional population + number of people entering - number of people leaving; The corresponding existing population numbers are obtained at the start and end time ends of the standard time period, and are recorded as the number of people before and after the standard time period, respectively.
