A thunderstorm weather correlation rule mining method, device and electronic equipment

By combining the Bi-Eclat algorithm and the KNN model, the problem of low efficiency in the correlation analysis between lightning activity and meteorological conditions in existing technologies has been solved, and efficient and accurate lightning warnings have been achieved.

CN119090000BActive Publication Date: 2026-11-24GUIZHOU POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411211210.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2026-11-24
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

Existing methods for analyzing the correlation between lightning activity and meteorological conditions are inefficient and redundant when processing large-scale datasets, and perform poorly on sparse datasets. They also fail to effectively utilize data structure information, resulting in low efficiency in lightning warnings.

Method used

This paper adopts a method combining the Bi-Eclat algorithm and the KNN model. By mining the association rules between meteorological factors and lightning activity, the Bi-Eclat algorithm is used to generate the first meteorological association rule, the KNN model is used to determine the neighborhood grid of the grid, and the final meteorological association rule is generated by the intersection, thereby improving the analysis efficiency and accuracy.

Benefits of technology

It improves the efficiency and applicability of mining meteorological association rules for lightning activity, reduces memory usage and redundancy, enhances adaptability to data density, and achieves more efficient lightning early warning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119090000B_ABST
    Figure CN119090000B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, and electronic device for mining meteorological association rules of lightning activity. The method first uses the Bi-Eclat algorithm to mine the first meteorological association rule of lightning activity. Compared with the conventional Eclat algorithm, it gradually narrows the search space, reduces redundancy and memory usage, and improves mining efficiency. On this basis, the KNN model is used to determine the neighborhood grid of each geographic grid. The meteorological factor data of the neighborhood grid is used to mine the second meteorological association rule of lightning activity. The intersection of the first and second meteorological association rules is obtained to obtain the final meteorological association rule. The mining results of the Bi-Eclat algorithm and the KNN model are mutually corrected, overcoming the shortcomings of traditional methods such as inefficiency, large memory consumption, sensitivity to data density, limited adaptability, and the need for multiple data scans, thus achieving higher efficiency and stronger applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention pertains to lightning early warning technology, and particularly relates to a method, device, and electronic equipment for mining meteorological association rules of lightning activity. Background Technology

[0002] Lightning activity is one of the important factors affecting the stability and safety of power systems. Severe thunderstorms often lead to power line tripping and equipment damage. Therefore, in order to ensure the safe operation of power lines, it is necessary to take effective measures to prevent and mitigate the impact of lightning disasters on the power system. Among these measures, monitoring and early warning of lightning activity is particularly important.

[0003] To assess the impact of lightning activity on the power system, factors such as geographical location, climate, and transmission line design are often considered. Among these, meteorological conditions are one of the most influential environmental factors for lightning activity and an important reference for lightning activity early warning. Therefore, it is necessary to conduct correlation analysis between lightning activity and meteorological conditions to obtain multi-parameter meteorological driving parameters of lightning activity.

[0004] Numerous studies have analyzed the correlation between lightning activity and meteorological conditions. Most of these analyses are based on entropy weighting and chi-square tests, often requiring multiple scans of the dataset and generating a large number of candidate sets. This leads to high time and space complexity when processing large datasets, reducing analytical efficiency. Furthermore, these methods perform poorly with sparse datasets, failing to effectively utilize the dataset's structural information. Other novel data mining methods also show limited applicability to large datasets. Summary of the Invention

[0005] Based on this, the present invention aims to provide a method, device and electronic device for mining meteorological association rules of lightning activity, which can accurately and efficiently mine multi-parameter strongly correlated meteorological factors of lightning activity based on a large-capacity lightning meteorological dataset.

[0006] In a first aspect, this invention proposes a method for mining meteorological association rules of lightning activity, including:

[0007] Acquire meteorological factor data and lightning activity data for the target area;

[0008] Using meteorological factor data as independent variables and lightning activity data as dependent variables, the Bi-Eclat algorithm is used to mine association rules for lightning activity and generate the first meteorological association rule for lightning activity.

[0009] The target area is divided into several grids, and the KNN model is used to perform binary classification of the grids to determine the grids belonging to the multi-mine zone and their K neighboring grids.

[0010] Traverse the meteorological factor data of the K neighboring grids corresponding to the grid belonging to the high-lightning-rate area, and generate a second meteorological association rule for lightning activity based on the meteorological factor data of the K neighboring grids;

[0011] The intersection of the first and second meteorological association rules is used to obtain the third meteorological association rule, which is the final meteorological association rule for lightning activity.

[0012] Furthermore, the Bi-Eclat algorithm was used to mine association rules for lightning activity, generating the first meteorological association rules between meteorological factors and lightning activity, including:

[0013] The input dataset is determined based on meteorological factor data and lightning activity data, and the input dataset represents the mapping relationship between meteorological factor data and lightning activity data;

[0014] Based on the input dataset, frequent one-itemsets were identified and sorted in descending order of support.

[0015] Let any two subsets of length k-1 belonging to the k-items set intersect to obtain the support of all k-items sets in each class;

[0016] The k-itemsets are traversed in ascending order of support, and items below the support threshold are deleted. Then, the first meteorological association rule for lightning activity is generated by mining frequent itemsets based on the Eclat algorithm.

[0017] Furthermore, the training process of the KNN model includes:

[0018] Construct a KNN model and train the initial KNN model using different combinations of distance metrics and distance weights. With the training objective of maximizing accuracy and minimizing false positives, obtain the optimal combination of distance metrics and distance weights for the hyperparameters of the KNN model, as well as the optimal range of values ​​for K.

[0019] Furthermore, the trained KNN model uses Euclidean distance or street distance as the distance metric and inverse squared distance as the distance weight, with the value of K ranging from 8 to 18.

[0020] Furthermore, the KNN model is used to perform binary classification of the grid, identifying the grid belonging to the multi-mine zone and its corresponding K neighboring grids, including:

[0021] Based on lightning activity data, the grid is classified into multiple lightning zones and other lightning zones, and lightning zone classification labels are generated for the grid.

[0022] The KNN model is used to generate minefield classification results for each grid.

[0023] The grids correctly classified as multiple minefields are determined based on the minefield classification labels and minefield classification results.

[0024] For the grid that was correctly classified as a multi-mine zone, the KNN model was used again to determine its K neighboring grids. Based on the mine zone classification labels of the K neighboring grids, the neighboring grids belonging to the multi-mine zone were determined.

[0025] Furthermore, based on lightning activity data, the lightning zone classification labels for each grid are determined as follows:

[0026] The lightning activity data is gridded according to the grid division accuracy, and the lightning activity data corresponding to each grid is determined, including the lightning flash density.

[0027] Compare the lightning and ground flash density and the ground flash density threshold for each grid, and classify the grids with lightning and ground flash density higher than the ground flash density threshold as multi-lightning areas, otherwise classify them as other lightning areas.

[0028] Furthermore, by traversing the meteorological factor data of the K neighboring grids corresponding to the grid belonging to the high-lightning-rate area, the second meteorological association rule for lightning activity is generated, including:

[0029] The meteorological factor data of the neighboring grids belonging to the high-mine-rate area are traversed in K neighboring grids. The minimum and maximum values ​​of each meteorological factor are determined based on the meteorological factor data of the traversed neighboring grids. The range of values ​​for each meteorological factor is determined based on the minimum and maximum values ​​of each meteorological factor.

[0030] The second meteorological association rule for lightning activity is generated based on the value range of each meteorological factor.

[0031] Secondly, the present invention provides an association rule mining apparatus for mining meteorological association rules of lightning activity, comprising:

[0032] The data acquisition module is used to acquire meteorological factor data and lightning activity data of the target area;

[0033] The first association rule mining module is used to mine association rules for lightning activity using meteorological factor data as independent variables and lightning activity data as dependent variables, and to generate the first meteorological association rule for lightning activity using the Bi-Eclat algorithm.

[0034] The minefield classification module is used to divide the target area into several grids, and use the KNN model to perform binary classification of the grids to determine the grids that belong to multiple minefields and their K neighboring grids.

[0035] The second association rule mining module is used to traverse the meteorological factor data of the K neighboring grids corresponding to the grids belonging to the multiple lightning zones, and generate the second meteorological association rule for lightning activity;

[0036] The rule merging module is used to find the intersection of the first meteorological association rule and the second meteorological association rule to obtain the third meteorological association rule, which is the final meteorological association rule for lightning activity.

[0037] Thirdly, the present invention provides an electronic device including a memory storing computer-executable instructions and a processor, wherein when the computer-executable instructions are executed by the processor, the device performs the various steps of the lightning activity meteorological association rule mining method provided in the first aspect.

[0038] Fourthly, the present invention provides a readable storage medium storing a computer-executable program, which, when executed, can implement the various steps of the lightning activity meteorological association rule mining method provided in the first aspect.

[0039] As can be seen from the above technical solutions, the present invention has the following beneficial effects:

[0040] This invention provides a method for mining meteorological association rules for lightning activity. First, it leverages the bidirectional expansion advantage of the Bi-Eclat algorithm to identify and prune infrequent itemsets as early as possible, thereby mining the first meteorological association rule for lightning activity. Compared to the conventional Eclat algorithm, this method gradually narrows the search space, reduces redundancy and memory usage, and improves mining efficiency. Based on this, the KNN model is used to determine the neighborhood grids of each geographic grid. The meteorological factor data from these neighborhood grids are then used to mine the second meteorological association rule for lightning activity. The intersection of the first and second meteorological association rules yields the final meteorological association rule. The mining results from the Bi-Eclat algorithm and the KNN model mutually correct each other, overcoming the shortcomings of traditional methods such as inefficiency, high memory consumption, sensitivity to data density, limited adaptability, and the need for multiple data scans. This method achieves higher efficiency and greater applicability. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0042] Figure 1 This is a flowchart illustrating the implementation of a method for mining meteorological association rules for lightning activity, as provided in an embodiment of this application.

[0043] Figure 2 This is a comparison chart of the optimization results of the KNN model provided in the embodiments of this application for different numbers of neighboring nodes;

[0044] Figure 3This is a schematic diagram of the structure of an association rule mining device provided in an embodiment of this application;

[0045] Figure 4 This is an electronic device architecture diagram provided for an embodiment of this application. Detailed Implementation

[0046] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0047] See Figure 1 An embodiment of the present invention provides a method for mining meteorological association rules of lightning activity, comprising the following steps:

[0048] Step S110. Obtain meteorological factor data and lightning activity data for the target area.

[0049] In this step, relevant meteorological data for the target area is obtained according to the analysis requirements. For example, if a lightning warning is needed for a power transmission line, meteorological data for the area where the transmission line is located can be selected. Meteorological factor data is information used to describe and analyze atmospheric conditions and their changes, mainly basic meteorological parameters such as temperature, humidity, air pressure, wind speed, wind direction, precipitation, and solar radiation intensity. To more completely uncover the correlation between meteorology and lightning occurrence in the target area, meteorological parameters at different atmospheric levels can be obtained. This data can be obtained from meteorological centers in various regions. Lightning activity data is historical lightning activity that has occurred in the target area. Through a lightning location system, information such as the time of occurrence, location, intensity, and ground flash density of each lightning event can be recorded. Therefore, lightning activity data is usually at least spatiotemporal data.

[0050] Step S120. Using meteorological factor data as independent variables and lightning activity data as dependent variables, the Bi-Eclat algorithm is used to mine association rules for lightning activity and generate the first meteorological association rule for lightning activity.

[0051] In this step, the embodiment of the invention employs the Bi-Eclat algorithm for association rule mining. The inventors of this invention discovered that subsets of items with high support are more likely to become part of long frequent itemsets, while subsets with low support have a lower probability of becoming part of long frequent itemsets. Based on this, frequent itemset mining is performed, and candidate itemsets and cross operations on items are reduced by traversing them in ascending order of support. Compared to the conventional Eclat algorithm's lexicographical order, this reduces the number of items traversed, thereby reducing redundant checks. Furthermore, after transaction caching, items are stored in the vertical dataset TID-list in descending order of support. This is because cross operations on high-support subsets are often performed more frequently than cross operations on low-support subsets, leading to more frequent access to high-support subsets; descending order arrangement reduces runtime.

[0052] Step S130. Divide the target area into several grids, use the KNN model to perform binary classification of the grids, and determine the grids belonging to the multi-mine zone and their K neighboring grids.

[0053] In this step, the KNN model is used to classify lightning zones. In this embodiment of the invention, spatiotemporal grid points are used as sample points for KNN model analysis. Therefore, the target area needs to be divided into spatiotemporal grids. Then, the KNN model is used to analyze and determine the grids belonging to multiple lightning zones and their K neighboring grids. The K value is the number of neighboring points of the sample points obtained after the KNN model is trained. In this embodiment of the invention, it represents the K grids closest to the currently analyzed grid. Since we are more concerned with the meteorological association rules of lightning activity, this step mainly analyzes the grids classified as multiple lightning zones.

[0054] Step S140. Traverse the meteorological factor data of the K neighboring grids corresponding to the grid belonging to the multi-lightning zone, and generate a second meteorological association rule for lightning activity based on the meteorological factor data of the K neighboring grids.

[0055] Specifically, the minimum and maximum values ​​of each meteorological factor are determined based on the meteorological factor data of the traversed neighboring grids. The range of values ​​for each meteorological factor is determined based on the minimum and maximum values. A second meteorological association rule for lightning activity is generated based on the range of values ​​for each meteorological factor. Taking temperature as an example, the temperature data of each neighboring grid is traversed to determine the minimum and maximum values ​​of temperature. These two maximum and minimum values ​​are used as the endpoints of the range of values ​​for temperature. Since the neighboring grids of the multi-lightning-zone grid are traversed, the range of values ​​for temperature is considered to be the association rule for lightning activity, that is, lightning will occur when the temperature is within this range.

[0056] Step S150. Find the intersection of the first meteorological association rule and the second meteorological association rule to obtain the third meteorological association rule. The third meteorological association rule is the final meteorological association rule for lightning activity.

[0057] In this step, the association rules obtained using the Bi-Eclat algorithm and the KNN model are merged, and the outputs of the two algorithms are mutually corrected to improve the accuracy of the obtained association rules. For example, suppose the frequent itemset output by the Bi-Eclat algorithm is "when meteorological factor A is in the range of xx1∪xx2, and when meteorological factor B is in the range of yyy, and when meteorological factor C is in the range of zzz, ..., the output lightning density is in the range of aaa", while the range of values ​​for each meteorological factor obtained by traversing the meteorological factor data of the neighboring grids of the multi-lightning area grid using the KNN model is "when meteorological factor A is in the range of Q1, when meteorological factor B is in the range of Q2, when meteorological factor C is in the range of Q3, ..., the intersection of the two association rules is calculated, and the final meteorological association rule for the multi-lightning area is output as "when meteorological factor A is in the range of (xx1∪xx2)∩Q1, and when meteorological factor B is in the range of yyy∩Q2, and when meteorological factor C is in the range of zzz∩Q3, ..., the area belongs to the multi-lightning area".

[0058] In a further embodiment, step S120, which involves mining the first meteorological association rule using Bi-Eclat, includes the following steps:

[0059] Step S121. Determine the input dataset based on meteorological factor data and lightning activity data. The input dataset represents the mapping relationship between meteorological factor data and lightning activity data.

[0060] Step S122. Based on the input dataset, identify the frequent 1-itemsets arranged in descending order of support.

[0061] Step S123. Let any two subsets of length k-1 belonging to the k-items set intersect to obtain the support of all k-items sets in each class.

[0062] Step S124. Traverse the k-itemsets in ascending order of support and delete items below the support threshold. Then, use the Eclat algorithm to mine frequent itemsets and generate the first meteorological association rule for lightning activity.

[0063] Specifically, research on the Eclat algorithm suggests that subsets with high support are more likely to become part of long frequent itemsets, while subsets with low support have a lower probability of becoming part of long frequent itemsets. This idea is used for subsequent itemset expansion. When calculating the support of candidate itemsets, partial traversal is necessary to determine which candidates are included in a given transaction. To minimize traversal workload, items are selected in ascending order of support, rather than the lexicographical order used in the traditional Eclat algorithm, thus reducing the number of cross-operations on candidate itemsets and items. Furthermore, cross-operations on high-support subsets are often more frequent than on low-support subsets; in other words, high-support subsets are accessed more frequently in the transaction cache. Therefore, it is believed that arranging the transaction cache in descending order of frequency is beneficial for storage compactness and efficiency. Thus, transactions are cached in descending order of support, while support counting during itemset expansion is performed in ascending order of support. After being inserted into the cache, entries are stored in the vertical dataset TID-list in descending order of support. Retrieving each transaction from the cache by reversing the entries reveals infrequent itemsets.

[0064] In some embodiments, the target area can be first divided into grids, and the meteorological factor data and lightning activity data can be gridded according to the grid division accuracy. For example, lightning activity data can be calculated by taking a 1km grid to calculate the ground flash density, and for meteorological factor data, a 3km grid can be taken to calculate the average value of each meteorological factor in each grid as the representative value of the meteorological factor in that grid. If the meteorological factor is a vector, it can be decomposed, for example, the wind speed can be decomposed into east-west and north-south directions.

[0065] In this embodiment of the invention, the above steps S121~S124 of running the Bi-Eclat algorithm have the following process:

[0066] Meteorological factor data for each grid is used as the independent variable, and lightning flash density for the same grid is used as the dependent variable. A mapping relationship between meteorological factor data and lightning activity data within each grid is constructed. This mapping relationship for all grids constitutes the overall dataset. Each frequent item is identified from this dataset, and the tid-list of the subset is sorted in descending order of support. That is, after dynamically vertically converting the data format, the tid-list of the items is scanned sequentially, and the results are compared with the support threshold to obtain the frequent 1-itemsets sorted in descending order of support.

[0067] Constructing an equivalence lattice generates candidate itemsets. This involves starting with the set of subsets of a class arranged in ascending order of support, constructing an equivalence lattice, generating itemsets as the union of subsets within the subset set, and then calculating the support of the itemsets by the intersection of the subset lists. In practice, intersecting any two subsets of length k-1 in the tid-list yields the support of all k itemsets in each class.

[0068] After sorting by support in ascending order, infrequent candidate itemsets are removed to reduce redundant intersections, and all frequent itemsets are recursively mined.

[0069] In a further embodiment, to reduce the redundancy of frequent itemsets, the value ranges of identical meteorological factors in each frequent itemset can be merged. For example, two frequent itemsets are output, namely:

[0070] a. When meteorological factor A is in the range of xx1, and when meteorological factor B is in the range of yyy, and when meteorological factor C is in the range of zzz, ..., the output lightning flash density is in the range of aaa;

[0071] b. When meteorological factor A is in the range of xx2, and when meteorological factor B is in the range of yyy, and when meteorological factor C is in the range of zzz, ..., the output lightning flash density is in the range of aaa.

[0072] By merging the value ranges of the same meteorological factors, the final output frequent itemset can be represented as "when meteorological factor A is in the range of xx1∪xx2, and when meteorological factor B is in the range of yyy, and when meteorological factor C is in the range of zzz, ..., the output lightning density is in the range of aaa".

[0073] In a further embodiment, the KNN model has the following training process:

[0074] Construct a KNN model and train the initial KNN model using different combinations of distance metrics and distance weights. With the training objective of maximizing accuracy and minimizing false positives, obtain the optimal combination of distance metrics and distance weights for the hyperparameters of the KNN model, as well as the optimal range of values ​​for K.

[0075] Specifically, the classification performance of the KNN model is closely related to the distribution of sample points and the selection of the number of neighboring points. The important hyperparameters of the model are the number of neighboring points K, the distance metric, and the distance weight. In this embodiment of the invention, before running the KNN model to classify the grid, the grid is first classified into multiple lightning zones and other lightning zones based on lightning activity data. The training objective of the KNN model is to determine whether the grid belongs to a multiple lightning zone by binary classification. Different distance metrics, distance weights, and K values ​​will affect the classification accuracy of the model. Therefore, during training, different combinations of distance metrics and distance weights are used to train the initial KNN model, with the goal of maximizing accuracy and minimizing false positives, to obtain the optimal combination of distance metrics and distance weights for the hyperparameters of the KNN model, as well as the optimal range of K values.

[0076] In this invention, distance metrics are used to calculate the distance between each sample point, which determines the overall distribution of classified sample points. When training the KNN model, this embodiment considers three distance metrics: Euclidean distance, street distance, and cosine distance. Distance weights measure the influence of nearest neighbor points in determining the category of the sample point to be classified. With distance weights, the closer a known sample point is to the sample point to be classified, the greater its influence. When training the KNN model, this embodiment considers three methods: equal distance weights (no weights), inverse distance weights, and inverse squared distance weights. The number of neighbors, K, is the evaluation range when the model determines the classification result. A smaller K value results in a smaller evaluation range, making the model more sensitive to local features and producing more refined classification results. However, this may also lead to local outliers and noise contamination, causing a decrease in model accuracy or overfitting. A higher K value makes the model focus more on the overall sample distribution, reducing sensitivity to local outliers and noise, but it may also ignore local features, potentially leading to underfitting.

[0077] An optimizable model was used to determine the optimal combination of hyperparameters, with the highest accuracy (POD) and the lowest false alarm rate (FAR) as the training objectives. POD represents the proportion of grids that are actually multiple minefields but are classified as multiple minefields by the model, and FAR represents the proportion of grids that are actually non-multiple minefields but are classified as multiple minefields. Table 1 below shows the model training results for different combinations of hyperparameters.

[0078] Table 1

[0079]

[0080] Analysis of Table 1 reveals that the POD (Point of Detection) of all models significantly improves when the K value is small. A horizontal comparison of the three weighting schemes (equidistant, inverse distance, and inverse squared distance) shows that the inverse squared distance weighting scheme achieves a POD exceeding 70% under Euclidean distance and street distance metrics, resulting in the highest predicted POD. Furthermore, both schemes have a FAR (Factor of Accuracy) of 30.85%, demonstrating a clear advantage over other models. Meanwhile, the cosine distance KNN model with inverse distance weighting achieves a POD of 69.21% with a FAR of 30.98% when the K value is small, classifying it as a suboptimal model. Therefore, based on these three hyperparameter models, the optimal number of neighboring points K is sought to optimize the model's prediction rate. Modeling and training were conducted at ten points (K=2, 5, 8, 10, 12, 15, 18, 20, 22, 25), and the results are as follows: Figure 2 As shown.

[0081] Depend on Figure 2It can be seen that the training results of the cosine distance / equidistant distance model fluctuate significantly with the number of neighboring points, and the overall POD is significantly lower than the first two models. The two models using inverse squared distance weighting show similar POD and FAR values ​​and their variations. Within the K value range of 8-18, the prediction probability is consistently above 69%, while the FAR gradually decreases with increasing K value, falling within the range of 30%-31%. Therefore, using Euclidean distance or street distance as the distance metric, the inverse squared distance weighting scheme, and setting the hyperparameters with the number of neighboring points K in the range of 8-18, can achieve relatively optimal model performance, with an accuracy of approximately 69% and a false positive rate maintained around 30%.

[0082] In some embodiments, based on the training process and hyperparameter selection of the KNN model described above, using the KNN model to perform binary classification of the grid and determine the grid belonging to the multi-mine zone and its corresponding K neighboring grids includes the following steps:

[0083] Step S131. Based on the lightning activity data, classify the grid into multiple lightning zones and other lightning zones, and generate lightning zone classification labels for the grid.

[0084] Step S132. Use the KNN model to generate minefield classification results for each grid.

[0085] Step S133. Determine the grids that are correctly classified as multiple minefields based on the minefield classification labels and minefield classification results.

[0086] Step S134. For the grid that has been correctly classified as a multi-mine zone, use the KNN model again to determine its K neighboring grids, and determine the neighboring grids belonging to the multi-mine zone based on the mine zone classification labels of the K neighboring grids.

[0087] Specifically, since the accuracy of the trained KNN model is around 69%, it is assumed that 69% of the grids are correctly classified as areas with frequent thunderstorms. For these correctly classified grids, the KNN model is used again to classify them. The purpose is to determine the K neighboring grids of these grids, thereby obtaining the meteorological factor data of these K neighboring grids.

[0088] In a further embodiment, step S131 includes the following steps:

[0089] The lightning activity data is gridded according to the grid division accuracy, and the lightning activity data corresponding to each grid is determined, including the lightning flash density.

[0090] Compare the lightning and ground flash density and the ground flash density threshold for each grid, and classify the grids with lightning and ground flash density higher than the ground flash density threshold as multi-lightning areas, otherwise classify them as other lightning areas.

[0091] Specifically, ground lightning density represents the number of lightning strikes per unit area within a certain time. If the number of strikes exceeds a set threshold, the grid can be considered a high-lightning-rate area; otherwise, it is classified as another type of lightning-rate area.

[0092] When running the KNN model again, for a grid i to be classified, after determining its K neighborhood grids, select the grids that are actually in the multiple-mine zone from the K neighborhood grids. Assume there are M grids, and M≤K. Obtain the meteorological factor data of these M grids, find the minimum and maximum values ​​of each meteorological factor, obtain the value range of each meteorological factor, and use it as the meteorological association rule for grid i, denoted as Q. i In reality, it refers to the range of values ​​for each meteorological factor.

[0093] Assuming there are n correctly classified grids, then n meteorological association rules will be obtained, namely Q1, Q2, ..., Q. i Q n The intersection of these n meteorological association rules with the frequent itemset Q mined by the Bi-Eclat algorithm is obtained. Here, the frequent itemset Q also represents the value range of each meteorological factor, that is, the intersection of the same meteorological factors. For example, the intersection of the value range of meteorological factor A in Q1 and the value range of meteorological factor A in Q is obtained, the intersection of the value range of meteorological factor B in Q1 and the value range of meteorological factor B in Q is obtained, and so on. For convenience, this is denoted as Q1∩Q. Similarly, Q2∩Q, ..., Q i ∩Q,……,Q n The final output meteorological association rule for lightning activity can be represented as Q. end =(Q1∩Q)∪(Q2∩Q)∪…∪(Q i ∩Q)∪…∪(Q n ∩Q).

[0094] The above embodiments describe a method for mining meteorological association rules for lightning activity. First, the bidirectional expansion advantage of the Bi-Eclat algorithm is used to find infrequent itemsets as early as possible for pruning, thereby mining the first meteorological association rule for lightning activity. Compared with the conventional Eclat algorithm, this method gradually narrows the search space, reduces redundancy and memory usage, and improves mining efficiency. On this basis, the KNN model is used to determine the neighborhood grids of each geographic grid, and the meteorological factor data of the neighborhood grids are used to mine the second meteorological association rule for lightning activity. The intersection of the first and second meteorological association rules is obtained to obtain the final meteorological association rule. The mining results of the Bi-Eclat algorithm and the KNN model are mutually corrected, overcoming the shortcomings of traditional methods such as inefficiency, large memory consumption, sensitivity to data density, limited adaptability, and the need for multiple data scans, thus achieving higher efficiency and stronger applicability.

[0095] The above-disclosed embodiments describe in detail a method for mining meteorological association rules of lightning activity. The above-disclosed method can be implemented using various types of equipment. Therefore, the present invention also discloses an association rule mining device corresponding to the above method. Specific embodiments are given below for detailed description.

[0096] like Figure 3 As shown, one embodiment of the present invention provides an association rule mining device 300, comprising:

[0097] Data acquisition module 301 is used to acquire meteorological factor data and lightning activity data of the target area;

[0098] The first association rule mining module 302 is used to mine association rules for lightning activity using meteorological factor data as independent variables and lightning activity data as dependent variables, and to generate the first meteorological association rule for lightning activity using the Bi-Eclat algorithm.

[0099] The minefield classification module 303 is used to divide the target area into several grids, and use the KNN model to perform binary classification of the grids to determine the grids belonging to multiple minefields and their K neighboring grids.

[0100] The second association rule mining module 304 is used to traverse the meteorological factor data of the K neighboring grids corresponding to the grids belonging to the multi-lightning area and generate the second meteorological association rule for lightning activity.

[0101] The rule merging module 305 is used to find the intersection of the first meteorological association rule and the second meteorological association rule to obtain the third meteorological association rule, which is the final meteorological association rule for lightning activity.

[0102] The device provided in this application embodiment has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.

[0103] The following embodiments illustrate the application of this method to a computer device. It is understood that the computer device can be any device with computing and processing capabilities, including but not limited to servers or personal laptops. In one embodiment, the computer device can be an application server, which can be a server used to run the application under test.

[0104] See Figure 4This document illustrates a hardware block diagram of an electronic device intended to represent various forms of digital computers, such as laptops, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present application described and / or claimed herein.

[0105] like Figure 4 As shown, the electronic device includes: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4;

[0106] In this embodiment of the application, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4;

[0107] Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.

[0108] Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device;

[0109] The memory stores a program, which the processor can call. The program is used to implement the various processing steps of the aforementioned lightning activity meteorological association rule mining scheme.

[0110] This invention also provides a readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the various processing flows of the lightning activity meteorological association rule mining scheme provided in any possible implementation of the above embodiments and / or in combination with the embodiments.

[0111] The invention has been described in particular detail above with respect to possible scenarios, and those skilled in the art will recognize that the invention can be practiced through other embodiments. Specific naming of components, capitalization of terms, attributes, data structures, or any other programming or structural aspects are not mandatory or important, and the mechanisms or features of implementing the invention may have different names, forms, or procedures. The system can be implemented through a combination of hardware and software (as described), entirely through hardware elements, or entirely through software elements. The specific division of functions among the various system components described herein is merely exemplary and not mandatory; rather, the functions performed by a single system component can be performed by multiple components, or the functions performed by multiple components can be performed by a single component.

[0112] Those skilled in the art should understand that the various steps of the disclosed methods can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using device-executable program code, which can then be stored in a storage device for execution by the computing device. Alternatively, they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Therefore, the embodiments disclosed in this invention are not limited to any specific hardware and software combination.

[0113] The programs (also referred to as programs, software, software applications, or code) executable by these computing devices include machine instructions of a programmable processor and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms “machine-readable medium” and “computer-readable medium” refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term “machine-readable signal” refers to any signal used to provide machine instructions and / or data to a programmable processor.

[0114] Certain aspects of this invention include the process steps and instructions described herein in algorithmic form. It should be noted that the process steps and instructions of this invention can be implemented in software, firmware, and / or hardware, and when implemented in software, they can be downloaded, stored on various operating systems and operated from said platforms.

[0115] Those skilled in the art will understand that the structures shown in the figures are merely block diagrams of some structures related to the present application and do not constitute a limitation on the terminal device to which the present application is applied. Specific terminal devices may include more or fewer components than those shown in the figures, or combine certain components, or have different component arrangements.

[0116] In the description of this specification, the use of terms such as "one embodiment," "some embodiments," "example," "specific example," or "possible design," etc., refers to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0117] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0118] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for mining meteorological association rules of lightning activity, characterized in that, include: Acquire meteorological factor data and lightning activity data for the target area; Using the meteorological factor data as the independent variable and the lightning activity data as the dependent variable, the Bi-Eclat algorithm is used to mine the association rules of lightning activity and generate the first meteorological association rule of lightning activity. The target area is divided into several grids, and the grids are classified into two categories using the KNN model to determine the grids belonging to the multi-mine zone and their K neighboring grids. The meteorological factor data of the K neighboring grids corresponding to the grid belonging to the high-lightning-rate area are traversed, and a second meteorological association rule for lightning activity is generated based on the meteorological factor data of the K neighboring grids. The intersection of the first meteorological association rule and the second meteorological association rule is used to obtain the third meteorological association rule, which is the final meteorological association rule for lightning activity. The training process of the KNN model includes: Construct a KNN model and train the initial KNN model using different combinations of distance metrics and distance weights. With the training objective of maximizing accuracy and minimizing false positives, obtain the optimal combination of distance metrics and distance weights for the hyperparameters of the KNN model, as well as the range of values ​​for K. The KNN model is used to perform binary classification of the grid, identifying the grid belonging to the multi-mine zone and its corresponding K neighboring grids, including: Based on lightning activity data, the grid is classified into multiple lightning zones and other lightning zones, and lightning zone classification labels are generated for the grid. The trained KNN model is used to generate minefield classification results for each grid. The grids correctly classified as multiple minefields are determined based on the minefield classification labels and minefield classification results of the grids. The trained KNN model is used again to determine the K neighboring grids of the grid that has been correctly classified as a multi-mine zone. The neighboring grids belonging to the multi-mine zone are determined according to the mine zone classification labels of the K neighboring grids. The meteorological factor data is information used to describe and analyze atmospheric conditions and their changes, specifically including basic meteorological parameters, such as temperature, humidity, air pressure, wind speed, wind direction, precipitation, and solar radiation intensity; the lightning activity data is historical lightning activity information occurring in the target area, specifically including the time of occurrence, location, lightning intensity, and ground flash density of each lightning event.

2. The method according to claim 1, characterized in that, The method of using the Bi-Eclat algorithm to mine association rules for lightning activity, and generating the first meteorological association rule between meteorological factors and lightning activity, includes: The input dataset is determined based on meteorological factor data and lightning activity data, and the input dataset represents the mapping relationship between meteorological factor data and lightning activity data; Based on the input dataset, frequent one-itemsets were identified and sorted in descending order of support. Let any two subsets of length k-1 belonging to the k-items set intersect to obtain the support of all k-items sets in each class; The k-itemsets are traversed in ascending order of support, and items below the support threshold are deleted. Then, the first meteorological association rule for lightning activity is generated by mining frequent itemsets based on the Eclat algorithm.

3. The method according to claim 1, characterized in that, The trained KNN model uses Euclidean distance or street distance as the distance metric and inverse squared distance as the distance weight. The value of K ranges from 8 to 18.

4. The method according to claim 1, characterized in that, The classification of grids into multiple lightning zones and other lightning zones based on lightning activity data includes: The lightning activity data is gridded according to the grid division accuracy, and the lightning activity data corresponding to each grid is determined, wherein the lightning activity data includes lightning flash density; Compare the lightning and ground flash density and the ground flash density threshold for each grid, and classify the grids with lightning and ground flash density higher than the ground flash density threshold as multi-lightning areas, otherwise classify them as other lightning areas.

5. The method according to claim 1, characterized in that, The second meteorological association rule for generating lightning activity by traversing the meteorological factor data of the K neighboring grids corresponding to the grid belonging to the multi-lightning zone includes: The meteorological factor data of the neighboring grids belonging to the high-mine-rate area are traversed in K neighboring grids. The minimum and maximum values ​​of each meteorological factor are determined based on the meteorological factor data of the traversed neighboring grids. The range of values ​​for each meteorological factor is determined based on the minimum and maximum values ​​of each meteorological factor. The second meteorological association rule for lightning activity is generated based on the value range of each meteorological factor.

6. An association rule mining device, characterized in that, The device is used to mine meteorological association rules for lightning activity, including: The data acquisition module is used to acquire meteorological factor data and lightning activity data of the target area; The first association rule mining module is used to mine association rules for lightning activity using meteorological factor data as independent variables and lightning activity data as dependent variables, and to generate the first meteorological association rule for lightning activity using the Bi-Eclat algorithm. The minefield classification module is used to divide the target area into several grids, and use the KNN model to perform binary classification of the grids to determine the grids that belong to multiple minefields and their K neighboring grids. The second association rule mining module is used to traverse the meteorological factor data of the K neighboring grids corresponding to the grids belonging to the multiple lightning zones, and generate the second meteorological association rule for lightning activity; The rule merging module is used to find the intersection of the first meteorological association rule and the second meteorological association rule to obtain the third meteorological association rule, which is the final meteorological association rule for lightning activity. The training process of the KNN model includes: Construct a KNN model and train the initial KNN model using different combinations of distance metrics and distance weights. With the training objective of maximizing accuracy and minimizing false positives, obtain the optimal combination of distance metrics and distance weights for the hyperparameters of the KNN model, as well as the range of values ​​for K. The KNN model is used to perform binary classification of the grid, identifying the grid belonging to the multi-mine zone and its corresponding K neighboring grids, including: Based on lightning activity data, the grid is classified into multiple lightning zones and other lightning zones, and lightning zone classification labels are generated for the grid. The trained KNN model is used to generate minefield classification results for each grid. The grids correctly classified as multiple minefields are determined based on the minefield classification labels and minefield classification results of the grids. The trained KNN model is used again to determine the K neighboring grids of the grid that has been correctly classified as a multi-mine zone. The neighboring grids belonging to the multi-mine zone are determined according to the mine zone classification labels of the K neighboring grids. The meteorological factor data is information used to describe and analyze atmospheric conditions and their changes, specifically including basic meteorological parameters, such as temperature, humidity, air pressure, wind speed, wind direction, precipitation, and solar radiation intensity; the lightning activity data is historical lightning activity information occurring in the target area, specifically including the time of occurrence, location, lightning intensity, and ground flash density of each lightning event.

7. An electronic device, characterized in that, It includes a memory storing computer-executable instructions and a processor, which, when executed by the processor, causes the device to perform the lightning activity meteorological association rule mining method as described in any one of claims 1 to 5.

8. A readable storage medium, characterized in that, It contains a computer-executable program that, when executed, can implement the lightning activity meteorological association rule mining method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and device for realizing thunder and lightning early warning based on thunder and lightning data mining and storage medium

    CN109738970A

  • Water traffic accident hotspot water area identification and accident analysis processing method and system

    CN118429909A