Power grid fault risk level prediction method, device, terminal and storage medium
Through the Internet of Things technology, the grid fault risk level prediction method is used, combined with consumption records and grid wiring information, to solve the problem of untimely prediction of grid faults and improve the efficiency and safety of grid fault response.
Patent Information
- Application Number
- CN202410845124.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing technology lacks an effective way to predict power grid failures, resulting in untimely rescue and affecting power grid security.
The grid failure risk level prediction method based on the Internet of Things is used to determine the distribution map of target end users by obtaining current time information, commodity consumption records and location information, and combined with the grid wiring information, predicts the grid failure risk level of each sub-region, and transmits The prediction results are sent to the fault handling and warning terminal.
It achieves advance prediction of power grid failure risks, ensures immediate response when a failure occurs, and improves the efficiency and safety of power grid failure handling.
Smart Images

Figure CN118396394B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer data processing technology, and in particular to a method, device, terminal and storage medium for predicting power grid fault risk level. Background Art
[0002] With the improvement of living standards, power grids are spread throughout people's living environments so as to supply power to various household appliances in people's homes through the power grids.
[0003] However, since power grids are spread throughout people's living environments, they often fail for various reasons, causing fires and large-scale power outages, requiring a large amount of manpower and material resources for rescue, and the rescue is often not timely. Summary of the invention
[0004] The purpose of this application is to provide a method, device, terminal and storage medium for predicting the risk level of power grid failure, aiming to solve the current technical problem of lack of effective methods for predicting power grid failures.
[0005] In a first aspect, the present application provides a method for predicting the risk level of power grid failure based on the Internet of Things, comprising:
[0006] Get current time information;
[0007] Acquire commodity consumption records and location information of multiple reference terminal users in the target area according to the current time information;
[0008] If it is determined that there is a fireworks consumption record in the commodity consumption record, determining the reference terminal user corresponding to the fireworks consumption record as the target terminal user;
[0009] Obtaining a distribution map of the target terminal users according to the location information of the target terminal users;
[0010] According to the distribution map and the grid wiring information corresponding to the target area, the prediction result of the grid fault risk level of each first sub-area in the target area is determined, and the prediction result is transmitted to the fault processing warning terminal through the 4G communication transmission module or the 5G communication transmission module.
[0011] The Internet of Things-based system provided in the embodiment of the present application obtains the current time information so as to obtain the commodity consumption records and positioning information of multiple reference terminal users in the target area within a certain period of time based on the current time information for reference, and then understands whether the user has purchased commodities that may affect the safety of the power grid through the commodity consumption records. If it is determined that there is a fireworks consumption record in the commodity consumption record, the reference terminal user corresponding to the fireworks consumption record is determined as the target terminal user, and the distribution map of the target terminal user is obtained according to the positioning information of the target terminal user, so as to determine the prediction result of the power grid fault risk level of each first sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area, so that the personnel of the fault processing and early warning terminal can understand the power grid fault risk level of the target area based on the prediction result, and when a power grid fault actually occurs, they can respond to the target area in the first time to handle the power grid fault.
[0012] In a second aspect, the present application provides a power grid fault risk level prediction device based on the Internet of Things, characterized in that it includes:
[0013] A first acquisition module is used to acquire current time information;
[0014] A second acquisition module is used to acquire commodity consumption records and location information of multiple reference terminal users in the target area according to the current time information;
[0015] A first determination module, configured to determine a reference terminal user corresponding to the fireworks consumption record as a target terminal user if it is determined that there is a fireworks consumption record in the commodity consumption record;
[0016] A second determining module, configured to determine a distribution map of the target terminal user according to the location information of the target terminal user;
[0017] A prediction module is used to determine the prediction result of the power grid fault risk level of each first sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area, and the prediction result is transmitted to the fault processing warning terminal through the 4G communication transmission module or the 5G communication transmission module.
[0018] In a third aspect, the present application provides a terminal device, characterized in that it includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the prediction method when executing the computer program.
[0019] In a fourth aspect, the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and the computer program implements the prediction method when executed by a processor.
[0020] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0022] Figure 1 A schematic diagram of the implementation flow of the power grid fault risk level prediction method provided in an embodiment of the present application.
[0023] Figure 2 A schematic diagram of an application scenario of a method for predicting a power grid fault risk level provided in another embodiment of the present application.
[0024] Figure 3 This is a schematic diagram of a specific implementation flow of step S12 of a method for predicting a power grid fault risk level provided in one embodiment of the present application.
[0025] Figure 4 This is a schematic diagram of a specific implementation flow of step S22 of a method for predicting a power grid fault risk level provided in one embodiment of the present application.
[0026] Figure 5 This is a structural block diagram of a power grid fault risk level prediction device provided in one embodiment of the present application.
[0027] Figure 6 A structural diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0028] In the following description, specific details such as specific device structures and technologies are provided for illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details.
[0029] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0030] The present application provides a method for predicting the risk level of power grid failure based on the Internet of Things, which can predict the risk level of power grid failure in a target area in advance, thereby determining the monitoring focus for risk monitoring, so that when a power grid failure actually occurs, the power grid can be checked and repaired as soon as possible.
[0031] The method for predicting the risk level of power grid faults based on the Internet of Things provided in the embodiment of the present application can be applied to terminal devices or servers including but not limited to mobile phones, tablet computers, laptop computers, ultra mobile personal computers (ultra mobile personal computers, UMPCs), netbooks, personal digital assistants (personal digital assistants, PDAs), etc. The embodiment of the present application does not impose any restrictions on the specific type of terminal devices or servers.
[0032] See also Figure 1 , Figure 1 The present invention provides a method for predicting the risk level of power grid failure in the Internet of Things, and the implementation flow chart includes the following steps:
[0033] S11: Obtain current time information.
[0034] In this embodiment, the current time information refers to the specific time of a certain day of the year when the power grid fault risk level prediction method is executed. For example, 15:00 p.m. on February 9, 2024 corresponds to 15:00 p.m. on the New Year's Eve of the lunar year 2023.
[0035] It is understandable that, since the grid failure risk level may be different at each time point, in order to better determine the grid failure risk level and thus provide directional information for grid failure monitoring and maintenance during grid failure, the current time information is first obtained.
[0036] As for when to obtain the current time information, it includes but is not limited to the following scenarios:
[0037] Scenario 1: When it is determined that the fault processing warning terminal is started, the current time information is obtained.
[0038] Since power grid failures require the cooperation of personnel, when the fault handling warning terminal is started, the current time information is obtained so that the power grid failure risk situation in the target area can be predicted in the first place, providing directional information for subsequent power grid failure monitoring and maintenance during power grid failure.
[0039] Scenario 2: After the fault handling warning terminal is started and runs for a certain period of time, the current time information is obtained.
[0040] For example, after the fault processing warning terminal is started, the warning software in the fault processing warning terminal runs for half an hour and then obtains the current time information.
[0041] Scenario 3: When the fault handling warning terminal is in the open state, the current time information is periodically obtained.
[0042] In order to detect power grid faults as soon as possible, when the fault processing warning terminal is in an open state, the current time information is periodically obtained.
[0043] It can be understood that the fault processing warning terminal in the above scenario will send a prompt signal to the execution terminal running the Internet of Things-based power grid fault risk level prediction method in the corresponding scenario, such as sending a startup prompt signal once at startup, or sending a prompt signal once after running for a certain period of time, or sending a prompt signal periodically.
[0044] S12: Acquire commodity consumption records and location information of multiple reference terminal users in the target area according to the current time information.
[0045] In this embodiment, in order to understand the risk level of power grid failure in the target area, after obtaining the current time information, the commodity consumption records and positioning information of multiple reference terminal users in the target area are obtained based on the current time information, so as to understand whether the users in the target area have purchased commodities that may threaten the power grid, and the location of the users, so as to facilitate the subsequent prediction of the power grid risk failure situation of each sub-area in the target area based on the understood situation, and take targeted preventive measures to avoid more serious damage caused by power grid failure.
[0046] The commodity consumption record is used to describe the payment record of the user when purchasing commodities within a certain period of time in the past. The payment record includes but is not limited to the commodity name, quantity, purchase location, commodity amount, etc.
[0047] The positioning information refers to the current positioning information of the reference terminal user. For example, the current time point is February 9, 2024, and the reference terminal user is located at location A in the target area, and location A is the current positioning information of the reference terminal user.
[0048] In one embodiment, since daily expenses in life are very high, in order to avoid the need to process too much data and slow prediction efficiency, the commodity consumption records and current positioning information of multiple reference terminal users in the target area within a preset historical time period are obtained based on the current time information.
[0049] S13: If it is determined that there is a fireworks consumption record in the commodity consumption record, the reference terminal user corresponding to the fireworks consumption record is determined as the target terminal user.
[0050] In this embodiment, since fireworks may cause certain damage to the power grid when they are set off, such as causing a short circuit in the power grid, after obtaining the commodity consumption records and positioning information of multiple reference terminal users in the target area, the consumption records of each commodity recorded in the commodity consumption records are further screened to determine whether there is a fireworks consumption record in the commodity consumption record. If it is determined that there is a fireworks consumption record in the commodity consumption record, it means that the later setting off of fireworks may have an impact on the power grid, causing the power grid to fail, so the reference terminal user corresponding to the fireworks consumption record is determined as the target terminal user, and the target terminal user is included in the key monitoring group, and the area where the target terminal user is located is also included in the key monitoring area.
[0051] Fireworks consumption records refer to the consumption records corresponding to when users purchase fireworks.
[0052] S14: Obtaining a distribution map of the target terminal users according to the location information of the target terminal users.
[0053] In this embodiment, in order to better determine the grid failure risk level of each sub-area in the target area, so that subsequent grid failures can be handled in a timely manner, and the locations of target terminal users in the target area may be different, after obtaining the positioning information of each target terminal user, a distribution map of the target terminal users in the target area is obtained based on the positioning information of each target terminal user.
[0054] Example, combined Figure 2 The commodity consumption records of the three target terminal users A, B, and C all include fireworks consumption records. At the same time, target terminal users A and B live in sub-area a in the target area, and target terminal user C lives in sub-area b in the target area. Based on the residential locations of target terminal users A, B, and C, a distribution map of target terminal users A, B, and C in the target area is formed.
[0055] S15: Determine the prediction result of the power grid fault risk level of each first sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area, and transmit the prediction result to the fault processing warning terminal through the 4G communication transmission module or the 5G communication transmission module.
[0056] In this embodiment, the power grid wiring information is used to describe the wiring locations of the power transmission lines and the locations of the power transmission equipment of the power grid.
[0057] It is understandable that in order to provide power to each user in the target area, a power grid will be deployed in the target area, and thus there will be corresponding power grid wiring information. Therefore, in order to understand whether the power grid in the target area is likely to be damaged or short-circuited due to the setting off of fireworks, the prediction results of the power grid failure risk levels of each first sub-area in the target area are determined based on the positioning information of each target terminal user recorded in the distribution map and the power grid conditions described by the power grid wiring information.
[0058] It is understandable that the personnel who handle power grid faults are generally concentrated in a certain location in a town, village, or street, where a fault handling early warning terminal is correspondingly installed. Through the prediction results received by the fault handling early warning terminal, the possible areas where power grid faults may occur in the target area can be understood.
[0059] Example, combined Figure 2 , reference terminal users A, B, and C all live in the target area, among which reference terminal user A is located in sub-area a, reference terminal user B is located in sub-area b, and reference terminal user C is located in sub-area f. Among them, there is no record of fireworks consumption in the commodity consumption records of reference terminal users A and C, and there is a record of fireworks consumption in the commodity consumption records of reference terminal user B, so reference terminal user B is the target terminal user. In addition, the power grid wiring passes through sub-area b where terminal user B is located. Therefore, according to the distribution map describing the location of terminal user B in sub-area b and the power grid wiring information of the power grid wiring passing through sub-area b, it is determined that the power grid fault risk level of sub-area b is high risk. In addition, sub-areas a, c, e, and f have low risk because the corresponding terminal users have not purchased fireworks or there is no power grid wiring passing through. Finally, the prediction results of each sub-area are summarized and sent to the fault processing warning terminal.
[0060] It is understandable that in order to quickly handle power grid faults, the prediction results are transmitted to the fault processing warning terminal through the 4G communication transmission module or the 5G communication transmission module.
[0061] Combination Figure 3 In one embodiment of the present application, obtaining commodity consumption records and location information of multiple reference terminal users in the target area according to the current time information includes:
[0062] S21: Determine whether the current time information is within a preset time interval.
[0063] S23: If it is determined that the current time information is within the preset time interval, then obtaining commodity consumption records and positioning information of multiple reference terminal users in the target area.
[0064] In this embodiment, the preset time interval can be pre-set according to the requirements of power grid fault monitoring.
[0065] For example, the preset time interval includes New Year's Eve and the three days before New Year's Eve. For example, February 9, 2024 is New Year's Eve, and the preset time interval is February 6, 2024 to February 9, 2024.
[0066] In this embodiment, there are some time points when no users will set off fireworks, but fireworks will be set off only on special holidays, and then will it have an impact on the power grid. Therefore, after obtaining the current time information, it is determined whether the current time information is within the preset time interval. If it is determined that the current time information is within the preset time interval, the commodity consumption records and positioning information of multiple reference terminal users in the target area are obtained.
[0067] It is understandable that, if it is determined that the current time information is not within the preset time interval, the commodity consumption records and positioning information of multiple reference terminal users in the target area are not obtained to avoid wasting resources to process invalid data.
[0068] Combination Figure 3 In one embodiment of the present application, if it is determined that the current time information is within the preset time interval, obtaining commodity consumption records and location information of multiple reference terminal users in the target area includes:
[0069] S31: if it is determined that the current time information is within the preset time interval, obtaining the power consumption of each household in each first sub-area of the target area within the preset time period;
[0070] S32: Determine the user corresponding to the household whose power consumption is greater than the preset power consumption as the reference terminal user;
[0071] S33: Obtain commodity consumption records and location information of multiple reference terminal users in the target area.
[0072] In this embodiment, since some households in the target area may not be at home, there is no need to consider the commodity consumption records of users in these households who are not at home when collecting the commodity consumption records and positioning information of users, so as to avoid wasting computing resources to process data that has no reference significance. Therefore, if it is determined that the current time information is within the preset time interval, the power consumption of each household in each first sub-area of the target area within the preset time period is obtained, so as to determine whether there is someone living there based on the power consumption of each household. At the same time, the users corresponding to the households whose power consumption is greater than the preset power consumption are determined as the reference terminal users, and the commodity consumption records and positioning information of the multiple reference terminal users are obtained, thereby realizing targeted data acquisition and avoiding wasting resources to obtain data of irrelevant users and wasting storage space and computing resources.
[0073] For example, the corresponding households in sub-area a, sub-area b, and sub-area c are A, B, and C. Among them, the current time is February 9, 2024, and the A resident is determined not to be at home in 2024, and B and C have been living at home. Therefore, in order to collect the data of the A resident when collecting data, thereby wasting computing resources and spending material resources to process the data of the A resident, first obtain the power consumption of each of the three households A, B, and C, and compare the power consumption of each of A, B, and C with the preset power consumption. At the same time, the user corresponding to the household whose power consumption is greater than the preset power consumption is determined as a reference terminal user, for example, the power consumption of the A resident is 0, the power consumption of the B resident is 100 degrees, and the power consumption of the C resident is 1000 degrees, wherein the preset power consumption is 10 degrees, so the user corresponding to the B resident and the user corresponding to the C resident are determined as reference terminal users. Further, the commodity consumption records and positioning information of the user corresponding to the B resident and the user corresponding to the C resident are obtained.
[0074] It can be understood that each household corresponds to at least one end user.
[0075] The preset power consumption can be set based on actual needs, for example, setting the power consumption to 0.
[0076] The preset time period refers to a past historical time period with the current time information as a reference. For example, if the current time information is 15:00 on February 9, 2024, the corresponding preset time period is February 1, 2024 - February 9, 2024 14:00.
[0077] In one embodiment of the present application, the power grid wiring information is used to describe the location of power transmission lines and power transmission equipment;
[0078] The step of determining the prediction result of the power grid failure risk level in each first sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area includes:
[0079] According to the positions of the first sub-regions of the target area, the distribution map is divided to obtain at least one sub-distribution map, and a second sub-region having a corresponding sub-distribution map and a third sub-region having no corresponding sub-distribution map are determined;
[0080] Determine, according to the positioning information contained in the sub-distribution map of each second sub-area, a density value of the target terminal user in the sub-distribution map of each second sub-area;
[0081] Determine the power grid fault risk level of the third sub-region for which there is no corresponding sub-distribution map as low risk, and use the position and the low risk result of the third sub-region as the prediction result of the third sub-region;
[0082] Matching the location of the target terminal user in the sub-distribution map corresponding to each second sub-area with the location of the transmission wires and the transmission equipment in the power grid wiring information to obtain a matching result for each second sub-area;
[0083] If the matching result is a successful match, the power grid fault risk level of the second sub-region whose density value is greater than the preset density value is determined as high risk, and the position and high risk result of the second sub-region are used as the prediction result of the second sub-region;
[0084] If the matching result is a successful match, the power grid fault risk level of the second sub-region whose density value is less than or equal to the preset density value is determined as medium risk, and the position of the second sub-region and the medium risk result are used as the prediction result of the second sub-region;
[0085] If the matching result is a matching failure, it is determined to be a low risk, and the position of the second sub-region and the low risk result are used as the prediction result of the second sub-region.
[0086] In this embodiment, in order to better determine the power grid failure risk level of each sub-area, the distribution map is divided in advance according to the positions of each first sub-area of the target area to obtain at least one sub-distribution map, so as to determine the correspondence between the target terminal users and the sub-areas in the target area, so as to facilitate the subsequent power grid failure risk management, that is, the positions of each first sub-area are compared one by one with the positioning information of each target terminal user recorded in the distribution map. If the position of a first sub-area is successfully matched with the positioning information of a target terminal user in the distribution map, it means that the sub-distribution map corresponding to the target terminal user in the distribution map corresponds to the first sub-area, which is named as the second sub-area. At the same time, since the target terminal users may not be distributed in every first sub-area, the positions of some first sub-areas may fail to match the positioning information of each target terminal user in the distribution map, and the first sub-area that fails to match is named as the third sub-area.
[0087] In order to better determine the grid failure risk level of each sub-area, the density value of the target terminal users in the sub-distribution map of each second sub-area is also determined based on the positioning information contained in the sub-distribution map of each second sub-area, that is, the ratio between the number of positioning information contained in the sub-distribution map of each second sub-area and the total number of positioning information in the distribution map, the density value of the target terminal users in the sub-distribution map of each second sub-area.
[0088] For example, combined with Figure 2 The distribution map includes the location information of five target terminal users A, B, C, D, and E, and the total number of location information is 5. Among them, the location information of target terminal users A, B, and C successfully matches the position of sub-area a, that is, the sub-distribution corresponding to sub-area a Figure 1 It contains the location information of three target terminal users A, B, and C, and the number of location information is 3. In addition, the location information of target terminal user D successfully matches the position of sub-area b, that is, the sub-distribution corresponding to sub-area b is Figure 2 Contains the location information of the target terminal user D, and the number of location information is 1; the location information of the target terminal user E successfully matches the position of sub-area c, that is, the sub-distribution corresponding to sub-area c Figure 3 Contains the location information of the target terminal user E, and the number of location information is 1. So far, the distribution map is divided into sub-distributions Figure 1 , 2 , 3, the corresponding number of positioning information is 3, 1, 1, and the density values of the target terminal users in the sub-distribution map of each second sub-area are 0.6, 0.2, and 0.2 respectively.
[0089] Furthermore, for the second sub-area determined to have a corresponding sub-distribution map, the position of the target terminal user in the sub-distribution map corresponding to each second sub-area is matched with the position of the transmission line and the transmission equipment in the power grid wiring information to obtain a matching result for each second sub-area, and if the matching result is a successful match, the power grid failure risk level of the second sub-area whose density value is greater than the preset density value is determined to be high risk, and the position and the high risk result of the second sub-area are used as the prediction result of the second sub-area; if the matching result is a successful match, the power grid failure risk level of the second sub-area whose density value is less than or equal to the preset density value is determined to be medium risk, and the position and the medium risk result of the second sub-area are used as the prediction result of the second sub-area; if the matching result is a matching failure, it is determined to be low risk, and the position and the low risk result of the second sub-area are used as the prediction result of the second sub-area.
[0090] Example, combined Figure 2 , the power grid wiring passes through sub-area a, sub-area b, and sub-area c, that is, the locations of the transmission lines and transmission equipment in the power grid wiring information are sub-area a, sub-area b, and sub-area c. In addition, the distribution map includes the location information of five target terminal users, namely, A, B, C, D, and E. Among them, the location information of target terminal users A, B, and C successfully matches the location of sub-area a, that is, the sub-distribution map corresponding to sub-area a is Figure 1 Contains the location information of the three target terminal users A, B, and C. The location information of the target terminal user D successfully matches the location of sub-area b, that is, the sub-distribution corresponding to sub-area b Figure 2 Contains the location information of the target terminal user D; the location information of the target terminal user E successfully matches the position of sub-area c, that is, the sub-distribution corresponding to sub-area c Figure 3 Contains the location information of the target terminal user E. The sub-distribution corresponding to sub-area a Figure 1The sub-distribution corresponding to the location "sub-area a" and sub-area b of the target end users A, B, and C included Figure 2 The sub-distribution corresponding to the location "sub-area b" and sub-area c of the target terminal D is included Figure 3 The location "sub-area c" of the target terminal E included is matched with the locations of the transmission lines and transmission equipment in the power grid wiring information as sub-area a, sub-area b, and sub-area c, respectively, and it is confirmed that the matching results of sub-area a, sub-area b, and sub-area c are all successful.
[0091] At the same time, the distribution map includes the location information of five target terminal users A, B, C, D, and E, and the total number of location information is 5. Among them, the location information of target terminal users A, B, and C successfully matches the position of sub-area a, that is, the sub-distribution corresponding to sub-area a Figure 1 It contains the location information of three target terminal users A, B, and C, and the number of location information is 3. In addition, the location information of target terminal user D successfully matches the position of sub-area b, that is, the sub-distribution corresponding to sub-area b is Figure 2 Contains the location information of the target terminal user D, and the number of location information is 1; the location information of the target terminal user E successfully matches the position of sub-area c, that is, the sub-distribution corresponding to sub-area c Figure 3 Contains the location information of the target terminal user E, and the number of location information is 1. So far, the distribution map is divided into sub-distributions Figure 1 , 2 , 3, the corresponding number of positioning information is 3, 1, 1, and the density values of the target terminal users in the sub-distribution map of each corresponding second sub-area are 0.6, 0.2, 0.2, and the preset density value is 0.3. Therefore, it is confirmed that the grid failure risk level of sub-area a is high risk, and the grid failure risk levels of sub-areas b and c are medium risk.
[0092] It can be understood that the preset density value is set according to demand, for example, the preset density value is set to 0.3.
[0093] In addition, for the third sub-area where there is no corresponding sub-distribution map, it means that there are no users who buy fireworks in this area, and power grid failure due to the setting off of fireworks will not occur. Therefore, the power grid failure risk level of the third sub-area where there is no corresponding sub-distribution map is determined to be low risk, and the location of the third sub-area and the low risk result are used as the prediction result of the third sub-area.
[0094] In one embodiment, each first sub-region includes a second sub-region and a third sub-region.
[0095] According to the positions of the first sub-areas of the target area, the distribution map is divided to obtain a plurality of sub-distribution maps, and a second sub-area having a corresponding sub-distribution map and a third sub-area having no corresponding sub-distribution map are determined, including:
[0096] Matching the positions of each first sub-area of the target area with the positioning information recorded in the distribution map, and dividing the distribution map into a plurality of sub-distribution maps according to the matching results;
[0097] If the matching result is a failure, it is determined that the target terminal user does not exist in the first sub-area, and the first sub-area is used as the third sub-area;
[0098] If the matching result is successful, it is determined that the target terminal user exists in the first sub-area, and the first sub-area is used as the second sub-area.
[0099] For example, the distribution map includes the location information of five target terminal users A, B, C, D, and E, and the total number of location information is 5. Among them, the location information of target terminal users A, B, and C successfully matches the position of sub-area a, that is, the sub-distribution corresponding to sub-area a is Figure 1 Contains the location information of the three target terminal users A, B, and C. In addition, the location information of the target terminal user D successfully matches the position of sub-area b, that is, the sub-distribution corresponding to sub-area b Figure 2 Contains the location information of the target terminal user D; the location information of the target terminal user E successfully matches the position of sub-area c, that is, the sub-distribution corresponding to sub-area c Figure 3 Contains the location information of the target terminal user E. So far, the distribution map is divided into sub-distributions Figure 1 , 2 、3.
[0100] In one embodiment of the present application, after determining the prediction result of the power grid failure risk level in each sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area, it also includes:
[0101] According to the order of the power grid fault risk levels of each sub-area recorded in the prediction results, a fault rescue route is determined, and the fault rescue route is transmitted to the fault processing warning terminal through a 4G communication transmission module or a 5G communication transmission module.
[0102] In this embodiment, in order to facilitate the subsequent rapid processing of power grid faults, the fault rescue route is determined according to the order of the power grid fault risk levels of each sub-area recorded in the prediction results.
[0103] Example, combined Figure 2, sub-area a, sub-area b, sub-area c, sub-area d, sub-area e, and sub-area f, correspond to the power grid risk levels of high risk, medium risk, medium risk, low risk, low risk, and low risk, respectively, that is, the fault rescue route is sub-area a→sub-area b→sub-area c→sub-area d→sub-area e→sub-area f.
[0104] In one embodiment, the fault rescue route is determined according to the order of the power grid fault risk levels of each sub-area recorded in the prediction result and the geographical route in the map of the target area.
[0105] Example, combined Figure 2 , sub-area a, sub-area b, sub-area c, sub-area d, sub-area e, and sub-area f, correspond to the power grid risk levels of high risk, medium risk, medium risk, low risk, low risk, and low risk, respectively. At the same time, from sub-area a to sub-area f, the geographical route in the target area is sub-area a→sub-area b→sub-area c→sub-area d→sub-area e→sub-area f, that is, the fault rescue route is sub-area a→sub-area b→sub-area c→sub-area d→sub-area e→sub-area f.
[0106] In one embodiment of the present application, it is characterized in that the method further comprises:
[0107] Obtaining fireworks setting-off location control information of the target area;
[0108] The step of determining the prediction result of the power grid failure risk level in each sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area includes:
[0109] The prediction result of the power grid failure risk level in each first sub-area in the target area is determined according to the distribution map, the power grid wiring information and the fireworks setting off position control information.
[0110] In this embodiment, since there are certain control policies on fireworks in different places, in order to better predict the power grid failure risk level in each first sub-area in the target area, the fireworks setting off location control information of the target area is also obtained, so that the areas where fireworks are allowed and the areas where fireworks are not allowed can be understood through the fireworks setting off control information, and the power grid failure risk level in the first sub-area is adjusted based on the fireworks setting off location control information, and the final prediction result of the power grid failure risk level in each first sub-area is obtained.
[0111] Example, combined Figure 2, reference terminal users A, B, and C all live in the target area, among which reference terminal user A is located in sub-area a, reference terminal user B is located in sub-area b, and reference terminal user C is located in sub-area f. Among them, there is no record of fireworks consumption in the commodity consumption records of reference terminal users A and C, and there is a record of fireworks consumption in the commodity consumption records of reference terminal user B, so reference terminal user B is the target terminal user. In addition, the power grid wiring passes through sub-area b where terminal user B is located. Therefore, according to the distribution map describing the location of terminal user B in sub-area b and the power grid wiring information of the power grid wiring passing through sub-area b, it is determined that the power grid failure risk level of sub-area b is high risk. In addition, sub-areas a, c, e, and f have low risk because the corresponding terminal users have not purchased fireworks or the power grid wiring has not passed through. At the same time, the fireworks control information of the target area indicates that fireworks can only be set off in sub-area a, that is, fireworks in sub-areas b, c, d, e, and f can only be set off in sub-area a, so the fireworks in each sub-area will only affect the power grid in sub-area a. Therefore, the power grid failure risk level of sub-area a is adjusted to high risk, and the power grid failure risk levels corresponding to sub-areas b, c, d, e, and f are adjusted to low risk.
[0112] Finally, the prediction results of the power grid fault risk level of each sub-area are summarized and sent to the fault processing warning terminal.
[0113] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0114] Corresponding to the power grid fault risk level prediction method described in the above embodiment, Figure 5 A structural block diagram of a power grid fault risk level prediction device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0115] Reference Figure 5 , the device 100 comprises:
[0116] A first acquisition module 101 is used to acquire current time information;
[0117] The second acquisition module 102 is used to acquire commodity consumption records and location information of multiple reference terminal users in the target area according to the current time information;
[0118] The first determination module 103 is used to determine the reference terminal user corresponding to the fireworks consumption record as the target terminal user if it is determined that there is a fireworks consumption record in the commodity consumption record;
[0119] A second determining module 104 is used to determine a distribution map of the target terminal user according to the location information of the target terminal user;
[0120] The prediction module 105 is used to determine the prediction result of the power grid fault risk level of each first sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area, and the prediction result is transmitted to the fault processing warning terminal through the 4G communication transmission module or the 5G communication transmission module.
[0121] In one embodiment, the device 100 further includes: a judgment module,
[0122] The judging module is used to judge whether the current time information is within a preset time interval;
[0123] The second acquisition module 102 is configured to acquire commodity consumption records and location information of multiple reference terminal users in the target area if it is determined that the current time information is within the preset time interval.
[0124] In one embodiment, the second acquisition module 102 is used to acquire the power consumption of each household in each first sub-area of the target area within the preset time period if it is determined that the current time information is within the preset time interval;
[0125] The first determination module 103 is used to determine the users corresponding to the households whose power consumption is greater than the preset power consumption as the reference terminal users;
[0126] The second acquisition module 102 is used to acquire commodity consumption records and location information of multiple reference terminal users in the target area.
[0127] In one embodiment, the power grid wiring information is used to describe the location of power transmission lines and power transmission equipment;
[0128] The prediction module 105 is used to divide the distribution map according to the positions of each first sub-area of the target area to obtain at least one sub-distribution map, and determine the second sub-area where the corresponding sub-distribution map exists, and the third sub-area where the corresponding sub-distribution map does not exist; determine the density value of the target terminal users in the sub-distribution map of each second sub-area according to the positioning information contained in the sub-distribution map of each second sub-area; determine the power grid failure risk level of the third sub-area where the corresponding sub-distribution map does not exist as low risk, and use the position of the third sub-area and the low risk result as the prediction result of the third sub-area;
[0129] The prediction module 105 is used to match the location of the target terminal user in the sub-distribution map corresponding to each second sub-area with the location of the transmission line and the transmission equipment in the power grid wiring information to obtain the matching result of each second sub-area; determine the power grid failure risk level of the second sub-area whose density value is greater than the preset density value as high risk, and use the location of the second sub-area and the high risk result as the prediction result of the second sub-area; determine the power grid failure risk level of the second sub-area whose density value is less than or equal to the preset density value as medium risk, and use the location of the second sub-area and the medium risk result as the prediction result of the second sub-area.
[0130] In one embodiment, a route construction module is further included.
[0131] The route construction module is used to determine the fault rescue route according to the order of the power grid fault risk levels of each sub-area recorded in the prediction results. The fault rescue route is transmitted to the fault processing warning terminal through the 4G communication transmission module or the 5G communication transmission module.
[0132] In one embodiment, it further includes:
[0133] The first acquisition module 101 is used to acquire the fireworks setting-off position control information of the target area;
[0134] The step of determining the prediction result of the power grid failure risk level in each sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area includes:
[0135] The prediction module 105 is used to determine the prediction result of the power grid failure risk level in each sub-area in the target area according to the distribution map, the power grid wiring information and the fireworks setting off location control information.
[0136] Figure 6 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 6 As shown, the terminal device 6 of this embodiment includes: at least one processor 60 ( Figure 6 Only one processor is shown in the figure), a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, wherein the processor 60 implements the steps in any of the above-mentioned prediction method embodiments when executing the computer program 62.
[0137] The terminal device 6 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6It is only an example of the terminal device 6 and does not constitute a limitation on the terminal device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0138] The processor 60 may be a central processing unit (CPU), or 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. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0139] In some embodiments, the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or memory of the terminal device 6. In other embodiments, the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used to store operating devices, application programs, boot loaders (BootLoader), data and other programs, such as program codes of the computer program, etc. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0140] It should be noted that the information interaction, execution process and other contents between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. The specific functions and technical effects brought about by them can be specifically referred to the method embodiment part, which will not be repeated here. The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit, and the above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0141] An embodiment of the present application also provides a terminal device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.
[0142] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0143] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0144] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and 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. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0145] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0146] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0147] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for predicting power grid failure risk level based on the Internet of Things, characterized in that: include: Get current time information; Acquire commodity consumption records and location information of multiple reference terminal users in the target area according to the current time information; If it is determined that there is a fireworks consumption record in the commodity consumption record, determining the reference terminal user corresponding to the fireworks consumption record as the target terminal user; Obtaining a distribution map of the target terminal users according to the location information of the target terminal users; Determine a prediction result of a power grid fault risk level of each first sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area, and transmit the prediction result to a fault processing warning terminal through a 4G communication transmission module or a 5G communication transmission module; The power grid wiring information is used to describe the location of power transmission lines and power transmission equipment; The step of determining the prediction result of the power grid failure risk level in each first sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area includes: According to the positions of the first sub-regions of the target area, the distribution map is divided to obtain at least one sub-distribution map, and a second sub-region having a corresponding sub-distribution map and a third sub-region having no corresponding sub-distribution map are determined; Determine, according to the positioning information contained in the sub-distribution map of each second sub-area, a density value of the target terminal user in the sub-distribution map of each second sub-area; Matching the location of the target terminal user in the sub-distribution map corresponding to each second sub-area with the location of the transmission wires and the transmission equipment in the power grid wiring information to obtain a matching result for each second sub-area; If the matching result is successful, the power grid fault risk level of the second sub-region whose density value is greater than the preset density value is determined as high risk, and the position and high risk result of the second sub-region are used as the prediction result of the second sub-region; If the matching result is successful, the power grid fault risk level of the second sub-region whose density value is less than or equal to the preset density value is determined as medium risk, and the position of the second sub-region and the medium risk result are used as the prediction result of the second sub-region; If the matching result is a failure, it is determined to be a low risk, and the position of the second sub-region and the low risk result are used as the prediction result of the second sub-region; And / or, the power grid failure risk level of the third sub-region for which there is no corresponding sub-distribution map is determined to be low risk, and the position of the third sub-region and the low risk result are used as the prediction result of the third sub-region.
2. The method for predicting the risk level of power grid failure according to claim 1, characterized in that: The acquiring, according to the current time information, commodity consumption records and location information of a plurality of reference terminal users in the target area comprises: Determining whether the current time information is within a preset time interval; If it is determined that the current time information is within the preset time interval, commodity consumption records and positioning information of multiple reference terminal users in the target area are obtained.
3. The method for predicting the risk level of power grid failure according to claim 2, characterized in that: If it is determined that the current time information is within the preset time interval, obtaining commodity consumption records and location information of multiple reference terminal users in the target area includes: If it is determined that the current time information is within the preset time interval, then obtaining the power consumption of each household in each first sub-area of the target area within the preset time period; Determine the user corresponding to the household whose power consumption is greater than the preset power consumption as the reference terminal user; Obtain commodity consumption records and location information of multiple reference terminal users in the target area.
4. The method for predicting the risk level of power grid failure according to claim 1, characterized in that: After determining the prediction result of the power grid failure risk level in each sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area, the method further includes: According to the order of the power grid fault risk levels of each sub-area recorded in the prediction results, a fault rescue route is determined, and the fault rescue route is transmitted to the fault processing warning terminal through a 4G communication transmission module or a 5G communication transmission module.
5. The method for predicting the power grid fault risk level according to any one of claims 1 to 4, characterized in that: The method further comprises: Obtaining fireworks setting-off location control information of the target area; The step of determining the prediction result of the power grid failure risk level in each sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area includes: The prediction result of the power grid failure risk level in each sub-area in the target area is determined according to the distribution map, the power grid wiring information and the fireworks setting off position control information.
6. A power grid fault risk level prediction device based on the Internet of Things, characterized in that: include: A first acquisition module is used to acquire current time information; A second acquisition module is used to acquire commodity consumption records and location information of multiple reference terminal users in the target area according to the current time information; A first determination module, configured to determine a reference terminal user corresponding to the fireworks consumption record as a target terminal user if it is determined that there is a fireworks consumption record in the commodity consumption record; A second determining module, configured to determine a distribution map of the target terminal user according to the location information of the target terminal user; A prediction module, used to determine a prediction result of a power grid fault risk level of each first sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area, and the prediction result is transmitted to a fault processing warning terminal via a 4G communication transmission module or a 5G communication transmission module; The power grid wiring information is used to describe the location of power transmission lines and power transmission equipment; The prediction module is used to divide the distribution map according to the positions of each first sub-area of the target area to obtain at least one sub-distribution map, and determine a second sub-area where a corresponding sub-distribution map exists, and a third sub-area where no corresponding sub-distribution map exists; determine the density value of the target terminal users in the sub-distribution map of each second sub-area according to the positioning information contained in the sub-distribution map of each second sub-area; determine the power grid failure risk level of the third sub-area where no corresponding sub-distribution map exists as low risk, and use the position of the third sub-area and the low risk result as the prediction result of the third sub-area; The prediction module is used to match the location of the target terminal user in the sub-distribution map corresponding to each second sub-region with the location of the transmission line and the transmission equipment in the power grid wiring information to obtain a matching result for each second sub-region; the power grid failure risk level of the second sub-region whose density value is greater than a preset density value is determined as high risk, and the location of the second sub-region and the high risk result are used as the prediction result of the second sub-region; The power grid failure risk level of the second sub-region whose density value is less than or equal to the preset density value is determined as medium risk, and the position of the second sub-region and the medium risk result are used as the prediction result of the second sub-region.
7. The device according to claim 6, characterized in that The device further comprises: a judgment module, The judging module is used to judge whether the current time information is within a preset time interval; The second acquisition module is used to acquire commodity consumption records and location information of multiple reference terminal users in the target area if it is determined that the current time information is within the preset time interval.
8. The device according to claim 7, characterized in that The second acquisition module is used to acquire the power consumption of each household in each first sub-area of the target area within the preset time period if it is determined that the current time information is within the preset time interval; The first determination module is used to determine users corresponding to households whose electricity consumption is greater than a preset electricity consumption as the reference terminal users; The second acquisition module is used to acquire commodity consumption records and location information of multiple reference terminal users in the target area.
9. The device according to claim 6, characterized in that Also includes route building modules, The route construction module is used to determine the fault rescue route according to the order of the power grid fault risk levels of each sub-area recorded in the prediction results. The fault rescue route is transmitted to the fault processing warning terminal through the 4G communication transmission module or the 5G communication transmission module.
10. The device according to any one of claims 6 to 9, characterized in that: Also includes: The first acquisition module is used to acquire the fireworks setting-off position control information of the target area; The step of determining the prediction result of the power grid failure risk level in each sub-area in the target area according to the distribution map and the power grid wiring information corresponding to the target area includes: The prediction module is used to determine the prediction result of the power grid failure risk level in each sub-area in the target area based on the distribution map, the power grid wiring information and the fireworks setting off location control information.
11. A terminal device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the prediction method according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the prediction method according to any one of claims 1 to 5 is implemented.
