Intelligent water affair comprehensive data management system and method based on Internet of Things
By connecting with the water affairs database, analyzing historical data and correcting the prediction function, it solves the problem of inaccurate water consumption prediction in water affairs data management, improves the accuracy and effectiveness of water supply analysis, and prevents waste of water resources.
Patent Information
- Application Number
- CN202410998372.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-24
AI Technical Summary
Existing water data management technology is not effective enough in predicting residents' water consumption and the results are not accurate enough, leading to the problem of water waste.
By establishing a data connection with the water affairs comprehensive database, we can obtain historical water affairs data, analyze the historical data group with an upward trend in water supply, calculate the prediction function and make corrections, and monitor the water supply in real time to predict the water supply demand for the next week.
It improves the accuracy and effectiveness of water supply analysis in water affairs data management, effectively prevents the shortage of water resources, and develops more accurate water production plans.
Smart Images

Figure CN118798477A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water affairs data management, and in particular to a smart water affairs integrated data management system and method based on the Internet of Things. Background Art
[0002] Water affairs data management technology refers to a series of technologies and methods that use information technology and data management methods to collect, store, process, analyze and utilize relevant data in the water affairs field. It aims to improve the data management efficiency, data quality and data value of the water affairs system, and support water resources management, water environment protection, water supply and drainage and other water affairs decision-making and operation activities.
[0003] Existing water data management technologies usually combine comprehensive water data such as smart water supply, smart drainage, smart flood control, sewage treatment and water-saving management to manage the operation of the entire water system in an all-round way. In terms of smart water supply, since residents' water consumption is related to many factors, and the deviation of personal water consumption in daily life is within the controllable range for the entire water supply system, but at the time of the alternation of seasons, due to changes in temperature, residents' water consumption also changes greatly, especially when the temperature rises, residents' water consumption increases sharply. If the water resource production capacity cannot keep up with the user's consumption, it will cause water outages in some areas. Therefore, when supplying water, colleagues need to plan in advance, and the existing water data management technology is not well planned. When the water supply is coming, the prediction of the future water consumption of residents is not accurate enough, and water resources are easily wasted. For example, in the patent application with publication number CN113420967A, a prediction-based urban water supply network operation evaluation method is disclosed. This scheme only predicts the daily water consumption of residents. Although the daily water consumption of each person fluctuates, the base number of people is too large, resulting in a small change in the total water supply of the water system under the same environmental conditions, and it is all within a controllable range. Therefore, the significance and effect of predicting the water consumption of each person are not great. The existing water data management technology still has the problem that the effect of predicting residents' water consumption is not significant enough and the prediction result is not accurate enough, which leads to the problem of water resource waste. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the prior art to a certain extent, by establishing a data connection with a comprehensive water affairs database, acquiring historical water affairs data, analyzing the historical water affairs data, dividing the historical data groups, analyzing the historical data groups, acquiring the first period and the second period by finding the historical data groups showing an upward trend in water supply, and then analyzing the first period, calculating and obtaining a prediction function based on the upward trend analysis of the first period, analyzing the water supply on dates within the second period to obtain a change function, correcting the prediction function based on the change function to obtain correction parameters, and finally monitoring the water supply of the water affairs system in real time, predicting the water supply demand for the next week when the water supply continues to increase, and producing water based on the water supply demand, so as to solve the problem that the existing water affairs data management technology still has the problem that the effect of predicting residents' water consumption is not significant enough and the prediction results are not accurate enough, resulting in easy waste of water resources.
[0005] To achieve the above objectives, in a first aspect, the present application provides a smart water integrated data management method based on the Internet of Things, comprising the following steps:
[0006] Establish data connection with the comprehensive water affairs database to obtain historical water affairs data;
[0007] Analyze historical water service data and find two consecutive weeks in which water supply shows an upward trend. Mark them as the first cycle and the second cycle respectively. Analyze the first cycle and obtain the prediction function.
[0008] Analyze the variation function of the actual water supply in the second period, calibrate the prediction function, and obtain the correction parameter;
[0009] Monitor the water supply of the water system in real time, predict the water demand for the next week when the water supply continues to increase, and then produce water based on the water supply demand.
[0010] Furthermore, the historical water service data includes recording date and historical water supply volume.
[0011] Furthermore, the historical water service data is analyzed to find two consecutive weeks in which the water supply shows an upward trend, which are marked as the first cycle and the second cycle respectively. The first cycle is analyzed to obtain the prediction function, which includes the following sub-steps:
[0012] Analyze the historical water affairs data, divide the historical data groups, analyze the historical data groups, and obtain the first cycle and the second cycle by finding the historical data groups showing an upward trend in water supply;
[0013] The first period is analyzed, and the prediction function is calculated based on the rising trend analysis of the first period.
[0014] Further, the historical water affairs data is analyzed, the historical data groups are divided, and the historical data groups are analyzed. The first cycle and the second cycle are obtained by finding the historical data groups showing an upward trend in water supply, including the following sub-steps:
[0015] The historical water service data are grouped from Monday to Sunday and named as historical data groups. The historical data groups are sorted from early to late according to the time. n It represents, where n is a positive integer and n is the serial number of S, the record date in the historical data group is named as data date, and the historical water supply is marked as date water supply;
[0016] Sort the historical water affairs data in the historical data group in the order of data date from small to large, and find out whether the date water supply shows an upward trend, where the upward trend means that the date water supply of the next day is larger than the date water supply of the previous day;
[0017] If yes, the historical data group is marked as a water supply rising period, otherwise the historical data group is marked as a daily water supply period;
[0018] Find S n With S n+1 All of them are historical data groups of the water supply rising period, collectively marked as the rising analysis period, among which S n Marked as the first cycle, S n+1 Marked as the second cycle.
[0019] Further, the first cycle is analyzed, and the prediction function is calculated based on the rising trend analysis of the first cycle, including the following sub-steps:
[0020] The water supply in the first cycle is numbered in ascending order according to the data date, and the symbol G is used to represent the water supply in the first cycle. m It means that 1≤m≤7 and m is the serial number of G;
[0021] With m as the X-axis and the date water supply as the Y-axis, a plane rectangular coordinate system is established, named the water supply prediction coordinate system. m The water supply volume corresponding to the date is entered into the water supply forecast coordinate system;
[0022] Perform linear regression on the water supply prediction coordinate system to obtain the prediction function.
[0023] Furthermore, analyzing the variation function of the actual water supply in the second period, correcting the prediction function, and obtaining the water supply correction prediction function includes the following sub-steps:
[0024] The water supply on the dates in the second period is analyzed to obtain the variation function;
[0025] Based on the change function, the prediction function is corrected to obtain correction parameters.
[0026] Furthermore, the water supply on each date in the second period is analyzed to obtain a variation function, which includes the following sub-steps:
[0027] The water supply on the last date in the first cycle and the water supply on all dates in the second cycle are marked as the actual water supply;
[0028] The actual water supply is numbered in chronological order of date, and the symbol P i represents, where 1≤i≤8 and i is the serial number of P, i is a positive integer;
[0029] With i as the horizontal axis and the actual water supply as the vertical axis, a rectangular coordinate system is established, named the actual water supply coordinate system. i And the actual water supply is entered into the actual water supply coordinate system;
[0030] Perform linear regression on the actual water supply coordinate system to obtain the change function.
[0031] Further, based on the variation function, the prediction function is corrected to obtain the correction parameters, which includes the following sub-steps:
[0032] Get the slope of the prediction function and name it the predicted slope; get the slope of the change function and name it the actual slope;
[0033] Calculate the actual slope and divide it by the predicted slope to obtain the slope parameter;
[0034] Collect all historical water service data within the first historical reference period and calculate all slope parameters therein;
[0035] All slope parameters are counted and the average value is calculated to obtain the correction parameter.
[0036] Furthermore, the water supply of the water system is monitored in real time, and the water demand for the next week is predicted when the water supply continues to increase. Water production based on the water demand includes the following sub-steps:
[0037] Monitor the water supply of the water system in real time and mark it as real-time water supply;
[0038] Take Monday to Sunday as an evaluation cycle. If the real-time water supply in the evaluation cycle shows an upward trend, analyze the prediction function of the evaluation cycle.
[0039] Multiply the slope in the prediction function by the correction parameter to obtain a prediction correction function;
[0040] Substituting 8 to 14 into the forecast correction function, seven forecast water supplies are calculated, representing the forecast water supply for each day of the next week;
[0041] Add up the predicted water supplies to get the water demand, and arrange water production for the next week based on the water demand.
[0042] In a second aspect, the present application provides a smart water integrated data management system based on the Internet of Things, including a historical data acquisition module, a prediction analysis module, a prediction correction module and a water supply prediction module; the historical data acquisition module, the prediction analysis module and the water supply prediction module are respectively connected to the prediction correction module data;
[0043] The historical data acquisition module is used to establish a data connection with the water affairs comprehensive database to acquire historical water affairs data;
[0044] The prediction analysis module is used to analyze historical water service data, find two consecutive weeks in which water supply shows an upward trend, mark them as the first cycle and the second cycle respectively, analyze the first cycle, and obtain a prediction function;
[0045] The prediction correction module is used to analyze the variation function of the actual water supply in the second period, correct the prediction function, and obtain the correction parameter;
[0046] The water supply prediction module is used to monitor the water supply of the water system in real time, predict the water supply demand for the next week when the water supply continues to increase, and then produce water based on the water supply demand.
[0047] Beneficial effects of the present invention: The present invention establishes a data connection with a comprehensive water affairs database to obtain historical water affairs data, analyzes the historical water affairs data, divides the historical data groups, analyzes the historical data groups, obtains the first cycle and the second cycle by finding the historical data groups showing an upward trend in water supply, and then analyzes the first cycle. The prediction function is calculated based on the upward trend analysis of the first cycle. The advantage is that the water consumption of residents varies greatly during the period of rising temperatures every year. Therefore, predicting the water supply for the next week can effectively prevent the situation where water resources are in short supply, thereby improving the effectiveness and rationality of water supply analysis in water affairs data management.
[0048] The present invention obtains a change function by analyzing the water supply on dates within the second period, and based on the change function, corrects the prediction function to obtain correction parameters. Finally, the water supply of the water system is monitored in real time, and when the water supply continues to rise, the water demand for the next week is predicted, and water is produced based on the water supply demand. The advantage of the present invention is that the prediction function is corrected based on the analysis of the predicted water supply in historical water data and the actual situation, so as to more accurately predict the water supply required by residents in the next week, thereby formulating a corresponding water production plan, thereby improving the accuracy and effectiveness of water supply analysis in water data management. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a functional block diagram of the system of the present invention;
[0050] Figure 2 The water supply prediction coordinate system of the present invention;
[0051] Figure 3 is the actual water supply coordinate system of the present invention;
[0052] Figure 4 The figure is a flow chart of the steps of the method of the present invention. DETAILED DESCRIPTION
[0053] 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.
[0054] Example 1, please refer to Figure 1 As shown, the present application provides a smart water integrated data management system based on the Internet of Things, including a historical data acquisition module, a prediction analysis module, a prediction correction module and a water supply prediction module; the historical data acquisition module, the prediction analysis module and the water supply prediction module are respectively connected to the prediction correction module data;
[0055] The historical data acquisition module is used to establish a data connection with the water affairs comprehensive database to obtain historical water affairs data; the historical water affairs data includes the recording date and the historical water supply volume;
[0056] In practical applications, some historical water service data are shown in Table 1 below:
[0057] Table 1 Partial data of historical water affairs data
[0058] Record date <![CDATA[Historical water supply volume (m 3 )]]> 2023.04.15 (Monday) 2000 2023.04.16 (Tuesday) 2074 2023.04.17 (Wednesday) 2138 2023.04.18 (Thursday) 2221 2023.04.19 (Friday) 2301 2023.04.20 (Saturday) 2413 2023.04.21 (Sunday) 2528 2023.04.22 (Monday) 2783 2023.04.23 (Tuesday) 2942 2023.04.24 (Wednesday) 3158 2023.04.25 (Thursday) 3308 2023.04.26 (Friday) 3479 2023.04.27 (Saturday) 3643 2023.04.28 (Sunday) 3822
[0059] The prediction analysis module is used to analyze historical water service data, find two consecutive weeks in which the water supply shows an upward trend, mark them as the first cycle and the second cycle respectively, analyze the first cycle, and obtain the prediction function; the prediction analysis module includes a cycle selection unit and a prediction analysis unit;
[0060] The cycle selection unit is used to analyze the historical water affairs data, divide the historical data groups, analyze the historical data groups, and obtain the first cycle and the second cycle by finding the historical data groups showing an upward trend in water supply;
[0061] The cycle selection unit is configured with a cycle selection strategy, which includes:
[0062] The historical water service data are grouped from Monday to Sunday and named as historical data groups. The historical data groups are sorted from early to late according to the time. n It represents, where n is a positive integer and n is the serial number of S, the record date in the historical data group is named as data date, and the historical water supply is marked as date water supply;
[0063] Sort the historical water affairs data in the historical data group in ascending order of data date, and find out whether the date water supply shows an upward trend. If it shows an upward trend, the water supply on the next day is larger than that on the previous day.
[0064] If yes, the historical data group is marked as a water supply rising period, otherwise the historical data group is marked as a daily water supply period;
[0065] Find S n With S n+1 All of them are historical data groups of the water supply rising period, collectively marked as the rising analysis period, among which S n Marked as the first cycle, S n+1 Marked as the second cycle;
[0066] In practical applications, taking Table 1 as an example, the historical water affairs data from 2023.04.15 to 2023.04.21 constitute a historical data group, and the historical water affairs data from 2023.04.22 to 2023.04.28 constitute a historical data group. In this embodiment, the first data group and the second data group are respectively referred to, and the numbers are S1 and S2 respectively. This numbering is only for the historical water affairs data in Table 1. In actual use, it is usually necessary to analyze the historical water affairs data in the past few years, so there will be a large number of S n , which is convenient for referring to a certain historical data group; through analysis, it is found that the date water supply in the first historical data group and the second historical data group is on the rise, that is, the date water supply of each day is greater than the date water supply of the previous day, and the first historical data group and the second historical data group are marked as water supply rising cycles, and the first historical data group and the second historical data group are adjacent two weeks, so the first historical data group is marked as the first cycle, and the second historical data group is marked as the second cycle;
[0067] The prediction analysis unit is used to analyze the first period and calculate the prediction function based on the rising trend analysis of the first period;
[0068] The prediction analysis unit is configured with a prediction analysis strategy, which includes:
[0069] The water supply in the first cycle is numbered in ascending order according to the data date, and the symbol G is used to represent the water supply in the first cycle. m It means that 1≤m≤7 and m is the serial number of G;
[0070] See also Figure 2 As shown in the figure, a plane rectangular coordinate system is established with m as the X-axis and the date water supply as the Y-axis, named as the water supply prediction coordinate system. m The water supply volume corresponding to the date is entered into the water supply forecast coordinate system;
[0071] Perform linear regression on the water supply prediction coordinate system to obtain the prediction function;
[0072] In practical applications, the numbers G1 to G7 are 2000, 2074, 2138, 2221, 2301, 2413 and 2528 respectively, and the water supply prediction coordinate system is constructed as follows: Figure 2 As shown in the figure, the prediction function obtained by linear regression is YR=86.607×X+1892.9, where YR is the water supply on the date and X is the number of the data date. m The m in the table refers to the data date.
[0073] The prediction and correction module is used to analyze the change function of the actual water supply in the second period, correct the prediction function, and obtain the correction parameter; the prediction and correction module includes an actual change analysis unit and a prediction and correction unit;
[0074] The actual change analysis unit is used to analyze the water supply volume on the date within the second period to obtain a change function;
[0075] The actual change analysis unit is configured with an actual change analysis strategy, which includes:
[0076] The water supply on the last date in the first cycle and the water supply on all dates in the second cycle are marked as the actual water supply;
[0077] The actual water supply is numbered in chronological order of date, and the symbol P i represents, where 1≤i≤8 and i is the serial number of P, i is a positive integer;
[0078] See also Figure 3 As shown in the figure, a plane rectangular coordinate system is established with i as the horizontal axis and the actual water supply as the vertical axis, named the actual water supply coordinate system. i And the actual water supply is entered into the actual water supply coordinate system;
[0079] Perform linear regression on the actual water supply coordinate system to obtain the change function;
[0080] In actual application, the numbers P1 to P8 are 2528, 2783, 2942, 3158, 3308, 3479, 3643 and 3822 respectively, and the actual water supply coordinate system is constructed as follows Figure 3 As shown in Figure 2, the linear regression function is YS = 179.99 × X + 2397.9, where YS is the actual water supply and X is the number of the data date. i The i in represents the data date and has the same meaning as X in the prediction function;
[0081] The prediction correction unit is used to correct the prediction function based on the change function to obtain a correction parameter;
[0082] The prediction correction unit is configured with a prediction correction strategy, which includes:
[0083] Get the slope of the prediction function and name it the predicted slope; get the slope of the change function and name it the actual slope;
[0084] Calculate the actual slope and divide it by the predicted slope to obtain the slope parameter;
[0085] Collect all historical water service data within the first historical reference period and calculate all slope parameters therein;
[0086] Count all slope parameters and calculate the average value to obtain the correction parameter;
[0087] In actual applications, the predicted slope is 86.607, the actual slope is 179.99, and 179.99 / 86.607 is calculated to obtain a slope parameter of 2.08, and the calculation result is rounded to two decimal places. In this embodiment, only one set of slope parameters obtained from the rising analysis period is listed. By statistically analyzing all historical water affairs data within three years in history, several slope parameters are obtained, that is, the first reference period is set to three years, and the setting of the first reference period is formulated according to the specific situation in the water affairs comprehensive database; due to the excessive amount of slope parameter data, this embodiment will no longer be specifically demonstrated, and only the specific analysis and calculation process of the slope parameters in this embodiment will be demonstrated; the slope parameters are statistically analyzed and the average value is calculated to obtain a correction parameter of 2.11, and the calculation result is rounded to two decimal places.
[0088] The water supply forecasting module is used to monitor the water supply of the water system in real time, predict the water demand for the next week when the water supply continues to increase, and then produce water based on the water supply demand;
[0089] The water supply forecast module is configured with water supply forecast strategies, which include:
[0090] Monitor the water supply of the water system in real time and mark it as real-time water supply;
[0091] Take Monday to Sunday as an evaluation cycle. If the real-time water supply in the evaluation cycle shows an upward trend, analyze the prediction function of the evaluation cycle.
[0092] Multiply the slope in the prediction function by the correction parameter to obtain a prediction correction function;
[0093] Substituting 8 to 14 into the forecast correction function, seven forecast water supplies are calculated, representing the forecast water supply for each day of the next week;
[0094] Add up the predicted water supply to get the water demand, and arrange water production for the next week based on the water demand;
[0095] In practical applications, when the real-time water supply in the evaluation period shows an upward trend, the prediction function of each evaluation period is analyzed in real time based on the analysis method of the water supply prediction coordinate system, and the prediction function is YR=86.472×X+1927.6, and the prediction slope is 86.472. The prediction function is corrected to obtain the prediction correction function YR=2.11×86.472×X+1927.6. X=8, X=9, X=10, X=11, X=12, X=13 and X=14 are substituted into the prediction correction function to predict the water supply of the next week. 8 to 14 represent next Monday to next Sunday respectively. The calculated predicted water supply is 3387m3, 3570m3, and 1660m3 respectively. 3 、3752m 3 、3935m 3 、4117m 3 、4300m 3 and 4482m 3 , keep the integer in the calculation result, add the predicted water supply, and get the water demand as 27543m 3 , that is, the water output of the water supply system in the smart water system next week is 27543m 3 .
[0096] Example 2, please refer to Figure 4 As shown, the present application provides a smart water integrated data management method based on the Internet of Things, comprising the following steps:
[0097] Step S1, establishing a data connection with a comprehensive water affairs database to obtain historical water affairs data; the historical water affairs data includes a recording date and historical water supply volume;
[0098] Step S2, analyzing the historical water service data, finding two consecutive weeks in which the water supply shows an upward trend, marking them as the first cycle and the second cycle respectively, analyzing the first cycle to obtain a prediction function; Step S2 includes the following sub-steps:
[0099] Step S201, analyzing historical water affairs data, dividing historical data groups, analyzing the historical data groups, and obtaining the first period and the second period by searching for historical data groups showing an upward trend in water supply;
[0100] Step S201 includes the following sub-steps:
[0101] Step S2011, group the historical water service data into groups from Monday to Sunday, name them historical data groups, sort the historical data groups from early to late, and use the symbol S n It represents, where n is a positive integer and n is the serial number of S, the record date in the historical data group is named as data date, and the historical water supply is marked as date water supply;
[0102] Step S2012, sorting the historical water affairs data in the historical data group in the order of data date from small to large, and finding out whether the date water supply shows an upward trend, which means that the date water supply of the next day is larger than the date water supply of the previous day;
[0103] Step S2013, if yes, then mark the historical data group as a water supply rising period, otherwise mark the historical data group as a daily water supply period;
[0104] Step S2014, search S n With S n+1 All of them are historical data groups of the water supply rising period, collectively marked as the rising analysis period, among which S n Marked as the first cycle, S n+1 Marked as the second cycle;
[0105] Step S202, analyzing the first period, and calculating and obtaining a prediction function based on the rising trend analysis of the first period;
[0106] Step S202 includes the following sub-steps:
[0107] Step S2021: number the water supply in the first cycle in ascending order of the data date, using the symbol G m It means that 1≤m≤7 and m is the serial number of G;
[0108] Step S2022, establish a plane rectangular coordinate system with m as the X-axis and the date water supply as the Y-axis, named as the water supply prediction coordinate system, and set G m The water supply volume corresponding to the date is entered into the water supply forecast coordinate system;
[0109] Step S2023, performing linear regression on the water supply prediction coordinate system to obtain a prediction function;
[0110] Step S3, analyzing the variation function of the actual water supply in the second cycle, correcting the prediction function, and obtaining correction parameters; Step S3 includes the following sub-steps:
[0111] Step S301, analyzing the water supply on the date in the second cycle to obtain a change function;
[0112] Step S301 includes the following sub-steps:
[0113] Step S3011, marking the water supply on the last date in the first cycle and the water supply on all dates in the second cycle as actual water supply;
[0114] Step S3012: number the actual water supply in order of date, using the symbol P i represents, where 1≤i≤8 and i is the serial number of P, i is a positive integer;
[0115] Step S3013, establish a plane rectangular coordinate system with i as the horizontal axis and the actual water supply as the vertical axis, named the actual water supply coordinate system, and set P i And the actual water supply is entered into the actual water supply coordinate system;
[0116] Step S3014, performing linear regression on the actual water supply coordinate system to obtain a variation function;
[0117] Step S302, based on the variation function, calibrate the prediction function to obtain a calibration parameter;
[0118] Step S302 includes the following sub-steps:
[0119] Step S3021, obtaining the slope of the prediction function, named as the prediction slope; obtaining the slope of the change function, named as the actual slope;
[0120] Step S3022, calculating the actual slope divided by the predicted slope to obtain a slope parameter;
[0121] Step S3023, collecting statistics of all historical water service data in the first historical reference period, and calculating all slope parameters therein;
[0122] Step S3024, counting all slope parameters and calculating the average value to obtain the correction parameter;
[0123] Step S4, real-time monitoring of the water supply of the water system, predicting the water demand for the next week when the water supply continues to increase, and then producing water based on the water demand; Step S4 includes the following sub-steps:
[0124] Step S401, real-time monitoring of the water supply of the water system is performed, and the water supply is marked as real-time water supply;
[0125] Step S402, taking Monday to Sunday as an evaluation period, if the real-time water supply in the evaluation period shows an upward trend, analyzing the prediction function of the evaluation period;
[0126] Step S403, multiplying the slope in the prediction function by the correction parameter to obtain a prediction correction function;
[0127] Step S404, substitute 8 to 14 into the prediction correction function to calculate seven predicted water supplies, representing the predicted water supply for each day of the next week;
[0128] Step S405, adding the predicted water supply to obtain the water supply demand, and arranging the water production work for the next week according to the water supply demand.
[0129] Embodiment 3, the present application provides a structural schematic diagram of an electronic device, which may include: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. The memory stores computer-readable instructions, and the processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, the steps in a smart water service integrated data management method based on the Internet of Things are executed to achieve the following functions: establish a data connection with a water service integrated database to obtain historical water service data; analyze historical water service data to obtain a prediction function; analyze the change function of the actual water supply in the second period, correct the prediction function and obtain a correction parameter; monitor the water supply of the water system in real time, predict the water supply demand for the next week when the water supply continues to rise, and then produce water based on the water supply demand.
[0130] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0131] Embodiment 4, the present application also provides a computer-readable storage medium, the present application provides a storage medium, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above-mentioned smart water comprehensive data management method based on the Internet of Things are executed to achieve the following functions: establish a data connection with the water comprehensive database to obtain historical water data; analyze the historical water data to obtain a prediction function; analyze the change function of the actual water supply in the second period, correct the prediction function, and obtain correction parameters; monitor the water supply of the water system in real time, predict the water supply demand for the next week when the water supply continues to increase, and then produce water based on the water supply demand.
[0132] Through the description of the above implementation methods, the embodiments of the present invention can be provided as methods, systems or computer program products. Based on such an understanding, the above technical solutions can be essentially or partly contributed to the prior art in the form of software products, which can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and include several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0133] In the embodiments provided in the present application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of systems, modules and units can be electrical, mechanical or other forms.
[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A smart water integrated data management method based on the Internet of Things, characterized in that: The steps include: Establish data connection with the comprehensive water affairs database to obtain historical water affairs data; Analyze historical water service data and find two consecutive weeks in which water supply shows an upward trend. Mark them as the first cycle and the second cycle respectively. Analyze the first cycle and obtain the prediction function. Analyze the variation function of the actual water supply in the second period, calibrate the prediction function, and obtain the correction parameter; Monitor the water supply of the water system in real time, predict the water demand for the next week when the water supply continues to increase, and then produce water based on the water supply demand.
2. According to the method for comprehensive data management of smart water affairs based on the Internet of Things according to claim 1, it is characterized in that: The historical water service data includes a recording date and historical water supply volume.
3. According to the method for comprehensive data management of smart water affairs based on the Internet of Things according to claim 2, it is characterized in that: Analyze the historical water service data and find two consecutive weeks in which the water supply shows an upward trend. Mark them as the first cycle and the second cycle respectively. Analyze the first cycle and obtain the prediction function, which includes the following sub-steps: Analyze the historical water affairs data, divide the historical data groups, analyze the historical data groups, and obtain the first cycle and the second cycle by finding the historical data groups showing an upward trend in water supply; The first period is analyzed, and the prediction function is calculated based on the rising trend analysis of the first period.
4. According to the method for comprehensive data management of smart water affairs based on the Internet of Things according to claim 3, it is characterized in that: Analyze the historical water affairs data, divide the historical data groups, analyze the historical data groups, and obtain the first cycle and the second cycle by finding the historical data groups showing an upward trend in water supply, including the following sub-steps: The historical water service data are grouped from Monday to Sunday and named as historical data groups. The historical data groups are sorted from early to late according to the time. n It represents, where n is a positive integer and n is the serial number of S, the record date in the historical data group is named as data date, and the historical water supply is marked as date water supply; Sort the historical water affairs data in the historical data group in the order of data date from small to large, and find out whether the date water supply shows an upward trend, where the upward trend means that the date water supply of the next day is larger than the date water supply of the previous day; If yes, the historical data group is marked as a water supply rising period, otherwise the historical data group is marked as a daily water supply period; Find S n With S n+1 All of them are historical data groups of the water supply rising period, collectively marked as the rising analysis period, among which S n Marked as the first cycle, S n+1 Marked as the second cycle.
5. According to the method for comprehensive data management of smart water affairs based on the Internet of Things according to claim 4, it is characterized in that: The first cycle is analyzed, and the prediction function is calculated based on the rising trend analysis of the first cycle, including the following sub-steps: The water supply in the first cycle is numbered in ascending order according to the data date, and the symbol G is used to represent the water supply in the first cycle. m It means that 1≤m≤7 and m is the serial number of G; With m as the X-axis and the date water supply as the Y-axis, a plane rectangular coordinate system is established, named the water supply prediction coordinate system. m The water supply volume corresponding to the date is entered into the water supply forecast coordinate system; Perform linear regression on the water supply prediction coordinate system to obtain the prediction function.
6. The method for comprehensive data management of smart water affairs based on the Internet of Things according to claim 5 is characterized in that: Analyzing the variation function of the actual water supply in the second period and correcting the prediction function to obtain the water supply correction prediction function includes the following sub-steps: The water supply on the dates in the second period is analyzed to obtain the variation function; Based on the change function, the prediction function is corrected to obtain correction parameters.
7. The method for managing integrated data of smart water affairs based on the Internet of Things according to claim 6 is characterized in that: The water supply volume on the date in the second period is analyzed to obtain a variation function including the following sub-steps: The water supply on the last date in the first cycle and the water supply on all dates in the second cycle are marked as the actual water supply; The actual water supply is numbered in chronological order of date, and the symbol P i represents, where 1≤i≤8 and i is the serial number of P, i is a positive integer; With i as the horizontal axis and the actual water supply as the vertical axis, a rectangular coordinate system is established, named the actual water supply coordinate system. i And the actual water supply is entered into the actual water supply coordinate system; Perform linear regression on the actual water supply coordinate system to obtain the change function.
8. The method for comprehensive data management of smart water affairs based on the Internet of Things according to claim 7 is characterized in that: Based on the change function, the prediction function is corrected to obtain the correction parameters, including the following sub-steps: Get the slope of the prediction function and name it the predicted slope; get the slope of the change function and name it the actual slope; Calculate the actual slope and divide it by the predicted slope to obtain the slope parameter; Collect all historical water service data within the first historical reference period and calculate all slope parameters therein; All slope parameters are counted and the average value is calculated to obtain the correction parameter.
9. The method for comprehensive data management of smart water affairs based on the Internet of Things according to claim 8 is characterized in that: Real-time monitoring of the water supply of the water system, forecasting the water demand for the next week when the water supply continues to increase, and then producing water based on the water supply demand includes the following sub-steps: Monitor the water supply of the water system in real time and mark it as real-time water supply; Take Monday to Sunday as an evaluation cycle. If the real-time water supply in the evaluation cycle shows an upward trend, analyze the prediction function of the evaluation cycle. Multiply the slope in the prediction function by the correction parameter to obtain a prediction correction function; Substituting 8 to 14 into the forecast correction function, seven forecast water supplies are calculated, representing the forecast water supply for each day of the next week; Add up the predicted water supplies to get the water demand, and arrange water production for the next week based on the water demand.
10. A smart water affairs integrated data management system based on the Internet of Things, used to implement a smart water affairs integrated data management method based on the Internet of Things as described in any one of claims 1 to 9, characterized in that: It includes a historical data acquisition module, a prediction analysis module, a prediction correction module and a water supply prediction module; the historical data acquisition module, the prediction analysis module and the water supply prediction module are respectively connected with the prediction correction module data; The historical data acquisition module is used to establish a data connection with the water affairs comprehensive database to acquire historical water affairs data; The prediction analysis module is used to analyze historical water service data, find two consecutive weeks in which water supply shows an upward trend, mark them as the first cycle and the second cycle respectively, analyze the first cycle, and obtain a prediction function; The prediction correction module is used to analyze the variation function of the actual water supply in the second period, correct the prediction function, and obtain the correction parameter; The water supply prediction module is used to monitor the water supply of the water system in real time, predict the water supply demand for the next week when the water supply continues to increase, and then produce water based on the water supply demand.
Citation Information
Patent Citations
Water supply prediction method and water supply prediction system
CN105956690A
Equipment control method and device, water supply system and storage medium
CN113250271A
Intelligent manufacturing-oriented production data dynamic monitoring and analysis system and method
CN114779731A
Intelligent water affair integrated management method and system based on Internet of Things, and storage medium
CN117557045A
Festival and holiday long-term traffic situation prediction method and device based on time sequence model
CN118155423A
Cited By
Water affair safe operation state inspection management system and method based on big data
CN119006249A
