CN116008671A - Lightning positioning method based on time difference and clustering - Google Patents

Lightning positioning method based on time difference and clustering Download PDF

Info

Publication number
CN116008671A
CN116008671A CN202211607155.2A CN202211607155A CN116008671A CN 116008671 A CN116008671 A CN 116008671A CN 202211607155 A CN202211607155 A CN 202211607155A CN 116008671 A CN116008671 A CN 116008671A
Authority
CN
China
Prior art keywords
lightning
data
cluster
positioning
location
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211607155.2A
Other languages
Chinese (zh)
Inventor
徐伟
郑玉兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Information Science and Technology
Original Assignee
Nanjing University of Information Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing University of Information Science and Technology filed Critical Nanjing University of Information Science and Technology
Priority to CN202211607155.2A priority Critical patent/CN116008671A/en
Publication of CN116008671A publication Critical patent/CN116008671A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention discloses a lightning positioning method based on time difference and clustering, which comprises the following steps: four-station combined positioning is carried out on lightning strike-back data based on the arrival time difference principle, initial lightning positioning data are obtained, an initial lightning positioning data set is formed, a k-means clustering algorithm is adopted to carry out clustering analysis on the initial lightning positioning data set to obtain k clustering cluster sets, and the cluster center with the largest lightning positioning data point in the k clustering cluster sets is selected to be output and used as a final lightning positioning result. And removing the locating outliers to obtain a final accurate locating value. The invention can effectively improve the lightning positioning precision and reduce the influence of factors such as data coarse difference, station network layout and the like on the lightning positioning effect.

Description

一种基于时差和聚类的闪电定位方法A lightning location method based on time difference and clustering

技术领域Technical Field

本发明属于气象闪电定位技术领域,具体涉及一种基于时差和聚类的闪电定位方法。The invention belongs to the technical field of meteorological lightning location, and in particular relates to a lightning location method based on time difference and clustering.

背景技术Background Art

闪电是大气中的放电现象,常伴随着冰雹、暴雨等强对流天气过程。闪电具有强大电流、电磁辐射以及炙热高温等物理效应因此常常引起雷击灾害,包括对建筑物、电力设备、信息通信设备、油罐储运等造成的巨大破坏。闪电的监测预警及准确定位对减少雷击灾害事故具有重要的意义。Lightning is an atmospheric discharge phenomenon, often accompanied by severe convective weather processes such as hail and rainstorms. Lightning has physical effects such as strong current, electromagnetic radiation, and scorching heat, so it often causes lightning disasters, including huge damage to buildings, power equipment, information and communication equipment, oil tank storage and transportation, etc. The monitoring, early warning and accurate positioning of lightning are of great significance to reducing lightning disasters.

闪电定位系统利用闪电回击辐射的电磁场特性来遥测其发生的时间、位置、强度和极性,已应用于气象、电力、航天航空等领域。定位精度是评价闪电定位系统的关键技术指标。到达时间差(Time Difference Of Arrival,TDOA)定位方法由于定位精度较高,已成为主流闪电定位方法。该方法是基于各个闪电探测站与闪电辐射源之间的距离差确定定位双曲线,通过求解双曲线方程组来确定闪电辐射源信号相对于各个探测站相对位置。The lightning location system uses the electromagnetic field characteristics of lightning return radiation to remotely measure the time, location, intensity and polarity of its occurrence, and has been applied to meteorology, electricity, aerospace and other fields. Positioning accuracy is a key technical indicator for evaluating lightning location systems. The Time Difference Of Arrival (TDOA) positioning method has become the mainstream lightning location method due to its high positioning accuracy. This method determines the positioning hyperbola based on the distance difference between each lightning detection station and the lightning radiation source, and determines the relative position of the lightning radiation source signal relative to each detection station by solving the hyperbola equation group.

TDOA定位方法依据时间差定位,由于雷电电磁场在传播过程中会受到地形、地球电导率等因素干扰,用于定位的原始闪电数据受到各类误差因素的影响会含有粗差,使TDOA算法定位曲线往往无法相交于一点,因此该方法存在定位不准确、抗干扰性差等问题。The TDOA positioning method is based on time difference positioning. Since the lightning electromagnetic field will be interfered by factors such as terrain and earth conductivity during the propagation process, the original lightning data used for positioning will be affected by various error factors and contain gross errors, making it difficult for the TDOA algorithm positioning curve to intersect at one point. Therefore, this method has problems such as inaccurate positioning and poor anti-interference.

发明内容Summary of the invention

本发明的目的在于针对上述问题,提出一种基于时差和聚类的闪电定位方法,提高闪电定位精度,进一步地减小数据粗差、站网布局等因素对闪电定位效果的影响。The purpose of the present invention is to address the above problems and propose a lightning location method based on time difference and clustering to improve the lightning location accuracy and further reduce the influence of factors such as data errors and station network layout on the lightning location effect.

聚类算法可以从大量模糊、含噪声或随机的实际数据中提取出需要的信息,采用TDOA四站定位方法对闪电回击数据进行组合定位得到初步闪电定位结果,之后利用k均值聚类算法对得到的初步定位结果进行分类并剔除离群点得到最终的闪电定位结果,提高定位的准确率以及抗干扰能力。The clustering algorithm can extract the required information from a large amount of fuzzy, noisy or random actual data. The TDOA four-station positioning method is used to combine and locate the lightning return stroke data to obtain the preliminary lightning positioning result. Then, the k-means clustering algorithm is used to classify the preliminary positioning results and eliminate outliers to obtain the final lightning positioning result, thereby improving the positioning accuracy and anti-interference ability.

为实现上述目的,本发明采取以下技术方案:To achieve the above object, the present invention adopts the following technical solutions:

第一方面,提供一种基于时差和聚类的闪电定位方法,包括:In a first aspect, a lightning location method based on time difference and clustering is provided, comprising:

步骤S1、获取待定位闪电数据信息,所述闪电数据信息包括至少四个闪电探测站接收到所述待定位闪电信号的闪电回击数据;闪电回击数据包括闪电探测站的站点位置信息以及闪电到达时间;Step S1, obtaining data information of a lightning to be located, wherein the lightning data information includes lightning return stroke data of at least four lightning detection stations receiving the lightning signal to be located; the lightning return stroke data includes site location information of the lightning detection station and lightning arrival time;

步骤S2、对所述闪电数据信息进行组合,得到多组闪电数据,其中每组闪电数据包括四个闪电探测站接收到待定位闪电信号的闪电回击数据;Step S2, combining the lightning data information to obtain multiple groups of lightning data, wherein each group of lightning data includes lightning return stroke data of lightning signals to be located received by four lightning detection stations;

步骤S3、对每组闪电数据,采用四站时差定位法分别对闪电辐射源进行定位,得到初始闪电定位数据;所有的初始闪电定位数据构成闪电定位数据集;Step S3: for each set of lightning data, the lightning radiation source is located respectively using the four-station time difference positioning method to obtain initial lightning positioning data; all the initial lightning positioning data constitute a lightning positioning data set;

步骤S4、采用k均值聚类算法对闪电定位数据集中的所有闪电定位数据进行聚类分析,得到k个聚类簇集合;Step S4, using a k-means clustering algorithm to perform cluster analysis on all lightning location data in the lightning location data set to obtain k cluster sets;

步骤S5、选取输出k个聚类簇集合中包含闪电定位数据点最多的簇中心np,1≤p≤k,作为最终的闪电定位结果。Step S5: Select the cluster center n p , 1≤p≤k, which contains the most lightning location data points in the output k cluster sets as the final lightning location result.

在一些实施例中,步骤S1中,所述站点位置信息为站点经纬高信息,还包括将站点经纬高信息转换成空间直角坐标系下定位的坐标x、y、z;In some embodiments, in step S1, the site location information is the site latitude, longitude and height information, and further includes converting the site latitude, longitude and height information into coordinates x, y, and z positioned in a spatial rectangular coordinate system;

Figure BDA0003998896380000031
Figure BDA0003998896380000031

其中,闪电探测站的经度L、纬度B、高度H,e为椭球的第一偏心率,N为椭球的卯酉圈曲率半径。Among them, the longitude L, latitude B, and altitude H of the lightning detection station, e is the first eccentricity of the ellipsoid, and N is the radius of curvature of the ellipse.

在一些实施例中,步骤S2包括:遍历所有闪电探测站,每四站的闪电数据信息进行组合,得到

Figure BDA0003998896380000032
组闪电数据,其中n为闪电探测站的总个数。In some embodiments, step S2 includes: traversing all lightning detection stations, combining lightning data information of every four stations, and obtaining
Figure BDA0003998896380000032
A set of lightning data, where n is the total number of lightning detection stations.

在一些实施例中,步骤S3中,采用四站时差定位法分别对闪电辐射源进行定位,得到闪电初始定位数据,包括:In some embodiments, in step S3, the lightning radiation source is located respectively using the four-station time difference positioning method to obtain the initial lightning positioning data, including:

根据到达时间差TDOA定位原理,距离差方程为:According to the time difference of arrival TDOA positioning principle, the distance difference equation is:

Figure BDA0003998896380000033
Figure BDA0003998896380000033

其中,闪电的发生位置为(x,y,z),发生时间为t,第i个闪电探测站的坐标位置为(xi,yi,zi),到达时间为ti;i=0时表示主站,i=1,2,3…n时表示副站;闪电到主站(x0,y0,z0)的距离为r0,到第i个副站的距离为ri,Δri为ri与r0的距离差,c为电磁波信号的传播速率;Wherein, the location of lightning occurrence is (x, y, z), the occurrence time is t, the coordinate position of the i-th lightning detection station is (x i , y i , z i ), and the arrival time is t i ; i = 0 represents the primary station, and i = 1, 2, 3…n represents the secondary station; the distance from the lightning to the primary station (x 0 , y 0 , z 0 ) is r 0 , the distance to the i-th secondary station is ri , Δri is the distance difference between ri and r 0 , and c is the propagation rate of the electromagnetic wave signal;

探测站个数为4,即i=0,1,2,3;式(1)变化为:The number of detection stations is 4, i.e., i = 0, 1, 2, 3; formula (1) changes to:

ri2-r02=di-d0 (2)ri2-r02=di-d0 (2)

其中di=(x-xi)2+(y-yi)2+(z-zi)2,d0=(x-x0)2+(y-y0)2+(z-z0)2Where d i =(xx i ) 2 +(yy i ) 2 +(zz i ) 2 ,d 0 =(xx 0 ) 2 +(yy 0 ) 2 +(zz 0 ) 2 ;

对式(2)进行移项、平方、整理化简得:By moving terms, squaring, and simplifying equation (2), we can obtain:

Figure BDA0003998896380000041
Figure BDA0003998896380000041

式(3)中i=1,2,3,是一个关于(x,y,z,t)的非线性方程组,将r0作为已知量,得到矩阵表达式:In formula (3), i = 1, 2, 3, which is a nonlinear equation system about (x, y, z, t). Taking r 0 as a known quantity, we get the matrix expression:

AX=B (4)AX=B (4)

即:Right now:

Figure BDA0003998896380000042
Figure BDA0003998896380000042

当闪电探测站不部署在同一平面上时,系数矩阵A的秩等于3,得到:When the lightning detection stations are not deployed on the same plane, the rank of the coefficient matrix A is equal to 3, and we get:

X = (ATA)-1ATB (6)X = (A T A) -1 A T B (6)

将X带入式(1)可以得到方程:Substituting X into equation (1) we can get the equation:

ar0 2+br0+c=0 (7)ar 0 2 +br 0 +c=0 (7)

解一元二次方程(7)得到r0的数值解后,将r0反代入式(6)中求出闪电辐射源的空间直角坐标系下定位的坐标。After solving the quadratic equation (7) to obtain the numerical solution of r 0 , substitute r 0 into equation (6) to obtain the coordinates of the lightning radiation source in the spatial rectangular coordinate system.

当Δ=b2-4ac>0时,r0有两个解r01、r02,即双曲面有两个交点;r0表示距离必须为正数,r01、r02一正一负时选取正根作为定位解;r01、r02皆为正数时通过增加方位角辅助信息消除定位模糊;When Δ=b 2 -4ac>0, r 0 has two solutions r 01 and r 02 , that is, the hyperboloid has two intersection points; r 0 indicates that the distance must be a positive number, and when r 01 and r 02 are one positive and one negative, the positive root is selected as the positioning solution; when r 01 and r 02 are both positive numbers, the positioning ambiguity is eliminated by adding azimuth auxiliary information;

当Δ=b2-4ac=0时r0有唯一解,不存在定位模糊问题。When Δ=b 2 -4ac=0, r 0 has a unique solution and there is no positioning ambiguity problem.

在一些实施例中,步骤S4、采用k均值聚类算法对闪电定位数据集中的所有闪电定位数据进行聚类分析,包括:In some embodiments, step S4, using a k-means clustering algorithm to perform cluster analysis on all lightning location data in the lightning location data set, includes:

S41、第一次,在闪电定位数据集X中随机抽取k个对象构成第一个训练子集T1(T2∈X),其中k<n,利用K均值算法构建一个局部的包含k个簇的模型,得到k个初步的聚类中心;S41. For the first time, randomly select k objects from the lightning location dataset X to form the first training subset T 1 (T 2 ∈X), where k < n, and use the K-means algorithm to build a local model containing k clusters to obtain k preliminary cluster centers;

S42、第二次,在第一次的基础上,从X中随机抽取C2个除了T1以外的对象构成第2个训练子集T2(T2∈X-T1);利用K均值算法将T2中的对象加入到k个簇中,并更新每个簇的聚类中心;以此类推,重复迭代步骤S41至步骤S42,直至达到预设迭代停止条件,得到最终的k个类簇的集合S={S1,S2,S3,…,Sk}。S42. For the second time, based on the first time, randomly select C 2 objects other than T 1 from X to form the second training subset T 2 (T 2 ∈XT 1 ); use the K-means algorithm to add the objects in T 2 to k clusters, and update the cluster center of each cluster; and so on, repeat the iteration steps S41 to S42 until the preset iteration stop condition is reached, and obtain the final set of k clusters S = {S 1 , S 2 , S 3 , … , S k }.

进一步地,在一些实施例中,步骤S4包括:Further, in some embodiments, step S4 includes:

在闪电定位数据集X中随机选取k个闪电定位数据样本点作为初始的聚类中心,记为n(0)=(n1 (0),…,nl (0),…,nk (0));其中k<n,n为闪电探测站的总个数;其中m维向量闪电定位数据集X中,样本点xi∈X,xi=(x1i,x2i,…,xmi)TIn the lightning location dataset X, k lightning location data sample points are randomly selected as the initial cluster centers, denoted as n (0) = (n 1 (0) , …, n l (0) , …, n k (0) ); where k < n, n is the total number of lightning detection stations; in the m-dimensional vector lightning location dataset X, sample point x i ∈ X, x i = (x 1i , x 2i , …, x mi ) T ;

对固定的聚类中心n(t)=(n1 (t),…,nl (t),…,nk (t)),其中nl (t)为类簇Sl的聚类中心,按照样本点与聚类中心的距离对闪电定位数据样本点进行聚类:For a fixed cluster center n (t) = ( n1 (t) , ..., nl (t) , ..., nk (t) ), where nl (t) is the cluster center of cluster Sl , the lightning location data sample points are clustered according to the distance between the sample points and the cluster center:

计算每个样本点到类簇中心的距离,根据计算的距离使每个闪电定位数据样本点归属到与其距离最小的类簇中,得到k个类簇的集合S={S1,S2,S3,…,Sk},生成初步的聚类结果C(t)Calculate the distance from each sample point to the cluster center, and assign each lightning location data sample point to the cluster with the smallest distance based on the calculated distance, and obtain a set of k clusters S = {S 1 , S 2 , S 3 , …, S k }, generating a preliminary clustering result C (t) ;

对聚类结果C(t)计算当前每个类簇的样本均值uiCalculate the sample mean u i of each cluster for the clustering result C (t) :

Figure BDA0003998896380000051
Figure BDA0003998896380000051

其中xi为类别l中的闪电定位数据样本点,s(i)为xi所属类别,z为各个类簇中样本点的总数;将均值作为新的聚类中心u(t+1)=(u1 (t+1),…,ul (t+1),…,uk (t+1));Where xi is the lightning location data sample point in category l, s (i) is the category to which xi belongs, and z is the total number of sample points in each cluster; the mean is taken as the new cluster center u (t+1) = ( u1 (t+1) ,…, ul (t+1) ,…, uk (t+1) );

定义闪电定位数据样本点与其所属类中心之间的距离总和为最终损失函数W(C):The sum of the distances between the lightning location data sample points and the center of the class to which they belong is defined as the final loss function W(C):

Figure BDA0003998896380000061
Figure BDA0003998896380000061

其中

Figure BDA0003998896380000062
为第l个类簇的聚类中心;
Figure BDA0003998896380000063
中I(C(i)=l)表示取值为0或1的指示函数;函数W(C)表示相同类簇中样本点的相似程度;k均值聚类转换为一个优化问题的求解:in
Figure BDA0003998896380000062
is the cluster center of the lth cluster;
Figure BDA0003998896380000063
Where I(C(i)=l) represents an indicator function with a value of 0 or 1; the function W(C) represents the similarity of sample points in the same cluster; k-means clustering is converted into a solution to an optimization problem:

Figure BDA0003998896380000064
Figure BDA0003998896380000064

如果迭代收敛或者满足迭代停止条件,即损失函数W(C)达到最小则输出最后聚类结果C*=C(t),否则继续迭代,令迭代次数t=t+1且返回重新计算损失函数。If the iteration converges or meets the iteration stopping condition, that is, the loss function W(C) reaches the minimum, the final clustering result C * = C (t) is output; otherwise, the iteration continues, the number of iterations t = t+1, and the loss function is recalculated.

在一些实施例中,步骤S5还包括:将闪电定位结果从空间直角坐标系下定位的坐标x、y、z转换成空间大地坐标系下的经纬高信息;WGS-84椭球模型中经度L、纬度B、高度H的求解公式为:In some embodiments, step S5 further includes: converting the lightning location result from the coordinates x, y, and z located in the spatial rectangular coordinate system into longitude, latitude, and height information in the spatial geodetic coordinate system; the solution formula for longitude L, latitude B, and height H in the WGS-84 ellipsoid model is:

Figure BDA0003998896380000065
Figure BDA0003998896380000065

式中,a、b分别为椭球的长短半轴,a=6378.137km,b=6356.752km;e为椭球的第一偏心率,N为椭球的卯酉圈曲率半径。Where a and b are the major and minor semi-axes of the ellipsoid respectively, a=6378.137km, b=6356.752km; e is the first eccentricity of the ellipsoid, and N is the radius of curvature of the ellipse.

第二方面,本发明提供了一种基于时差和聚类的闪电定位装置,包括处理器及存储介质;In a second aspect, the present invention provides a lightning location device based on time difference and clustering, including a processor and a storage medium;

所述存储介质用于存储指令;The storage medium is used to store instructions;

所述处理器用于根据所述指令进行操作以执行根据第一方面所述方法的步骤。The processor is configured to operate according to the instructions to execute the steps of the method according to the first aspect.

第三方面,本发明提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述方法的步骤。In a third aspect, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in the first aspect.

本发明采用TDOA四站定位方法对闪电回击数据进行组合定位得到闪电定位结果,之后利用k均值聚类算法对得到的定位结果进行分类并剔除离群点得到最终的定位结果,解决传统方法存在定位不准确、抗干扰性差等问题。最后通过测试验证了该方法具有较好的定位效果。The present invention adopts the TDOA four-station positioning method to combine and locate the lightning return stroke data to obtain the lightning positioning result, and then uses the k-means clustering algorithm to classify the positioning results and remove outliers to obtain the final positioning result, solving the problems of inaccurate positioning and poor anti-interference in traditional methods. Finally, the test verifies that this method has a good positioning effect.

与现有技术相比,本发明的有益效果是:Compared with the prior art, the present invention has the following beneficial effects:

本发明提供的一种基于时差和聚类的闪电定位方法。TDOA定位方法依据时间差定位,由于雷电电磁场在传播过程中会受到地形、地球电导率等因素干扰,用于定位的原始闪电数据受到各类误差因素的影响会含有粗差,使TDOA算法定位曲线往往无法相交于一点,因此该方法存在定位不准确、抗干扰性差等问题。而聚类算法可以从大量模糊、含噪声或随机的实际数据中提取出需要的信息,基于此提出一种基于聚类算法的闪电定位方法。采用TDOA四站定位方法对闪电回击数据进行组合定位得到闪电定位结果,之后利用k均值聚类算法对得到的定位结果进行分类并剔除离群点得到最终的定位结果,提高定位的准确率以及抗干扰能力。The present invention provides a lightning location method based on time difference and clustering. The TDOA location method is based on time difference location. Since the lightning electromagnetic field will be interfered by factors such as terrain and earth conductivity during propagation, the original lightning data used for positioning will be affected by various error factors and contain gross errors, so that the TDOA algorithm positioning curve often cannot intersect at one point. Therefore, this method has problems such as inaccurate positioning and poor anti-interference. The clustering algorithm can extract the required information from a large amount of fuzzy, noisy or random actual data. Based on this, a lightning location method based on a clustering algorithm is proposed. The TDOA four-station positioning method is used to combine and locate the lightning return stroke data to obtain the lightning location result, and then the k-means clustering algorithm is used to classify the obtained positioning results and eliminate outliers to obtain the final positioning results, thereby improving the positioning accuracy and anti-interference ability.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明实施例的TDOA定位原理图。FIG. 1 is a schematic diagram of a TDOA positioning principle according to an embodiment of the present invention.

图2是本发明实施例的闪电定位系统布站示意图。FIG. 2 is a schematic diagram of a lightning location system station layout according to an embodiment of the present invention.

图3是本发明实施例的闪电定位方法流程图。FIG3 is a flow chart of a lightning location method according to an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

下面结合附图及实施例对本发明做进一步说明。以下实施例仅用于更加清楚地说明本发明的技术方案,而不能以此来限制本发明的保护范围。The present invention is further described below in conjunction with the accompanying drawings and embodiments. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

在本发明的描述中,若干的含义是一个以上,多个的含义是两个以上,大于、小于、超过等理解为不包括本数,以上、以下、以内等理解为包括本数。如果有描述到第一、第二只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。In the description of the present invention, "several" means more than one, "many" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

本发明的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of the present invention, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

实施例1Example 1

一种基于时差和聚类的闪电定位方法,包括:A lightning location method based on time difference and clustering, comprising:

步骤S1、获取待定位闪电数据信息,所述闪电数据信息包括至少四个闪电探测站接收到所述待定位闪电信号的闪电回击数据;闪电回击数据包括闪电探测站的站点位置信息以及闪电到达时间;Step S1, obtaining data information of a lightning to be located, wherein the lightning data information includes lightning return stroke data of at least four lightning detection stations receiving the lightning signal to be located; the lightning return stroke data includes site location information of the lightning detection station and lightning arrival time;

步骤S2、对所述闪电数据信息进行组合,得到多组闪电数据,其中每组闪电数据包括四个闪电探测站接收到待定位闪电信号的闪电回击数据;Step S2, combining the lightning data information to obtain multiple groups of lightning data, wherein each group of lightning data includes lightning return stroke data of lightning signals to be located received by four lightning detection stations;

步骤S3、对每组闪电数据,采用四站时差定位法分别对闪电辐射源进行定位,得到初始闪电定位数据;所有的初始闪电定位数据构成闪电定位数据集;Step S3: for each set of lightning data, the lightning radiation source is located respectively using the four-station time difference positioning method to obtain initial lightning positioning data; all the initial lightning positioning data constitute a lightning positioning data set;

步骤S4、采用k均值聚类算法对闪电定位数据集中的所有闪电定位数据进行聚类分析,得到k个聚类簇集合;Step S4, using a k-means clustering algorithm to perform cluster analysis on all lightning location data in the lightning location data set to obtain k cluster sets;

步骤S5、选取输出k个聚类簇集合中包含闪电定位数据点最多的簇中心np,1≤p≤k,作为最终的闪电定位结果。Step S5: Select the cluster center np containing the most lightning location data points in the output k cluster sets, 1≤p≤k, as the final lightning location result.

步骤S4、采用k均值聚类算法对闪电定位数据集中的所有闪电定位数据进行聚类分析,包括:Step S4, using the k-means clustering algorithm to perform cluster analysis on all lightning location data in the lightning location data set, including:

S41、第一次,在闪电定位数据集X中随机抽取k个对象构成第一个训练子集T1(T2∈X),其中k<n,利用K均值算法构建一个局部的包含k个簇的模型,得到k个初步的聚类中心;S41. For the first time, randomly select k objects from the lightning location dataset X to form the first training subset T 1 (T 2 ∈X), where k < n, and use the K-means algorithm to build a local model containing k clusters to obtain k preliminary cluster centers;

S42、第二次,在第一次的基础上,从X中随机抽取C2个除了T1以外的对象构成第2个训练子集T2(T2∈X-T1);利用K均值算法将T2中的对象加入到k个簇中,并更新每个簇的聚类中心;以此类推,重复迭代步骤S41至步骤S42,直至达到预设迭代停止条件,得到最终的k个类簇的集合S={S1,S2,S3,…,Sk}。S42. For the second time, based on the first time, randomly select C 2 objects other than T 1 from X to form the second training subset T 2 (T 2 ∈XT 1 ); use the K-means algorithm to add the objects in T 2 to k clusters, and update the cluster center of each cluster; and so on, repeat the iterative steps S41 to S42 until the preset iteration stop condition is reached, and obtain the final set of k clusters S = {S 1 ,S 2 ,S 3 ,…,S k }.

在一些实施例中,如图1所示为TDOA定位原理图,TDOA是一种无线定位方法,需要三个或三个以上已知位置坐标的闪电探测站进行定位。图1中共有三个闪电探测站A、B、C,S为闪电发生位置。假设闪电辐射源S到探测站A、B、C的距离分别为r1、r2和r3,实际情况中该距离未知。闪电探测站A和B可测量闪电回击辐射源S发出的电磁波信号到达各自探测站的时间,两站存在时间差,将时间差乘以闪电信号的传播速度可确定两站之间的距离差r21=r2-r1,构成一条以探测站A、B为焦点,距离差r21为长轴的双曲线L2,闪电发生位置在这条双曲线上的某一点。探测站C与闪电探测站B同样可构成另一条定位双曲线L1,两条双曲线的交点S即为闪电辐射源位置。In some embodiments, as shown in FIG1 , a TDOA positioning principle diagram is provided. TDOA is a wireless positioning method that requires three or more lightning detection stations with known position coordinates for positioning. In FIG1 , there are three lightning detection stations A, B, and C, and S is the location where lightning occurs. Assume that the distances from the lightning radiation source S to the detection stations A, B, and C are r 1 , r 2 , and r 3 , respectively. In actual situations, the distances are unknown. Lightning detection stations A and B can measure the time when the electromagnetic wave signal emitted by the lightning return radiation source S reaches each detection station. There is a time difference between the two stations. Multiplying the time difference by the propagation speed of the lightning signal can determine the distance difference between the two stations r 21 = r 2 -r 1 , forming a hyperbola L 2 with the detection stations A and B as the focus and the distance difference r 21 as the major axis. The location where lightning occurs is at a certain point on this hyperbola. Detection station C and lightning detection station B can also form another positioning hyperbola L 1 , and the intersection S of the two hyperbolas is the location of the lightning radiation source.

如图2所示,为闪电定位系统的布站示意图。假设闪电的发生位置为S(x,y,z),发生时间为t,第i个闪电探测站的坐标位置为(xi,yi,zi),到达时间为ti。i=0时表示主站,i=1,2,3…n时表示副站。As shown in Figure 2, it is a schematic diagram of the station layout of the lightning location system. Assume that the location of lightning is S (x, y, z), the occurrence time is t, the coordinate position of the i-th lightning detection station is (x i , y i , z i ), and the arrival time is t i . When i = 0, it represents the primary station, and when i = 1, 2, 3…n, it represents the secondary station.

在一些具体实施例中,如图3所示,图3为闪电定位流程图,包括:In some specific embodiments, as shown in FIG3 , FIG3 is a lightning location flow chart, including:

1)闪电探测站接收到同一条闪电信号的闪电回击数据X;1) The lightning detection station receives the lightning return stroke data X of the same lightning signal;

2)将所有闪电探测站每四站进行组合,最多可以得到

Figure BDA0003998896380000101
种组合;2) All lightning detection stations are combined in groups of four, and the maximum number of
Figure BDA0003998896380000101
Combination of

3)利用四站时差定位法分别对闪电辐射源进行定位,可以得到闪电定位数据集X={p1,p2,p3,…,pm};3) Using the four-station time difference positioning method to locate the lightning radiation sources respectively, the lightning location data set X = {p 1 , p 2 , p 3 ,…, p m } can be obtained;

4)采用k均值聚类算法对所有定位数据进行聚类分析,不含噪声或噪声较小的数据点因聚合性较好可以聚成一类,含噪声较大的数据点聚合成另外一类或几类,共k类:s1、s2、s3…、sk4) Use the k-means clustering algorithm to perform cluster analysis on all positioning data. Data points without noise or with less noise can be clustered into one category due to good aggregation, and data points with more noise can be clustered into another category or several categories, for a total of k categories: s 1 , s 2 , s 3 ..., s k ;

5)选取输出k个聚类簇集合{s1,s2,s3,…,sk}中包含闪电定位数据点最多的簇中心np,1≤p≤k,作为最终的闪电定位结果,排除定位结果中的干扰定位点;5) Select the cluster center n p , 1≤p≤k, which contains the most lightning location data points in the output k cluster sets {s 1 ,s 2 ,s 3 ,…,s k } as the final lightning location result, and exclude the interference location points in the location result;

6)根据实际定位结果分析算法的定位性能。6) Analyze the positioning performance of the algorithm based on the actual positioning results.

根据到达时间差TDOA定位原理,距离差方程为:According to the time difference of arrival TDOA positioning principle, the distance difference equation is:

Figure BDA0003998896380000111
Figure BDA0003998896380000111

其中,闪电的发生位置为(x,y,z),发生时间为t,第i个闪电探测站的坐标位置为(xi,yi,zi),到达时间为ti;i=0时表示主站,i=1,2,3…n时表示副站;闪电到主站(x0,y0,z0)的距离为r0,到第i个副站的距离为ri,Δri为ri与r0的距离差,c为电磁波信号的传播速率;Wherein, the location of lightning occurrence is (x, y, z), the occurrence time is t, the coordinate position of the i-th lightning detection station is (x i , y i , z i ), and the arrival time is t i ; i = 0 represents the primary station, and i = 1, 2, 3…n represents the secondary station; the distance from the lightning to the primary station (x 0 , y 0 , z 0 ) is r 0 , the distance to the i-th secondary station is ri , Δri is the distance difference between ri and r 0 , and c is the propagation rate of the electromagnetic wave signal;

若探测站个数为4,即i=0,1,2,3;式(1)变化为:If the number of detection stations is 4, that is, i = 0, 1, 2, 3, equation (1) changes to:

ri2-r02=di-d0 (2)ri2-r02=di-d0 (2)

其中di=(x-xi)2+(y-yi)2+(z-zi)2,d0=(x-x0)2+(y-y0)2+(z-z0)2Where d i =(xx i ) 2 +(yy i ) 2 +(zz i ) 2 ,d 0 =(xx 0 ) 2 +(yy 0 ) 2 +(zz 0 ) 2 ;

对式(2)进行移项、平方、整理化简得:By moving terms, squaring, and simplifying equation (2), we can obtain:

Figure BDA0003998896380000112
Figure BDA0003998896380000112

式(3)中i=1,2,3,是一个关于(x,y,z,t)的非线性方程组,将r0作为已知量,得到矩阵表达式:In formula (3), i = 1, 2, 3, which is a nonlinear equation system about (x, y, z, t). Taking r 0 as a known quantity, we get the matrix expression:

AX=B (4)AX=B (4)

Figure BDA0003998896380000113
Figure BDA0003998896380000113

Figure BDA0003998896380000121
Figure BDA0003998896380000121

当闪电探测站不部署在同一平面上时,系数矩阵A的秩等于3,得到:When the lightning detection stations are not deployed on the same plane, the rank of the coefficient matrix A is equal to 3, and we get:

X = (ATA)-1ATB (6)X = (A T A) -1 A T B (6)

将X带入式(1)可以得到方程:Substituting X into equation (1) we can get the equation:

ar0 2+br0+c=0 (7)ar 0 2 +br 0 +c=0 (7)

解一元二次方程(7)得到r0的数值解后,将r0反代入式(6)中求出闪电辐射源的空间直角坐标系下定位的坐标。After solving the quadratic equation (7) to obtain the numerical solution of r 0 , substitute r 0 into equation (6) to obtain the coordinates of the lightning radiation source in the spatial rectangular coordinate system.

进一步地,还包括:将求出的闪电辐射源的空间直角坐标系下定位的坐标x、y、z转换成空间大地坐标系下的经纬高信息。Furthermore, the method further includes: converting the coordinates x, y, and z of the lightning radiation source located in the spatial rectangular coordinate system into longitude and latitude information in the spatial geodetic coordinate system.

闪电定位系统记录的闪电回击数据是每个闪电探测站的经度、纬度、高度信息(空间大地坐标系),需要将空间大地坐标系与空间直角坐标系进行转换。The lightning return stroke data recorded by the lightning location system is the longitude, latitude, and altitude information (spatial geodetic coordinate system) of each lightning detection station, and the spatial geodetic coordinate system needs to be converted into a spatial rectangular coordinate system.

由于地球表面真实形状不是完美的规则球形,使用WGS-84椭球模型作为闪电定位参考模型。WGS-84椭球模型中经度L、纬度B、高度H的求解公式为:Since the real shape of the earth's surface is not a perfect regular sphere, the WGS-84 ellipsoid model is used as a reference model for lightning location. The solution formula for longitude L, latitude B, and height H in the WGS-84 ellipsoid model is:

Figure BDA0003998896380000122
Figure BDA0003998896380000122

式中,a、b分别为椭球的长短半轴,a=6378.137km,b=6356.752km。e为椭球的第一偏心率,N为椭球的卯酉圈曲率半径。In the formula, a and b are the major and minor semi-axes of the ellipsoid, a = 6378.137 km, b = 6356.752 km. e is the first eccentricity of the ellipsoid, and N is the radius of curvature of the ellipse.

相同基准下空间直角坐标系下定位的坐标x、y、z的求解公式为:The solution formula for the coordinates x, y, and z located in the spatial rectangular coordinate system under the same reference is:

Figure BDA0003998896380000131
Figure BDA0003998896380000131

综上,闪电定位系统记录接收到闪电回击数据的站点经纬高信息以及到达时间后,经式(9)进行坐标转换,通过方程(7)计算得到距离r0的解析解,将r0带入式(6)可求出闪电辐射源的空间直角坐标系下定位的坐标,最终经过式(8)得到闪电的经纬高位置。In summary, after the lightning location system records the latitude and longitude information of the station that receives the lightning return data and the arrival time, it performs coordinate conversion through equation (9), and calculates the analytical solution of the distance r0 through equation (7). Substituting r0 into equation (6) can obtain the coordinates of the lightning radiation source in the spatial rectangular coordinate system, and finally obtains the latitude and longitude position of the lightning through equation (8).

在一些实施例中,方程(7)可能会出现解的模糊:In some embodiments, equation (7) may have an ambiguous solution:

当Δ=b2-4ac>0时,r0有两个解r01、r02,即双曲面有两个交点;r0表示距离必须为正数,r01、r02一正一负时选取正根作为定位解;r01、r02皆为正数时通过增加方位角辅助信息消除定位模糊;When Δ=b 2 -4ac>0, r 0 has two solutions r 01 and r 02 , that is, the hyperboloid has two intersection points; r 0 indicates that the distance must be a positive number, and when r 01 and r 02 are one positive and one negative, the positive root is selected as the positioning solution; when r 01 and r 02 are both positive numbers, the positioning ambiguity is eliminated by adding azimuth auxiliary information;

Δ=b2-4ac=0时r0有唯一解,不存在定位模糊问题;When Δ=b 2 -4ac=0, r 0 has a unique solution and there is no positioning ambiguity problem;

Δ=b2-4ac<0时r0无解,无法定位闪电辐射源。When Δ=b 2 -4ac<0, there is no solution for r 0 and the lightning radiation source cannot be located.

在一些实施例中,步骤4)包括如下步骤:In some embodiments, step 4) comprises the following steps:

首先初始化闪电定位样本质心。m维向量闪电定位数据集X中,样本元素xi∈X,xi=(x1i,x2i,…,xmi)T。初次迭代时在集合X中随机选取k(k<n)个闪电定位数据样本点作为初始化的聚类中心点,记为n(0)=(n1 (0),…,nl (0),…,nk (0))。First, the centroid of lightning location samples is initialized. In the m-dimensional vector lightning location dataset X, the sample element x i ∈ X, x i = (x 1i , x 2i , …, x mi ) T . In the first iteration, k (k < n) lightning location data sample points are randomly selected from the set X as the initialized cluster center points, denoted as n (0) = (n 1 (0) , …, n l (0) , …, n k (0) ).

对固定的聚类中心n(t)=(n1 (t),…,nl (t),…,nk (t)),其中nl (t)为类簇Sl的中心点,按照样本点与初始聚类中心的距离对闪电定位数据样本点进行聚类。对于样本点xi与聚类中心点nj之间的闵式距离为:For a fixed cluster center n (t) = ( n1 (t) , ..., nl (t) , ..., nk (t) ), where nl (t) is the center of cluster Sl , the lightning location data sample points are clustered according to the distance between the sample point and the initial cluster center. The Minn distance between the sample point x i and the cluster center n j is:

Figure BDA0003998896380000141
Figure BDA0003998896380000141

采用欧式距离计算闪电数据集X中的每个闪电定位数据样本点到簇聚类中心的距离。式(10)中p=2可表示为欧式距离:The Euclidean distance is used to calculate the distance from each lightning location data sample point to the cluster center in the lightning data set X. In formula (10), p = 2 can be expressed as the Euclidean distance:

Figure BDA0003998896380000142
Figure BDA0003998896380000142

根据式(11)计算每个样本点到类簇中心的距离,依据计算的距离使每个闪电定位数据样本点归属到与其距离最小的类簇中,可得到k个类簇的集合S={S1,S2,S3,…,Sk},生成初步的聚类结果C(t)According to formula (11), the distance from each sample point to the cluster center is calculated. Based on the calculated distance, each lightning location data sample point is assigned to the cluster with the smallest distance to it. A set of k clusters S = {S 1 , S 2 , S 3 , … , S k } can be obtained, and a preliminary clustering result C (t) is generated.

对聚类结果C(t)计算当前每个类簇的样本均值:Calculate the sample mean of each cluster for the clustering result C (t) :

Figure BDA0003998896380000143
Figure BDA0003998896380000143

其中xi为类别l中的闪电数据样本点,s(i)为xi所属类别,z为各个类簇中样本点的总数。将均值作为新的聚类中心点u(t+1)=(u1 (t+1),…,ul (t+1),…,uk (t+1))。定义闪电样本点与其所属类中心之间的距离总和为最终损失函数:Where xi is a lightning data sample point in category l, s (i) is the category to which xi belongs, and z is the total number of sample points in each cluster. The mean is taken as the new cluster center point u (t+1) = ( u1 (t+1) , ..., u1 (t+1) , ..., uk (t+1) ). The sum of the distances between the lightning sample point and the center of the class to which it belongs is defined as the final loss function:

Figure BDA0003998896380000144
Figure BDA0003998896380000144

其中

Figure BDA0003998896380000145
为第l个类的质心(即聚类中心点)。
Figure BDA0003998896380000146
中I(C(i)=l)表示取值为0或1的指示函数。函数W(C)表示相同类簇中样本点的相似程度。k均值聚类转换为一个优化问题的求解:in
Figure BDA0003998896380000145
is the centroid of the lth class (i.e., the cluster center).
Figure BDA0003998896380000146
Where I(C(i)=l) represents an indicator function with a value of 0 or 1. Function W(C) represents the similarity of sample points in the same cluster. K-means clustering is converted into a solution to an optimization problem:

Figure BDA0003998896380000147
Figure BDA0003998896380000147

如果迭代收敛或者满足迭代停止条件,即式(13)中的误差平方和W(C)达到最小则输出最后聚类结果C*=C(t),否则继续迭代,令迭代次数t=t+1且返回式(14)重新计算。If the iteration converges or meets the iteration stopping condition, that is, the error square sum W(C) in equation (13) reaches the minimum, the final clustering result C * = C (t) is output; otherwise, the iteration continues, the number of iterations t = t+1 and returns to equation (14) to recalculate.

本发明提供了一种基于时差和聚类的闪电定位方法,具体实现该技术方案的方法和途径很多,以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。本实施例中未明确的各组成部分均可用现有技术加以实现。The present invention provides a lightning location method based on time difference and clustering. There are many methods and ways to implement the technical solution. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be considered as the protection scope of the present invention. All components not specified in this embodiment can be implemented by existing technologies.

实施例2Example 2

第二方面,本实施例提供了一种基于时差和聚类的闪电定位装置,包括处理器及存储介质;In a second aspect, this embodiment provides a lightning location device based on time difference and clustering, including a processor and a storage medium;

所述存储介质用于存储指令;The storage medium is used to store instructions;

所述处理器用于根据所述指令进行操作以执行根据实施例1所述方法的步骤。The processor is used to operate according to the instructions to execute the steps of the method according to embodiment 1.

实施例3Example 3

第三方面,本实施例提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现实施例1所述方法的步骤。In a third aspect, this embodiment provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in Example 1 are implemented.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

以上所述仅是本发明的优选实施方式,应当指出:对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims (10)

1.一种基于时差和聚类的闪电定位方法,其特征在于,包括:1. A lightning location method based on time difference and clustering, characterized by comprising: 步骤S1、获取待定位闪电数据信息,所述闪电数据信息包括至少四个闪电探测站接收到所述待定位闪电信号的闪电回击数据;闪电回击数据包括闪电探测站的站点位置信息以及闪电到达时间;Step S1, obtaining data information of a lightning to be located, wherein the lightning data information includes lightning return stroke data of at least four lightning detection stations receiving the lightning signal to be located; the lightning return stroke data includes site location information of the lightning detection station and lightning arrival time; 步骤S2、对所述闪电数据信息进行组合,得到多组闪电数据,其中每组闪电数据包括四个闪电探测站接收到待定位闪电信号的闪电回击数据;Step S2, combining the lightning data information to obtain multiple groups of lightning data, wherein each group of lightning data includes lightning return stroke data of lightning signals to be located received by four lightning detection stations; 步骤S3、对每组闪电数据,采用四站时差定位法分别对闪电辐射源进行定位,得到初始闪电定位数据;所有的初始闪电定位数据构成闪电定位数据集;Step S3: for each set of lightning data, the lightning radiation source is located respectively using the four-station time difference positioning method to obtain initial lightning positioning data; all the initial lightning positioning data constitute a lightning positioning data set; 步骤S4、采用k均值聚类算法对闪电定位数据集中的所有闪电定位数据进行聚类分析,得到k个聚类簇集合;Step S4, using a k-means clustering algorithm to perform cluster analysis on all lightning location data in the lightning location data set to obtain k cluster sets; 步骤S5、选取输出k个聚类簇集合中包含闪电定位数据点最多的簇中心,作为最终的闪电定位结果。Step S5: Select the cluster center containing the most lightning location data points in the output k cluster sets as the final lightning location result. 2.根据权利要求1所述的方法,其特征在于,步骤S1中,所述站点位置信息为站点经纬高信息,还包括将站点经纬高信息转换成空间直角坐标系下定位的坐标x、y、z;2. The method according to claim 1, characterized in that in step S1, the site location information is the site latitude and longitude height information, and further comprises converting the site latitude and longitude height information into coordinates x, y, and z positioned in a spatial rectangular coordinate system;
Figure FDA0003998896370000011
Figure FDA0003998896370000011
其中,闪电探测站的经度L、纬度B、高度H,e为椭球的第一偏心率,N为椭球的卯酉圈曲率半径。Among them, the longitude L, latitude B, and altitude H of the lightning detection station, e is the first eccentricity of the ellipsoid, and N is the radius of curvature of the ellipse.
3.根据权利要求1所述的方法,其特征在于,步骤S2包括:遍历所有闪电探测站,每四站的闪电数据信息进行组合,得到
Figure FDA0003998896370000021
组闪电数据,其中n为闪电探测站的总个数。
3. The method according to claim 1, characterized in that step S2 comprises: traversing all lightning detection stations, combining lightning data information of every four stations, and obtaining
Figure FDA0003998896370000021
A set of lightning data, where n is the total number of lightning detection stations.
4.根据权利要求1所述的方法,其特征在于,步骤S3中,采用四站时差定位法分别对闪电辐射源进行定位,得到闪电初始定位数据,包括:4. The method according to claim 1, characterized in that, in step S3, the lightning radiation source is located respectively using the four-station time difference positioning method to obtain the initial lightning positioning data, comprising: 根据到达时间差TDOA定位原理,距离差方程为:According to the time difference of arrival TDOA positioning principle, the distance difference equation is:
Figure FDA0003998896370000022
Figure FDA0003998896370000022
其中,闪电的发生位置为(x,y,z),发生时间为t,第i个闪电探测站的坐标位置为(xi,yi,zi),到达时间为ti;i=0时表示主站,i=1,2,3…n时表示副站;闪电到主站(x0,y0,z0)的距离为r0,到第i个副站的距离为ri,Δri为ri与r0的距离差,c为电磁波信号的传播速率;Wherein, the location of lightning occurrence is (x, y, z), the occurrence time is t, the coordinate position of the i-th lightning detection station is (x i , y i , z i ), and the arrival time is t i ; i = 0 represents the primary station, and i = 1, 2, 3…n represents the secondary station; the distance from the lightning to the primary station (x 0 , y 0 , z 0 ) is r 0 , the distance to the i-th secondary station is ri , Δri is the distance difference between ri and r 0 , and c is the propagation rate of the electromagnetic wave signal; 探测站个数为4,即i=0,1,2,3;式(1)变化为:The number of detection stations is 4, i.e., i = 0, 1, 2, 3; formula (1) changes to: ri 2-r0 2=di-d0 (2) ri 2 -r 0 2 = d i -d 0 (2) 其中di=(x-xi)2+(y-yi)2+(z-zi)2,d0=(x-x0)2+(y-y0)2+(z-z0)2Where d i =(xx i ) 2 +(yy i ) 2 +(zz i ) 2 ,d 0 =(xx 0 ) 2 +(yy 0 ) 2 +(zz 0 ) 2 ; 对式(2)进行移项、平方、整理化简得:By moving terms, squaring, and simplifying equation (2), we can obtain:
Figure FDA0003998896370000023
Figure FDA0003998896370000023
式(3)中i=1,2,3,是一个关于(x,y,z,t)的非线性方程组,将r0作为已知量,得到矩阵表达式:In formula (3), i = 1, 2, 3, which is a nonlinear equation system about (x, y, z, t). Taking r 0 as a known quantity, we get the matrix expression: AX=B (4)AX=B (4) 即:Right now:
Figure FDA0003998896370000031
Figure FDA0003998896370000031
当闪电探测站不部署在同一平面上时,系数矩阵A的秩等于3,得到:When the lightning detection stations are not deployed on the same plane, the rank of the coefficient matrix A is equal to 3, and we get: X=(ATA)-1ATB (6) X=(ATA)-1ATB ( 6 ) 将X带入式(1)可以得到方程:Substituting X into equation (1) we can get the equation: ar0 2+br0+c=0 (7)ar 0 2 +br 0 +c=0 (7) 解一元二次方程(7)得到r0的数值解后,将r0反代入式(6)中求出闪电辐射源的空间直角坐标系下定位的坐标。After solving the quadratic equation (7) to obtain the numerical solution of r 0 , substitute r 0 into equation (6) to obtain the coordinates of the lightning radiation source in the spatial rectangular coordinate system.
5.根据权利要求4所述的方法,其特征在于,5. The method according to claim 4, characterized in that 当Δ=b2-4ac>0时,r0有两个解r01、r02,即双曲面有两个交点;r0表示距离必须为正数,r01、r02一正一负时选取正根作为定位解;r01、r02皆为正数时通过增加方位角辅助信息消除定位模糊;When Δ=b 2 -4ac>0, r 0 has two solutions r 01 and r 02 , that is, the hyperboloid has two intersection points; r 0 indicates that the distance must be a positive number, and when r 01 and r 02 are one positive and one negative, the positive root is selected as the positioning solution; when r 01 and r 02 are both positive numbers, the positioning ambiguity is eliminated by adding azimuth auxiliary information; 当Δ=b2-4ac=0时r0有唯一解,不存在定位模糊问题。When Δ=b 2 -4ac=0, r 0 has a unique solution and there is no positioning ambiguity problem. 6.根据权利要求1所述的方法,其特征在于,步骤S4、采用k均值聚类算法对闪电定位数据集中的所有闪电定位数据进行聚类分析,包括:6. The method according to claim 1, characterized in that step S4, using a k-means clustering algorithm to perform cluster analysis on all lightning location data in the lightning location data set, comprises: S41、第一次,在闪电定位数据集X中随机抽取k个对象构成第一个训练子集T1(T1∈X),其中k<n,利用K均值算法构建一个局部的包含k个簇的模型,得到k个初步的聚类中心;S41. For the first time, k objects are randomly selected from the lightning location dataset X to form the first training subset T 1 (T 1 ∈X), where k < n, and a local model containing k clusters is constructed using the K-means algorithm to obtain k preliminary clustering centers; S42、第二次,在第一次的基础上,从X中随机抽取C2个除了T1以外的对象构成第2个训练子集T2(T2∈X-T1);利用K均值算法将T2中的对象加入到k个簇中,并更新每个簇的聚类中心;以此类推,重复迭代步骤S41至步骤S42,直至达到预设迭代停止条件,得到最终的k个类簇的集合S={S1,S2,S3,…,Sk}。S42. For the second time, based on the first time, randomly select C 2 objects other than T 1 from X to form the second training subset T 2 (T 2 ∈XT 1 ); use the K-means algorithm to add the objects in T 2 to k clusters, and update the cluster center of each cluster; and so on, repeat the iterative steps S41 to S42 until the preset iteration stop condition is reached, and obtain the final set of k clusters S = {S 1 ,S 2 ,S 3 ,…,S k }. 7.根据权利要求6所述的方法,其特征在于,步骤S4包括:7. The method according to claim 6, characterized in that step S4 comprises: 在闪电定位数据集X中随机选取k个闪电定位数据样本点作为初始的聚类中心,记为n(0)=(n1 (0),…,nl (0),…,nk (0));其中k<n,n为闪电探测站的总个数;其中m维向量闪电定位数据集X中,样本点xi∈X,xi=(x1i,x2i,…,xmi)TIn the lightning location data set X, k lightning location data sample points are randomly selected as the initial cluster centers, denoted as n (0) = (n 1 (0) ,…,n l (0) ,…,n k (0) ); where k < n, n is the total number of lightning detection stations; in the m-dimensional vector lightning location data set X, sample point x i ∈ X, x i = (x 1i ,x 2i ,…,x mi ) T ; 对固定的聚类中心n(t)=(n1 (t),…,nl (t),…,nk (t)),其中nl (t)为类簇Sl的聚类中心,按照样本点与聚类中心的距离对闪电定位数据样本点进行聚类:For a fixed cluster center n (t) = ( n1 (t) , ..., nl (t) , ..., nk (t) ), where nl (t) is the cluster center of cluster Sl , the lightning location data sample points are clustered according to the distance between the sample points and the cluster center: 计算每个样本点到类簇中心的距离,根据计算的距离使每个闪电定位数据样本点归属到与其距离最小的类簇中,得到k个类簇的集合S={S1,S2,S3,…,Sk},生成初步的聚类结果C(t)Calculate the distance from each sample point to the cluster center, and assign each lightning location data sample point to the cluster with the smallest distance based on the calculated distance, and obtain a set of k clusters S = {S 1 , S 2 , S 3 , …, S k }, generating a preliminary clustering result C (t) ; 对聚类结果C(t)计算当前每个类簇的样本均值ulCalculate the sample mean u l of each cluster for the clustering result C (t) :
Figure FDA0003998896370000041
Figure FDA0003998896370000041
其中xi为类别l中的闪电定位数据样本点,s(i)为xi所属类别,z为各个类簇中样本点的总数;将均值作为新的聚类中心u(t+1)=(u1 (t+1),…,ul (t+1),…,uk (t+1));Where xi is the lightning location data sample point in category l, s (i) is the category to which xi belongs, and z is the total number of sample points in each cluster; the mean is taken as the new cluster center u (t+1) = ( u1 (t+1) ,…, ul (t+1) ,…, uk (t+1) ); 定义闪电定位数据样本点与其所属类中心之间的距离总和为最终损失函数W(C):The sum of the distances between the lightning location data sample points and the center of the class to which they belong is defined as the final loss function W(C):
Figure FDA0003998896370000042
Figure FDA0003998896370000042
其中
Figure FDA0003998896370000051
为第l个类簇的聚类中心;
Figure FDA0003998896370000052
中I(C(i)=l)表示取值为0或1的指示函数;函数W(C)表示相同类簇中样本点的相似程度;k均值聚类转换为一个优化问题的求解:
in
Figure FDA0003998896370000051
is the cluster center of the lth cluster;
Figure FDA0003998896370000052
Where I(C(i)=l) represents an indicator function with a value of 0 or 1; the function W(C) represents the similarity of sample points in the same cluster; k-means clustering is converted into a solution to an optimization problem:
Figure FDA0003998896370000053
Figure FDA0003998896370000053
如果迭代收敛或者满足迭代停止条件,即损失函数W(C)达到最小则输出最后聚类结果C*=C(t),否则继续迭代,令迭代次数t=t+1且返回重新计算损失函数。If the iteration converges or meets the iteration stopping condition, that is, the loss function W(C) reaches the minimum, the final clustering result C * = C (t) is output; otherwise, the iteration continues, the number of iterations t = t+1, and the loss function is recalculated.
8.根据权利要求1所述的方法,其特征在于,步骤S5还包括:将闪电定位结果从空间直角坐标系下定位的坐标x、y、z转换成空间大地坐标系下的经纬高信息;WGS-84椭球模型中经度L、纬度B、高度H的求解公式为:8. The method according to claim 1, characterized in that step S5 further comprises: converting the lightning location result from the coordinates x, y, z located in the spatial rectangular coordinate system into longitude, latitude and height information in the spatial geodetic coordinate system; the solution formula for longitude L, latitude B and height H in the WGS-84 ellipsoid model is:
Figure FDA0003998896370000054
Figure FDA0003998896370000054
式中,a、b分别为椭球的长短半轴,a=6378.137km,b=6356.752km;e为椭球的第一偏心率,N为椭球的卯酉圈曲率半径。Where a and b are the major and minor semi-axes of the ellipsoid respectively, a=6378.137km, b=6356.752km; e is the first eccentricity of the ellipsoid, and N is the radius of curvature of the ellipse.
9.一种基于时差和聚类的闪电定位装置,其特征在于,包括处理器及存储介质;9. A lightning location device based on time difference and clustering, characterized by comprising a processor and a storage medium; 所述存储介质用于存储指令;The storage medium is used to store instructions; 所述处理器用于根据所述指令进行操作以执行根据权利要求1至8任一项所述方法的步骤。The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 8. 10.一种存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8任一项所述方法的步骤。10. A storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method according to any one of claims 1 to 8 when executed by a processor.
CN202211607155.2A 2022-12-14 2022-12-14 Lightning positioning method based on time difference and clustering Pending CN116008671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211607155.2A CN116008671A (en) 2022-12-14 2022-12-14 Lightning positioning method based on time difference and clustering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211607155.2A CN116008671A (en) 2022-12-14 2022-12-14 Lightning positioning method based on time difference and clustering

Publications (1)

Publication Number Publication Date
CN116008671A true CN116008671A (en) 2023-04-25

Family

ID=86032631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211607155.2A Pending CN116008671A (en) 2022-12-14 2022-12-14 Lightning positioning method based on time difference and clustering

Country Status (1)

Country Link
CN (1) CN116008671A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116430127A (en) * 2023-06-14 2023-07-14 云南电力试验研究院(集团)有限公司 Method for reducing lightning positioning ground flash error
CN116500703A (en) * 2023-06-28 2023-07-28 成都信息工程大学 Thunderstorm monomer identification method and device
CN119224672A (en) * 2024-11-28 2024-12-31 南京信息工程大学 A lightning locator fault self-detection method, device and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116430127A (en) * 2023-06-14 2023-07-14 云南电力试验研究院(集团)有限公司 Method for reducing lightning positioning ground flash error
CN116430127B (en) * 2023-06-14 2023-10-20 云南电力试验研究院(集团)有限公司 Method for reducing lightning positioning ground flash error
CN116500703A (en) * 2023-06-28 2023-07-28 成都信息工程大学 Thunderstorm monomer identification method and device
CN116500703B (en) * 2023-06-28 2023-09-01 成都信息工程大学 Thunderstorm monomer identification method and device
CN119224672A (en) * 2024-11-28 2024-12-31 南京信息工程大学 A lightning locator fault self-detection method, device and storage medium

Similar Documents

Publication Publication Date Title
CN106709946B (en) LiDAR point cloud-based automatic multi-split conductor extraction and fine modeling method
CN116008671A (en) Lightning positioning method based on time difference and clustering
CN109061774B (en) Thunderstorm core correlation processing method
CN108802674B (en) A joint search method and device for direct positioning
CN117874690B (en) Intelligent management method for geographic information mapping data
CN108520023A (en) A kind of identification of thunderstorm core and method for tracing based on Hybrid Clustering Algorithm
CN110263117B (en) Method and device for determining POI (Point of interest) data
CN107038717A (en) A kind of method that 3D point cloud registration error is automatically analyzed based on three-dimensional grid
CN107832335B (en) An Image Retrieval Method Based on Context Depth Semantic Information
CN111707279B (en) Matching evaluation method, medium, terminal and device for laser point cloud and map
CN112305559A (en) Power transmission line distance measuring method, device and system based on ground fixed-point laser radar scanning and electronic equipment
CN114245334B (en) Ultra-wideband indoor positioning algorithm integrating error-calculable map and gray wolf optimization
CN108562885B (en) High-voltage transmission line airborne LiDAR point cloud extraction method
CN108540988A (en) A kind of scene partitioning method and device
CN115390082B (en) A global positioning method and system based on virtual descriptor
CN113672788B (en) Urban building function classification method based on multi-source data and weight coefficient method
CN111290053A (en) Thunderstorm path prediction method based on Kalman filtering
CN113626437A (en) Method and system for rapidly inquiring mass vector data
CN111263295B (en) A WLAN indoor positioning method and device
CN111598941A (en) Method, device and equipment for measuring gradient of tower and storage medium
CN112782647B (en) Information-combined quadratic constraint least square radiation source positioning method
CN111488553B (en) Solar irradiance calculating method and device
CN116304991B (en) Multi-source heterogeneous species distribution data fusion method and device
CN109489636B (en) Real-time acquisition system and acquisition method for surveying and mapping operation
CN108924734B (en) Three-dimensional sensor node positioning method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination