A power grid equipment storm risk coupling assessment method

By converting forecasted rainfall data and actual rainfall data into spatial grid codes with parent-child hierarchical relationships and establishing equipment grid index records, the problem of aligning multi-source heterogeneous data in power grid equipment rainstorm risk assessment is solved, thus improving assessment efficiency.

CN123180723APending Publication Date: 2026-11-27STATE GRID HUNAN ELECTRIC COMPANY DISASTER PREVENTION & REDUCTION CENT +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611226099.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the current power grid equipment rainstorm risk assessment, it is difficult to quickly align multi-source heterogeneous data, resulting in high computational and data read/write overhead, which makes it difficult to meet the needs of rolling assessment and real-time early warning.

Method used

By converting forecasted and actual rainfall data into spatial grid codes with parent-child hierarchical relationships and establishing equipment grid index records, and using spatial grid codes for equivalence correlation, complex spatial geometric intersections are avoided, enabling rapid alignment and risk assessment of multi-source data at a unified spatial scale.

Benefits of technology

It enables rapid alignment of multi-source heterogeneous data, reduces computational load and data read/write overhead, and improves the efficiency of large-scale power grid equipment rainstorm risk assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180723A_ABST
    Figure CN123180723A_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of power grid disaster risk assessment, and specifically discloses a power grid equipment storm risk coupling assessment method, which comprises the following steps: obtaining forecast rainfall data and real-time rainfall data of an assessment period, converting the data into spatial grid codes of first and second resolutions respectively according to spatial accuracy, and establishing rainfall space-time records; establishing device grid index records associated with device exposure parameters and device vulnerability parameters according to the spatial geometric information of power grid equipment; converting the second resolution code to the first resolution based on the parent-child hierarchical relationship, storing the two types of records in a database and performing equivalent correlation, and generating a storm risk assessment result according to the correlation data; and has the following advantages: the rainfall data and the power grid equipment are uniformly aligned through multi-resolution spatial grid coding, the equivalent correlation of the coding is used to replace the geometric intersection, the calculation and read-write overheads are reduced, and the storm risk assessment efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power grid disaster risk assessment technology, and more specifically, to a method for coupled assessment of power grid equipment risk during rainstorms. Background Technology

[0002] Rainstorm risk assessment of power grid equipment typically relies on geographic information systems. This involves loading meteorological forecast raster data, actual rainfall data, and spatial data of equipment such as substations, towers, and transmission lines into a spatial database. By identifying the spatial intersections between point, line, and surface geometric models, the equipment affected by rainstorms is determined, and the risk is assessed in conjunction with the equipment attributes.

[0003] However, with the increase in the number of meteorological grid points and power grid equipment, repeated coordinate transformation and geometric intersection will generate significant computational and data reading and writing overhead. Furthermore, there are differences between meteorological forecast data and actual rainfall data in terms of data format, spatial resolution, and temporal granularity, making it difficult to quickly align with power grid equipment data. This results in long risk assessment times under large-scale rainstorm scenarios, making it difficult to meet the needs of rolling assessment and real-time early warning.

[0004] To address this issue, a coupled assessment method for rainstorm risk of power grid equipment is proposed. Summary of the Invention

[0005] The present invention aims to provide a method and system for coupled assessment of storm risk of power grid equipment, in order to solve or improve the problems of existing storm risk assessment of power grid equipment, such as the difficulty in quickly aligning multi-source heterogeneous data and the long time consumption of large-scale spatial geometric intersection calculation.

[0006] In view of this, the first aspect of the present invention is to provide a method for coupled assessment of rainstorm risk of power grid equipment.

[0007] The first aspect of the present invention provides a method for coupled assessment of the rainstorm risk of power grid equipment, comprising the following steps: acquiring forecast rainfall data and actual rainfall data for the assessment period, and converting them into spatial grid codes of a first resolution and a second resolution according to spatial precision, respectively, to establish a spatiotemporal rainfall record; determining at least one spatial grid code of a second resolution corresponding to the power grid equipment based on the spatial geometric information of the power grid equipment, to establish an equipment grid index record that associates equipment exposure parameters and equipment vulnerability parameters; converting the second resolution spatial grid code to the first resolution according to the parent-child hierarchical relationship of the spatial grid code; storing the spatiotemporal rainfall record and the equipment grid index record in a database, and performing an equivalence association between the spatiotemporal rainfall record and the equipment grid index record using the first resolution spatial grid code as the association key; and generating a rainstorm risk assessment result for the power grid equipment through the data obtained from the association.

[0008] The beneficial effects of this invention compared to the prior art are as follows: By converting forecast rainfall data, actual rainfall data, and spatial information of power grid equipment into spatial grid codes with parent-child hierarchical relationships, rapid alignment of multi-source heterogeneous data at a unified spatial scale is achieved. By pre-establishing equipment grid index records and performing equivalence association using spatial grid codes, repeated complex spatial geometric intersections are avoided, reducing computational load and data read / write overhead. By associating rainfall data, equipment exposure parameters, and equipment vulnerability parameters, equipment-level rainstorm risk assessment results are generated, improving the efficiency of large-scale power grid equipment rainstorm risk assessment.

[0009] Additional aspects and advantages of embodiments of the invention will become apparent in the following description or may be learned by practice of embodiments of the invention. Attached Figure Description

[0010] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a flowchart illustrating a method for coupled assessment of power grid equipment risk during rainstorms, according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the multi-source rainfall data processing and risk coupling calculation process according to an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the H3 spatial grid multi-resolution alignment principle according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the architecture and data flow of a power grid equipment rainstorm risk coupling assessment system according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0011] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0012] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.

[0013] Please see Figures 1-5 The following describes some embodiments of the present invention, including methods, systems, electronic devices, and media for coupled assessment of power grid equipment during rainstorms.

[0014] An embodiment of the first aspect of the present invention proposes a method for coupled assessment of stormwater risk for power grid equipment. In some embodiments of the present invention, such as... Figures 1-4 As shown, the method includes: S101, acquire forecast rainfall data and actual rainfall data for the assessment period, and convert them into spatial grid codes of first resolution and second resolution respectively according to spatial accuracy to establish a spatiotemporal record of rainfall.

[0015] Here, forecasted rainfall data and observed rainfall data, which differ in spatial morphology and update methods, are converted into a unified spatiotemporal record of rainfall. Specifically, forecasted rainfall data uses meteorological grids as the basic spatial unit, and its spatial accuracy is relatively low. The positions of each meteorological grid are converted into spatial grid codes with a first resolution. Observed rainfall data comes from meteorological observation stations or meteorological radars and has higher spatial positioning accuracy. The observation positions are converted into spatial grid codes with a second resolution, which is higher than the first resolution. The rainfall amount, spatial grid codes, and timestamps are combined to form the spatiotemporal record of rainfall for the corresponding assessment period.

[0016] As described above, selecting the appropriate coding resolution based on the original spatial precision of different meteorological data avoids forcibly refining low-precision forecast data and introducing false spatial precision, while preserving the fine location characteristics of actual rainfall data. Unlike methods that use Cartesian coordinates to store meteorological raster boundaries and repeatedly perform geometric intersection, distance calculation, or interpolation matching during risk assessment, this invention discretizes spatial locations into spatial grid codes with parent-child hierarchical relationships as soon as the data enters the assessment process. This transforms heterogeneous rainfall data from different geometric representations into structurally consistent coded records, providing a data foundation for subsequent resolution conversion and code-based isocorrelation.

[0017] Specifically, the steps for establishing spatiotemporal records of rainfall include: The forecast rainfall data is processed in blocks in parallel, and the meteorological grid locations contained therein are converted into spatial grid codes with a first resolution.

[0018] The real-time rainfall data is cleaned and aggregated, and the included observation locations are converted into second-resolution spatial grid codes.

[0019] The processed forecasted rainfall data and actual rainfall data are combined with the corresponding spatial grid codes and timestamps to establish a spatiotemporal record of rainfall.

[0020] Regarding the specific description above, both the first and second resolution spatial grid codes adopt the H3 index in the global discrete hexagonal grid coordinate system. The forecast rainfall data uses a 0.1°×0.1° regular latitude and longitude grid, with a spatial resolution of approximately 10 km, and the H3 level 6 resolution is selected as the first resolution based on this spatial resolution.

[0021] And process it using the following formula:

[0022] in, and These represent the latitude and longitude of the observation location, respectively. This indicates the corresponding 8th level H3 spatial grid code.

[0023] After the above processing, the cumulative rainfall, the spatial grid code at the first resolution, and the corresponding timestamp for any meteorological grid are combined to form a forecasted rainfall spatiotemporal record; the aggregated rainfall, the spatial grid code at the second resolution, and the corresponding timestamp for any observation location are combined to form an actual rainfall spatiotemporal record. Both the forecasted and actual rainfall spatiotemporal records use the same field structure and are collectively referred to as rainfall spatiotemporal records. For rainfall spatiotemporal records from different sources, the data source field identifies whether the corresponding record belongs to forecasted rainfall data or actual rainfall data.

[0024] Specifically, the steps for processing forecasted rainfall data in blocks in parallel include: The forecast rainfall data, which adopts a multidimensional slice array format, is stored in an object storage system. The forecast rainfall data is divided into multiple data blocks according to a preset spatiotemporal block strategy. Each data block is read in parallel and the cumulative rainfall is calculated.

[0025] As described above, the raw weather forecast data distributed by the European Centre for Medium-Range Weather Forecasts (ECMWF) is stored in the MinIO object storage service in the format of a Zarr multidimensional slice array. The distributed scheduler Dask is configured with multi-core CPU computing power and loads Xarray to perform distributed block reading of the Zarr array. Using the Dask and Xarray distributed framework, parallel I / O reading and cumulative rainfall operator calculation of the Zarr array are performed through a preset spatiotemporal block strategy.

[0026] As described above, the Zarr multidimensional slice array organizes the forecast precipitation data according to the time dimension and the spatial dimension of the equilatitude and longitude regular grid. A preset spatiotemporal partitioning strategy is used to determine the time step range covered by each data block and the row and column index range of the meteorological raster, thereby dividing the forecast precipitation data within the evaluation period into multiple independently readable data blocks. Xarray loads each data block based on the dimension and coordinate information of the Zarr array. Dask establishes separate reading and cumulative calculation tasks for each data block and distributes the tasks corresponding to different data blocks to multiple computing units for parallel execution.

[0027] For any data block, rainfall data belonging to the evaluation period is selected based on its time step range, and cumulative calculations are performed along the time dimension for the corresponding time step, using the row and column indices of the meteorological raster as units. Specifically, this is calculated using the following formula:

[0028] in, and These represent the row index and column index of the weather raster, respectively. Indicates a time step. and These represent the start and end time steps of the evaluation period, respectively. This indicates the rainfall at the corresponding time step. This indicates the cumulative rainfall.

[0029] When rainfall data for the same meteorological raster is distributed across multiple time blocks during the assessment period, the cumulative rainfall for each time block is first obtained separately. Then, the cumulative rainfall for each segment is merged according to the row and column indices of the meteorological raster to obtain the cumulative rainfall for that meteorological raster during the assessment period. The cumulative rainfall is then correlated with the spatial location of the corresponding meteorological raster and the assessment period to form the processed forecast rainfall data, which is used to subsequently establish a spatiotemporal record of rainfall.

[0030] Specifically, the steps for cleaning and aggregating real-time rainfall data include: Real-time rainfall data is received through a message queue, cleaned using a stream processing engine, and aggregated according to event time windows.

[0031] As described above, the message queue uses a Kafka cluster, and the distributed stream processing engine uses Apache Flink. Rainfall estimation stream data from the field-deployed automatic weather stations and radar are encapsulated into Kafka topics. The Flink distributed stream processing engine, acting as a consumer, subscribes to these Kafka topics and performs anomaly cleaning on the real-time weather observation stream data. For high-frequency sampling stream data from rain gauges, which are typically reported every minute or every five minutes, Flink uses a rolling event time window to perform cumulative calculations for each time period, calculating the cumulative rainfall for each station.

[0032] As described above, automatic weather stations or weather radars encapsulate each collected real-time rainfall data into streaming data samples and write them to the corresponding Kafka topic. Each streaming data sample carries at least the observation location, observation time, and rainfall amount. The Flink stream processing engine, acting as a consumer of the Kafka topic, continuously reads the streaming data samples and parses the read messages to obtain the observation location, observation time, and rainfall amount carried by each streaming data sample.

[0033] The observation times carried by the cleaned streaming data samples are determined as event times, and the streaming data samples are grouped according to the observation locations. A rolling event time window of a preset duration is established for each group of streaming data samples, ensuring that adjacent windows that are consecutive in time do not overlap. For streaming data samples representing rainfall in the corresponding sampling period, the rainfall falling within the same rolling event time window is accumulated to obtain the cumulative rainfall at the corresponding observation location during the window's coverage period.

[0034] After the rolling event time window ends, the aggregated results, including the observation location, window time identifier, and cumulative rainfall, are output as cleaned and aggregated real-time rainfall data for subsequent establishment of spatiotemporal rainfall records.

[0035] S102, based on the spatial geometric information of the power grid equipment, determine at least one second-resolution spatial grid code corresponding to the power grid equipment, so as to establish a device grid index record that associates the device exposure parameters and device vulnerability parameters.

[0036] Here, an index relationship between equipment and spatial grids is pre-established when importing or updating spatial data of power grid equipment. For point-like equipment such as substations and towers, the equipment location is converted into a second-resolution spatial grid code; for linear equipment such as transmission lines, multiple consecutive spatial grids along the line trajectory are determined, and corresponding second-resolution spatial grid codes are obtained for each. Each spatial grid code is associated with the equipment identifier, equipment exposure parameters, and equipment vulnerability parameters to form an equipment grid index record. Among them, the equipment exposure parameters are used to characterize the voltage level and critical load degree of the equipment, and the equipment vulnerability parameters are used to characterize the ability of the corresponding type of equipment to resist the impact of rainstorms.

[0037] As described above, by utilizing a higher second resolution, power grid equipment with different spatial geometries is pre-discretized into unified grid-coded records, so that point-like equipment corresponds to a single index record, and linear equipment corresponds to multiple index records distributed along the line trajectory. Unlike recalculating the intersection relationship between the meteorological grid and the geometric models of equipment points and lines after each rainfall data update, or temporarily selecting matching grids based on the distance between equipment and nearby grids, this invention pre-establishes equipment grid indexes, transforming complex point-line geometric relationships into a deterministic correspondence between spatial grid codes and equipment. Therefore, affected equipment can be directly located based on the spatial grid codes, and associated equipment exposure parameters and vulnerability parameters can be used for risk calculation, reducing repetitive spatial geometric calculations.

[0038] Specifically, the steps for creating a device grid index record include: The location of point devices in the power grid is mapped to a spatial grid code of second resolution, and the linear devices in the power grid are mapped along the extended path to a series of consecutive spatial grid codes of second resolution, so as to establish device grid index records.

[0039] As described above, all power grid static asset data undergoes spatial discretization upon import. For point-like devices, including substations and towers, the spatial location of these devices is directly mapped to the eighth-level grid coordinates of H3.

[0040] As described above, equipment identification, equipment type, and spatial geometric information are read from the static topology data of power grid equipment, and equipment exposure parameters and equipment vulnerability parameters associated with the corresponding power grid equipment are obtained. Based on the equipment type, it is determined whether the power grid equipment is a point-like or line-like device, and a corresponding spatial discretization method is used to establish equipment grid index records.

[0041] For point-like devices such as substations and power poles, the location coordinates of the point-like devices are used as the spatial mapping object. The location coordinates are input into a spatial grid coding algorithm to determine a second-resolution spatial grid containing the location coordinates. In this embodiment, the second resolution adopts the H3 eighth-level resolution. The determined spatial grid code is combined with the device identifier, device type, device exposure parameters, and device vulnerability parameters of the point-like device to form a device grid index record corresponding to the point-like device.

[0042] For linear equipment such as transmission line segments, multiple location coordinates constituting the line trajectory are obtained according to the line extension sequence, and each location coordinate is converted into a spatial grid code with a second resolution. For the spatial grid codes corresponding to adjacent location coordinates in the line trajectory, the gridPathCells algorithm is called to determine multiple spatial grid codes that are continuously passed along the line extension direction between two spatial grids. The spatial grid codes corresponding to each segment are collected according to the line extension sequence to form a continuous spatial grid code array traversed by the linear equipment.

[0043] Each spatial grid code in the continuous spatial grid code array is combined with the device identifier, device type, device exposure parameters, and device vulnerability parameters of the linear device, so that one spatial grid code corresponds to one device grid index record, thereby decomposing the same linear device into multiple device grid index records corresponding to multiple second-resolution spatial grids.

[0044] Specifically, the step of mapping linear equipment in a power grid along an extended path to a series of consecutive second-resolution spatial grid codes includes: Multiple consecutive spatial grids are determined based on the line trajectory of the linear equipment, and the code of each spatial grid is stored in the corresponding equipment grid index record.

[0045] Regarding the specific description above, for linear assets, including transmission line segments, since linear assets span regions, the H3 gridPathCells algorithm is used to generate a set of continuous H3 grid encoded arrays that cross the line corridor trajectory, and the line is decomposed and stored as multi-row tuples in the database.

[0046] As described above, the trajectory of a linear device is represented as multiple trajectory points arranged sequentially along the direction of the line's extension, with each pair of adjacent trajectory points defining a line segment. The second-resolution spatial grid to which each trajectory point belongs is determined, and the spatial grid codes corresponding to two adjacent trajectory points are used as the starting and ending grid codes of the line segment.

[0047] For each line segment, the corresponding starting grid code and ending grid code are input into the gridPathCells algorithm to obtain a spatial grid code subsequence extending from the starting spatial grid to the ending spatial grid. The spatial grid code subsequence includes the spatial grid where the starting point of the line segment is located, the spatial grid where the ending point of the line segment is located, and the spatial grids that are passed through in sequence between the two; when two trajectory points of the line segment are located in the same spatial grid, the code of that spatial grid is used as the spatial grid code subsequence corresponding to the line segment.

[0048] According to the arrangement order of each line segment in the line trajectory, each spatial grid code subsequence is sequentially connected, and a spatial grid code is reserved at the common endpoint of adjacent spatial grid code subsequences to form a spatial grid code array that the linear equipment continuously passes through along the extension path.

[0049] Each spatial grid code is read sequentially according to its arrangement in the spatial grid code array, and a device grid index record is generated for each spatial grid code. Each device grid index record uses the same linear device identifier and stores the corresponding second-resolution spatial grid code, thereby decomposing a linear device spanning multiple spatial grids into multiple device grid index records.

[0050] S103, based on the parent-child hierarchy of spatial grid coding, convert the second-resolution spatial grid coding to the first resolution.

[0051] Here, the forecast rainfall data already has a first-resolution spatial grid code, while the actual rainfall data and power grid equipment have a second-resolution spatial grid code. For each second-resolution spatial grid code, a corresponding first-resolution spatial grid code is determined based on a pre-determined parent-child hierarchy in the spatial grid code, and this determined spatial grid code is used as the association code for subsequent equivalence association. In one specific implementation, the first resolution is H3 level 6 resolution, and the second resolution is H3 level 8 resolution. The level 8 H3 code is converted to the corresponding level 6 H3 code through a parent grid transformation operation.

[0052] As described above, by utilizing the deterministic indexing relationship between high-resolution and low-resolution grids in hierarchical spatial grid coding, the actual rainfall data and power grid equipment data are merged from the second resolution to the first resolution used for forecast rainfall data, enabling the three types of data to obtain spatial correlation coding at the same level. Unlike re-interpolating, reconstructing grid boundaries, or performing geometric overlay calculations on meteorological grids of different resolutions, this invention does not require comparing spatial geometric boundaries; resolution conversion can be completed solely based on the parent-child hierarchical relationship of the coding. This reduces the computational load of spatial alignment of multi-source data and is used for equi-association with the first-resolution spatial grid coding as the correlation key.

[0053] Specifically, the second resolution is separated from the first resolution by at least one grid level. The step of converting the spatial grid encoding of the second resolution to the first resolution includes: Determine the spatial grid code of the first resolution corresponding to each second resolution spatial grid code, and write the determined spatial grid code into the corresponding rainfall spatiotemporal record or equipment grid index record.

[0054] Based on the specific description above, H3 spatial grid coding employs a dynamic multi-resolution coding mechanism. For heavy rain forecast raster data, low-resolution H3 coding (H3 level 6 resolution) is used for regional coarse screening; for real-time meteorological observation stream data and power grid static topology data, high-resolution H3 coding (H3 level 8 resolution) is used for micro-topographical fine matching. The high and low resolution H3 codes are dynamically transformed during calculation through parent-child grid index relationships; if multi-scale, multi-source meteorological fusion is involved, Flink converts the level 8 coding into the level 6 parent grid coding.

[0055] As described above, the rainfall spatiotemporal records and equipment grid index records using the second-resolution spatial grid encoding are traversed, the second-resolution spatial grid encoding in each record is read, and the grid level corresponding to the first resolution is used as the target parent grid level. The H3 parent grid conversion function is called to determine the parent grid upwards along the parent-child hierarchy corresponding to the second-resolution spatial grid encoding, until the grid level of the determined parent grid is the same as that of the first resolution. The encoding of this parent grid is then determined as the corresponding first-resolution spatial grid encoding. Specifically, this is calculated using the following formula:

[0056] in, This indicates the H3 spatial grid encoding for the second resolution. This indicates the first resolution H3 spatial grid encoding obtained from the conversion, and the value 6 indicates the resolution level of the target parent grid.

[0057] Each second-resolution spatial grid has a unique corresponding first-resolution parent grid. Multiple second-resolution spatial grids within the same first-resolution spatial grid range obtain the same first-resolution spatial grid code after conversion. For actual rainfall data originally using second-resolution coding, the converted first-resolution spatial grid code is written into the corresponding rainfall spatiotemporal record; for power grid equipment using second-resolution coding, the converted first-resolution spatial grid code is written into the corresponding equipment grid index record. Forecast rainfall data originally using first-resolution coding continues to use the corresponding first-resolution spatial grid code, thus ensuring that the corresponding records have spatial grid codes at the same resolution level.

[0058] S104, store the spatiotemporal rainfall records and equipment grid index records into the database, and perform equi-association on the spatiotemporal rainfall records and equipment grid index records using the spatial grid code of the first resolution as the association key.

[0059] Here, a rainfall spatiotemporal data table and a device grid index table are established in the distributed columnar database. The rainfall spatiotemporal data table stores the spatial grid code, timestamp, and rainfall amount at the first resolution. The device grid index table stores the spatial grid code at the first resolution, device information, device exposure parameters, and device vulnerability parameters. After filtering the rainfall spatiotemporal records according to the assessment period, the spatial grid code at the first resolution is converted into an unsigned integer association key. Then, using the database's vectorized execution engine, rainfall spatiotemporal records and device grid index records with the same spatial grid code value are joined using in-memory hashing. In one specific implementation, the distributed columnar database uses ClickHouse, and the association key uses unsigned 64-bit integer data storage.

[0060] As mentioned above, forecasted rainfall data, actual rainfall data, and power grid equipment data all have spatial grid coding with a first-resolution resolution. Therefore, spatiotemporal rainfall records and equipment grid index records corresponding to the same grid in space have the same integer coding. The database can determine the power grid equipment within the rainfall's influence range by comparing whether the integer codes are equal, without needing to read the equipment's geometric model and meteorological grid boundaries.

[0061] Unlike traditional spatial databases that use point, line, and surface geometric objects to perform spatial intersection, distance calculation, or boundary inclusion judgment, this invention transforms spatial matching into integer equivalence association between columnar data tables. It also utilizes pre-established device grid indexes and memory hash associations to reduce repetitive geometric calculations and data read / write overhead, thereby improving the efficiency of association processing between large-scale rainfall records and power grid equipment records. This is then used to generate equipment rainstorm risk assessment results in batches.

[0062] Specifically, the steps of storing rainfall spatiotemporal records and equipment grid index records into the database include: Create a spatiotemporal data table for rainfall and a grid index table for equipment in a distributed columnar database.

[0063] Using spatial grid encoding and timestamp as sorting fields, the spatiotemporal records of rainfall are written into the spatiotemporal data table of rainfall.

[0064] Using spatial grid encoding as the sorting field, device grid index records are written into the device grid index table.

[0065] Based on the specific description above, the high-concurrency spatiotemporal database ClickHouse is used to store structured business entities. ClickHouse employs the MergeTree family table engine, using H3 spatial grid encoding and timestamps as composite primary keys and partition keys for physical storage dimensionality reduction.

[0066] Weather forecasts and actual rainfall data are stored in the weather and rainfall data table t_weather_precipitation_h3. The weather and rainfall data table includes an H3 spatial grid encoding field h3_index, a timestamp field record_time, a rainfall amount field precision_val, and a data source field data_source. The H3 spatial grid encoding uses 64-bit unsigned integer data, the timestamp uses date and time type, the rainfall amount uses single-precision floating-point data, and the data source uses low-cardinality text type. The weather and rainfall data table uses the MergeTree table engine, with the H3 spatial grid encoding and timestamp as the primary key and sorting fields. In fast coupled queries, the power grid equipment data table is denoted as t_grid_devices_h3.

[0067] As mentioned above, a rainfall spatiotemporal data table should include at least a spatial grid code field, a timestamp field, a rainfall amount field, and a data source field. The spatial grid code field stores the spatial grid code that serves as a unified spatial identifier in the rainfall spatiotemporal record; the timestamp field stores the corresponding forecast or observation time; the rainfall amount field stores the rainfall amount for the corresponding assessment period; and the data source field distinguishes between forecasted rainfall data and actual rainfall data. The spatial grid code is stored using a 64-bit unsigned integer.

[0068] Set the spatial grid code and timestamp as sorting fields in the spatiotemporal rainfall data table. When writing spatiotemporal rainfall records, write the spatial grid code, timestamp, rainfall amount, and data source of each record into the corresponding fields, so that spatiotemporal rainfall records with the same spatial grid code are adjacent in physical storage order, and records under the same spatial grid code are arranged according to timestamp.

[0069] In some implementations, the physical sorting structure formed by H3 spatial grid encoding and timestamps is used to optimize the data skip index for spatiotemporal range queries, enabling the database to locate the corresponding records according to the target spatial grid and evaluation period, and reducing the scanning of other spatiotemporal range records.

[0070] The equipment grid index table should at least include a device identifier field, a device type field, a spatial grid code field, a device exposure parameter field, and a device vulnerability parameter field. The spatial grid code is set as the sorting field of the equipment grid index table, and the corresponding data from each equipment grid index record is written to the corresponding field. This ensures that equipment grid index records belonging to the same spatial grid are adjacent in physical storage order, thus completing the columnar storage of rainfall spatiotemporal records and equipment grid index records.

[0071] Specifically, the steps for performing equi-association between rainfall spatiotemporal records and equipment grid index records include: The spatial grid encoding of the first resolution is stored as unsigned integer data, and the memory hash association is performed on the spatiotemporal rainfall records and equipment grid index records with the same spatial grid encoding through the vectorized execution engine of the database.

[0072] To address the specific description above, instead of traditional GIS polygon intersection geometry calculations, ClickHouse's vectorized execution engine directly utilizes a memory-level hash join to perform topological overlap calculations between the meteorological grid and power grid equipment on the H3 spatial grid encoded integer data (UInt64). This completes the topological overlap calculation within milliseconds. For the query described above, ClickHouse's execution engine uses a hash table for memory joins based on the h3_index primary key, reducing the spatial topology calculation time for hundreds of thousands of rows of data in both tables to 10ms.

[0073] As described above, before performing the equivalence association, the database filters records belonging to the evaluation period from the spatiotemporal rainfall records based on the timestamp, and reads the first-resolution spatial grid codes from the filtered spatiotemporal rainfall records and the equipment grid index records. The first-resolution spatial grid codes in both types of records are converted and stored as 64-bit unsigned integer data so that the codes representing the same first-resolution spatial grid have the same data type and numerical form.

[0074] In some implementations, before constructing the in-memory hash table, rainfall spatiotemporal records are filtered based on the target evaluation time and a preset rainfall warning threshold. Only rainfall spatiotemporal records with rainfall reaching the preset rainfall warning threshold are included in the equivalence association to determine the substations and tower equipment within the corresponding spatial grid.

[0075] The database's vectorized execution engine reads the spatial grid-encoded columns of two types of records in batches and selects one type of record as the construction side of the hash table based on the query execution plan. For each record in the construction side, the hash value of the corresponding spatial grid code is calculated, and the hash value determines the storage location of the record in the in-memory hash table. The data or record address contained in the record is then saved at the corresponding location. After the in-memory hash table is built, the other type of record is used as the probe side. The hash values ​​of each spatial grid code on the probe side are calculated in batches, and the corresponding records are searched in the in-memory hash table.

[0076] When the hash value recorded by the probe matches the hash value in the memory hash table, the spatial grid codes of the two at the first resolution are further compared. Only when the unsigned integer values ​​of the spatial grid codes are the same is it determined that the corresponding spatiotemporal rainfall record and the equipment grid index record belong to the same spatial grid at the first resolution. For cases where the same spatial grid code corresponds to multiple equipment grid index records, the association between the corresponding equipment grid index records and the spatiotemporal rainfall records is established separately.

[0077] S105, generate rainstorm risk assessment results for power grid equipment by correlating the data.

[0078] Here, rainfall, equipment exposure parameters, and equipment vulnerability parameters are extracted from the associated data. The hazard level of the disaster-causing factor is determined based on the rainfall in the spatial grid where the equipment is located during the assessment period. Specifically, the equipment exposure parameters are pre-determined based on the equipment voltage level and the degree of critical load it bears, while the equipment vulnerability parameters are determined based on the physical damage curve corresponding to the equipment type. The tolerance attenuation coefficient in the physical damage curve is obtained by fitting historical fault data. The product of the hazard level of the disaster-causing factor, the equipment exposure parameters, and the equipment vulnerability parameters is determined as the rainstorm risk value for the corresponding power grid equipment. The risk level can be determined based on the preset risk range in which the rainstorm risk value falls, thus generating a rainstorm risk assessment result that includes both the rainstorm risk value and the risk level.

[0079] As mentioned above, the associated data has already defined the spatial correspondence between the spatiotemporal records of rainfall and power grid equipment. Therefore, risk calculation only needs to be performed on equipment located within the corresponding rainfall grid. In the risk calculation process, the hazard factor hazard level characterizes the intensity of the rainstorm, the equipment exposure parameter characterizes the degree of equipment exposure in the power grid, and the equipment vulnerability parameter characterizes the sensitivity of the corresponding type of equipment to damage under the influence of rainstorm. The coupling of these three parameters can simultaneously reflect the disaster intensity, equipment attributes, and equipment tolerance.

[0080] Unlike issuing warnings based solely on whether cumulative rainfall exceeds a fixed threshold, or determining risk solely based on the distance and temporal correlation between equipment and disaster grids, this invention uses actual matching data obtained through spatial grid coding and equivalent correlation as a basis, and combines equipment exposure parameters and physical vulnerability parameters to perform equipment-level risk calculations. This allows equipment with different voltage levels, load importance, and tolerance capabilities to obtain different risk assessment results under the same rainfall conditions.

[0081] Specifically, the steps for generating rainstorm risk assessment results for power grid equipment through correlated data include: Rainfall, equipment exposure parameters, and equipment vulnerability parameters are extracted from the correlated data.

[0082] The hazard level of disaster-causing factors is determined based on rainfall, and the product of the hazard level of disaster-causing factors, equipment exposure parameters, and equipment vulnerability parameters is determined as the rainstorm risk value.

[0083] The results of rainstorm risk assessment determine the risk level of corresponding power grid equipment by using rainstorm risk values.

[0084] Based on the specific description above, the risk value of the power grid equipment is obtained by using a preset multiplication relationship, according to the disaster-causing factor hazard of the corresponding H3 grid, the equipment exposure in the static topology, and the physical fragility coefficient of the equipment. The disaster-causing factor hazard is the rainfall intensity factor of the H3 grid to which the equipment belongs during the assessment period, calculated using two preset rainfall intensity correction coefficients; the equipment exposure is assigned a value based on the equipment's voltage level and its critical load status in the network, ranging from 0.1 to 1.0; the equipment physical fragility coefficient is determined using the physical damage curve of the equipment during rainstorms and associated flooding, based on the actual rainfall intensity and the corresponding power grid equipment's tolerance attenuation coefficient. The tolerance attenuation coefficients for substations and tower foundations are generated by fitting historical fault data. The fast risk coupling calculation engine runs the vulnerability assessment model to output the equipment disaster rating in real time. Specifically, it is calculated using the following formula:

[0085] in, Indicates power grid equipment, This indicates the rainstorm risk value for power grid equipment. , and These represent the hazard level of the disaster-causing factor, the equipment exposure level, and the equipment vulnerability, respectively.

[0086] As described above, the power grid equipment corresponding to each piece of data obtained through association is used as the risk assessment object. The rainfall amount corresponding to the H3 spatial grid is extracted from the spatiotemporal rainfall records. The rainfall amount includes the cumulative rainfall amount and the actual rainfall intensity within the assessment period. Equipment exposure parameters and equipment vulnerability parameters are extracted from the equipment grid index records. The equipment vulnerability parameters include the tolerance attenuation coefficient corresponding to the type of power grid equipment.

[0087] When determining the hazard level of a disaster-causing factor, first calculate the difference between the cumulative rainfall during the assessment period and the second rainfall intensity correction coefficient. Then, multiply this difference by the first rainfall intensity correction coefficient and take the opposite number. Use the resulting value as an exponent for natural exponentiation. Add the result to one and take the reciprocal to obtain the hazard level of the corresponding power grid equipment. Specifically, calculate using the following formula:

[0088] in, This represents the cumulative rainfall in the H3 spatial grid to which the power grid equipment belongs during the assessment period. and These represent the preset first rainfall intensity correction factor and the second rainfall intensity correction factor, respectively.

[0089] When determining equipment vulnerability, a corresponding tolerance attenuation coefficient is selected based on the type of power grid equipment. This coefficient is then multiplied by the actual rainfall intensity and the negative number is taken. The resulting value is used as an exponent for natural exponential calculation, and the result is subtracted to obtain the equipment vulnerability of the corresponding power grid equipment. Specifically, tolerance attenuation coefficients obtained by fitting historical fault data are used for substations and tower foundations.

[0090]

[0091] in, This indicates the actual rainfall intensity corresponding to the H3 spatial grid to which the power grid equipment belongs. This represents the tolerance attenuation coefficient corresponding to the type of power grid equipment.

[0092] This invention provides a method for coupled assessment of power grid equipment risk during rainstorms. By converting forecast rainfall data, actual rainfall data, and spatial information of power grid equipment with different spatial accuracies into spatial grid codes with parent-child hierarchical relationships, it achieves rapid alignment of multi-source heterogeneous data at a unified spatial scale. Replacing traditional GIS spatial geometric intersection calculations with integer equivalent correlation of spatial grid codes, it can reduce the spatial coupling calculation workload between large-scale meteorological grids and massive amounts of power grid equipment, and improve the efficiency of data processing and risk assessment. The method combines rainfall, equipment exposure parameters, and equipment vulnerability parameters to generate equipment rainstorm risk assessment results.

[0093] A second aspect of this invention provides a power grid equipment rainstorm risk coupling assessment system for performing the power grid equipment rainstorm risk coupling assessment method of any of the above embodiments. The system includes a cloud-native grid computing module, a real-time data stream processing module, a spatiotemporal data management module, and a fast risk coupling calculation module. The specific processing procedures and technical effects of each module are described in the above method embodiments and will not be repeated here.

[0094] In some implementations, the cloud-native grid computing module stores forecasted rainfall data via MinIO, uses Dask and Xarray to read the forecasted rainfall data in parallel, calculates the cumulative rainfall, and generates H3 spatial grid codes with a first resolution; the real-time data stream processing module receives actual rainfall data via Kafka, uses Flink to clean and aggregate the data, and generates H3 spatial grid codes with a second resolution; the spatiotemporal data management module stores spatiotemporal rainfall records and device grid index records via ClickHouse; and the fast risk coupling calculation module performs hash association based on integer H3 spatial grid codes in ClickHouse and runs a device vulnerability assessment model to output the risk level of power grid equipment.

[0095] An embodiment of a third aspect of the present invention provides an electronic device. In some embodiments of the present invention, such as... Figure 5 As shown, the electronic device 3 includes a processor 301 and a memory 302. The memory 302 stores a computer program. When the processor 301 executes the computer program, it implements the power grid equipment storm risk coupling assessment method of any of the above embodiments. The electronic device 3 can be a computer, a server, a cloud server, or a distributed computing node, and may include other components not shown in the figure.

[0096] An embodiment of the fourth aspect of the present invention provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the power grid equipment stormwater risk coupling assessment method of any of the above embodiments and has the corresponding technical effects, which will not be elaborated further here.

[0097] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit the scope of protection of the present invention. Those skilled in the art can modify or make equivalent substitutions to the above technical solutions without departing from the spirit and scope of the present invention, and all such modifications or equivalent substitutions should be included within the scope of protection of the present invention.

Claims

1. A method for coupled assessment of stormwater risk of power grid equipment, characterized in that, Includes the following steps: Acquire forecast and actual rainfall data for the assessment period, and convert them into spatial grid codes of first and second resolutions respectively according to spatial accuracy to establish a spatiotemporal record of rainfall; Based on the spatial geometric information of the power grid equipment, at least one second-resolution spatial grid code corresponding to the power grid equipment is determined to establish a device grid index record that associates the device exposure parameters and device vulnerability parameters. Based on the parent-child hierarchy of the spatial grid coding, the spatial grid coding of the second resolution is converted to the first resolution; The spatiotemporal rainfall records and the equipment grid index records are stored in a database, and the spatiotemporal rainfall records and the equipment grid index records are equi-associated using the spatial grid code of the first resolution as the association key. The data obtained through correlation is used to generate rainstorm risk assessment results for power grid equipment.

2. The method for coupled assessment of power grid equipment risk during rainstorms according to claim 1, characterized in that, The steps for establishing the spatiotemporal rainfall record include: The forecast rainfall data is processed in blocks in parallel, and the meteorological grid positions contained therein are converted into spatial grid codes with a first resolution. The real-time rainfall data is cleaned and aggregated, and the included observation locations are converted into spatial grid codes with a second resolution. The processed forecasted rainfall data and actual rainfall data are combined with the corresponding spatial grid codes and timestamps to establish the spatiotemporal record of rainfall.

3. The method for coupled assessment of power grid equipment risk during rainstorms according to claim 2, characterized in that, The steps for performing block-based parallel processing of forecast rainfall data include: The forecast rainfall data, which adopts a multidimensional slice array format, is stored in an object storage system. The forecast rainfall data is divided into multiple data blocks according to a preset spatiotemporal block strategy. Each data block is read in parallel and the cumulative rainfall is calculated.

4. The method for coupled assessment of power grid equipment risk during rainstorms according to claim 2, characterized in that, The step of cleaning and aggregating the real-time rainfall data includes: The real-time rainfall data is received through a message queue, cleaned using a stream processing engine, and aggregated according to event time windows.

5. The method for coupled assessment of power grid equipment risk during rainstorms according to claim 1, characterized in that, The steps for establishing the device grid index record include: The location of point devices in the power grid equipment is mapped to a spatial grid code of second resolution, and the linear devices in the power grid equipment are mapped along the extension path to a series of consecutive spatial grid codes of second resolution, so as to establish the equipment grid index record.

6. The method for coupled assessment of power grid equipment risk during rainstorms according to claim 5, characterized in that, The step of mapping linear devices in the power grid equipment along an extended path to a series of consecutive spatial grid codes of second resolution includes: Based on the trajectory of the linear device, multiple consecutive spatial grids are determined, and the code of each spatial grid is stored in the corresponding device grid index record.

7. The method for coupled assessment of power grid equipment risk during rainstorms according to claim 1, characterized in that, The second resolution is separated from the first resolution by at least one grid level. The step of converting the spatial grid encoding of the second resolution to the first resolution includes: Determine the spatial grid code of the first resolution corresponding to each second resolution spatial grid code, and write the determined spatial grid code into the corresponding rainfall spatiotemporal record or equipment grid index record.

8. The method for coupled assessment of power grid equipment risk during rainstorms according to claim 1, characterized in that, The step of storing the spatiotemporal rainfall records and equipment grid index records into the database includes: In a distributed columnar database, establish a spatiotemporal data table for rainfall and a grid index table for equipment. Using spatial grid encoding and timestamp as sorting fields, the spatiotemporal records of rainfall are written into the spatiotemporal data table of rainfall; Using spatial grid encoding as the sorting field, the device grid index records are written into the device grid index table.

9. The method for coupled assessment of power grid equipment risk during rainstorms according to claim 8, characterized in that, The step of performing an equi-association between the spatiotemporal rainfall records and the device grid index records includes: The spatial grid encoding of the first resolution is stored as unsigned integer data, and the memory hash association is performed on the rainfall spatiotemporal records and equipment grid index records with the same spatial grid encoding through the vectorized execution engine of the database.

10. The method for coupled assessment of power grid equipment risk during rainstorms according to claim 1, characterized in that, The step of generating rainstorm risk assessment results for power grid equipment from data obtained through correlation includes: Rainfall, equipment exposure parameters, and equipment vulnerability parameters are extracted from the correlated data. The hazard level of the disaster-causing factor is determined based on the rainfall amount, and the product of the hazard level of the disaster-causing factor, the equipment exposure parameter, and the equipment vulnerability parameter is determined as the rainstorm risk value; The rainstorm risk assessment results determine the risk level of the corresponding power grid equipment based on the rainstorm risk value.