Park secondary water supply water consumption control method and electronic equipment

By using the historical number of people in the park and the actual water consumption queue in the secondary water supply system, and adjusting the actual water inlet volume in combination with real-time data, the problem of inaccurate water consumption prediction in the existing technology is solved, and precise control and safety guarantee of park water use is achieved.

CN119623979APending Publication Date: 2025-03-14ZHEJIANG SUPCON INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411700055.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The water consumption forecast of the existing secondary water supply system during holiday adjustment and sudden activity periods is inaccurate, which may cause the water to remain in the water tank for too long, affecting drinking water safety.

Method used

The water consumption prediction model at the current moment is determined based on the historical number of people in the park and the actual water consumption queue, and the actual water inflow is adjusted in real time based on the real-time personnel entry and exit data and the water tank water volume, so as to achieve accurate control of water consumption.

Benefits of technology

It effectively solves the problem of inaccurate water usage prediction, ensures the reasonable retention time of water in the water tank, and ensures the safety and efficiency of water use in the park.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119623979A_ABST
    Figure CN119623979A_ABST
Patent Text Reader

Abstract

The invention provides a park secondary water supply water consumption control method and electronic equipment, and the method comprises the steps: determining a water consumption prediction model corresponding to a current moment according to a historical park people number queue in a first preset time period before the current moment and an actual water consumption queue in a second preset time period before the current moment, personnel access data in the park at the current moment are obtained, the personnel access data comprise the number of people entering the park and the number of people leaving the park, the current predicted water consumption is determined according to the personnel access data and the water consumption prediction model, the current water tank water amount of the park is obtained, and the actual water inflow is adjusted in real time according to the current predicted water consumption and the current water tank water amount. According to the method, the water consumption prediction model corresponding to the current moment is determined according to the historical number of people in the park and the actual water consumption which are updated in real time, so that the water consumption change under sudden events such as rest and activity days in holidays is dealt with, and the water consumption safety of the park is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of secondary water supply, and in particular to a method and electronic equipment for controlling water consumption of secondary water supply in a park. Background Art

[0002] The secondary water supply system is used to solve the problem that the demand for water pressure and water volume in civil and industrial buildings exceeds the public water supply capacity of towns. The system stores tap water from the municipal pipeline network in water tanks and delivers it to users through booster pumps. However, if the water in the water tank is retained for too long, it will affect the safety of drinking water. Therefore, how to adjust the water replenishment volume of the water tank based on the retention time of the water in the water tank has become a technical problem that needs to be solved urgently.

[0003] The existing technology establishes a water consumption prediction model based on factors such as holidays and weather, and dynamically adjusts the water filling level and stop filling level of the water tank according to the water consumption prediction model to optimize the retention time of water in the water tank.

[0004] However, the water consumption prediction model of the prior art is inaccurate for special periods such as holidays and unexpected events, which may cause the water to stay in the water tank for too long. Summary of the invention

[0005] The purpose of this application is to provide a method and electronic equipment for controlling water consumption of secondary water supply in a park in view of the deficiencies in the above-mentioned prior art, so as to solve the problem of water consumption prediction results in the prior art.

[0006] To achieve the above objectives, the technical solutions adopted in this application are as follows:

[0007] In a first aspect, the present application provides a method for controlling water consumption of secondary water supply in a park, the method comprising:

[0008] Determine a water consumption prediction model corresponding to the current moment according to a historical queue of the number of people in the park within a first preset time period before the current moment and a queue of actual water consumption within a second preset time period before the current moment, wherein the historical queue of the number of people in the park includes a preset sample number of historical people in the park arranged in chronological order, and the actual water consumption queue includes a preset sample number of actual water consumption arranged in chronological order, and the end time of the first preset time period is earlier than the end time of the second preset time period;

[0009] Obtaining the personnel entry and exit data in the park at the current moment, wherein the personnel entry and exit data includes the number of people entering the park and the number of people leaving the park;

[0010] Determine the current predicted water consumption according to the personnel entry and exit data and the water consumption prediction model;

[0011] Get the current water volume in the park's water tank;

[0012] The actual water intake is adjusted in real time according to the current predicted water consumption and the current water level in the water tank.

[0013] Optionally, determining the water consumption prediction model corresponding to the current moment according to the historical queue of the number of people in the park within a first preset time period before the current moment and the queue of actual water consumption within a second preset time period before the current moment includes:

[0014] Generate an independent variable set corresponding to the first historical number of people in the park according to the historical number of people in the park queue, wherein the independent variable set includes a plurality of independent variables, and the first historical number of people in the park is any value in the historical number of people in the park queue;

[0015] Obtaining current model parameters corresponding to the first historical number of students in the park, and constructing an optional prediction model according to the current model parameters, wherein the current model parameters are a set of model parameters in a model parameter set;

[0016] Determine, according to the first actual water consumption corresponding to the first historical number of people in the garden in the actual water consumption queue, the set of independent variables, and the optional prediction model, a result error of the current model parameters under the first historical number of people in the garden;

[0017] Determine a set of target model parameters in the model parameter set according to the result errors of each set of model parameters in the model parameter set under each historical number of people in the park;

[0018] The prediction model formed by the target model parameters is used as the water consumption prediction model corresponding to the current moment.

[0019] Optionally, the current model parameters include: a plurality of first-category parameters and second-category parameters, and the number of the first-category parameters is the same as the number of the independent variables;

[0020] The optional prediction model constructed according to the current model parameters is:

[0021] y=α0x0+α1x1+α2x2+…+α h x h +β

[0022] Among them, α0, α1…α h represents a parameter of the first type, β represents a parameter of the second type, x0, x1…x h Represents an independent variable respectively, and y represents the predicted water consumption.

[0023] Optionally, determining the result error of the current model parameters under the first historical number of people in the garden according to the first actual water consumption corresponding to the first historical number of people in the garden in the actual water consumption queue, the independent variable set, and the optional prediction model includes:

[0024] Inputting each variable in the independent variable set into the optional prediction model to obtain the predicted water consumption of the current model parameters under the first historical number of people in the garden;

[0025] A result error of the current model parameters under the first historical number of people in the garden is determined according to the first actual water consumption and the predicted water consumption of the current model parameters under the first historical number of people in the garden.

[0026] Optionally, determining a set of target model parameters in the model parameter set according to result errors of each set of model parameters in the model parameter set under each historical number of people in the park includes:

[0027] Determine the fitting error of each group of model parameters according to the result error of each group of model parameters in the model parameter set under each historical number of students in the park;

[0028] A set of model parameters with the smallest fitting error is used as the target model parameters.

[0029] Optionally, obtaining the personnel entry and exit data in the park at the current moment includes:

[0030] Acquire the personnel entry and exit data collected by the edge gateway, wherein the process of the edge gateway collecting the personnel entry and exit data includes:

[0031] Obtain access event messages through the API interface or database interface of the campus access control system platform;

[0032] Determine the access data of the access control device at the entrance and exit of the park according to the parameter value of the device identification parameter in the access event message;

[0033] The personnel entry and exit data is determined based on the passage data of the access control equipment at the entrance and exit of the park.

[0034] Optionally, obtaining the current water volume of the water tank in the park includes:

[0035] Obtaining the current water volume of the water tank collected by the edge gateway, wherein the process of the edge gateway collecting the current water volume of the water tank includes:

[0036] Obtain flow data of each area in the park through the network address or data address of the park water supply system platform;

[0037] The current water volume in the water tank is determined based on the flow data of each area.

[0038] Optionally, determining the current predicted water consumption according to the personnel entry and exit data and the water consumption prediction model includes:

[0039] The difference between the number of people entering the park and the number of people leaving the park is taken as the current number of people in the park;

[0040] The current number of people in the park is input into the water consumption prediction model to determine the predicted water consumption.

[0041] Optionally, before determining the water consumption prediction model corresponding to the current moment according to the historical queue of the number of people in the park within a first preset time period before the current moment and the queue of actual water consumption within a second preset time period before the current moment, the method further includes:

[0042] Add the number of people in the park in the previous period and the actual water consumption in the previous period to the historical number of people in the park queue and the actual water consumption queue respectively;

[0043] The historical number of people in the garden with the earliest recorded time in the historical number of people in the garden queue is deleted, and the actual water consumption with the earliest recorded time in the actual water consumption queue is deleted.

[0044] In a second aspect, the present application provides a device for controlling water consumption of secondary water supply in a park, the device comprising:

[0045] A first determination module is used to determine a water consumption prediction model corresponding to the current moment according to a historical queue of the number of people in the park within a first preset time period before the current moment and a queue of actual water consumption within a second preset time period before the current moment, wherein the historical queue of the number of people in the park includes a preset sample number of historical people in the park arranged in chronological order, and the actual water consumption queue includes a preset sample number of actual water consumption arranged in chronological order, and the end time of the first preset time period is earlier than the end time of the second preset time period;

[0046] A first acquisition module is used to acquire the personnel entry and exit data in the park at the current moment, wherein the personnel entry and exit data includes the number of people entering the park and the number of people leaving the park;

[0047] A second determination module is used to determine the current predicted water consumption according to the personnel entry and exit data and the water consumption prediction model;

[0048] The second acquisition module is used to obtain the current water volume of the water tank in the park;

[0049] The adjustment module is used to adjust the actual water intake in real time according to the current predicted water consumption and the current water volume in the water tank.

[0050] Optionally, the first determining module is specifically configured to:

[0051] Generate an independent variable set corresponding to the first historical number of people in the park according to the historical number of people in the park queue, wherein the independent variable set includes a plurality of independent variables, and the first historical number of people in the park is any value in the historical number of people in the park queue;

[0052] Obtaining current model parameters corresponding to the first historical number of students in the park, and constructing an optional prediction model according to the current model parameters, wherein the current model parameters are a set of model parameters in a model parameter set;

[0053] Determine, according to the first actual water consumption corresponding to the first historical number of people in the garden in the actual water consumption queue, the set of independent variables, and the optional prediction model, a result error of the current model parameters under the first historical number of people in the garden;

[0054] Determine a set of target model parameters in the model parameter set according to the result errors of each set of model parameters in the model parameter set under each historical number of people in the park;

[0055] The prediction model formed by the target model parameters is used as the water consumption prediction model corresponding to the current moment.

[0056] Optionally, the current model parameters include: a plurality of first-category parameters and second-category parameters, and the number of the first-category parameters is the same as the number of the independent variables;

[0057] Optionally, the first determining module is specifically configured to:

[0058] y=α0x0+α1x1+α2x2+…+α h x h +β

[0059] Among them, α0, α1…α h represents a parameter of the first type, β represents a parameter of the second type, x0, x1…x h Represents an independent variable respectively, and y represents the predicted water consumption.

[0060] Optionally, the first determining module is specifically configured to:

[0061] Inputting each variable in the independent variable set into the optional prediction model to obtain the predicted water consumption of the current model parameters under the first historical number of people in the garden;

[0062] A result error of the current model parameters under the first historical number of people in the garden is determined according to the first actual water consumption and the predicted water consumption of the current model parameters under the first historical number of people in the garden.

[0063] Optionally, the first determining module is specifically configured to:

[0064] Determine the fitting error of each group of model parameters according to the result error of each group of model parameters in the model parameter set under each historical number of students in the park;

[0065] A set of model parameters with the smallest fitting error is used as the target model parameters.

[0066] Optionally, the first acquisition module is specifically used to:

[0067] Acquire the personnel entry and exit data collected by the edge gateway, wherein the process of the edge gateway collecting the personnel entry and exit data includes:

[0068] Obtain access event messages through the API interface or database interface of the campus access control system platform;

[0069] Determine the access data of the access control device at the entrance and exit of the park according to the parameter value of the device identification parameter in the access event message;

[0070] The personnel entry and exit data is determined based on the passage data of the access control equipment at the entrance and exit of the park.

[0071] Optionally, the second acquisition module is specifically used to:

[0072] Obtaining the current water volume of the water tank collected by the edge gateway, wherein the process of the edge gateway collecting the current water volume of the water tank includes:

[0073] Obtain flow data of each area in the park through the network address or data address of the park water supply system platform;

[0074] The current water volume in the water tank is determined based on the flow data of each area.

[0075] Optionally, the second determining module is specifically configured to:

[0076] The difference between the number of people entering the park and the number of people leaving the park is taken as the current number of people in the park;

[0077] The current number of people in the park is input into the water consumption prediction model to determine the predicted water consumption.

[0078] Optionally, the first determining module is further configured to:

[0079] Add the number of people in the park in the previous period and the actual water consumption in the previous period to the historical number of people in the park queue and the actual water consumption queue respectively;

[0080] The historical number of people in the garden with the earliest recorded time in the historical number of people in the garden queue is deleted, and the actual water consumption with the earliest recorded time in the actual water consumption queue is deleted.

[0081] In a third aspect, the present application provides an electronic device comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps described in the first aspect above.

[0082] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps described in the first aspect are performed.

[0083] The beneficial effects of the present application are as follows: first, based on the historical queue of the number of people in the park within the first preset time before the current moment and the queue of actual water consumption within the second preset time period before the current moment, the water consumption prediction model corresponding to the current moment is determined, and the water consumption prediction model is updated in real time so that the model can timely reflect the relationship between the number of people in the park and the actual water consumption in the current time period. Then, the current predicted water consumption is determined based on the acquired data on the entry and exit of people in the park at the current moment and the water consumption prediction model, and the actual water intake is adjusted in real time based on the current predicted water consumption and the current water tank water volume. The present application determines the water consumption prediction model corresponding to the current moment based on the real-time updated historical number of people in the park and the actual water consumption, so as to cope with the changes in water consumption under sudden events such as holiday adjustments and activity days in a short period of time, and then accurately supply water to the park to ensure the water safety of the park. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0085] Figure 1 This is a schematic diagram of an application scenario of a method for controlling water consumption of secondary water supply in a park provided in an embodiment of the present application;

[0086] Figure 2 It is a flow chart of a method for controlling water consumption of secondary water supply in a park provided in an embodiment of the present application;

[0087] Figure 3 It is a flow chart of a method for determining a water consumption prediction model corresponding to the current moment provided by an embodiment of the present application;

[0088] Figure 4 This is a schematic diagram of a process for collecting personnel entry and exit data provided by an embodiment of the present application;

[0089] Figure 5 It is a flow chart of another method for controlling water consumption of secondary water supply in a park provided in an embodiment of the present application;

[0090] Figure 6 It is a structural schematic diagram of a secondary water supply water consumption control device for a park provided in an embodiment of the present application;

[0091] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0092] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0093] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0094] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0095] The existing water consumption prediction model is inaccurate in predicting water supply during special periods such as holidays and unexpected events, which may cause water to remain in the water tank for too long, affecting normal water use.

[0096] Based on this, the present application proposes a method for controlling water consumption of secondary water supply in a park. The method determines the water consumption prediction model corresponding to the current moment according to the historical queue of the number of people in the park and the actual water consumption queue, and then adjusts the actual water intake in real time according to the personnel entry and exit data and the water consumption prediction model at the current moment. Since the historical queue of the number of people in the park and the actual water consumption queue are updated in real time, the water consumption prediction model corresponding to the current moment will also be updated in real time, and can reflect the relationship between the number of people in the park and the water consumption in a shorter period of time, so that in the face of special periods such as holiday adjustments or sudden activities, a better water supply plan can still be selected, thereby ensuring the water safety of the secondary water supply.

[0097] Before introducing in detail how to control the water consumption of secondary water supply in the park, Figure 1 The application scenarios of the secondary water supply water consumption control method in the park are introduced. Figure 1 It is a schematic diagram of an application scenario of a method for controlling water consumption of secondary water supply in a park provided in an embodiment of the present application.

[0098] The method for controlling the water consumption of secondary water supply in a park can be applied to an electronic device connected to an edge gateway. The edge gateway can be an electronic device or software system located at the edge of the network architecture. The edge gateway can obtain data sent by the park access control system platform based on an API interface and / or a database interface, and send the data to the electronic device, and obtain data sent by the park water supply system platform through a network address and / or a data address, and send the data to the electronic device. Among them, the park access control system platform is used to receive and integrate the traffic data sent by the access control equipment at the entrance and exit of the park. The access control equipment may include gates, cameras, gates, etc. The park water supply system platform is used to receive and integrate the water supply flow and water outflow flow of each area in the park, wherein the water supply flow and water outflow flow can be collected through the flowmeter of the water supply pipe of each water tank in the park and the flowmeter of the water outflow pipe. Optionally, the park water supply system platform can also obtain the current water volume of the water tank through the liquid level meter located in the water tank. After the electronic device determines the actual water intake based on the current predicted water consumption and the current water level in the water tank, the actual water intake is sent to the park water supply system platform so that the park water supply system platform can replenish the water tanks in the park according to the actual water intake.

[0099] Next, refer to Figure 2 The specific implementation process of the secondary water supply consumption control method in the park is introduced. Figure 2 It is a flow chart of a method for controlling water consumption of secondary water supply in a park provided in an embodiment of the present application.

[0100] S201. Determine a water consumption prediction model corresponding to the current moment based on a historical queue of the number of people in the park within a first preset time period before the current moment and a queue of actual water consumption within a second preset time period before the current moment, wherein the historical queue of the number of people in the park includes a preset number of samples of historical people in the park arranged in chronological order, and the actual water consumption queue includes a preset number of samples of actual water consumption arranged in chronological order, and the end time of the first preset time period is earlier than the end time of the second preset time period.

[0101] Among them, because the number of people in the park in a period of time is strongly correlated with the actual water consumption after the preset interval of the period of time, each historical number of people in the park in the historical number of people in the park queue corresponds to the actual water consumption in the actual water consumption queue, and the time difference is a preset interval period, and the preset interval period is the difference between the end time of the first preset period and the end time of the second preset period. Optionally, the start time of the first preset interval period is earlier than the start time of the second preset period.

[0102] It is worth noting that the historical queue of people in the park and the queue of actual water consumption are updated in real time over time, thus ensuring the timeliness of the water consumption prediction model.

[0103] Optionally, the preset number of samples is determined according to the actual application scenario. When the number of people in the park will not change significantly, a larger number of preset samples can be set to reduce the number of changes in water tank refilling. When the number of people in the park may change significantly, a smaller number of samples can be set to flexibly adjust the water refilling strategy according to the impact of the actual number of changes on the water supply.

[0104] Exemplarily, the current time is 2:00 p.m. on October 5, then the first preset time period can be from 2:00 p.m. on October 3 to 10:00 a.m. on October 5, and the historical number of people in the park queue includes the time periods of historical number of people in the park from 2:00 p.m. on October 3 to 6:00 p.m. on October 3, 6:00 p.m. on October 3 to 10:00 p.m. on October 3, 10:00 p.m. on October 3 to 2:00 a.m. on October 4, 2:00 a.m. on October 4 to 6:00 a.m. on October 4, 6:00 a.m. on October 4 to 10:00 a.m. on October 4, 10:00 a.m. on October 4 to 2:00 p.m. on October 4, 2:00 p.m. on October 4 to 6:00 p.m. on October 4, 6:00 p.m. on October 4 to 10:00 p.m. on October 4, 10:00 p.m. on October 4 to 2:00 a.m. on October 5, 2:00 a.m. on October 5 to 6:00 a.m. on October 5, and 6:00 a.m. on October 5 to 10:00 a.m. on October 5. The second preset time period may be from 6:00 p.m. on October 3 to 2:00 p.m. on October 5, and the preset interval period is 4 hours. The actual water consumption queue includes the actual water consumption time periods from 6:00 p.m. on October 3 to 10:00 p.m. on October 3, 10:00 p.m. on October 3 to 2:00 a.m. on October 4, 2:00 a.m. on October 4 to 6:00 a.m. on October 4, 6:00 a.m. on October 4 to 10:00 a.m. on October 4, 10:00 a.m. on October 4 to 2:00 p.m. on October 4, 2:00 p.m. on October 4 to 6:00 p.m. on October 4, 6:00 p.m. on October 4 to 10:00 p.m. on October 4, 10:00 p.m. on October 4 to 2:00 a.m. on October 5, 2:00 a.m. on October 5 to 6:00 a.m. on October 5, 6:00 a.m. on October 5 to 10:00 a.m. on October 5, and 10:00 a.m. on October 5 to 2:00 p.m. on October 5.

[0105] Optionally, the water consumption prediction model corresponding to the current moment is determined based on the correspondence between each historical number of people in the park and the actual water consumption corresponding to each historical number of people in the park in the historical number of people in the park queue and the actual water consumption queue. As an optional implementation method, the result error corresponding to each historical number of people in the park can be determined based on each historical number of people in the park, the actual water consumption corresponding to each historical number of people in the park, and multiple model parameters, and the target model parameters can be determined based on the result error corresponding to each historical number of people in the park, and the prediction model composed of the target model parameters is used as the water consumption prediction model corresponding to the current moment.

[0106] As another optional implementation, training samples may be generated based on a real-time updated historical queue of the number of people in the park and a real-time updated queue of actual water consumption, and an initial water consumption prediction model may be trained based on the training samples to obtain a water consumption prediction model corresponding to the current period.

[0107] S202: Acquire the personnel entry and exit data in the park at the current moment, where the personnel entry and exit data includes the number of people entering the park and the number of people leaving the park.

[0108] As an optional implementation, the number of people entering and leaving the park can be collected through the edge gateway. The number of people entering and leaving the park can be obtained by the number of access card swipes or by image acquisition equipment located at the entrance and exit of the park to perform image recognition on the entrance and exit, and sent to the edge gateway.

[0109] S203: Determine the current predicted water consumption based on the personnel entry and exit data and the water consumption prediction model.

[0110] As an optional implementation, the personnel entry and exit data is input into the water consumption prediction model, and the water consumption prediction model can output the current predicted water consumption.

[0111] Among them, the current predicted water consumption is the predicted water consumption corresponding to the personnel entry and exit data in the park at the current moment. Since in the process of determining the water consumption prediction model corresponding to the current moment, there is a time difference between the historical number of people in the park in the historical number of people in the park queue and the actual water consumption in the actual water consumption queue, and the time difference is the preset interval time, therefore, the current predicted water consumption obtained according to the personnel entry and exit data at the current moment is the water consumption within the preset time interval after the current moment.

[0112] S204: Obtain the current water volume in the water tank of the park.

[0113] As an optional implementation, the current water level in the water tank in the park can be collected through the edge gateway.

[0114] It is worth noting that the current water volume in the park’s water tanks is the sum of the water volumes in all water tanks in the park.

[0115] S205. Adjust the actual water intake in real time according to the current predicted water consumption and the current water volume in the water tank.

[0116] As an optional implementation, if the current water volume in the water tank is less than the current predicted water volume, the difference between the current predicted water volume and the current water volume in the water tank is used as the actual water inflow. If the current water volume in the water tank is greater than the current predicted water volume, the actual water inflow is 0, and the water tank in the park is not replenished.

[0117] As another optional implementation, if the current water volume in the water tank is greater than the current predicted water volume for longer than a preset maximum water storage time, an alarm signal is generated to remind staff to replace the water in the current water tank to ensure water safety.

[0118] Optionally, after adjusting the actual water intake, the personnel entry and exit data at the current moment is updated to the historical in-park population queue, and the actual water consumption corresponding to the current moment is updated to the actual water consumption queue.

[0119] In this embodiment, first, the water consumption prediction model corresponding to the current moment is determined based on the historical number of people in the park within the first preset moment before the current moment and the actual water consumption queue within the second preset time period before the current moment, and the water consumption prediction model is updated in real time so that the model can timely reflect the relationship between the number of people in the park and the actual water consumption in the current time period. Then, the current predicted water consumption is determined based on the acquired data on the entry and exit of people in the park at the current moment and the water consumption prediction model, and the actual water intake is adjusted in real time based on the current predicted water consumption and the current water tank water level. This application determines the water consumption prediction model corresponding to the current moment based on the real-time updated historical number of people in the park and the actual water consumption, so as to cope with the changes in water consumption under sudden events such as holiday adjustments and activity days in a short period of time, and then accurately supply water to the park to ensure the water safety of the park.

[0120] Next, refer to Figure 3 The specific process of determining the water consumption prediction model corresponding to the current moment according to the historical number of people in the park in the first preset time period before the current moment and the actual water consumption queue in the second preset time period before the current moment in the above step S201 is introduced.

[0121] S301. Generate an independent variable set corresponding to the first historical number of people in the park according to a historical number of people in the park queue, wherein the independent variable set includes a plurality of independent variables, and the first historical number of people in the park is any value in the historical number of people in the park queue.

[0122] The independent variables included in the independent variable set may be generated by the first historical number of people in the park. The number of independent variables in the independent variable set may be preset.

[0123] Optionally, multiple different independent variables can be generated by dimensionality increase conversion according to the first historical number of people in the park and the number of independent variables set in advance. For example, if the first historical number of people in the park is x and the number of independent variables is 8, the independent variable set may include: x, x 2 、x 3 、x 4 、x 5 、x 6 、x 7 and x 8 .

[0124] S302: Obtain current model parameters corresponding to the first historical number of people in the park, and construct an optional prediction model according to the current model parameters, wherein the current model parameters are a group of model parameters in a model parameter set.

[0125] Optionally, multiple model parameters may be generated in advance to generate a model parameter set. The model parameters may include independent variable coefficient parameters and adjustment parameters. Exemplarily, the current model parameters may include α0, α1, α2, α3, α4, α5, α6, α7 and α8, and a model parameter β. Among them, β can be used as an overall adjustment amount to adjust the overall amplitude of the predicted water consumption.

[0126] Optionally, the number of model parameter sets is related to the accuracy of the water consumption prediction model finally generated. The more model parameters there are in the model parameter set, the higher the accuracy of the water consumption prediction model.

[0127] S303: Determine the result error of the current model parameters under the first historical number of people in the garden according to the first actual water consumption corresponding to the first historical number of people in the garden in the actual water consumption queue, the independent variable set, and the optional prediction model.

[0128] As an optional implementation, the predicted water consumption corresponding to the first historical number of people in the garden under the current model parameters can be determined based on the independent variable set and the optional prediction model, and then the result error of the current model parameters under the first historical number of people in the garden can be determined based on the predicted water consumption and the first actual water consumption corresponding to the first historical number of people in the garden in the actual water consumption queue.

[0129] As an optional implementation, the result error can be the mean square error (MSE) in the fitting error function. The mean square error is an indicator to measure the difference between the predicted value and the true value. Therefore, the smaller the result error, the smaller the difference between the predicted water consumption output by the model and the actual water consumption.

[0130] S304: Determine a set of target model parameters in the model parameter set according to the result errors of each set of model parameters in the model parameter set under each historical number of people in the park.

[0131] As an optional implementation, multiple independent variable sets are generated based on all the historical number of people in the historical number of people in the park queue, and then an optional prediction model is constructed based on the multiple independent variable sets, the actual water consumption corresponding to each historical number of people in the park, and the current model parameters, so as to determine the result error under the current model parameters at each historical number of people in the park. Based on the above method, the result error of the model parameters in all model parameter sets at each historical number of people in the park is calculated, so as to determine the fitting error of each group of model parameters, and then determine a set of target model parameters in the model parameter set.

[0132] Optionally, the model parameters corresponding to the minimum fitting error are used as a set of target model parameters in the model parameter set.

[0133] S305: Use the prediction model composed of the target model parameters as the water consumption prediction model corresponding to the current moment.

[0134] Optionally, since the predicted water consumption output by the prediction model composed of the target model parameters has the smallest difference with the actual water consumption, the prediction model composed of the target model parameters is used as the water consumption prediction model corresponding to the current moment, and the current predicted water consumption finally obtained is most consistent with the actual water demand.

[0135] In this embodiment, by generating an independent variable set according to each historical number of people in the park in the historical number of people in the park queue, the independent variable dimension can be increased, and polynomial regression can be realized. Then, the current model parameters corresponding to the historical number of people in the park are obtained, and an optional prediction model is constructed according to the current model parameters. According to the actual water consumption corresponding to each historical number of people in the park in the actual water consumption queue, the independent variable set and multiple optional prediction models, the result error under each model parameter under each historical number of people in the park is determined, so as to determine the target model parameters and the water consumption prediction model corresponding to the current moment composed of the target model parameters. In this embodiment, by evaluating multiple model parameters according to the real-time updated historical number of people in the park queue and the corresponding actual water consumption queue, the target model parameters that can generate a predicted water consumption close to the actual water consumption are obtained, so that the water consumption prediction model corresponding to the current moment outputted at the end is most in line with the current water use scenario.

[0136] As an optional implementation, the current model parameters include: a plurality of first-category parameters and second-category parameters, and the number of the first-category parameters is the same as the number of independent variables.

[0137] The number of first-category parameters is the same as the number of independent variables in the independent variable set.

[0138] Based on this, the optional prediction model constructed according to the current model parameters in the above step S302 can be the following formula (1):

[0139] y=α0x0+α1x1+α2x2+…+α h x h +β (1)

[0140] Among them, α0, α1…α h represents a first-class parameter, β represents a second-class parameter, x0, x1…x h They represent an independent variable respectively, y represents the predicted water consumption, and h represents the number of independent variables.

[0141] As another optional implementation, the current model parameters may also include a first-category parameter and a second-category parameter. Based on this, the optional prediction model constructed according to the current model parameters may be the following formula (2):

[0142] y=αx+β (2)

[0143] Among them, y represents the predicted water consumption, α represents the first type of parameter, x represents the number of people in the park in history, and β represents the second type of parameter.

[0144] In this embodiment, the current model parameters include a plurality of first-category parameters and second-category parameters, thereby constructing an optional prediction model, ensuring that the influence of the relationship between each independent variable and the actual water consumption in the model is reflected, thereby improving the refinement of the model.

[0145] Further, after determining the structure of the optional prediction model, the process of determining the result error of the current model parameters under the first historical number of people in the park according to the first actual water consumption corresponding to the first historical number of people in the park in the actual water consumption queue, the independent variable set and the optional prediction model in the above step S303 specifically includes the following steps.

[0146] Optionally, each variable in the independent variable set is input into an optional prediction model to obtain the predicted water consumption under the first historical number of people in the park with the current model parameters.

[0147] Optionally, each variable in the independent variable set generated by the first historical number of people in the park is input into the optional prediction model, and the predicted water consumption under the first historical number of people in the park is obtained based on the above formula (1). For example, if the first historical number of people in the park is x, then the independent variable set generated by the first historical number of people in the park includes x0, x1...x h , x0, x1…x h It can be x, x obtained by transforming x 2 …x h .

[0148] For example, the process of determining the predicted water consumption of the current model parameters under the first historical number of people in the garden can be shown as formula (3):

[0149]

[0150] Among them, y1 represents the predicted water consumption under the first historical number of people in the park.

[0151] Optionally, a result error of the current model parameters under the first historical number of people in the garden is determined according to the first actual water consumption and the predicted water consumption of the current model parameters under the first historical number of people in the garden.

[0152] Optionally, the calculation formula of the result error of the current model parameter under the first historical number of people in the park is as follows:

[0153] MES1=(h(x1)-y1) 2 (4)

[0154] In the above formula, MES1 represents the result error of the current model parameters under the first historical number of people in the park, y1 represents the predicted water consumption under the first historical number of people in the park, and h(x1) represents the actual water consumption corresponding to the first historical number of people in the park.

[0155] In this embodiment, by inputting each variable in the independent variable set into the optional prediction model, the predicted water consumption under the current model parameters under the first historical number of people in the park is obtained, and then the result error is determined based on the predicted water consumption and the actual water consumption, thereby evaluating the accuracy of the output results of the water consumption prediction model under the current model parameters.

[0156] Next, the process of determining a set of target model parameters in the model parameter set according to the result errors of each set of model parameters in the model parameter set under each historical number of people in the park in the above step S304 is introduced.

[0157] Optionally, the fitting error of each group of model parameters is determined according to the result error of each group of model parameters in the model parameter set under each historical number of students in the park.

[0158] Optionally, based on the method for determining the result error in formula (4), the calculation formula for the fitting error of each group of model parameters is as follows:

[0159]

[0160] In the above formula, n is the number of historical students in the historical enrollment queue, y is i represents the actual water consumption corresponding to the number of people in the park in history, h(x i ) represents the predicted water consumption corresponding to the i-th historical number of people in the park. MES represents the fitting error of a set of model parameters under different historical numbers of people in the park.

[0161] Optionally, a set of model parameters with the smallest fitting error is used as the target model parameters.

[0162] Optionally, since the smaller the fitting error, the closer the predicted water consumption output by the water consumption prediction model is to the actual water consumption, a set of model parameters with the smallest fitting error is used as the target model parameters.

[0163] In this embodiment, the fitting error of each group of model parameters is determined according to the result error of each group of model parameters in the model parameter set under each historical number of people in the park, and the group of model parameters with the smallest fitting error is used as the target model parameters, thereby ensuring that the predicted water consumption obtained by the water consumption prediction model constructed based on the target model parameters is close to the actual water consumption.

[0164] Next, we will introduce how to obtain the data of people entering and leaving the park and the current water volume in the water tank in the rock area.

[0165] The process of obtaining the personnel entry and exit data in the park at the current moment in the above step S202 is: obtaining the personnel entry and exit data collected by the edge gateway.

[0166] Among them, refer to Figure 4 The process of edge gateway collecting personnel entry and exit data includes the following steps. Figure 4 It is a flow chart of collecting personnel entry and exit data provided by an embodiment of the present application.

[0167] S401. Obtain access event messages through the API interface or database interface of the campus access control system platform.

[0168] Specifically, according to the preset communication protocol, the communication event message is obtained through the API interface and the database interface. The communication event message may be, for example, the following Table 1:

[0169] Table 1

[0170] Serial number parameter type Parameter Description 1 message long Message ID 2 deviceID string Device identification parameters 3 cardID string Access card identification parameters 4 time string Message time 5 data int Message content

[0171] Among them, type is used to indicate the data type, message identifier is used to indicate the unique identifier of the current message, device identifier parameter is used to indicate the number or identifier of the access control device, access card identifier parameter is used to identify the identity of the user currently passing through the access control device, message time is used to indicate the time when the user passes through the access control device, and message content is used to identify the user entering or leaving the park.

[0172] S402: Determine the access data of the access control device at the entrance and exit of the park according to the parameter value of the device identification parameter in the access event message.

[0173] Specifically, the identification of the devices at the exit and entrance of the park is stored in advance, and the access data of the access control devices at the exit and entrance of the park are counted according to the parameter value of the device identification parameter in the access event message. The access data of the access control devices is as shown in Table 2 below:

[0174] Table 2

[0175]

[0176]

[0177] Optionally, it can be preset that two persons are seated in each vehicle, so that the number of persons entering and exiting the park in the vehicle is determined according to the number of vehicles.

[0178] S403: Determine personnel entry and exit data based on the access data of the access control equipment at the entrance and exit of the park.

[0179] Optionally, the number of people entering and leaving the park is determined based on the number of vehicles, the number of registered persons, and the number of temporary persons in the traffic data of each access control device.

[0180] In this embodiment, the edge gateway collects the personnel entry and exit data, and the edge gateway obtains the access event message according to the park access control system platform, and determines the access data of each access control device according to the access event message, thereby determining the personnel entry and exit data. In this embodiment, accurate personnel entry and exit data is obtained through the access control device, thereby providing an accurate data basis for the process of determining the relationship between the number of people in the park and the water consumption.

[0181] Optionally, the process of obtaining the current water volume of the water tank in the park in the above step S204 includes: obtaining the current water volume of the water tank collected by the edge gateway.

[0182] The process of edge gateway collecting the current water volume in the water tank includes:

[0183] Optionally, the flow data of each area in the park can be obtained through the network address or data address of the park water supply system platform.

[0184] Among them, the flow data includes water supply flow and water outlet flow, wherein the water supply flow and water outlet flow can be collected by a flow meter.

[0185] For example, the flow data may be as shown in Table 3 below:

[0186] Table 3

[0187] Serial number parameter type Parameter Description 1 Ft1 cur float Area 1 real-time traffic 2 Ft1 cur float Area 2 real-time traffic …… …… …… ……

[0188] Optionally, the current water volume in the water tank is determined based on the flow data of each area.

[0189] Optionally, the total water volume of the water tank in the park can be determined based on the water supply flow and water outlet flow of each area. Specifically, the difference between the water supply flow and the water outlet flow in each area in the park is added up, and the sum is used as the current water volume of the water tank.

[0190] In this embodiment, flow data of each area in the park is obtained based on the park water supply system platform to determine the current water volume in the water tank, thereby accurately adjusting the actual water intake.

[0191] Next, the process of determining the current predicted water consumption according to the personnel entry and exit data and the water consumption prediction model in step S203 includes:

[0192] Optionally, the difference between the number of people entering the park and the number of people leaving the park is taken as the current number of people in the park.

[0193] It is worth noting that you can set a data clearing time, such as 0:00 a.m. After this time, the difference between the number of people entering the park and the number of people leaving the park is used as the number of people in the park for the first period after 0:00 a.m. After this period and until 0:00 a.m. of the next day, the sum of the number of people in the park and the number of people entering the park and the difference between the number of people leaving the park are used as the number of people in the park for each period.

[0194] Optionally, the current number of people in the park is input into a water consumption prediction model to determine the predicted water consumption.

[0195] Among them, the water consumption prediction model is a model that is updated in real time based on the historical number of people in the park and the actual water consumption.

[0196] In this embodiment, the current number of people in the park is calculated and input into the water consumption prediction model to determine the predicted water consumption, thereby obtaining an accurate predicted water consumption, and the actual water intake is adjusted according to the predicted water consumption to ensure water safety in the park.

[0197] As an optional implementation, before the above step S determines the water consumption prediction model corresponding to the current moment according to the historical number of people in the park in the first preset time period before the current moment and the actual water consumption queue in the second preset time period before the current moment, the method further includes:

[0198] Optionally, the number of people in the park in the previous period and the actual water consumption in the previous period are added to the historical number of people in the park queue and the actual water consumption queue respectively.

[0199] Specifically, the duration of the previous period at the current moment may be the duration of the preset interval period.

[0200] Optionally, the historical number of people in the garden with the earliest recording time in the historical number of people in the garden queue is deleted, and the actual water consumption with the earliest recording time in the actual water consumption queue is deleted.

[0201] Specifically, the historical number of people attending the park with the earliest recording time in the historical number of people attending the park queue and the actual water consumption with the earliest recording time in the actual water consumption queue, that is, the historical number of people attending the park and the actual water consumption at the front of the historical number of people attending the park queue and the actual water consumption queue.

[0202] In this embodiment, the number of people in the park in the previous time period and the actual water consumption in the previous time period are added to the historical number of people in the park queue and the actual water consumption queue respectively, and the historical number of people in the park with the earliest recorded time in the historical number of people in the park queue is deleted, and the actual water consumption with the earliest recorded time in the actual water consumption queue is deleted, thereby realizing real-time updating of sample data, so that the water consumption prediction model can be updated according to the relationship between the number of people in the park and the water consumption in the closest time period, so as to cope with the water supply demand in special periods such as holiday adjustments and activity days.

[0203] As an optional implementation, Figure 5 FIG. 1 is a flow chart of another method for controlling the water consumption of secondary water supply in a park provided in an embodiment of the present application. Figure 5 As shown, the historical queue of people in the park and the actual water consumption queue are obtained, and the water consumption prediction model corresponding to the current moment is determined based on the historical queue of people in the park and the actual water consumption queue. The personnel entry and exit data in the park at the current moment is obtained from the edge gateway, and the current number of people in the park is determined based on the personnel entry and exit data in the park at the current moment. The current number of people in the park is input into the water consumption prediction model to obtain the current predicted water consumption, and the current water volume in the water tank is obtained from the edge network element. The actual water intake is adjusted in real time based on the current predicted water consumption and the current water volume in the water tank. During this period, the current number of people in the park and the actual water consumption corresponding to the current moment are obtained to update the historical queue of people in the park and the actual water consumption queue, and the historical number of people in the park and the actual water consumption of the earliest period in the historical queue of people in the park and the actual water consumption queue are deleted.

[0204] Based on the same inventive concept, the embodiment of the present application also provides a park secondary water supply water consumption control device corresponding to the park secondary water supply water consumption control method. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned park secondary water supply water consumption control method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0205] Reference Figure 6 As shown, it is a structural schematic diagram of a secondary water supply consumption control device for a park provided in an embodiment of the present application, the device includes: a first determination module 601, a first acquisition module 602, a second determination module 603, a second acquisition module 604 and an adjustment module 605; wherein:

[0206] The first determination module 601 is used to determine the water consumption prediction model corresponding to the current moment according to the historical number of people in the park in a first preset time period before the current moment and the actual water consumption queue in a second preset time period before the current moment, the historical number of people in the park queue includes a preset sample number of historical number of people in the park arranged in chronological order, the actual water consumption queue includes a preset sample number of actual water consumption arranged in chronological order, and the end time of the first preset time period is earlier than the end time of the second preset time period;

[0207] The first acquisition module 602 is used to acquire the personnel entry and exit data in the park at the current moment, wherein the personnel entry and exit data includes the number of people entering the park and the number of people leaving the park;

[0208] A second determination module 603 is used to determine the current predicted water consumption according to the personnel entry and exit data and the water consumption prediction model;

[0209] The second acquisition module 604 is used to obtain the current water volume of the water tank in the park;

[0210] The adjustment module 605 is used to adjust the actual water intake in real time according to the current predicted water consumption and the current water volume in the water tank.

[0211] Optionally, the first determining module 601 is specifically configured to:

[0212] Generate an independent variable set corresponding to the first historical number of people in the park according to the historical number of people in the park queue, wherein the independent variable set includes a plurality of independent variables, and the first historical number of people in the park is any value in the historical number of people in the park queue;

[0213] Obtaining current model parameters corresponding to the first historical number of students in the park, and constructing an optional prediction model according to the current model parameters, wherein the current model parameters are a set of model parameters in a model parameter set;

[0214] Determine, according to the first actual water consumption corresponding to the first historical number of people in the garden in the actual water consumption queue, the set of independent variables, and the optional prediction model, a result error of the current model parameters under the first historical number of people in the garden;

[0215] Determine a set of target model parameters in the model parameter set according to the result errors of each set of model parameters in the model parameter set under each historical number of people in the park;

[0216] The prediction model formed by the target model parameters is used as the water consumption prediction model corresponding to the current moment.

[0217] Optionally, the current model parameters include: a plurality of first-category parameters and second-category parameters, and the number of the first-category parameters is the same as the number of the independent variables;

[0218] Optionally, the first determining module 601 is specifically configured to:

[0219] y=α0x0+α1x1+α2x2+…+α h x h +β

[0220] Among them, α0, α1…α h represents a parameter of the first type, β represents a parameter of the second type, x0, x1…x h Represents an independent variable respectively, and y represents the predicted water consumption.

[0221] Optionally, the first determining module 601 is specifically configured to:

[0222] Inputting each variable in the independent variable set into the optional prediction model to obtain the predicted water consumption of the current model parameters under the first historical number of people in the garden;

[0223] A result error of the current model parameters under the first historical number of people in the garden is determined according to the first actual water consumption and the predicted water consumption of the current model parameters under the first historical number of people in the garden.

[0224] Optionally, the first determining module 601 is specifically configured to:

[0225] Determine the fitting error of each group of model parameters according to the result error of each group of model parameters in the model parameter set under each historical number of students in the park;

[0226] A set of model parameters with the smallest fitting error is used as the target model parameters.

[0227] Optionally, the first acquisition module 602 is specifically configured to:

[0228] Acquire the personnel entry and exit data collected by the edge gateway, wherein the process of the edge gateway collecting the personnel entry and exit data includes:

[0229] Obtain access event messages through the API interface or database interface of the campus access control system platform;

[0230] Determine the access data of the access control device at the entrance and exit of the park according to the parameter value of the device identification parameter in the access event message;

[0231] The personnel entry and exit data is determined based on the passage data of the access control equipment at the entrance and exit of the park.

[0232] Optionally, the second acquisition module 604 is specifically configured to:

[0233] Obtaining the current water volume of the water tank collected by the edge gateway, wherein the process of the edge gateway collecting the current water volume of the water tank includes:

[0234] Obtain flow data of each area in the park through the network address or data address of the park water supply system platform;

[0235] The current water volume in the water tank is determined based on the flow data of each area.

[0236] Optionally, the second determining module 603 is specifically configured to:

[0237] The difference between the number of people entering the park and the number of people leaving the park is taken as the current number of people in the park;

[0238] The current number of people in the park is input into the water consumption prediction model to determine the predicted water consumption.

[0239] Optionally, the first determining module 601 is further configured to:

[0240] Add the number of people in the park in the previous period and the actual water consumption in the previous period to the historical number of people in the park queue and the actual water consumption queue respectively;

[0241] The historical number of people in the garden with the earliest recorded time in the historical number of people in the garden queue is deleted, and the actual water consumption with the earliest recorded time in the actual water consumption queue is deleted.

[0242] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0243] The present application also provides an electronic device, such as Figure 7 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, includes: a processor 701, a memory 702 and a bus. The memory 702 stores machine-readable instructions executable by the processor 701 (for example, Figure 7 The execution instructions corresponding to the first determination module 601, the first acquisition module 602, the second determination module 603, the second acquisition module 604 and the adjustment module 605 in the device, etc.), when the computer device is running, the processor 701 communicates with the memory 702 through a bus, and when the machine-readable instructions are executed by the processor 701, the processing of the above-mentioned park secondary water supply water consumption control method is performed.

[0244] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned park secondary water supply water consumption control method are executed.

[0245] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components 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, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0246] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the technical solution that contributes to the prior art or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for 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 invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program code.

[0247] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A method for controlling water consumption of secondary water supply in a park, characterized in that: The method comprises: Determine a water consumption prediction model corresponding to the current moment according to a historical queue of the number of people in the park within a first preset time period before the current moment and a queue of actual water consumption within a second preset time period before the current moment, wherein the historical queue of the number of people in the park includes a preset sample number of historical people in the park arranged in chronological order, and the actual water consumption queue includes a preset sample number of actual water consumption arranged in chronological order, and the end time of the first preset time period is earlier than the end time of the second preset time period; Obtaining the personnel entry and exit data in the park at the current moment, wherein the personnel entry and exit data includes the number of people entering the park and the number of people leaving the park; Determine the current predicted water consumption according to the personnel entry and exit data and the water consumption prediction model; Get the current water volume in the park's water tank; The actual water intake is adjusted in real time according to the current predicted water consumption and the current water level in the water tank.

2. The method for controlling water consumption of secondary water supply in a park according to claim 1, characterized in that: The method of determining a water consumption prediction model corresponding to the current moment according to a historical queue of the number of people in the park in a first preset time period before the current moment and an actual water consumption queue in a second preset time period before the current moment includes: Generate an independent variable set corresponding to the first historical number of people in the park according to the historical number of people in the park queue, wherein the independent variable set includes a plurality of independent variables, and the first historical number of people in the park is any value in the historical number of people in the park queue; Obtaining current model parameters corresponding to the first historical number of students in the park, and constructing an optional prediction model according to the current model parameters, wherein the current model parameters are a set of model parameters in a model parameter set; Determine, according to the first actual water consumption corresponding to the first historical number of people in the garden in the actual water consumption queue, the set of independent variables, and the optional prediction model, a result error of the current model parameters under the first historical number of people in the garden; Determine a set of target model parameters in the model parameter set according to the result errors of each set of model parameters in the model parameter set under each historical number of people in the park; The prediction model formed by the target model parameters is used as the water consumption prediction model corresponding to the current moment.

3. The method for controlling water consumption of secondary water supply in a park according to claim 2, characterized in that: The current model parameters include: a plurality of first-category parameters and second-category parameters, wherein the number of the first-category parameters is the same as the number of the independent variables; The optional prediction model constructed according to the current model parameters is: y=α0x0+α1x1+α2x2+…+α h x h +b Among them, α0, α1…α h represents a parameter of the first type, β represents a parameter of the second type, x0, x1…x h Represents an independent variable respectively, and y represents the predicted water consumption.

4. The method for controlling water consumption of secondary water supply in a park according to claim 2, characterized in that: The determining, according to the first actual water consumption corresponding to the first historical number of people in the garden in the actual water consumption queue, the set of independent variables, and the optional prediction model, a result error of the current model parameter under the first historical number of people in the garden, comprises: Inputting each variable in the independent variable set into the optional prediction model to obtain the predicted water consumption of the current model parameters under the first historical number of people in the garden; A result error of the current model parameters under the first historical number of people in the garden is determined according to the first actual water consumption and the predicted water consumption of the current model parameters under the first historical number of people in the garden.

5. The method for controlling water consumption of secondary water supply in a park according to claim 2, characterized in that: Determining a set of target model parameters in the model parameter set according to the result errors of each set of model parameters in the model parameter set under each historical number of people in the park includes: Determine the fitting error of each group of model parameters according to the result error of each group of model parameters in the model parameter set under each historical number of students in the park; A set of model parameters with the smallest fitting error is used as the target model parameters.

6. The method for controlling water consumption of secondary water supply in a park according to claim 1, characterized in that: The obtaining of the personnel entry and exit data in the park at the current moment includes: Acquire the personnel entry and exit data collected by the edge gateway, wherein the process of the edge gateway collecting the personnel entry and exit data includes: Obtain access event messages through the API interface or database interface of the campus access control system platform; Determine the access data of the access control device at the entrance and exit of the park according to the parameter value of the device identification parameter in the access event message; The personnel entry and exit data is determined based on the passage data of the access control equipment at the entrance and exit of the park.

7. The method for controlling water consumption of secondary water supply in a park according to claim 1, characterized in that: The obtaining of the current water volume of the water tank in the park includes: Obtaining the current water volume of the water tank collected by the edge gateway, wherein the process of the edge gateway collecting the current water volume of the water tank includes: Obtain flow data of each area in the park through the network address or data address of the park water supply system platform; The current water volume in the water tank is determined based on the flow data of each area.

8. The method for controlling water consumption of secondary water supply in a park according to claim 1, characterized in that: Determining the current predicted water consumption according to the personnel entry and exit data and the water consumption prediction model includes: The difference between the number of people entering the park and the number of people leaving the park is taken as the current number of people in the park; The current number of people in the park is input into the water consumption prediction model to determine the predicted water consumption.

9. The method for controlling water consumption of secondary water supply in a park according to claim 1, characterized in that: Before determining the water consumption prediction model corresponding to the current moment according to the historical queue of the number of people in the park in the first preset time period before the current moment and the queue of actual water consumption in the second preset time period before the current moment, the method further includes: Add the number of people in the park in the previous period and the actual water consumption in the previous period to the historical number of people in the park queue and the actual water consumption queue respectively; The historical number of people in the garden with the earliest recorded time in the historical number of people in the garden queue is deleted, and the actual water consumption with the earliest recorded time in the actual water consumption queue is deleted.

10. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor executes the machine-readable instructions to perform the steps of the method for controlling the water consumption of secondary water supply in a park as described in any one of claims 1 to 9.