Urban domestic water data processing method and system, medium and electronic equipment
By building a general water volume model, using Fourier transform and water user parameter factors, a water volume calculation model is established, which solves the problem that water users with no actual measured data is difficult to estimate the hourly water volume data, and achieves higher-precision water supply data support and System operation optimization.
Patent Information
- Application Number
- CN202411477428.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-02-14
AI Technical Summary
The existing technology is difficult to effectively estimate the hourly water consumption data of water users without actual measured data, which leads to the inability to effectively carry out technical applications in old urban areas of some cities, and it is difficult to support urban-level time-sequential water scheduling and water balance analysis.
By constructing a general water volume model, the frequency domain information of water volume data is extracted using the Fourier transform, the phase and amplitude corresponding to the frequency 0Hz, 1Hz and 2Hz are obtained, and combined with the parameter factors of water users such as area, house age and average price, it is established. Water consumption calculation model to realize automatic filling of hourly water consumption data.
The estimation accuracy of water consumption data has been improved, and a higher-precision water supply pipeline model has been formed, helping operators to coordinate and dispatch water plants or related facilities in advance, ensure water supply safety, and reduce system operation costs.
Smart Images

Figure CN119442625A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method, system, medium and electronic equipment for processing urban domestic water data. Background Art
[0002] Urban domestic water use mainly covers urban residents’ water use and service industry water use. The prior art proposes system scheduling, leakage control, energy consumption control and comprehensive benefit optimization algorithms for urban water supply. Among them, accurate water volume estimation data is an important data support and foundation for optimizing existing scheduling strategies, and its accuracy will have an important impact on the feasibility of scheduling. Among the various water supply data analysis methods around water balance, water user water volume data input is an important factor affecting the accuracy of the analysis. How to improve the accuracy of water volume estimation for each water user is a problem that needs to be faced at present to improve the applicability of water supply models and enhance the scientific nature of water supply scheduling.
[0003] Based on DMA zoning and monitoring data, Xu Xingzhong et al. used a linear regression algorithm to parameterize the nighttime water consumption of residents in the zoning. Wang Jian et al. used a multi-layer long short-term memory neural network to parameterize the water consumption of water users, effectively improving the accuracy of water volume estimation. Based on the existing water consumption model, Wu Shan et al. introduced Kalman filtering to calibrate and assimilate the data to obtain the optimal estimate. The above methods have confirmed that a variety of methods can effectively and accurately parameterize and estimate water consumption time series data, but current research only considers the water consumption estimation algorithm of measured water users based on the characteristics of time series monitoring data, and does not consider water users without measured data, which makes it impossible to effectively carry out technical applications in some old urban areas of cities, and it is difficult to effectively support the city-level time series water scheduling and water balance analysis. Summary of the invention
[0004] In view of the shortcomings of the prior art mentioned above, the purpose of the present invention is to provide a method, system, medium and electronic equipment for processing urban domestic water consumption data, which can realize automatic filling of hourly water consumption data by constructing a universal water volume model, and provide data support for urban water supply analysis and decision-making models.
[0005] In a first aspect, the present invention provides a method for processing urban domestic water use data, the method comprising the following steps: obtaining water consumption data of water users in a target area; extracting water consumption characteristics of the water consumption data; obtaining water consumption parameter factors; obtaining a water consumption calculation model based on the water consumption characteristics and the water consumption parameter factors, so as to obtain the fitted water consumption data of the water users based on the water consumption calculation model.
[0006] In an implementation of the first aspect, extracting the water consumption characteristics of the water consumption data includes the following steps:
[0007] Performing Fourier transform on the water consumption data to obtain frequency domain information of water consumption;
[0008] Based on the water consumption frequency domain information, phases and amplitudes corresponding to frequency 0 Hz, frequency 1 Hz, and frequency 2 Hz are obtained;
[0009] The phase and the amplitude are used as the water consumption feature.
[0010] In an implementation of the first aspect, the water consumption parameter factors include the area of the water user, the age of the water user's house, and the average price of the water user.
[0011] In an implementation of the first aspect, the water consumption calculation model is Where t represents the calculation time, Q t represents the water consumption at time t, w n Indicates frequency n, A n represents the amplitude corresponding to frequency n, p n The phase corresponding to frequency n.
[0012] In an implementation of the first aspect, the amplitudes corresponding to the frequency 1 Hz and the frequency 2 Hz are Among them, x1 represents the area of the water user, x2 represents the age of the water user's house, x3 represents the average price of the water user, α0, α1, α2, α3 represent the feature weights of the frequency 1 Hz, β0, β1, β2, β3 represent the feature weights of the frequency 2 Hz, and A0 is the mean of the water consumption data.
[0013] In an implementation of the first aspect, the feature weights are obtained through multiple linear regression based on measured A1, A2, water user area, water user house age, and water user average price.
[0014] In an implementation manner of the first aspect, the phases of the frequency 1 Hz and the frequency 2 Hz adopt the average of the phases corresponding to the frequencies.
[0015] In a second aspect, the present invention provides a system for processing urban domestic water data, the system comprising a first acquisition module, an extraction module, a second acquisition module and a processing module;
[0016] The first acquisition module is used to acquire water consumption data of water users in the target area;
[0017] The extraction module is used to extract the water consumption characteristics of the water consumption data;
[0018] The second acquisition module is used to obtain a water consumption parameter factor;
[0019] The processing module is used to obtain a water consumption calculation model based on the water consumption characteristics and the water consumption parameter factors, so as to obtain the fitted water consumption data of the water user based on the water consumption calculation model.
[0020] In a third aspect, the present invention provides a storage medium having a computer program stored thereon, which, when executed by a device, implements the above-mentioned urban domestic water data processing method.
[0021] In a fourth aspect, the present invention provides an electronic device, the device comprising: a processor and a memory;
[0022] The memory is used to store computer programs;
[0023] The processor is used to execute the computer program stored in the memory, so that the electronic device executes the above-mentioned urban domestic water data processing method.
[0024] As described above, the urban domestic water data processing method, system, medium and electronic device of the present invention have the following beneficial effects:
[0025] (1) Based on the spatiotemporal interpolation technology of urban high-frequency water supply data, a universal water quantity model is constructed by mining the frequency domain characteristics of water consumption of each water user in the city, thereby realizing automatic filling of hourly water consumption data and providing data support for urban water supply analysis and decision-making models;
[0026] (2) Based on Fourier transform analysis of data characteristic factors, a periodic cosine function of water consumption is constructed to more finely characterize the data in time and space dimensions, thereby effectively estimating the hourly water consumption data of water users without remote water meters;
[0027] (3) The water volume data obtained from water users has a high water volume fitting accuracy and can form a more accurate water supply network model, which helps operators to coordinate and dispatch water plants or related facilities in advance, ensure water supply safety, and reduce system operating costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 Shown is a flow chart of a method for processing urban domestic water data in one embodiment of the present invention;
[0029] Figure 2 Shown is a schematic diagram of the water consumption time domain data in one embodiment of the present invention;
[0030] Figure 3 Shown is a schematic diagram of the water consumption frequency domain data in one embodiment of the present invention;
[0031] Figure 4A schematic diagram showing a comparison between the mean value of water consumption data of the present invention and the amplitude at a frequency of 0 Hz in one embodiment;
[0032] Figure 5 Shown is a statistical diagram of the phase position in one embodiment of the present invention at a frequency of 1 Hz and a frequency of 2 Hz;
[0033] Figure 6 Shown is a schematic diagram of comparison between the fitted water consumption data and the measured water consumption data in one embodiment of the present invention;
[0034] Figure 7 Shown is a schematic diagram of the comparison before and after fitting in an embodiment of the present invention without actual measured water consumption data;
[0035] Figure 8 Shown is a technical circuit diagram of another embodiment of the urban domestic water data processing method of the present invention;
[0036] Fig. 9 Shown is a schematic structural diagram of an urban domestic water data processing system in one embodiment of the present invention;
[0037] Fig.10 It is a schematic structural diagram of an electronic device of the present invention in one embodiment. DETAILED DESCRIPTION
[0038] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the information disclosed by the present invention. The present invention can also be implemented or applied through other different specific embodiments, and the details of the present invention can also be modified or changed according to different viewpoints and application modules without departing from the spirit of the present invention. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0039] The following is a detailed description of the embodiments of the present invention with reference to the accompanying drawings so that those skilled in the art can easily implement the present invention. The present invention can be embodied in many different forms and is not limited to the embodiments described herein.
[0040] In the representation of the present invention, the reference terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean that the specific features, structures, materials or characteristics represented in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics represented may be combined in any one or a group of embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples represented in the present invention and the features of different embodiments or examples without contradiction.
[0041] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the representation of the present invention, the meaning of "a group" is two or more, unless otherwise clearly and specifically defined.
[0042] In order to clearly describe the present invention, components not related to the description are omitted, and the same reference numerals are given to the same or similar components throughout the specification.
[0043] Throughout the specification, when a device is said to be "connected" to another device, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a device is said to "include" a certain component, unless otherwise stated, it does not exclude other components, but means that other components may be included.
[0044] Although the terms first, second, etc. are used to represent various elements in this article in some examples, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first interface and the second interface, etc. are represented. Moreover, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising" and "including" indicate that there are the described features, steps, operations, elements, modules, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or a group of other features, steps, operations, elements, modules, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Only when the combination of elements, functions, steps or operations is inherently mutually exclusive in some way, will there be an exception to this definition.
[0045] The technical terms used herein are only used to refer to specific embodiments and are not intended to limit the present invention. The singular form used herein also includes the plural form as long as the sentence does not clearly indicate the opposite meaning. The meaning of "including" used in the specification is to specify specific characteristics, regions, integers, steps, operations, elements and / or components, and does not exclude the existence or addition of other characteristics, regions, integers, steps, operations, elements and / or components.
[0046] Although not defined differently, all terms, including technical and scientific terms used herein, have the same meaning as those generally understood by those skilled in the art to which the present invention belongs. Terms defined in commonly used dictionaries are additionally interpreted as having meanings consistent with relevant technical documents and the message of the present disclosure, and shall not be overly interpreted as ideal or very formal meanings unless otherwise defined.
[0047] The following embodiments of the present invention provide a method for processing urban domestic water data, which can be applied to electronic devices. The electronic devices described in the present invention may include mobile phones, tablet computers, laptop computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc., which have wireless charging functions. The embodiments of the present invention do not impose any restrictions on the specific types of electronic devices. For example, the electronic device may be a station (STAION, ST) in a WLAN with a wireless charging function, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with a wireless charging function, a computing device or other processing device, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next generation communication system, such as a mobile terminal in a 5G network, a mobile terminal in a future evolved Public Land Mobile Network (PLMN), or a mobile terminal in a future evolved Non-terrestrial Network (NTN).
[0048] For example, the electronic device can communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS can include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS) and / or Satellite Based Augmentation Systems (SBAS).
[0049] The time series water consumption of water users is the core data of water supply management. Accurate water consumption can help operators effectively optimize scheduling strategies and promote the safe and efficient operation of water supply systems. The urban domestic water use data processing method of the present invention aims to estimate the water consumption data of water users without actual measurement. Based on the Fourier analysis results, the water consumption data is a periodic function, which can be expressed and fitted by a polynomial cosine function. By extracting the parameter factors of water users, including amplitude, frequency and phase, a periodic cosine function is constructed to form a spatiotemporal data interpolation technology, and the current status data of water users without actual measurement data is encrypted in time and space density. Through water supply model evaluation and verification, compared with the traditional water consumption model, the urban domestic water use data processing method of the present invention can effectively improve the operation accuracy of the water supply model, reduce simulation errors, and effectively guide water supply optimization scheduling and related management work, so it is very practical.
[0050] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0051] like Figure 1 As shown, in one embodiment, the urban domestic water data processing method of the present invention is applied to the electronic device, including steps S1 to S4.
[0052] Step S1: Obtain water consumption data of water users in a target area.
[0053] Specifically, for water users who do not have measured water consumption data, the water consumption data collected monthly by the water meter is obtained.
[0054] Step S2: extracting water consumption characteristics of the water consumption data.
[0055] Specifically, Figure 2 As shown in the figure, water consumption data is time series data and has periodic changes. Periodic functions and signals can be described and simulated by cosine functions. The Fourier transform formula is: Where ω represents frequency, t represents time, and e -iωt represents a complex function.
[0056] In one embodiment, extracting the water consumption characteristics of the water consumption data includes the following steps:
[0057] 21) Performing Fourier transform on the water consumption data to obtain water consumption frequency domain information.
[0058] Among them, for periodic signals, Fourier analysis can effectively analyze and eliminate the noise components in the time series, and extract the unique water consumption characteristics of water users. Based on the Fourier transform formula, the time domain water consumption data signal of each water user is converted to form water consumption information in the frequency domain.
[0059] For example, the present invention selects water users with measured data to perform Fast Fourier Transformation (FFT), and the data period is from December 1, 2023 to December 31, 2023. According to the above formula, through FFT, the discretization of periodic functions is quickly solved, and the water volume change data of water users is converted into the addition of multiple periodic functions.
[0060] 22) Based on the water consumption frequency domain information, the phase and amplitude corresponding to the frequency 0 Hz, the frequency 1 Hz and the frequency 2 Hz are obtained.
[0061] Among them, Figure 3 As shown in the figure, the water consumption time series data is transformed into frequency domain information through Fourier transform, and the spectrum diagram shows the signal characteristics of water consumption data that are difficult to find in the time domain. Figure 3The results of time-frequency conversion of water consumption of 9 different measured water users are shown in Figure 2. The amplitude of the signal (A0) when the frequency is 0 represents the overall mean of water consumption, which can effectively represent the basic water consumption information of water users. Figure 4 As shown in the figure, the calculated data is compared with the measured average water consumption data of water users, and is close to the average flow of meter reading data. The amplitude of the signal corresponding to the frequency of 1Hz and the frequency of 2Hz respectively characterizes the periodic changes of water users in a day and the morning and evening peaks, and the amplitude represents the corresponding water volume changes. According to the Fourier transform formula, the phase determines the time of occurrence of the waveform peak, which mainly describes the water use habits of each water user, such as the time of occurrence of peak and trough. Taking residential communities as an example, communities that have been built for a long time have more elderly people, and their water use patterns are significantly different from those of new communities that have been built for a short time.
[0062] 23) Using the phase and the amplitude as the water consumption characteristics.
[0063] Among them, based on the water user's frequency of 0Hz, frequency 1Hz, and frequency 2Hz, combined with the corresponding amplitude and phase, a water consumption characteristic parameter combination is formed, that is, the amplitude (A0, A1, A2) at the frequency of 0Hz, 1Hz, and 2Hz and the phase (p1 and p2) at the frequency of 1Hz and 2Hz, so as to effectively analyze the water consumption situation of water users.
[0064] Step S3: Obtain water consumption parameter factors.
[0065] Specifically, the water consumption parameter factors include the area of water users, the age of water users' houses, and the average price of water users.
[0066] Step S4: obtaining a water consumption calculation model based on the water consumption characteristics and the water consumption parameter factors, so as to obtain fitting water consumption data of the water user based on the water consumption calculation model.
[0067] Specifically, the fast Fourier transform integrates the periodic discrete signal in the frequency domain, and accumulates the components of the signal at each frequency at time t, which is the value at time t. When the measured water consumption data is converted from time series data to frequency domain data, the specific parameter frequency and corresponding amplitude characteristics of the water user can be effectively obtained. By extracting the amplitude and phase data corresponding to each frequency and constructing a cosine function, the water consumption data of the water user in each time period can be calculated. Therefore, the water consumption calculation model is Where t represents the calculation time, Q t represents the water consumption at time t, w n Indicates frequency n, A n represents the amplitude corresponding to frequency n, p n The phase corresponding to the frequency n. Extract the parameter factors of A1, A2 and the corresponding water users, and construct the multivariate linear regression equation.
[0068] For water users who only have meter reading data, according to the constructed multivariate linear regression equation, regression equations for A1 and A2 can be constructed respectively to obtain the amplitudes A1 and A2 corresponding to the characteristic frequencies 1Hz and 2Hz of each water user respectively, and the amplitude under frequency A0 is obtained by combining the mean of the water consumption data of the monthly average meter reading data. , where x1 represents the area of water users, x2 represents the age of water users’ houses, x3 represents the average price of water users, α0, α1, α2, α3 represent the characteristic weights of frequency 1, β0, β1, β2, β3 represent the characteristic weights of frequency 2 Hz, and A0 represents the mean of the water consumption data. It should be noted that the characteristic weights are obtained through multiple linear regression based on the measured A1, A2, the area of water users, the age of water users’ houses, and the average price of water users.
[0069] In addition, the average value is calculated based on the phase data of the measured water users. The phases of frequency 1 Hz and frequency 2 Hz use the average value of the phases corresponding to the frequencies. The specific expression is as follows:
[0070]
[0071] in, is the phase corresponding to the nth water user at a frequency of 1 Hz; is the phase corresponding to the nth water user at a frequency of 2 Hz; n is the number of water users.
[0072] Therefore, based on the acquired amplitude, frequency and phase, the water consumption cosine function of the water user without measured data is formed, and finally the fitted water consumption data of the water user for 24 hours is obtained.
[0073] The water consumption calculation model is verified below. A water user without measured data in the target area is selected for verification. In order to verify the accuracy of the water consumption calculation model results, temporary water consumption monitoring is carried out on this water user. Based on the water user's historical meter reading data, its average monthly hourly water consumption is 23.19m 3 / h, that is, A0 is equal to 23.19, and its water consumption characteristic factors are house age 9 years, average price 7232 yuan, area 98000 square meters, and calculation shows that A1 is 9.82, A2 is 14.57, and the average values of p1 and p2 are 2.08 and 1.75. Therefore, the water consumption calculation model is Q t =23.19+9.82*cos(2πt+2.08)+14.57*cos(4πt+1.75), where t is the calculation time in days; Q t Represents the water consumption at time t, in m 3 / h.
[0074] like Figure 6 and Figure 7 As shown in the figure, the parameterization results of the water consumption calculation model better represent the water consumption data of water users. Therefore, the water consumption calculation model can be effectively used in the water consumption interpolation process of water users without measured data.
[0075] The technical roadmap of the urban domestic water data processing method of the present invention is as follows: Figure 8 As shown. First, the water consumption data of water users in the target area is obtained. Then, the water consumption characteristics are obtained by calculating the frequency domain information and phase amplitude of the water consumption data. Then, the water consumption parameter factor is obtained based on the water consumption characteristics. Finally, the water consumption calculation model is obtained based on the phase mean calculation and the amplitude multivariate linear regression equation. For specific water users, the water consumption data is parameterized to obtain a personalized water consumption calculation model. The fitted water consumption data of the water user is obtained according to the personalized water consumption calculation model.
[0076] The protection scope of the urban domestic water data processing method described in the embodiment of the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0077] An embodiment of the present invention further provides a city domestic water data processing system, which can implement the city domestic water data processing method described in the present invention. However, the implementation device of the city domestic water data processing system described in the present invention includes but is not limited to the structure of the city domestic water data processing system listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
[0078] like Fig. 9 As shown, in one embodiment, the urban domestic water data processing system of the present invention includes a first acquisition module 91 , an extraction module 92 , a second acquisition module 93 and a processing module 94 .
[0079] The first acquisition module 91 is used to acquire water consumption data of water users in the target area.
[0080] The extraction module 92 is connected to the first acquisition module 91 and is used to extract the water consumption characteristics of the water consumption data.
[0081] The second acquisition module 93 is connected to the extraction module 92 and is used to acquire the water consumption parameter factor based on the water consumption characteristics.
[0082] The processing module 94 is connected to the second acquisition module 93, and is used to acquire a water consumption calculation model based on the water consumption characteristics and the water consumption parameter factors, so as to acquire the fitting water consumption data of the water user based on the water consumption calculation model.
[0083] The structures and principles of the first acquisition module 91, the extraction module 92, the second acquisition module 93 and the processing module 94 correspond one to one with the steps in the above-mentioned urban domestic water data processing method, so they are not described in detail here.
[0084] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as 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 interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.
[0085] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0086] Those skilled in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments invented herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0087] The embodiment of the present invention also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0088] An embodiment of the present invention further provides an electronic device, which includes a processor and a memory.
[0089] The memory is used to store computer programs.
[0090] The memory includes: ROM, RAM, disk, USB flash drive, memory card or CD and other media that can store program codes.
[0091] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the electronic device executes the above-mentioned urban domestic water data processing method.
[0092] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0093] like Fig.10As shown, the electronic device of the present invention is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors or processing units 101, a memory 102, and a bus 103 connecting different system components (including the memory 102 and the processing unit 101).
[0094] Bus 103 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0095] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0096] The memory 102 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 1021 and / or cache memory 1022. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the memory 102 may be used to read and write non-removable, non-volatile magnetic media ( Fig.10 not shown, usually called a "hard drive"). Although Fig.10 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 103 via one or more data medium interfaces. The memory 102 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0097] A program / utility 1024 having a set (at least one) of program modules 10241 may be stored, for example, in the memory 102, such program modules 10241 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 10241 generally perform the functions and / or methods of the embodiments described herein.
[0098] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interface 104. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 105. Fig.10 As shown, the network adapter 105 communicates with other modules of the electronic device via the bus 103. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0099] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for processing urban domestic water data, characterized in that: The method comprises the following steps: Obtain water consumption data of water users in the target area; Extracting water consumption characteristics of the water consumption data; Obtain water consumption parameter factors; A water consumption calculation model is obtained based on the water consumption characteristics and the water consumption parameter factors, so as to obtain fitting water consumption data of the water user based on the water consumption calculation model.
2. The method for processing urban domestic water data according to claim 1, characterized in that: Extracting the water consumption characteristics of the water consumption data comprises the following steps: Performing Fourier transform on the water consumption data to obtain frequency domain information of water consumption; Based on the water consumption frequency domain information, phases and amplitudes corresponding to frequency 0 Hz, frequency 1 Hz, and frequency 2 Hz are obtained; The phase and the amplitude are used as the water consumption feature.
3. The method for processing urban domestic water data according to claim 2, characterized in that: The water consumption parameter factors include the area of water users, the age of water users' houses, and the average price of water users.
4. The method for processing urban domestic water data according to claim 3, characterized in that: The water consumption calculation model is: Where t represents the calculation time, Q t represents the water consumption at time t, w n Indicates frequency n, A n represents the amplitude corresponding to frequency n, p n The phase corresponding to frequency n.
5. The method for processing urban domestic water data according to claim 4, characterized in that: The amplitude corresponding to the frequency of 1Hz and the frequency of 2Hz is Among them, x1 represents the area of the water user, x2 represents the age of the water user's house, x3 represents the average price of the water user, α0, α1, α2, α3 represent the feature weights of the frequency 1 Hz, β0, β1, β2, β3 represent the feature weights of the frequency 2 Hz, and A0 is the mean of the water consumption data.
6. The method for processing urban domestic water data according to claim 5, characterized in that: The feature weights are obtained through multiple linear regression based on measured A1, A2, water user area, water user house age, and water user average price.
7. The method for processing urban domestic water data according to claim 4, characterized in that: The phases of the frequency 1 Hz and the frequency 2 Hz adopt the average value of the phases corresponding to the frequencies.
8. A system for processing urban domestic water data, characterized in that: The system comprises a first acquisition module, an extraction module, a second acquisition module and a processing module; The first acquisition module is used to acquire water consumption data of water users in the target area; The extraction module is used to extract the water consumption characteristics of the water consumption data; The second acquisition module is used to obtain a water consumption parameter factor; The processing module is used to obtain a water consumption calculation model based on the water consumption characteristics and the water consumption parameter factors, so as to obtain the fitted water consumption data of the water user based on the water consumption calculation model.
9. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the urban domestic water data processing method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: Processor and memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory, so that the electronic device executes the urban domestic water data processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Urban domestic water modeling method considering water saving amount
CN116797108A
Method, device and equipment for acquiring water consumption of meter reading community and storage medium
CN116957189A