A method, device, equipment and medium for controlling power consumption of venue power supply guarantee
Through the combination of the human flow prediction model and the power demand decision-making model, the power distribution plan is dynamically adjusted, solving the problem of complex changes in power demand in large event venues, and improving the power grid operation efficiency and power consumption satisfaction.
Patent Information
- Application Number
- CN202410961702.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-18
AI Technical Summary
The demand for electricity in densely populated areas in large-scale event venues changes complexly, and existing technology cannot effectively control electrical equipment, resulting in a heavy power supply burden for venues.
The human flow prediction model and power demand decision-making model are used, combined with a multi-objective optimization algorithm, to monitor human flow and power consumption data in real time, dynamically adjust the power distribution plan, and optimize the operation of the power grid to meet the power demand of different regions and equipment.
It improves the overall operating efficiency of the microgrid, ensures the satisfaction of electricity demand and the safety of power supply, and reduces the burden on the power grid.
Smart Images

Figure CN118508439B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric power distribution, and in particular to a method, device, equipment and medium for regulating and controlling power consumption of a stadium power supply. Background Art
[0002] The density of people in large-scale event venues changes frequently. In order to meet the electricity demand of people in each area, the venue operator needs to control equipment such as air conditioning and lighting. The electricity consumption in crowded areas increases sharply. Therefore, it is necessary to understand the movement of people in real time and arrange on-site staff to operate. However, the gathering patterns of people in different stages of the event, such as the opening, halftime, and climax of the event, are significantly different, and show complex nonlinear dynamic changes over time. The existing technology does not regulate the power equipment in each area according to the changes in the number of people in the event venue, which is not conducive to meeting the electricity demand of people in the venue. If all areas in the venue are powered by electricity without restrictions, it will bring a heavy burden to the venue's power supply. Summary of the invention
[0003] In view of the above-mentioned defects, the present invention provides a method, device, equipment and medium for regulating electricity consumption for venue power supply guarantee, which can regulate the electricity consumption of the venue according to the number of people and improve the overall operating efficiency of the microgrid.
[0004] An embodiment of the present invention provides a method for controlling power consumption of a venue for power supply guarantee, the method comprising:
[0005] Collect initial crowd flow data in various areas of the venue before the event starts;
[0006] Inputting the initial crowd flow data into a pre-trained crowd flow prediction model, and outputting the predicted crowd flow data of each area in different time periods during the event;
[0007] Extracting crowd flow characteristic information from the predicted crowd flow data, and inputting it into a preset power demand decision model, and outputting power demand data of each area in different time periods;
[0008] Determine the power allocation plan for each area at different time periods based on the power demand data of each area at different time periods and the business priority data preset for different business equipment;
[0009] Performing power distribution management for different business equipment in each area according to the power distribution plan;
[0010] Real-time monitoring of the flow of people in each area and the power load data of different business equipment in the corresponding area;
[0011] Calculate the difference between the crowd flow change data and the predicted crowd flow data in each area at different time periods;
[0012] When the difference calculated in a certain area during a certain period of time is not within the preset error range, it is determined that the area has abnormal flow of people during the period of time;
[0013] When the power load data of a certain business equipment in a certain period of time is not within the preset safety threshold range, it is determined that the business equipment has an overload risk in this period of time;
[0014] When there is an abnormal flow of people in a certain area during a certain period of time, or when a certain business equipment is at risk of overload during a certain period of time, the dynamic adjustment process of the power distribution plan of the power grid is triggered;
[0015] Sort different areas and different business equipment in the corresponding areas according to regional priority and equipment importance;
[0016] A preset multi-objective optimization algorithm is used to minimize power supply safety risks and maximize power consumption satisfaction as the optimization goals, and grid operation constraints and equipment load limits as constraints to solve the updated power distribution plan. The updated power distribution plan is used to manage power distribution for different business equipment in each area.
[0017] Preferably, the method further comprises:
[0018] Real-time monitoring of crowd density data in each area;
[0019] When the crowd density data in a certain area exceeds the preset warning threshold, an early warning prompt is triggered;
[0020] When the crowd density data in a certain area exceeds the preset critical threshold, the crowd diversion instructions for that area will be automatically matched;
[0021] Control the intelligent crowd control equipment in the venue according to the matching crowd control instructions.
[0022] Preferably, the training process of the passenger flow prediction model specifically includes:
[0023] Collect the initial flow data of each area before the event starts and the flow of people in each area at different times after the event starts as training sets;
[0024] Input the training set into the preset long short-term memory network for training;
[0025] Input the initial crowd flow data in the acquired test data into the trained model, and calculate the prediction error between the crowd flow data predicted by the model and the actual crowd flow data;
[0026] When the prediction error exceeds the preset error threshold, the actual passenger flow data is added to the original training data set, and the model is retrained using incremental learning. The model's hyperparameters are adjusted, and the test data is re-acquired to calculate the prediction error after training.
[0027] When the prediction error does not exceed the error threshold, outputting the trained passenger flow prediction model;
[0028] The hyperparameters include the number of hidden layers, the number of neurons, and the learning rate.
[0029] Preferably, the extraction of crowd flow characteristic information from the predicted crowd flow data and inputting it into a preset power demand decision model to output the power demand data of each area at different time periods includes:
[0030] Calculate the crowd density of each area based on the predicted crowd flow data of each area and the area size of each area;
[0031] Make weighted adjustments to the crowd density according to the functional attributes of each area, and determine the crowd density index of the regional crowd distribution characteristics;
[0032] The K-means clustering algorithm is used to perform cluster analysis on the crowd density indicators of each area, and the crowd density level of each area is extracted based on the clustering results;
[0033] The crowd density level, area size and functional attributes of each area are used as crowd characteristic information and input into the power demand decision model trained by the decision tree algorithm based on historical data. The power parameters of different types of electrical equipment are determined by feature combination and splitting nodes, and then the power demand data of each area in different time periods is determined.
[0034] Preferably, the method of determining the power allocation scheme for each area in different time periods according to the power demand data of each area in different time periods and the service priority data preset for different service equipment includes:
[0035] Integrate the electricity demand data and business priority information of each region at different time periods to form a regional electricity demand priority list;
[0036] Obtain the current operating status data of the power grid and determine the current power supply capacity and load level of the power grid;
[0037] According to the power supply capacity of the power grid, select several high-priority areas whose total demand matches the power supply capacity from the regional power demand priority list as the areas to be given priority in power supply;
[0038] The Newton-Raphson method is used for power flow calculation. The physical constraints and operating restrictions of the power grid are combined as constraints. The constraints are added to the power flow equations to form a nonlinear optimization model with inequality constraints and generate power distribution plans for different time periods.
[0039] An embodiment of the present invention provides a power consumption control device for venue power supply guarantee, the device comprising:
[0040] The data acquisition module is used to collect the initial flow data of people in each area of the venue before the start of the event;
[0041] A prediction module, used to input the initial crowd flow data into a pre-trained crowd flow prediction model, and output the predicted crowd flow data of each area in different time periods during the event;
[0042] A demand calculation module is used to extract crowd flow characteristic information from the predicted crowd flow data, input it into a preset power demand decision model, and output the power demand data of each area in different time periods;
[0043] The allocation module is used to determine the power allocation plan for each area at different time periods according to the power demand data of each area at different time periods and the business priority data preset for different business equipment;
[0044] A power distribution module, used to manage power distribution for different business equipment in each area according to the power distribution plan;
[0045] Adjustment modules for:
[0046] Real-time monitoring of the flow of people in each area and the power load data of different business equipment in the corresponding area;
[0047] Calculate the difference between the crowd flow change data and the predicted crowd flow data in each area at different time periods;
[0048] When the difference calculated in a certain area during a certain period of time is not within the preset error range, it is determined that the area has abnormal flow of people during the period of time;
[0049] When the power load data of a certain business equipment in a certain period of time is not within the preset safety threshold range, it is determined that the business equipment has an overload risk in this period of time;
[0050] When there is an abnormal flow of people in a certain area during a certain period of time, or when a certain business equipment is at risk of overload during a certain period of time, the dynamic adjustment process of the power distribution plan of the power grid is triggered;
[0051] Sort different areas and different business equipment in the corresponding areas according to regional priority and equipment importance;
[0052] A preset multi-objective optimization algorithm is used to minimize power supply safety risks and maximize power consumption satisfaction as the optimization goals, and grid operation constraints and equipment load limits as constraints to solve the updated power distribution plan. The updated power distribution plan is used to manage power distribution for different business equipment in each area.
[0053] Preferably, the device further comprises an early warning module, which is used to:
[0054] Real-time monitoring of crowd density data in each area;
[0055] When the crowd density data in a certain area exceeds the preset warning threshold, an early warning prompt is triggered;
[0056] When the crowd density data in a certain area exceeds the preset critical threshold, the crowd diversion instructions for that area will be automatically matched;
[0057] Control the intelligent crowd control equipment in the venue according to the matching crowd control instructions.
[0058] The process of the prediction module training the crowd flow prediction model specifically includes:
[0059] Collect the initial flow data of each area before the event starts and the flow of people in each area at different times after the event starts as training sets;
[0060] Input the training set into the preset long short-term memory network for training;
[0061] Input the initial crowd flow data in the acquired test data into the trained model, and calculate the prediction error between the crowd flow data predicted by the model and the actual crowd flow data;
[0062] When the prediction error exceeds the preset error threshold, the actual passenger flow data is added to the original training data set, and the model is retrained using incremental learning. The model's hyperparameters are adjusted, and the test data is re-acquired to calculate the prediction error after training.
[0063] When the prediction error does not exceed the error threshold, outputting the trained passenger flow prediction model;
[0064] The hyperparameters include the number of hidden layers, the number of neurons, and the learning rate.
[0065] Preferably, the demand calculation module is specifically used for:
[0066] Calculate the crowd density of each area based on the predicted crowd flow data of each area and the area size of each area;
[0067] Make weighted adjustments to the crowd density according to the functional attributes of each area, and determine the crowd density index of the regional crowd distribution characteristics;
[0068] The K-means clustering algorithm is used to perform cluster analysis on the crowd density indicators of each area, and the crowd density level of each area is extracted based on the clustering results;
[0069] The crowd density level, area size and functional attributes of each area are used as crowd characteristic information and input into the power demand decision model trained by decision tree algorithm based on historical data. The power parameters of different types of electrical equipment are determined by feature combination and node splitting, and then the power demand data of each area in different time periods is determined.
[0070] Preferably, the power distribution module is specifically used for:
[0071] Integrate the electricity demand data and business priority information of each region at different time periods to form a regional electricity demand priority list;
[0072] Obtain the current operating status data of the power grid and determine the current power supply capacity and load level of the power grid;
[0073] According to the power supply capacity of the power grid, select several high-priority areas whose total demand matches the power supply capacity from the regional power demand priority list as the areas to be given priority in power supply;
[0074] The Newton-Raphson method is used for power flow calculation. The physical constraints and operating restrictions of the power grid are combined as constraints. The constraints are added to the power flow equations to form a nonlinear optimization model with inequality constraints and generate power distribution plans for different time periods.
[0075] An embodiment of the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the power consumption control method for venue power supply guarantee as described in any one of the above embodiments.
[0076] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the power consumption control method for venue power supply guarantee as described in any one of the above embodiments.
[0077] The power consumption control method, device, equipment and medium for venue power supply guarantee provided by the present invention collects the initial flow data of people in each area of the venue before the start of the game; inputs the initial flow data into the pre-trained flow prediction model, and outputs the predicted flow data of people in each area in different time periods during the game; extracts the flow characteristic information from the predicted flow data, and inputs it into the preset power demand decision model, and outputs the power demand data of each area in different time periods; determines the power distribution plan of each area in different time periods according to the power demand data of each area in different time periods and the preset business priority data of different business equipment; and distributes power to different business equipment in each area according to the power distribution plan. The present application scheme analyzes the gathering of people in each area in different links of the game (such as before the start, during the game, halftime, after the game, etc.), identifies which areas are about to experience a sharp increase in power consumption, and uses real-time monitoring data to analyze the change speed and trend of the density of people in each area, and then estimates the future power demand. Formulate a control strategy for the microgrid. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] Figure 1 It is a flow chart of a method for controlling power consumption for ensuring power supply to a stadium provided by an embodiment of the present invention;
[0079] Figure 2 It is a structural schematic diagram of a power consumption control device for venue power supply guarantee provided by an embodiment of the present invention;
[0080] Figure 3 It is a structural diagram of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0081] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0082] See also Figure 1 , is a flow chart of a method for controlling power consumption of a venue power supply guarantee provided by an embodiment of the present invention, the method comprising steps S1 to S5:
[0083] S1, collects the initial flow data of people in each area of the venue before the game starts;
[0084] S2, inputting the initial crowd flow data into a pre-trained crowd flow prediction model, and outputting the predicted crowd flow data of each area in different time periods during the event;
[0085] S3, extracting crowd flow characteristic information from the predicted crowd flow data, and inputting it into a preset power demand decision model, and outputting power demand data of each area in different time periods;
[0086] S4, determining the power allocation plan for each area at different time periods according to the power demand data of each area at different time periods and the business priority data preset for different business equipment;
[0087] S5, performing power distribution management for different business equipment in each area according to the power distribution plan;
[0088] S6, real-time monitoring of the flow of people in each area and the power load data of different business equipment in the corresponding area;
[0089] S7, calculating the difference between the crowd flow change data and the predicted crowd flow data in each area at different time periods;
[0090] S8, when the difference calculated in a certain area during a certain period of time is not within a preset error range, it is determined that abnormal flow of people occurs in the area during the period of time;
[0091] S9, when the power load data of a certain business equipment in a certain period of time is not within the preset safety threshold range, it is determined that the business equipment has an overload risk in the period of time;
[0092] S10, when an abnormal flow of people occurs in a certain area during a certain period of time, or a certain business equipment is at risk of overload during a certain period of time, a dynamic adjustment process of the power distribution plan of the power grid is triggered;
[0093] S11, sorting each area and different business equipment in the corresponding area according to the area priority and equipment importance;
[0094] S12, using a preset multi-objective optimization algorithm, with minimizing power supply safety risks and maximizing power consumption satisfaction as optimization goals, and with grid operation constraints and equipment load limits as constraints, solves the updated power distribution plan, and uses the updated power distribution plan to manage power distribution for different business equipment in each area.
[0095] In the specific implementation of this embodiment, the initial crowd flow data of each area before the start of the game is collected through the crowd monitoring camera; the key time nodes of the game are collected and divided into various time periods, including the start, the first half, the halftime break, the second half and the end of the game;
[0096] According to the initial crowd flow data, the crowd flow in each time period is predicted through the trained crowd flow prediction model; the current time period is determined based on the key time nodes of the event, and the predicted crowd flow data for the current time period is output;
[0097] Utilize the predicted passenger flow data for the current time period to extract the passenger flow characteristics of each area, and use the power demand decision model to evaluate the power demand of each area, including lighting, advertising equipment, broadcast display screens, and monitoring and security systems, as well as the corresponding business priorities;
[0098] Generate a power distribution plan for the power grid based on the power demand of each region and the corresponding business priority to meet the power demand of high-priority businesses;
[0099] Monitor the changes in passenger flow data and power consumption in each area in real time, identify whether there are areas with growing passenger flow or equipment with overloaded power consumption, and dynamically adjust the power distribution plan of the power grid corresponding to each area.
[0100] This solution analyzes the gathering patterns of people in different areas during different stages of the event. It identifies which areas will experience a sharp increase in electricity consumption during specific stages of the event. It uses real-time monitoring data to analyze the speed and trend of changes in the density of people in each area. It then estimates future electricity demand, formulates a microgrid control strategy, and improves the overall operating efficiency of the microgrid.
[0101] After the above step S5, the flow of people and power consumption in each area are monitored in real time to identify whether there is an area with increasing flow of people or equipment with overloaded power consumption;
[0102] Deploy crowd monitoring cameras and smart meters to collect crowd data and power load data in each area in real time, forming a real-time monitoring data stream of crowd and power consumption. Perform statistical analysis on the real-time monitored crowd data, calculate crowd density, crowd change rate and other indicators in each area, set abnormal thresholds for crowd density and change rate, and judge that there is abnormal growth or gathering of crowds in the area when the crowd density or crowd change rate exceeds the preset abnormal threshold. Perform statistical analysis on the real-time monitored power load data, calculate the load rate, load change rate and other indicators of power equipment in each area, set a safety threshold for the load rate, and judge that there is a risk of power overload for the equipment when the actual load of the power equipment exceeds the preset safety threshold. Comprehensively analyze crowd monitoring data and power consumption monitoring data, establish a correlation model between crowd change and power load change, adopt a multivariate linear regression model, take crowd density and crowd change rate of each area as independent variables, take power load of the corresponding area as dependent variable, fit the coefficients of the regression model by least squares method, and use this model to predict the power load change trend in the future based on real-time crowd data. According to the changes in passenger flow and power load forecast results, the safe operation threshold of the power system is compared to determine whether there are power supply safety hazards and determine the areas and equipment that need to be monitored. If an abnormal increase in passenger flow or overload of power consumption is found in a certain area, the dynamic adjustment process of the power distribution plan of the power grid is triggered.
[0103] When there is an abnormal flow of people in a certain area during a certain period of time, or when a certain business equipment is at risk of overload during a certain period of time, the dynamic adjustment process of the power grid's electricity distribution plan is triggered.
[0104] Sort the regions and equipment according to regional priority and equipment importance. Use multi-objective optimization algorithms, such as weighted sum method or genetic algorithm, to minimize power supply safety risks and maximize power satisfaction as optimization goals, and use grid operation constraints and equipment load limits as constraints to solve the optimal power distribution plan. In the optimization process, by adjusting the power distribution ratio of each region and the power supply priority of key equipment, dynamically balance the contradiction between supply and demand and ensure the power supply demand of key areas and key equipment under the premise of ensuring safe and stable operation of the power grid. Continuously monitor the changes in passenger flow and power consumption, and evaluate the implementation effect of the power distribution plan of the dynamically adjusted power grid. Collect passenger flow and power consumption data during the actual implementation process, calculate power supply reliability indicators (such as power supply continuity index ASAI) and power satisfaction indicators (such as average voltage qualification rate), and quantitatively evaluate the effect of dynamic adjustment. At the same time, compare the actual data with the predicted data, calculate the prediction error, and use the new data to retrain and optimize the passenger flow prediction model to improve the prediction accuracy. According to the evaluation results and forecast feedback, timely adjust the optimization target weights and constraints in the power dispatch strategy, continuously improve the scientificity and effectiveness of the power grid's power distribution plan, improve the utilization efficiency of power resources and power supply reliability, and realize real-time coordinated optimization of passenger flow and electricity consumption.
[0105] For example, 100 crowd monitoring cameras and 500 smart meters are deployed in the stadium to collect crowd video data and power load data in each area in real time, and the monitoring data is updated every 5 seconds. The video data is analyzed using computer vision algorithms, and the number of people and distribution in each area is identified through background subtraction and target detection technology to calculate the crowd density. For example, if an area of 100 square meters is detected and 50 people are detected, the crowd density is 0.5 people / square meter. At the same time, the change rate of the number of people in each area is calculated. If the change rate exceeds 20%, it is judged as an abnormal increase in the flow of people. For power load data, the total power consumption of all meters in each area is calculated and compared with the rated total load. If the actual power consumption exceeds 80% of the rated load, such as the rated load is 500 kilowatts, and the actual power consumption reaches 400 kilowatts, it is judged as power overload. The flow of people data and electricity consumption data were analyzed by correlation. A multivariate linear regression model was used. The flow of people density and flow of people change rate were used as independent variables, and the electricity load was used as the dependent variable. The regression model was fitted by the least squares method. Y=0.5X1+0.3X2+10, where Y is the electricity load, X1 is the flow of people density, and X2 is the flow of people change rate. According to the model, when the flow of people density in a certain area is 0.8 people / square meter and the flow of people change rate is 30%, the predicted electricity load is 0.50.8+0.330%+10=19.4 kilowatts. The predicted results were compared with the actual power system operating parameters. If the predicted load exceeds 90% of the rated capacity of the transformer or 95% of the safe transmission current of the cable, there is a power supply safety hazard. When it is found that the flow of people density in a certain area exceeds 0.5 people / square meter and the electricity load exceeds 80% of the rated value, the multi-objective optimization algorithm is started. The optimization goals are to minimize the power supply safety risk and maximize the electricity satisfaction, and the constraints are not to exceed the upper limit of the transformer and cable load. The optimal electricity distribution plan is searched through the genetic algorithm. For example, the proportion of electricity allocation in this area can be reduced from 30% to 25%, while the proportion of allocation in adjacent areas can be increased. Under the premise of meeting safety constraints, the electricity demand can be met to the maximum extent. The actual operation effect after optimization is continuously monitored, and the power supply reliability index ASAI before and after optimization is statistically analyzed. It was 99.95% before optimization and increased to 99.97% after optimization. The electricity satisfaction index (average voltage qualification rate) was increased from 95% to 97%, and the optimization effect was quantitatively evaluated. At the same time, the actual electricity consumption data after optimization is fed back to the passenger flow electricity consumption prediction model, and the model is retrained with new data to reduce the prediction error from 10% to 8%, continuously improve the prediction accuracy and optimization effect, and realize the real-time coordinated optimization of passenger flow and electricity consumption.
[0106] The present invention analyzes the concentration of people in different areas during different stages of the game (such as before the game, during the game, halftime, and after the game), identifies which areas are about to experience a sharp increase in electricity consumption, and uses real-time monitoring data to analyze the speed and trend of changes in the density of people in each area, thereby estimating future electricity demand. Formulate a control strategy for the microgrid.
[0107] In another embodiment provided by the present invention, the method further includes:
[0108] Real-time monitoring of crowd density data in each area;
[0109] When the crowd density data in a certain area exceeds the preset warning threshold, an early warning prompt is triggered;
[0110] When the crowd density data in a certain area exceeds the preset critical threshold, the crowd diversion instructions for that area will be automatically matched;
[0111] Control the intelligent crowd control equipment in the venue according to the matching crowd control instructions.
[0112] When this embodiment is implemented, based on the real-time monitoring data during the game, if the crowd density in any area reaches a critical point, the corresponding flow limiting measures or diversion strategies are activated.
[0113] Establish a real-time crowd monitoring system for the event venues, collect crowd density data in each area by deploying video surveillance, infrared sensors, smart access control and other equipment, and transmit the data in real time to the crowd management platform.
[0114] In the crowd management platform, set the warning threshold and critical value of the crowd density in each area. When the crowd density in a certain area exceeds the warning threshold, the system automatically issues a warning prompt. When the crowd density reaches the critical value, the system triggers the corresponding flow limiting measures and diversion strategies. According to the characteristics of the crowd flow and safety requirements of each area, multiple sets of flow limiting measures and diversion strategies are formulated in advance to form an emergency plan library.
[0115] In the emergency plan, clearly define the applicable conditions of each plan, such as the upper and lower limits of the critical value of crowd density, duration threshold, etc. The relevant examples are as follows: Real-time monitoring of crowd density data in each area, aggregate statistics of the data every 1 minute, and calculate the average and peak values of crowd density in the past 15 consecutive minutes.
[0116] The average value and peak value are compared with the warning threshold and critical value respectively to determine whether the warning or trigger conditions are met.
[0117] According to the selected flow control measures and diversion strategies, the corresponding crowd diversion plan is extracted from the plan library, and diversion instructions are automatically generated and sent to the on-site intelligent diversion equipment, such as electronic signs, broadcasting systems, emergency lighting, etc., to guide the orderly flow of people. While the flow control measures and diversion strategies are activated, the video analysis technology is used to process the surveillance videos of each entrance and exit and channel in real time.
[0118] By modeling the background and detecting targets in video frames, people entering and leaving the venue can be identified and tracked, and the flow of people within a certain period of time can be counted.
[0119] Compare the passenger flow data with the data before the flow control measures were initiated, and calculate the percentage of passenger flow reduction as an evaluation indicator of the effectiveness of the traffic control.
[0120] If the reduction of the flow of people within 30 minutes does not reach the expected target, such as a reduction of 50%, the dynamic adjustment of the plan will be triggered. On the basis of the original measures, new flow-limiting channels or diversion paths will be added until the flow of people is reduced to a safe range. Multi-dimensional association analysis is performed on the data collected during the crowd diversion process, including crowd density, crowd flow, diversion time, flow-limiting measures, diversion strategies, etc. Association rule mining algorithms such as Apriori and FP-Growth are used to find the optimal combination of flow-limiting and diversion under different regions, time periods, and crowd density levels, and summarize them into association rules, such as "Region A + Peak period + Crowd density > 2.5 people / square meter => Start Plan C", which is used to optimize the emergency plan library. At the same time, machine learning algorithms such as decision trees and random forests are used to establish a mapping model between crowd density and the optimal diversion plan, dynamically adjust the critical value of crowd density and the warning threshold, and improve the sensitivity and accuracy of emergency response.
[0121] For example, 100 high-definition cameras, 50 infrared sensors and 20 intelligent access control systems are deployed in the stadium to conduct full coverage monitoring of key areas such as stands, sales areas, entrances and exits. Crowd density data is collected every 5 seconds and uploaded to the crowd management platform in real time. Based on historical data and expert experience, the platform sets warning thresholds and critical values, such as the warning threshold for the stands is 1 person / square meter, and the critical value is 1.5 people / square meter. When the average density of people in the stands exceeds 1 person / square meter for 10 consecutive minutes, the system automatically triggers a yellow warning and prompts the staff to prepare for diversion; when it exceeds 1.5 people / square meter for 15 consecutive minutes, a red warning is triggered and the emergency plan is activated. The plan library sets multiple flow control and diversion plans for each area and crowd density level. For example, when the crowd density in the stands reaches 1.5 people / square meter, 50% of the entrance channels are closed, 2 spare exits are opened at the same time, and people are guided to evacuate to the exit on the electronic display screen. During the execution of the plan, the system counts the cumulative flow of people in each channel once a minute. Compared with the baseline value before the start, if the reduction within 30 minutes does not reach 50%, the plan adjustment will be triggered to increase the proportion of closed entrances to 80%, and guide the flow of people to the outdoor area. After all the flow data are summarized, the Apriori algorithm is used to mine association rules, and it is found that the association confidence of "sales area + flow density>1.2 people / square meter" and "stand area + flow density>1.5 people / square meter" is 85%. Based on this, the plan is optimized, and the flow of people in the stand area is limited in advance when the flow of people in the sales area is warned. At the same time, the decision tree algorithm is used to establish a classification model of flow density and optimal diversion plan. Through 10-fold cross-validation, the model accuracy rate reaches 92%, and the best diversion strategy can be intelligently recommended based on the real-time flow density.
[0122] In another embodiment provided by the present invention, the training process of the crowd flow prediction model specifically includes:
[0123] Collect the initial flow data of each area before the event starts and the flow of people in each area at different times after the event starts as training sets;
[0124] Input the training set into the preset long short-term memory network for training;
[0125] Input the initial crowd flow data in the acquired test data into the trained model, and calculate the prediction error between the crowd flow data predicted by the model and the actual crowd flow data;
[0126] When the prediction error exceeds the preset error threshold, the actual passenger flow data is added to the original training data set, and the model is retrained using incremental learning. The model's hyperparameters are adjusted, and the test data is re-acquired to calculate the prediction error after training.
[0127] When the prediction error does not exceed the error threshold, outputting the trained passenger flow prediction model;
[0128] The hyperparameters include the number of hidden layers, the number of neurons, and the learning rate.
[0129] In the specific implementation of this embodiment, the initial crowd flow data of each area in the venue before the start of the event and the crowd flow of each area in different time periods after the start are collected in advance as training sets, and input into the crowd flow prediction model built based on the long short-term memory (LSTM) network, and the crowd flow prediction results for each time period are obtained through model training.
[0130] According to the key time nodes of the event, the entire event time is divided into multiple continuous time periods such as the opening, first half, halftime, second half and post-match. The current system time is obtained in real time and compared with the list of key time nodes one by one. If the current time is greater than or equal to a certain key time node and less than the next key time node, it is determined that the current time belongs to the time period between the two key time nodes. According to the determined current time period, the predicted crowd flow data corresponding to the time period is searched in the output result of the crowd flow prediction model. If the output result of the model is a data dictionary indexed by the time period, the corresponding predicted crowd flow data is directly extracted according to the key value of the time period. If the output result of the model is time series data, the predicted crowd flow data within the time range is extracted according to the start time and end time of the time period. During the event, the actual crowd flow data of each key time node is continuously collected. The actual crowd flow data is compared with the predicted crowd flow data to calculate the prediction error. The prediction error is statistically analyzed, and evaluation indicators such as the mean absolute error and the root mean square error are calculated to determine the accuracy of the prediction model. If the evaluation indicators of the prediction model do not reach the expected threshold, the model needs to be optimized. The actual crowd flow data is added to the original training data set, and the model is retrained using incremental learning. At the same time, the model's hyperparameters, such as the number of hidden layers, the number of neurons, and the learning rate, are adjusted to explore the optimal model structure and parameter combination. Continuously iterate and optimize until the model's prediction performance reaches a satisfactory level. As the event progresses, the above steps are repeated to predict the crowd flow data for each time period in real time, and the dynamically updated crowd flow prediction results are continuously output to provide data support for event operations.
[0131] Exemplarily, first, the collected 1000 initial crowd flow data are used as a training set and input into the crowd flow prediction model. By setting 100 epochs, a batch size of 32, and a learning rate of 0.01, the model is trained to obtain crowd flow prediction results for five time periods, namely, the opening, the first half, the halftime, the second half, and the post-match. Then, the event time is divided into five time periods, namely, 19:00-19:45, 19:45-20:30, 20:30-20:45, 20:45-21:30, and 21:30-22:00. During the event, the current time is obtained in real time, such as 20:15, and by comparing it with the time period list [19:00, 19:45, 20:30, 20:45, 21:30, 22:00], it is determined that the current time is within the 19:45-20:30 time period. According to the time period, the corresponding predicted value of the flow of people is extracted from the prediction result data dictionary, such as {'19:00-19:45':5000, '19:45-20:30':8000, '20:30-20:45':3000, '20:45-21:30':6000, '21:30-22:00':2000}, and the predicted flow of people in the current time period is 8000 people. At the same time, the actual flow of people at each key time node is counted in real time, such as the actual flow of people at 19:45 is 7800 people. Comparing the predicted value of 8000 with the actual value of 7800, the absolute error is calculated to be 200 and the relative error is 2.5%. The errors in each time period are counted, and the average absolute error is calculated to be 300 and the root mean square error is 400, which exceeds the expected threshold by 5%. Therefore, the actual passenger flow data was added to the training set, and the model was retrained for 10 epochs using incremental learning. At the same time, the number of LSTM layers was adjusted to 3, the number of hidden units to 128, and the learning rate to 0.005. The model was continuously optimized to reduce the prediction error to less than 3%. Finally, the optimized model was used to predict the passenger flow every 15 minutes in real time, and the prediction results were dynamically updated to provide accurate passenger flow data support for event operations.
[0132] In another embodiment provided by the present invention, the step S3 specifically includes:
[0133] Calculate the crowd density of each area based on the predicted crowd flow data of each area and the area size of each area;
[0134] Make weighted adjustments to the crowd density according to the functional attributes of each area, and determine the crowd density index of the regional crowd distribution characteristics;
[0135] The K-means clustering algorithm is used to perform cluster analysis on the crowd density indicators of each area, and the crowd density level of each area is extracted based on the clustering results;
[0136] The crowd density level, area size and functional attributes of each area are used as crowd characteristic information and input into the power demand decision model trained by decision tree algorithm based on historical data. The power parameters of different types of electrical equipment are determined by feature combination and node splitting, and then the power demand data of each area in different time periods is determined.
[0137] In the specific implementation of this embodiment, the predicted crowd flow data of the current time period is used to extract the crowd flow characteristic information of each area, and the power demand decision model is adopted to evaluate the power demand of each area, including lighting, advertising equipment, broadcast display screens and monitoring security systems, as well as the corresponding business priorities.
[0138] According to the predicted flow data of the current time period, combined with the area size of each area, the flow density of each area is calculated, that is, the number of people per unit area. At the same time, considering the functional attributes of each area, such as dining area, viewing area, rest area, etc., the flow density is weighted and adjusted to obtain the flow density index that comprehensively reflects the distribution characteristics of regional flow. The K-means clustering algorithm is used to cluster the flow density index of each area. First, according to business needs and data distribution, the appropriate number of clusters K is determined, such as K=3, representing three levels of sparse, general and dense flow. Then, K areas are randomly selected as the initial cluster centers, and the distance from each area to each cluster center is calculated, and it is assigned to the category of the nearest cluster center. The cluster center and area allocation are iteratively updated until the clustering results are stable. Finally, according to the clustering results, the flow density level of each area is extracted as its flow characteristics. The association model between regional flow characteristics and electricity demand is established, and the decision tree algorithm is used. The decision tree algorithm is used to build a power demand decision model, taking regional crowd density level, area size, functional type and other features as input, and the output is regional power demand. The power demand decision model is trained with historical data, and decision rules for predicting regional power demand are generated by combining features and splitting nodes. In the power demand decision model, the power parameters required for different types of power-consuming equipment such as lighting, advertising equipment, broadcast display screens and monitoring security systems are estimated. For lighting equipment, the total power consumption is calculated based on the number of lamps and the power of a single lamp. For advertising equipment and display screens, the power consumption is estimated based on the size, resolution and working time of the equipment. For monitoring security systems, the power consumption is determined based on the number and model of equipment such as cameras and access control. The business importance of different types of equipment is analyzed from the perspective of power supply guarantee. Equipment is divided into three levels: key equipment, important equipment and general equipment. The power demand of key equipment such as monitoring security systems must be guaranteed first; important equipment such as broadcast display screens are given priority after key equipment; general equipment such as billboards are considered for power supply when the power supply is sufficient. Refer to the equipment classification standards to prioritize the business of various types of equipment in each area. The power demand decision model obtains the characteristic parameters of each area, such as the density of people and area, in real time. Combined with the equipment power parameters and the priority sorting table, it dynamically estimates the power demand of each area for different types of equipment, and outputs the power load forecast results at the regional granularity. Compare the regional power load forecast results with the actual operating status of the power system to evaluate the forecast deviation. Through statistical analysis of the forecast deviation, identify the areas and time periods where the model's forecast performance is poor. Targetedly adjust the model parameters of these areas or time periods, such as increasing the number of clusters, refining equipment classification, etc., to continuously optimize the model's forecast accuracy. At the same time, the actual power consumption data is fed back to the model, and the generalization ability of the model is continuously improved by incremental learning, forming a closed-loop optimization mechanism for model performance.
[0139] Exemplarily, according to the predicted flow data of the current time period, combined with the area size of each area, the flow density of each area is calculated. For example, if the area of a certain area is 500 square meters and the predicted flow of people is 200 people, then its flow density is 0.4 people / square meter. Taking into account the functional attributes of each area, the flow density of people is weighted and adjusted, such as the weight of the dining area is 1.2, the weight of the viewing area is 1.5, and the weight of the rest area is 0.8, and the weighted flow density index is calculated. Then, the K-means clustering algorithm is used to cluster the flow density index, and K=3 is set to represent the three levels of sparse, general and dense flow. By calculating the Euclidean distance from each area to the cluster center, it is assigned to the nearest cluster, and the cluster center is iteratively updated until the clustering results converge. The clustering results show that the area with a flow density below 0.2 is a sparse area, the area between 0.2 and 0.6 is a general area, and the area above 0.6 is a dense area. According to the clustering results, the flow density level of each area is obtained. Next, a decision tree model is established, with the crowd density level, area size, and functional type as input features, and the regional electricity demand as the output target, and the CART algorithm is used to generate decision rules. For example, the root node is split according to the crowd density level, and the electricity demand in the dense area is higher than that in the general area and sparse area; the leaf node refines the electricity demand forecast according to the area size and functional type, such as the viewing area with an area of more than 1,000 square meters, and its electricity demand is 80 kWh. For different types of electrical equipment, the power consumption is estimated according to their quantity and parameters, such as the total power of 1,000 100-watt lighting fixtures is 100 kilowatts, and the power of a 50-square-meter display screen is 5 kilowatts. Finally, the equipment is prioritized according to the importance of the business, and the monitoring and security system is listed as a key device, the display screen is listed as an important device, and the billboard is listed as a general device. In real-time prediction, the model obtains the characteristics of the crowd density, area, etc. of each area, and calculates the power demand in combination with the equipment power and priority. For example, if the density of pedestrian flow in a certain area is 0.8 and the area is 800 square meters, the power demand is 65 kWh, of which the monitoring system requires 20 kWh, the display screen requires 30 kWh, and the lighting requires 15 kWh. The predicted results are compared with the actual values, and the mean absolute percentage error (MAPE) is calculated. When the MAPE exceeds 10%, the model optimization process is triggered to improve the prediction accuracy by increasing training data, adjusting the number of clusters K, and refining the equipment classification, so as to achieve adaptive optimization of model performance.
[0140] In another embodiment provided by the present invention, the step S4 specifically includes:
[0141] Integrate the electricity demand data and business priority information of each region to form a regional electricity demand priority list;
[0142] Obtain the current operating status data of the power grid and determine the current power supply capacity and load level of the power grid;
[0143] According to the power supply capacity of the power grid, select several high-priority areas whose total demand matches the power supply capacity from the regional power demand priority list as the areas to be given priority in power supply;
[0144] The Newton-Raphson method is used for power flow calculation. The physical constraints and operating restrictions of the power grid are combined as constraints. The constraints are added to the power flow equations to form a nonlinear optimization model with inequality constraints and generate power distribution plans for different time periods.
[0145] During the specific implementation of this embodiment, a power grid power allocation plan is generated according to the power demand of each area and the corresponding business priority to meet the power demand of high business priority.
[0146] Integrate the power demand data and business priority information of each region to form a regional power demand priority list, and arrange the regional power demand in order from high to low priority. Obtain the current power grid operation status data, including the power grid topology, generator output, line flow, etc., to evaluate the current power supply capacity and load level of the power grid. According to the power supply capacity of the power grid, select several high-priority areas whose total demand matches the power supply capacity from the regional power demand priority list as the priority power supply areas. The Newton-Raphson method is used for power flow calculation, considering the physical constraints and operation restrictions of the power grid, such as node voltage amplitude constraints, line power capacity constraints, generator output constraints, etc. These constraints are added to the power flow equation group to form a nonlinear optimization model with inequality constraints, and generate a preliminary power grid power distribution plan. For the optimization of power distribution in non-secure areas, an optimization model is established with the objective function of minimizing the difference between the power consumption of non-secure areas and their rated power demand, with the constraints that the total power consumption of non-secure areas does not exceed the remaining power supply capacity of the power grid, the power consumption of each non-secure area does not exceed its rated power demand, and the physical constraints of the power grid are considered. The sequential quadratic programming (SQP) algorithm is used to solve it. The power balance state of the power grid is judged by solving the power flow equations of the power grid. The power flow equations of the power grid are composed of node power balance equations and branch current and voltage equations, which reflect the balance relationship between active power and reactive power in the power grid. The power flow equations are solved by numerical algorithms such as the Newton-Raphson method to obtain the voltage amplitude and phase angle of each node, and then the power flow of the line is calculated. Compare whether the sum of the active power and reactive power injected into each node is equal to zero. If not, the power supply and demand balance is achieved by adjusting the power distribution of the priority secure area and the non-secure area. Establish a dynamic optimization mechanism for power grid power distribution, and collect power load data and power grid operation parameters of each region in real time by deploying smart meters, PMU and other monitoring equipment in the power grid; judge whether the power supply capacity and load level of the power grid have changed, and whether the power demand of each region has fluctuated based on the real-time monitoring data. If there is a change, the dynamic adjustment process of the power grid power distribution plan will be triggered; use the power flow calculation model and optimization model, and in combination with real-time monitoring data, adopt distributed parallel computing, intelligent optimization algorithm and other technical means to quickly calculate the updated power grid power distribution plan; send the updated power grid power distribution plan to the smart distribution terminals, power management systems and other power control equipment in each region to realize the dynamic adjustment and execution of the power distribution plan; evaluate the dynamically adjusted power grid power distribution plan, analyze its impact on the power grid operation safety, power supply reliability, power quality and other indicators, and further optimize and improve the dynamic adjustment strategy based on the evaluation results, improve the power grid operation efficiency and power utilization, ensure the power demand of important businesses and key equipment, and realize intelligent and refined power grid power management.
[0147] Exemplarily, first, the power demand data and business priority information of each region are integrated to form a regional power demand priority list. For example, the priorities of the security monitoring system, event broadcasting system, and audience lighting system are set to 1, 2, and 3, respectively, and the corresponding power demands are 200 kilowatts, 500 kilowatts, and 800 kilowatts, respectively. Then, the operating status data of the current power grid is obtained, and through the power grid topology analysis and power flow calculation, it is obtained that the power supply capacity of the power grid is 2000 kilowatts and the load level is 1500 kilowatts. According to the power supply capacity, the security monitoring system and event broadcasting system with priorities 1 and 2 are selected as the priority power supply areas, and their total power demand is 700 kilowatts. Next, the Newton-Raphson method is used for power flow calculation, the node voltage amplitude is constrained between 0.95-1.05, the line power capacity constraint is set to 500 kilowatts, and the generator output constraint is set to 1000 kilowatts, forming a constrained power flow equation group. Solve the power flow equation to obtain the power distribution plan for the priority protection area, with 200 kilowatts allocated to the security monitoring system and 500 kilowatts allocated to the event broadcasting system. For the spectator lighting system in the non-protection area, an optimization model is established. The objective function is to minimize the power gap of the lighting system. The constraints include that the power consumption of the spectator lighting system does not exceed 800 kilowatts and the remaining power supply capacity of the power grid is 1,300 kilowatts. The SQP algorithm is used to solve the optimization model, and the optimized power distribution of the spectator lighting system is 750 kilowatts. Finally, the balance of power supply and demand is determined by solving the power flow equation group of the power grid. If the sum of the active power and reactive power injected into each node is not equal to zero, the power distribution of the priority protection area is adjusted, such as reducing the distribution of the event broadcasting system to 450 kilowatts and increasing the distribution of the spectator lighting system to 800 kilowatts, until the balance of power supply and demand is achieved. In actual operation, by deploying monitoring equipment such as smart meters and PMUs, real-time data on power loads and power grid operation parameters in each region are collected. When the power grid power supply capacity is monitored to drop to 1,800 kilowatts, the dynamic adjustment process of the power distribution plan is triggered. Using the power flow calculation model and optimization model, combined with real-time monitoring data, through distributed parallel computing, a new power distribution plan for the power grid is quickly calculated within 5 minutes and sent to the smart power distribution terminals and power management systems in each region. The power consumption of the event broadcasting system is dynamically adjusted to 400 kilowatts to ensure the power demand of the security monitoring system and the audience lighting system, and to achieve refined management of the power grid.
[0148] In another embodiment provided in the present application, the method further includes:
[0149] Using the crowd data collected before the halftime break, the microgrid output of the corresponding area in the subsequent time period is adjusted according to the changing speed and trend of the crowd density in each area, including the output equipment and output power.
[0150] The crowd monitoring data of each area before the halftime break, including indicators such as crowd density and crowd change speed, are collected to form a crowd data time series. The crowd data time series is statistically analyzed to calculate the mean, variance, change speed and other statistics of the crowd density in each area. The STL (Seasonal-Trend decomposition using Loess) method is used to decompose the time series and extract the trend term, seasonal term and random term. Then the Holt-Winters exponential smoothing method is used to model and extrapolate the trend term to obtain the predicted value of the change trend of the crowd density in each area after the halftime break. According to the predicted trend of the crowd density change, the power load demand of each area after the halftime break is estimated. First, the historical data is correlated, the Pearson correlation coefficient between the crowd density and the power load is calculated, and the areas with significant correlation are screened out. Then, a multivariate linear regression analysis is performed on these areas, and a load forecasting model is constructed with the crowd density as the independent variable and the power load as the dependent variable. The general form of the model is L=a0+a1*D1+a2*D2+...+an*Dn, where L is the power load, D1, D2...Dn are the density of people in each area, and a0, a1...an are model coefficients. The least squares method is used to estimate the model parameters, and the goodness of fit and generalization performance of the model are evaluated using methods such as cross-validation. The power supply equipment in the microgrid is classified and sorted according to its power supply capacity, controllability and other attributes to form a device priority list. The target output power of each device is determined according to the change trend of the density of people in the area where the equipment is located and the power load demand. Considering the total power generation capacity, energy storage capacity, load demand and other factors of the microgrid, as well as the equipment priority and target output power, a microgrid power balance optimization model is established. The optimization goal is to minimize the operating cost of the microgrid, including power generation cost, energy storage cost, load interruption cost, etc. The constraints include: power supply and demand balance constraint, that is, the total power generation is equal to the total power consumption; equipment output power upper and lower limit constraints, that is, the output power of each device shall not exceed its rated capacity; energy storage equipment charging and discharging constraints, that is, the charging and discharging power and energy level of the energy storage equipment must meet technical limitations; load interruption constraints, that is, some non-critical loads are allowed to be interrupted when power is short, but the interruption amount shall not exceed the preset threshold. The above objective function and constraints are converted into a standard mixed integer linear programming model, and then solved using a commercial solver (such as CPLEX, Gurobi) to obtain the optimal output power scheduling plan for each device. According to the optimization solution results, the optimal output power of each power supply device is obtained, and it is converted into a specific device control instruction, which is sent to each device through the microgrid energy management system to dynamically adjust its output power and realize real-time balance control of the microgrid. Continuously monitor the changes in the flow density of each area and the operating status of the microgrid, and update the flow density prediction model and load demand mapping model in real time.According to the actual operation deviation, the model prediction performance is evaluated, and the prediction error indicators such as mean absolute percentage error (MAPE) and root mean square error (RMSE) are calculated. When the prediction error exceeds the preset threshold, the model parameter adjustment and retraining are triggered. At the same time, the real-time operation data of the microgrid, such as node voltage and line power, are monitored, and evaluation indicators such as voltage qualification rate and line loss rate are calculated. When the evaluation indicators are abnormal, the causes are analyzed and potential faults are diagnosed to form early warning information. Feedback signals such as model prediction error and operation evaluation indicators are input into the device priority strategy and power allocation algorithm, and the weight coefficient of the optimization target is dynamically adjusted to correct the constraint range of the device output power, continuously optimize the real-time dispatching control strategy of the microgrid, and improve the power quality and power supply reliability. Through the data-driven closed-loop feedback mechanism, the adaptive optimization control of the microgrid is realized.
[0151] For example, 50 crowd monitoring cameras are deployed in the stadium, and crowd density data is collected every 1 minute for 30 minutes to form a crowd time series of 1,800 data points. The STL method is used to decompose the time series to obtain long-term trend items, periodic seasonal items, and random noise items. The Holt-Winters exponential smoothing method is then used to model the trend items, setting the smoothing parameters α=0.2, β=0.1, and γ=0.3 to predict the crowd density change trend in the next 15 minutes. The results show that the crowd density in the stands will increase by 20%, the dining area by 30%, and the entrance and exit by 10%. Based on historical data, the Pearson correlation coefficient is used to calculate the correlation between crowd density and power load. The correlation coefficient of the stands is 0.85, the dining area is 0.92, and the entrance and exit is 0.78. Based on this, the stands and dining areas are selected as the key areas for load prediction. A multivariate linear regression model was adopted, with the flow density D1 and D2 of the two areas as independent variables and the power load L as the dependent variable. The model L=0.5D1+0.8D2+20 was obtained by least squares fitting, and the cross-validation showed that the root mean square error RMSE=15.6. The 10 energy storage devices and 15 photovoltaic power generation devices in the microgrid were sorted according to capacity and scheduling flexibility to obtain a list of equipment priorities. Based on the power load forecast results, the target output power of the energy storage device was set to 30kW and that of the photovoltaic device to 25kW. A microgrid optimization scheduling model was established, and the objective function was min(0.5CS+0.8CP+CL), where CS, CP, and CL were the cost coefficients of energy storage, photovoltaic, and load interruption, respectively. The constraints included: energy storage device charging and discharging power -50kW≤PS≤50kW, photovoltaic output 0≤PP≤50kW, load interruption 0≤L_shed≤20kW, and power balance PS+PP=D+L_shed, where D was the load demand. The model is solved using the CPLEX solver, and the optimal scheduling strategy is obtained: energy storage equipment charging 20kW, photovoltaic output 35kW, and load interruption 5kW. The strategy is converted into equipment control instructions and issued through the energy management system. At the same time, the operation status of the microgrid is monitored, and indicators such as power supply reliability rate SAIFI and voltage qualification rate are calculated every 5 minutes. When SAIFI is lower than 99.95% or the voltage qualification rate is lower than 98%, an early warning is triggered and the cause is analyzed. The indicator data is fed back to the equipment priority model and the scheduling optimization model, and the model parameters are dynamically updated, such as increasing the scheduling priority of the energy storage equipment by 20%, relaxing the photovoltaic output constraint to 60kW, etc., to continuously improve the intelligence level and management efficiency of the microgrid.
[0152] The embodiment of the present invention also provides a power consumption control device for venue power supply guarantee, see Figure 2 , is a schematic diagram of the structure of a power consumption control device for venue power supply guarantee provided by an embodiment of the present invention, the device comprising:
[0153] The data acquisition module is used to collect the initial flow data of people in each area of the venue before the start of the event;
[0154] A prediction module, used to input the initial crowd flow data into a pre-trained crowd flow prediction model, and output the predicted crowd flow data of each area in different time periods during the event;
[0155] A demand calculation module is used to extract crowd flow characteristic information from the predicted crowd flow data, input it into a preset power demand decision model, and output the power demand data of each area in different time periods;
[0156] The allocation module is used to determine the power allocation plan for each area at different time periods according to the power demand data of each area at different time periods and the business priority data preset for different business equipment;
[0157] A power distribution module, used to manage power distribution for different business equipment in each area according to the power distribution plan;
[0158] Adjustment modules for:
[0159] Real-time monitoring of the flow of people in each area and the power load data of different business equipment in the corresponding area;
[0160] Calculate the difference between the crowd flow change data and the predicted crowd flow data in each area at different time periods;
[0161] When the difference calculated in a certain area during a certain period of time is not within the preset error range, it is determined that the area has abnormal flow of people during the period of time;
[0162] When the power load data of a certain business equipment in a certain period of time is not within the preset safety threshold range, it is determined that the business equipment has an overload risk in this period of time;
[0163] When there is an abnormal flow of people in a certain area during a certain period of time, or when a certain business equipment is at risk of overload during a certain period of time, the dynamic adjustment process of the power distribution plan of the power grid is triggered;
[0164] Sort different areas and different business equipment in the corresponding areas according to regional priority and equipment importance;
[0165] A preset multi-objective optimization algorithm is used to minimize power supply safety risks and maximize power consumption satisfaction as the optimization goals, and grid operation constraints and equipment load limits as constraints to solve the updated power distribution plan. The updated power distribution plan is used to manage power distribution for different business equipment in each area.
[0166] It should be noted that the power consumption control device for venue power supply security provided in the embodiment of the present invention can execute the power consumption control method for venue power supply security described in any of the above embodiments, and the specific functions of the power consumption control device for venue power supply security are not described here.
[0167] See also Figure 3 , is a schematic diagram of the structure of a terminal device provided in an embodiment of the present invention. The terminal device of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a power consumption control program for venue power supply guarantee. When the processor executes the computer program, the steps of the power consumption control method embodiments of the venue power supply guarantee are implemented, such as Figure 1 Alternatively, the processor implements the functions of each module in the above-mentioned device embodiments when executing the computer program.
[0168] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the terminal device. For example, the computer program may be divided into various modules, and the specific functions of each module are not described in detail again.
[0169] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the terminal device may also include an input / output device, a network access device, a bus, etc.
[0170] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0171] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0172] Wherein, if the module / unit integrated in the terminal device 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 such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0173] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for regulating power consumption for venue power supply security, It is characterized in that The method comprises: Collect initial crowd flow data in various areas of the venue before the event starts; Inputting the initial crowd flow data into a pre-trained crowd flow prediction model, and outputting the predicted crowd flow data of each area in different time periods during the event; Extracting crowd flow characteristic information from the predicted crowd flow data, and inputting it into a preset power demand decision model, and outputting power demand data of each area in different time periods; Determine the power allocation plan for each area at different time periods based on the power demand data of each area at different time periods and the business priority data preset for different business equipment; Performing power distribution management for different business equipment in each area according to the power distribution plan; Real-time monitoring of the flow of people in each area and the power load data of different business equipment in the corresponding area; Calculate the difference between the crowd flow change data and the predicted crowd flow data in each area at different time periods; When the difference calculated in a certain area during a certain period of time is not within the preset error range, it is determined that the area has abnormal flow of people during the period of time; When the power load data of a certain business equipment in a certain period of time is not within the preset safety threshold range, it is determined that the business equipment has an overload risk in this period of time; When there is an abnormal flow of people in a certain area during a certain period of time, or when a certain business equipment is at risk of overload during a certain period of time, the dynamic adjustment process of the power distribution plan of the power grid is triggered; Sort different areas and different business equipment in the corresponding areas according to regional priority and equipment importance; A preset multi-objective optimization algorithm is used to minimize power supply safety risks and maximize power consumption satisfaction as the optimization goals, and grid operation constraints and equipment load limits as constraints to solve the updated power distribution plan. The updated power distribution plan is used to manage power distribution for different business equipment in each area.
2. The power consumption control method for venue power supply guarantee as claimed in claim 1, It is characterized in that The method further comprises: Real-time monitoring of crowd density data in each area; When the crowd density data in a certain area exceeds the preset warning threshold, an early warning prompt is triggered; When the crowd density data in a certain area exceeds the preset critical threshold, the crowd diversion instructions for that area will be automatically matched; Control the intelligent crowd control equipment in the venue according to the matching crowd control instructions.
3. The power consumption control method for venue power supply guarantee as claimed in claim 1, It is characterized in that The training process of the passenger flow prediction model specifically includes: Collect the initial flow data of each area before the event starts and the flow of people in each area at different times after the event starts as training sets; Input the training set into the preset long short-term memory network for training; Input the initial crowd flow data in the acquired test data into the trained model, and calculate the prediction error between the crowd flow data predicted by the model and the actual crowd flow data; When the prediction error exceeds the preset error threshold, the actual passenger flow data is added to the original training data set, and the model is retrained using incremental learning. The model's hyperparameters are adjusted, and the test data is re-acquired to calculate the prediction error after training. When the prediction error does not exceed the error threshold, outputting the trained passenger flow prediction model; The hyperparameters include the number of hidden layers, the number of neurons, and the learning rate.
4. The power consumption control method for venue power supply guarantee as claimed in claim 1, It is characterized in that The method extracts crowd flow characteristic information from the predicted crowd flow data and inputs it into a preset power demand decision model to output power demand data of each area at different time periods, including: Calculate the crowd density of each area based on the predicted crowd flow data of each area and the area size of each area; Make weighted adjustments to the crowd density according to the functional attributes of each area, and determine the crowd density index of the regional crowd distribution characteristics; The K-means clustering algorithm is used to perform cluster analysis on the crowd density indicators of each area, and the crowd density level of each area is extracted based on the clustering results; The crowd density level, area size and functional attributes of each area are used as crowd characteristic information and input into the power demand decision model trained by the decision tree algorithm based on historical data. The power parameters of different types of electrical equipment are determined by feature combination and splitting nodes, and then the power demand data of each area in different time periods is determined.
5. The power consumption control method for venue power supply guarantee as claimed in claim 1, It is characterized in that The method of determining the power allocation scheme for each area at different time periods according to the power demand data for each area at different time periods and the service priority data preset for different service equipment includes: Integrate the electricity demand data and business priority information of each region at different time periods to form a regional electricity demand priority list; Obtain the current operating status data of the power grid and determine the current power supply capacity and load level of the power grid; According to the power supply capacity of the power grid, select several high-priority areas whose total demand matches the power supply capacity from the regional power demand priority list as the areas to be given priority in power supply; The Newton-Raphson method is used for power flow calculation. The physical constraints and operating restrictions of the power grid are combined as constraints. The constraints are added to the power flow equations to form a nonlinear optimization model with inequality constraints and generate power distribution plans for different time periods.
6. A power control device for venue power supply guarantee, It is characterized in that The device comprises: The data acquisition module is used to collect the initial flow data of people in each area of the venue before the start of the event; A prediction module, used to input the initial crowd flow data into a pre-trained crowd flow prediction model, and output the predicted crowd flow data of each area in different time periods during the event; A demand calculation module is used to extract crowd flow characteristic information from the predicted crowd flow data, input it into a preset power demand decision model, and output the power demand data of each area in different time periods; The allocation module is used to determine the power allocation plan for each area at different time periods according to the power demand data of each area at different time periods and the business priority data preset for different business equipment; A power distribution module, used to manage power distribution for different business equipment in each area according to the power distribution plan; Adjustment modules for: Real-time monitoring of the flow of people in each area and the power load data of different business equipment in the corresponding area; Calculate the difference between the crowd flow change data and the predicted crowd flow data in each area at different time periods; When the difference calculated in a certain area during a certain period of time is not within the preset error range, it is determined that the area has abnormal flow of people during the period of time; When the power load data of a certain business equipment in a certain period of time is not within the preset safety threshold range, it is determined that the business equipment has an overload risk in this period of time; When there is an abnormal flow of people in a certain area during a certain period of time, or when a certain business equipment is at risk of overload during a certain period of time, the dynamic adjustment process of the power distribution plan of the power grid is triggered; Sort different areas and different business equipment in the corresponding areas according to regional priority and equipment importance; A preset multi-objective optimization algorithm is used to minimize power supply safety risks and maximize power consumption satisfaction as the optimization goals, and grid operation constraints and equipment load limits as constraints to solve the updated power distribution plan. The updated power distribution plan is used to manage power distribution for different business equipment in each area.
7. The power consumption control device for venue power supply guarantee as claimed in claim 6, It is characterized in that The device also includes an early warning module, which is used to: Real-time monitoring of crowd density data in each area; When the crowd density data in a certain area exceeds the preset warning threshold, an early warning prompt is triggered; When the crowd density data in a certain area exceeds the preset critical threshold, the crowd diversion instructions for that area will be automatically matched; Control the intelligent crowd control equipment in the venue according to the matching crowd control instructions.
8. The power consumption control device for venue power supply guarantee as claimed in claim 6, It is characterized in that The process of the prediction module training the crowd flow prediction model specifically includes: Collect the initial flow data of each area before the event starts and the flow of people in each area at different times after the event starts as training sets; Input the training set into the preset long short-term memory network for training; Input the initial crowd flow data in the acquired test data into the trained model, and calculate the prediction error between the crowd flow data predicted by the model and the actual crowd flow data; When the prediction error exceeds the preset error threshold, the actual passenger flow data is added to the original training data set, and the model is retrained using incremental learning. The model's hyperparameters are adjusted, and the test data is re-acquired to calculate the prediction error after training. When the prediction error does not exceed the error threshold, outputting the trained passenger flow prediction model; The hyperparameters include the number of hidden layers, the number of neurons, and the learning rate.
9. A terminal device, It is characterized in that The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for controlling electricity consumption for power supply guarantee of a venue as described in any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the power consumption control method for venue power supply guarantee as described in any one of claims 1 to 5.
