A CSEM data processing method and device based on optimized clustering

By adaptively selecting the clustering bandwidth of the CSEM signal and using the local density gradient distribution characteristics to perform cluster analysis, it solves the problems in the existing technology that the subjective experience selection bandwidth is difficult to meet the optimal results of signal-to-noise separation and the low processing efficiency, and achieves More efficient signal processing and noise separation effects.

CN115016009BActive Publication Date: 2024-08-27湖南工商大学 +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210618933.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-01
Publication Date
2024-08-27
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

When the existing technology processes CSEM signals, the clustering bandwidth selected by subjective experience cannot meet the optimal results of signal-to-noise separation, and the processing efficiency is low. Especially in strong electromagnetic interference environments, it is difficult to effectively separate signals and noise.

Method used

By dividing the CSEM signal to be processed into equal-length segments, calculating the distance between each segmented signal and all segmented signals, forming a sample distance matrix, sorting and segmenting at equal distances, calculating the local density of the sample, and obtaining the density. The location that decreases fastest with distance is used as the bandwidth of mean shift clustering for cluster analysis, and the optimal bandwidth is adaptively selected.

Benefits of technology

It improves the effect and efficiency of CSEM signal processing, improves the signal-to-noise ratio, reduces the influence of human factors, is more adaptable, and can better separate signals and noise in complex noise environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115016009B
    Figure CN115016009B
Patent Text Reader

Abstract

The present application discloses a CSEM data processing method and device based on optimized clustering, the method comprising: segmenting the CSEM signal to be processed into equal-length segments; obtaining the position of each segmented signal after the equal-length segmentation, calculating the distance between each segmented signal and all segmented signals to form a sample distance matrix; sorting all samples in the distance matrix; segmenting the sorted distance matrix into equal distances, calculating the sample local density corresponding to each segmented distance matrix, and obtaining the density distribution between the sample local density and the distance; finding the position where the sample local density decreases fastest with distance; using the distance corresponding to the position where the sample local density decreases fastest as the bandwidth of the mean shift clustering for clustering analysis. The present application solves the problem that it is difficult to achieve the optimal result of CSEM signal-to-noise separation processing by selecting the clustering bandwidth based on subjective experience, and adaptively selects the optimal bandwidth for clustering analysis, thereby improving the CSEM signal processing effect and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electromagnetic exploration data processing, and in particular to a CSEM data processing method and device based on optimized clustering. Background Art

[0002] With the increasing frequency of human activities, the impact of electromagnetic noise has become more and more complex, especially in strong interference mining areas and urban areas with frequent human activities and their surrounding areas. Various large-scale non-periodic noises and power frequency and its harmonic interference make it more and more difficult to obtain high signal-to-noise ratio data for electromagnetic exploration. Although the controlled source electromagnetic method (CSEM) signal is relatively strong, it cannot obtain a high signal-to-noise ratio under the background of strong electromagnetic interference. Therefore, CSEM signal-to-noise separation has always been a research hotspot and one of the difficulties. The complexity of measured noise determines that a single denoising method cannot achieve good application effects for all noise types. In practical applications, statistical denoising methods are mainly used, such as Robust estimation, adaptive bidirectional threshold method, M estimation, and power spectrum screening. For non-periodic noise, its impact is staged. Segmenting the measured data can effectively reduce the impact of non-periodic noise, and then manually screening and eliminating the data that is greatly affected by noise to improve the overall data quality. The processing method of manual screening is greatly affected by the experience and subjective factors of the processing personnel, and the processing results vary from person to person. Summary of the invention

[0003] The embodiments of the present application provide a CSEM data processing method and device based on optimized clustering, so as to at least solve the problem that it is difficult to achieve the optimal CSEM signal-noise separation processing result by selecting clustering bandwidth based on subjective experience, and the processing efficiency is low.

[0004] According to one aspect of the present application, a CSEM data processing method based on optimized clustering is provided, comprising: segmenting the CSEM signal to be processed into equal-length segments; obtaining the position of each segmented signal after the equal-length segmentation, calculating the distance between each segmented signal and all segmented signals, and forming a sample distance matrix; sorting all samples in the distance matrix; segmenting the sorted distance matrix into equal-distance segments, calculating the sample local density corresponding to each segmented distance matrix, and obtaining the density distribution between the sample local density and the distance; obtaining the position where the sample local density decreases fastest with distance; and using the distance corresponding to the position where the sample local density decreases fastest as the bandwidth of mean shift clustering for clustering analysis.

[0005] According to another aspect of the present application, a CSEM data processing device based on optimized clustering is also provided, comprising a processor and / or a memory, wherein the memory is used to store software and the processor is used to run the software, wherein the software is used to execute the above method.

[0006] In the embodiment of the present application, the CSEM signal to be processed is segmented into equal-length segments; the position of each segmented signal after the equal-length segmentation is obtained, and the distance between each segmented signal and all segmented signals is calculated to form a sample distance matrix; all samples in the distance matrix are sorted; the sorted distance matrix is ​​segmented into equal-distance segments, and the local density of samples corresponding to each segmented distance matrix is ​​calculated to obtain the density distribution between the local density of the samples and the distance; the position where the local density of the samples decreases fastest with distance is obtained; the distance corresponding to the position where the local density of the samples decreases fastest is used as the bandwidth of the mean shift clustering for clustering analysis. This application solves the problem that it is difficult to achieve the optimal result of CSEM signal-to-noise separation processing by selecting clustering bandwidth based on subjective experience, and the processing efficiency is low. The optimal bandwidth is adaptively selected for clustering analysis, thereby improving the CSEM signal processing effect and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0008] Figure 1 is a flow chart of a CSEM data processing method according to an embodiment of the present application;

[0009] Figure 2 is a diagram of an optimized bandwidth estimation process based on a local density gradient according to an embodiment of the present application;

[0010] Figure 3 is a comparison diagram of the time domain waveform and the frequency domain curve of the analog signal before and after noise is added according to an embodiment of the present application;

[0011] Figure 4 is a distribution diagram of the segmented signal of some effective frequencies before and after noise addition in the frequency domain according to an embodiment of the present application;

[0012] Figure 5 It is a comparison diagram of frequency domain curves before and after cluster analysis of bandwidths corresponding to different Ratios according to an embodiment of the present application;

[0013] Figure 6 is a frequency domain distribution diagram of an analog signal before and after processing according to the method of an embodiment of the present application;

[0014] Figure 7is a frequency domain curve diagram of an analog signal before and after processing according to the method of an embodiment of the present application;

[0015] Figure 8 It is a flowchart of a CSEM data processing method based on optimized clustering according to an embodiment of the present application. DETAILED DESCRIPTION

[0016] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0017] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0018] Clustering is an unsupervised machine learning method, which is essentially a statistical data processing algorithm. In the actual environment, the impact of noise on the effective signal is random and complex, so the CSEM signal-noise separation research based on the clustering method is the content involved in this embodiment.

[0019] In this embodiment, a CSEM data processing method based on optimized clustering is provided, and the method comprises the following steps:

[0020] Step A: divide the CSEM signal to be processed into segments of equal time length.

[0021] Step B: obtaining the position of each segmented signal after being segmented with equal time length, calculating the distance between each segmented signal and all segmented signals, and forming a sample distance matrix.

[0022] In this step, there are many ways to obtain the position of each segmented signal. For example, each segmented signal can be subjected to a fast Fourier transform to obtain the frequency domain distribution of the effective frequency at different times; and the spatial position of each segmented signal in the complex plane can be obtained based on the real and imaginary parts of each segmented signal after the fast Fourier transform.

[0023] Among them, the following calculation method is more optimal: given an m-dimensional CSEM data space S = {s1, s2, ..., s m}, where any point s j =(s j1 ,s j2 …s ji …s jn ) T Represents a sample of a certain frequency, where m is the number of frequencies and n is the number of samples;

[0024] Calculate any point s j Any of the samples ji With other samples jk The Euclidean distance between two pairs is as follows:

[0025] d ik (s ji ,s jk )=||s ji -s jk ||2

[0026] The distance matrix between all samples of this frequency is as follows:

[0027] d j =(d 1,2 ,d 1,3 ,d 1,4 ,…,d 1,n ,d 2,3 ,d 2,4 ,…,d 2,n ,…,d i,i+1 ,d i,i+2 ,…d i,j ,…d i,n ,…d n-1,n ) T .

[0028] Step C: sorting all samples in the distance matrix.

[0029] In this step, the position Ratio of any sample in the distance matrix may also be defined, wherein the Ratio is the ratio of the number of samples between any sample in the distance matrix and the minimum distance sample to the number of all samples in the distance matrix.

[0030] Wherein, sorting all samples in the distance matrix and defining the position Ratio of any sample in the distance matrix may include:

[0031] The distance matrix d j Arrange the elements in the matrix from small to large to get the new matrix d′ j , the matrix d′ j The position of any sample in is represented by Ratio:

[0032]

[0033] Among them, num(d′0,d′ i ) represents the matrix d′ j Any sample d′ i The sample length between the minimum distance sample d′0; num(d′ j) represents the matrix d′ j The length of the data space S is obtained by obtaining the distance matrix corresponding to all frequencies:

[0034] d=(d′1,d′2,…,d′ j ,…,d′ m ).

[0035] Step D: divide the sorted distance matrix into equal distance segments, calculate the sample local density corresponding to each segmented distance matrix, and obtain the density distribution between the sample local density and the distance.

[0036] There are many ways to obtain density distribution. In an optional implementation, the following method can be used:

[0037] L = max(d′ j )-min(d′ j )

[0038] Where L is the matrix d′ j Length;

[0039] Divide L into equal-distance segments and calculate ΔL for each segment. i The corresponding sample local density δ i , i = 1, 2, ..., N, where N is the number of segments;

[0040]

[0041] In the formula, Indicates each small segment ΔL i The number of samples included.

[0042] Step E, find the location where the local density of the sample decreases fastest with distance.

[0043] Step F: performing cluster analysis by taking the distance corresponding to the position where the local density of the sample drops fastest as the bandwidth of the mean shift clustering.

[0044] In the above step E and step F, obtaining the position where the local density of the sample decreases fastest with distance, and using the distance corresponding to the position where the local density of the sample decreases fastest as the bandwidth of the mean shift clustering for cluster analysis may include:

[0045] δ(l)=a1l p +a2l p-1 +...+a p l+a p+1 ;

[0046]

[0047] h=distance{min(δ′(l))};

[0048] Where δ(l) is the local density distribution polynomial fitting function corresponding to the distance sample, P is the polynomial order, a1…a p+1 are polynomial coefficients; δ′(l) is the first-order derivative of the local density distribution function, h is the distance l corresponding to the minimum of δ′(l), and h is used as the bandwidth of the cluster;

[0049] The following formula is used for cluster analysis:

[0050]

[0051] In the formula, h is the bandwidth of the cluster, s i The sample point s j is any sample in the area with the center point h as the radius, and m is the area with the sample point s j is the number of samples in the area with the center point h as the radius, is the sample point s in the local area i The corresponding weight value, M(s j ) represents the sample point s j The corresponding local space offset vector.

[0052] The distance corresponding to the position where the density drops fastest is the optimal mean shift clustering bandwidth, and / or the selection of the optimal mean shift clustering bandwidth is obtained based on the distribution characteristics of the measured CSEM signal itself.

[0053] Through the above steps, the problem that the selection of clustering bandwidth based on subjective experience is difficult to meet the optimal CSEM signal-noise separation processing results and the processing efficiency is low is solved. Therefore, the optimal bandwidth is adaptively selected for clustering analysis, which improves the CSEM signal processing effect and efficiency.

[0054] As an optional implementation, after clustering analysis is performed using the distance corresponding to the position where the local density of the sample drops fastest as the bandwidth of the mean shift clustering, it can also include: selecting the time domain signal corresponding to the optimal cluster label from the cluster analysis result labels for superposition reconstruction, and extracting the corresponding effective frequency amplitude.

[0055] The following is a description of an optional embodiment. In this embodiment, a CSEM data processing method and device based on optimized clustering are provided. Figure 8 is a flow chart of CSEM data processing based on optimized clustering according to an embodiment of the present application, such as Figure 8 As shown, the process includes the following steps:

[0056] Step S101, dividing the CSEM signal to be processed into segments of equal time length and performing preprocessing.

[0057] 1) Assuming that the earth is a linear time-invariant system, the amplitude and phase of the CSEM signal will change after being filtered by the earth. When not subject to electromagnetic interference, the change of the signal will not change due to different acquisition times. Therefore, in the complex plane, the values ​​corresponding to the same measuring point, the same frequency, and different times are equal, and the data collected in multiple periods will be concentrated at one point; when interfered by non-periodic noise, its amplitude and phase will change. The data collected in different periods will have different changes in amplitude and phase due to the different types and intensities of interference, showing Gaussian distribution characteristics. The impact of non-periodic noise on the effective signal is random. Segmenting the CSEM signal can control the impact of noise within a smaller range and effectively reduce the impact of large-scale non-periodic noise. In the embodiment of the present application, the CSEM signal is segmented into equal-length segments with the minimum period.

[0058] 2) Perform fast Fourier transform on the segmented CSEM signal to obtain the frequency domain distribution of the effective frequency at different times.

[0059] Step S102, obtaining the position of each segmented signal according to the real part and the imaginary part of the preprocessed signal, calculating the distance between each segmented signal and all the segmented signals, and forming a sample distance matrix.

[0060] In this step, the real part and the imaginary part of the segmented signal in the complex plane are used as the position coordinates of the signal, and the distances between the segmented signals are calculated as the initial distance matrix for bandwidth selection.

[0061] Given an m-dimensional CSEM data space S = {s1, s2, ..., s m}, where any point s j =(s j1 ,s j2 …s ji …s jn ) T Represents a sample of a certain frequency, where m is the number of frequencies and n is the number of samples;

[0062] Calculate any point s j Any of the samples ji The Euclidean distances between each pair of samples are as follows:

[0063] d ik (s ji ,s jk )=||s ji -s jk ||2

[0064] The initial distance matrix between all samples of this frequency is obtained as follows:

[0065] d j =(d 1,2 ,d 1,3 ,d 1,4 ,…,d 1,n ,d 2,3 ,d 2,4 ,…,d 2,n ,…,d i,i+1 ,d i,i+2 ,…d i,j ,…d i,n ,…d n-1,n ) T .

[0066] Step S103, sorting all samples in the distance matrix, and defining the position Ratio of any sample in the matrix, wherein Ratio is the ratio of the number of samples between any sample in the matrix and the minimum distance sample to the number of all samples in the distance matrix.

[0067] The initial distance matrix d j Arrange from small to large to get the distance sample matrix d′ j The position of any distance sample in the sample matrix is ​​represented by Ratio. The size of Ratio reflects the discreteness of the distance sample distribution. The greater the noise influence, the more discrete the data distribution. Conversely, the smaller the noise influence, the more concentrated the data distribution.

[0068]

[0069] In the formula, num(d′0,d′ i ) represents the matrix d′ j Any sample d′ i The sample length between the minimum distance sample d′0; num(d′ j ) represents the matrix d′ j Length.

[0070] Through step S102 and step S103, the distance sample matrix corresponding to all frequencies is determined as follows: d = (d'1, d'2, ..., d' j ,…,d′ m ).

[0071] Step S104, dividing the distance matrix into equal distance segments, calculating the sample local density corresponding to each segmented distance matrix, and obtaining the density distribution between the sample local density and the distance.

[0072] In this step, the distance between the maximum distance and the minimum distance in the above matrix is ​​divided into equal distance segments, and the number of samples contained in each segment distance is calculated to form a distance density distribution.

[0073] For example, the distance matrix d′ corresponding to any frequency j , and its distribution range is as follows:

[0074] L = max(d′ j )-min(d′ j );

[0075] Where L is the matrix d′ j Length.

[0076] Divide L into equal-distance segments and calculate ΔL for each segment. i The corresponding sample local density δ i , i=1,2,…,N, where N is the number of segments.

[0077]

[0078] In the formula, Indicates each small segment ΔL i The length of the sample included.

[0079] Step S105, processing the density distribution function, calculating the position where the local density decreases fastest with distance, and obtaining the distance corresponding to the position where the density decreases fastest as the bandwidth of mean shift clustering for clustering analysis.

[0080] 1) The clustering bandwidth is obtained by the following calculation:

[0081] δ(l)=a1l p +a2l p-1 +...+a p l+a p+1 ;

[0082]

[0083] h=distance{min(δ′(l))};

[0084] Where δ(l) is the local density distribution polynomial fitting function corresponding to the distance sample, P is the polynomial order, a1…a p+1 are polynomial coefficients; δ′(l) is the first-order derivative of the local density distribution function, and h is the distance l corresponding to the minimum of δ′(l).

[0085] 2) Substitute the bandwidth determined above into the mean shift clustering algorithm for clustering analysis as follows:

[0086]

[0087] In the formula, h is the bandwidth of the cluster, s iThe sample point s j is any sample in the area with the center point h as the radius, and m is the area with the sample point s j is the number of samples in the area with the center point h as the radius, is the sample point s in the local area i The corresponding weight value, M(s j ) represents the sample point s j The corresponding local space offset vector.

[0088] Step S106, performing time domain superposition reconstruction on the cluster analysis results to extract effective frequency signals.

[0089] Through the above steps, the problem that the clustering bandwidth selection based on subjective experience in the mean shift clustering algorithm is difficult to meet the needs of CSEM signal-noise separation is solved, so the optimal bandwidth is adaptively selected for clustering analysis, which improves the CSEM signal processing effect and efficiency.

[0090] In the above method steps, the optimal bandwidth is adaptively obtained through the distribution characteristics of the CSEM signal itself, so as to overcome the difficulty of parameter setting based on human experience in meeting the needs of actual data processing, so as to improve the effect of CSEM signal processing. The above method steps can be understood as two major steps, wherein step 1 is to adaptively solve the cluster bandwidth based on the distribution characteristics of the CSEM signal itself, and step 2 is to perform cluster analysis using the cluster bandwidth obtained in step 1. The present embodiment is described below according to these two major steps.

[0091] Step 1: Adaptively solve the clustering bandwidth based on the distribution characteristics of the CSEM signal itself. Step 1 may include the following steps:

[0092] Step 1-1: Divide the CSEM signal to be processed into segments of equal length and perform preprocessing to obtain the frequency domain distribution of the effective frequency at different times.

[0093] Step 1-2: Calculate the distances between all segmented signals to form an initial sample distance matrix.

[0094] Given an m-dimensional CSEM data space S = {s1, s2, ..., s m}, where any point s j =(s j1 ,s j2 …s ji …s jn ) T Represents a sample of a certain frequency, where m is the number of frequencies and n is the number of samples;

[0095] Calculate any point s j Any of the samples jiThe Euclidean distances between each pair of samples are as follows:

[0096] d ik (s ji ,s jk )=||s ji -s jk ||2

[0097] The initial distance matrix between all samples of this frequency is obtained as follows:

[0098] d j =(d 1,2 ,d 1,3 ,d 1,4 ,…,d 1,n, d 2,3 ,d 2,4 ,…,d 2,n ,…,d i,i+1 ,d i,i+2 ,…d i,j ,…d i,n ,…d n-1,n ) T

[0099] Step 1-3: Process the initial distance matrix to obtain the density distribution between the local density of the sample and the distance.

[0100] The initial distance matrix d j Arrange from small to large to get the distance sample matrix d′ j The position of any distance sample in the sample matrix is ​​represented by Ratio. The size of Ratio reflects the discreteness of the distance sample distribution. The greater the noise influence, the more discrete the data distribution. Conversely, the smaller the noise influence, the more concentrated the data distribution.

[0101]

[0102] In the formula, num(d′0,d′ i ) represents the matrix d′ j Any sample d′ i The sample length between the minimum distance sample d′0; num(d′ j ) represents the matrix d′ j Length.

[0103] The above matrix d′ j The distance between the maximum distance and the minimum distance is divided into equal distance segments, and the number of samples contained in each segment distance is calculated to form a distance density distribution.

[0104] L = max(d′ j )-min(d′ j )

[0105] Where L is the matrix d′ j Length.

[0106] Divide L into equal-distance segments and calculate ΔL for each segment. i The corresponding sample local density δ i , i=1,2,…,N, where N is the number of segments.

[0107]

[0108] In the formula, Indicates each small segment ΔL i The length of the sample included.

[0109] Step 1-4: Process the above density distribution function, calculate the position where the local density decreases fastest with distance, and obtain the optimal clustering bandwidth.

[0110] δ(l)=a1l p +a2l p-1 +...+a p l+a p+1 ;

[0111]

[0112] h=distance{min(δ′(l))};

[0113] Where δ(l) is the local density distribution polynomial fitting function corresponding to the distance sample, p is the polynomial order, a1…a p+1 are polynomial coefficients; δ′(l) is the first-order derivative of the local density distribution function, and h is the distance l corresponding to the minimum of δ′(l).

[0114] Step 2: Perform cluster analysis using the cluster bandwidth obtained in step 1. Step 2 may include the following steps:

[0115] Step 2-1: Initialize the cluster center and calculate the offset mean vector in the spherical data area with the radius h obtained in step 1;

[0116]

[0117] In the formula, h is the bandwidth of the cluster, s i The sample point s j is any sample in the area with the center point h as the radius, and m is the area with the sample point s j is the number of samples in the area with the center point h as the radius, is the sample point s in the local area i The corresponding weight value, M(sj ) represents the sample point s j The corresponding local space offset vector.

[0118] Step 2-2: Update the center point;

[0119] M(s j ) The end point of the vector is taken as the new center of the circle, and the data space is reconstructed to calculate the new mean vector. The center of the circle s j+1 From the jth circle center s j Move to the end point of the j-th mean vector, and the moving distance is the modulus of the offset vector.

[0120] s j+1 =M(s j )+s j ;

[0121] Step 2-3: Repeat steps 2-1 and 2-2 until the modulus of the offset mean vector meets the set threshold or remains unchanged;

[0122] Step 2-4: Sample point classification. Classify the sample points according to the number of visits to each sample point by each classification class, and finally output the classification cluster C = {C1, C2, ..., C k}, it should be noted that the k value at this time is determined during the clustering process based on the distribution of sample data and the selected bandwidth, and is not preset in advance.

[0123] Step 3: According to the cluster partition obtained in step 2, C = {C1, C2, ..., C k} and s j =(s j1 ,s j2 …s ji …s jn ) T Reconstruct the time domain signal and extract the effective frequency signal.

[0124] The following is combined with Figure 1 This embodiment is described. Figure 1 is a flow chart of a CSEM data processing method according to an embodiment of the present application, such as Figure 1 As shown, this embodiment discloses a CSEM data processing method and device, comprising the following steps:

[0125] Step S1: Divide the CSEM signal to be processed into segments of equal length and perform preprocessing to obtain the frequency domain distribution of effective frequencies at different times.

[0126] Step S2: Calculate the distances between all segmented signals to form an initial sample distance matrix.

[0127] Step S3: Processing the initial distance matrix to obtain the density distribution between the local density of the sample and the distance.

[0128] Step S4: Process the above density distribution function, calculate the position where the local density decreases fastest with distance, and obtain the optimal clustering bandwidth.

[0129] Step S5: Perform cluster analysis using the cluster bandwidth obtained in step S4.

[0130] Step S6: According to the cluster partition obtained in step S5, C = {C1, C2, ..., C k} and the sample distribution s in step 1-1 j =(s j1 ,s j2 …s ji …s jn ) T Reconstruct the time domain signal and extract the effective frequency signal.

[0131] Among them, the initial distance matrix in step S2 is calculated as follows:

[0132] Given an m-dimensional CSEM data space S = {s1, s2, ..., s m}, where any point s j =(s j1 ,s j2 …s ji …s jn ) T Represents a sample of a certain frequency, where m is the number of frequencies and n is the number of samples;

[0133] Calculate any point s j Any of the samples ji The Euclidean distances between each pair of samples are as follows:

[0134] d ik (s ji ,s jk )=||s ji -s jk ||2

[0135] The initial distance matrix between all samples of this frequency is obtained as follows:

[0136] d j =(d 1,2 ,d 1,3 ,d 1,4 ,…,d 1,n ,d 2,3 ,d 2,4 ,…,d 2,n ,…,d i,i+1 ,di,i+2 ,…d i,j ,…d i,n ,…d n-1,n ) T .

[0137] The process of obtaining the density distribution between the local density of the sample and the distance in step S3 is as follows:

[0138] The initial distance matrix d j Arrange from small to large to get the distance sample matrix d′ j The position of any distance sample in the sample matrix is ​​represented by Ratio. The size of Ratio reflects the discreteness of the distance sample distribution. The greater the noise influence, the more discrete the data distribution. Conversely, the smaller the noise influence, the more concentrated the data distribution.

[0139]

[0140] In the formula, num(d′0,d′ i ) represents the matrix d′ j Any sample d′ i The sample length between the minimum distance sample d′0; num(d′ j ) represents the matrix d′ j Length.

[0141] The above matrix d′ j The distance between the maximum distance and the minimum distance is divided into equal distance segments, and the number of samples contained in each segment distance is calculated to form a distance density distribution.

[0142] L = max(d′ j )-min(d′ j );

[0143] Where L is the matrix d′ j Length.

[0144] Divide L into equal-distance segments and calculate ΔL for each segment. i The corresponding sample local density δ i , i=1,2,…,N, where N is the number of segments.

[0145]

[0146] In the formula, Indicates each small segment ΔL i The length of the sample included.

[0147] In step S4, the process of obtaining the optimal clustering bandwidth is as follows:

[0148] δ(l)=a1lp +a2l p-1 +...+a p l+a p+1

[0149]

[0150] h = distance{min(δ′(l))}

[0151] Where δ(l) is the local density distribution polynomial fitting function corresponding to the distance sample, P is the polynomial order, a1…a p+1 are polynomial coefficients; δ′(l) is the first-order derivative of the local density distribution function, and h is the distance l corresponding to the minimum value of δ′(l).

[0152] The cluster analysis process in step S5 is as follows:

[0153] 1) Initialize the cluster center and calculate the offset mean vector in the spherical data area with the radius h obtained in step 1-4;

[0154]

[0155] In the formula, h is the bandwidth of the cluster, s i The sample point s j is any sample in the area with the center point h as the radius, and m is the area with the sample point s j is the number of samples in the area with the center point h as the radius, is the sample point s in the local area i The corresponding weight value, M(s j ) represents the sample point s j The corresponding local space offset vector.

[0156] 2) Update the center point;

[0157] M(s j ) takes the end point of the vector as the new center of the circle, reconstructs the data space and calculates the new mean vector. The center of the circle s j+1 From the jth circle center s j Move to the end point of the j-th mean vector, and the moving distance is the modulus of the offset vector.

[0158] s j+1 =M(s j )+s j

[0159] 3) Repeat steps 1) and 2) until the modulus of the offset mean vector meets the set threshold or remains unchanged;

[0160] 4) Sample point classification. The sample points are classified according to the number of visits to each sample point by each classification class, and the final output is the classification cluster C = {C1, C2, ..., C k}, it should be noted that the k value at this time is determined during the clustering process based on the distribution of sample data and the selected bandwidth, and is not preset in advance.

[0161] Combine the following Figure 2 right Figure 1 The above method is described in .

[0162] In the above method, the CSEM signal to be processed is preprocessed to obtain the frequency domain distribution of the effective frequency; wherein the CSEM signal to be processed is segmented into equal time segments to obtain the frequency domain distribution of the effective frequency at different times. Figure 2 -(a) is the frequency domain distribution of effective frequency.

[0163] Calculate the sample initial distance matrix; wherein, calculate the distance between all segmented signals to form the sample initial distance matrix.

[0164] The initial distance matrix is ​​processed to obtain the distance density distribution; wherein the initial distance matrix obtained in step 2 is arranged from small to large to obtain the distance distribution of all samples. In this embodiment, Figure 2 -(b) is the distance distribution of all samples. The processed distance matrix is ​​segmented with equal distances, and the number of samples contained in each segment distance is calculated to form a distance density distribution. In this embodiment, Figure 2 -(c) is the distance density distribution corresponding to the effective frequency.

[0165] A polynomial fitting is performed on the distance density distribution to solve the local density gradient function. When a polynomial fitting is performed on the distance density distribution, different orders p are selected according to different sample distributions. In this embodiment, Figure 2 -(d) is the local density distribution curve. The local density function after processing is derived to obtain the local density gradient function. In this embodiment, Figure 2 -(e) is the local density gradient curve. The distance corresponding to its minimum value is used as the bandwidth of the cluster.

[0166] The distance corresponding to the minimum value obtained in the above steps is used as the bandwidth of the cluster for cluster analysis. In this embodiment, Figure 2 -(f) is the clustering result corresponding to the effective frequency. The black circle is the cluster distribution finally selected by clustering.

[0167] In order to verify the effectiveness of the effect of this embodiment, a group of simulation signals are used to compare the processing results. The simulation signal contains 7 effective frequencies: 1Hz, 2Hz, 4Hz, 8Hz, 16Hz, 32Hz and 64Hz, the signal length is 100s, and the sampling rate is 4096Hz. In this embodiment, Figure 3 Comparison of the time domain waveform and frequency domain curve before and after adding noise to the analog signal.

[0168] The frequency domain distribution of the effective frequency is obtained by segmenting the analog signal with equal time length and preprocessing. In this embodiment, the analog signal is segmented with a minimum cycle length of 1s. Figure 4 It is the distribution of the segmented signal of some effective frequencies before and after adding noise in the frequency domain.

[0169] In order to verify the processing effect of the CSEM data processing method based on optimized clustering in this embodiment, the processing effects of different Ratios are compared with the processing effect of the optimized clustering algorithm in this embodiment, and the processing effect of the optimization algorithm in this embodiment is comprehensively evaluated by the mean square error before and after processing.

[0170] Table 1 Bandwidth of different frequencies corresponding to different ratios

[0171] Ratio 1Hz 2Hz 4Hz 8Hz 16Hz 32Hz 64Hz 0.7 117.6153 74.8092 53.8074 19.3465 17.0485 8.6968 4.7768 0.5 10.4857 4.9429 3.4339 3.0232 3.3370 2.6287 1.7305 0.3 1.1586 1.0243 0.9676 0.9776 0.9107 0.8744 0.8347

[0172] Table 2 Estimated bandwidth of the optimization algorithm in this embodiment

[0173] 1Hz 2Hz 4Hz 8Hz 16Hz 32Hz 64Hz Bandwidth 0.4777 0.3108 0.3790 0.3911 0.4232 0.3003 0.4835

[0174] Table 1 shows the clustering bandwidth corresponding to different frequencies of simulated noisy signals at different Ratios. Figure 5 For the comparison of frequency domain curves after clustering by bandwidth shown in Table 1, Figure 5 It can be seen that as the Ratio decreases, the mean square error between the processing result and the true value becomes smaller, and the frequency domain curve before and after processing has a higher degree of fit. Table 3 shows the mean square error before and after processing with different Ratios. As can be seen from Table 3, different Ratios have different processing effects, indicating that the effect of adjusting parameters based on subjective experience is very different and inefficient.

[0175] Table 3 Mean square error before and after different Ratio processing

[0176] Ratio 0.7 0.6 0.5 0.4 0.3 MSE 6.7882 0.63683 0.072261 0.025939 0.020421

[0177] The bandwidth estimated by the optimization algorithm in this embodiment is used for cluster analysis to obtain the frequency domain distribution before and after processing and the frequency domain curve comparison diagram, such as Figure 6 and Figure 7As shown in the figure, it can be seen that the frequency domain curve after processing is highly consistent with the frequency domain curve before adding noise, and the MSE after processing is 0.0042371, which shows that the optimization algorithm of this embodiment improves the shortcomings of large differences in processing effects and low efficiency of parameter adjustment based on subjective experience, realizes adaptive bandwidth selection, and improves processing effect and processing efficiency.

[0178] In the above embodiment, an adaptive optimization bandwidth selection mean shift optimization algorithm is proposed by using the distribution characteristics of the CSEM signal itself, and the effective frequency signal is obtained by reconstructing the cluster analysis results and the CSEM signal. This method combines the different distribution characteristics of the signal after being affected by noise to analyze and propose an adaptive bandwidth estimation algorithm based on local density gradient, which improves the shortcomings of large processing effect differences and low efficiency caused by cluster analysis based on subjective experience to adjust parameters, realizes bandwidth selection adaptation, improves processing effect and processing efficiency, reduces the impact of strong electromagnetic interference on CSEM signals, and improves the signal-to-noise ratio, which has certain practical value and innovation.

[0179] The adaptive bandwidth estimation algorithm based on local density gradient in the above embodiment calculates the distance between segmented signals and uses the distribution characteristics of the distance between samples to calculate the local density of the samples. The local density gradient of the samples is obtained in combination with the local density distribution characteristics, and the distribution range of most samples is obtained. The data samples that are less affected by electromagnetic interference are retained to the maximum extent for reconstruction, thereby improving the signal-to-noise ratio and providing a basis for subsequent inversion interpretation of CSEM.

[0180] In this embodiment, an electronic device is provided, including a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to execute the method in the above embodiment.

[0181] The above program can be run in the processor, or it can be stored in the memory (or computer-readable medium), which includes permanent and non-permanent, removable and non-removable media. Information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0182] These computer programs can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in one or more blocks can be implemented by different modules corresponding to different steps.

[0183] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A CSEM data processing method based on optimized clustering, characterized in that: include: Divide the CSEM signal to be processed into segments of equal time length; Obtain the position of each segmented signal after segmentation of equal length, calculate the distance between each segmented signal and all segmented signals, and form a sample distance matrix; Sorting all samples in the distance matrix; Divide the sorted distance matrix into equal distance segments, calculate the sample local density corresponding to each segmented distance matrix, and obtain the density distribution between the sample local density and the distance; Obtaining the position where the local density of the sample decreases fastest with distance; using the distance corresponding to the position where the local density of the sample decreases fastest as the bandwidth of the mean shift clustering for cluster analysis; wherein obtaining the position where the local density of the sample decreases fastest with distance, using the distance corresponding to the position where the local density of the sample decreases fastest as the bandwidth of the mean shift clustering for cluster analysis includes: δ(l)=a1l p +a2l p-1 +...+a p l+a p+1 ; h=distance{min(δ′(l))}; Where δ(l) is the local density distribution polynomial fitting function corresponding to the samples in the distance matrix, p is the polynomial order, a1…a p+1 are polynomial coefficients; δ′(l) is the first-order derivative of the local density distribution function, h is the distance l corresponding to the minimum of δ′(l), and h is used as the bandwidth of the cluster; The following formula is used for cluster analysis: In the formula, h is the bandwidth of the cluster, s i The sample point s j is any sample in the area with the center point h as the radius, and m is the area with the sample point s j is the number of samples in the area with the center point h as the radius, is the sample point s in the local area i The corresponding weight value, M(s j ) represents the sample point s j The corresponding local space offset vector.

2. The method according to claim 1, characterized in that The location of each segment signal after equal-length segmentation is obtained includes: Perform fast Fourier transform on each segment signal to obtain the effective Frequency distribution in the frequency domain at different times; The spatial position of each segmented signal in the complex plane is obtained according to the real part and the imaginary part of each segmented signal after fast Fourier transformation.

3. The method according to claim 1, characterized in that Taking the position of each segmented signal after equal-length segmentation, calculating the distance between each segmented signal and all segmented signals, and forming a sample distance matrix includes: Given an m-dimensional CSEM data space S = {s1, s2, ..., s m }, where any point s j =(s j1 ,s j2 …s ji …s jn ) T Represents a sample of a certain frequency, where m is the number of frequencies and n is Number of samples; Calculate any point s j Any of the samples ji With other samples jk The Euclidean distance between two pairs is as follows: d ik (s ji ,s jk )=‖s ji -s jk ‖2 The distance matrix between all samples of this frequency is as follows: d j =(d 1,2 ,d 1,3 ,d 1,4 ,…,d 1,n ,d 2,3 ,d 2,4 ,…,d 2,n ,…,d i,i+1 ,d i,i+2 ,…d i,j ,…d i,n ,…d n-1,n ) T 。 4. The method according to claim 1, characterized in that: Sorting all samples in the distance matrix includes: Sorting all samples in the distance matrix and defining the position Ratio of any sample in the distance matrix, wherein the Ratio is the ratio of the number of samples between any sample in the distance matrix and the minimum distance sample to the number of all samples in the distance matrix; wherein, sorting all samples in the distance matrix and defining the position Ratio of any sample in the distance matrix includes: The distance matrix d j Arrange the elements in from small to large to get the new matrix d j ′, the matrix d j The position of any sample in ′ is represented by Ratio: Among them, num(d0′,d i ′) represents the matrix d j Any sample d in ′ i ′ to the sample length between the minimum distance sample d0′; num(d j ′) represents the matrix d j ′, and get the distance space The distance matrix corresponding to all frequencies in S: d=(d1′,d2′,…,d j ′,…,d m ′)。 5. The method according to claim 1, characterized in that The sorted distance matrix is ​​segmented with equal distances, and the local density of samples corresponding to each segmented distance matrix is ​​calculated to obtain the density distribution between the local density of samples and the distance, which includes: L=max(d j ′)-min(d j ′) Where L is the matrix d j ' length; Divide L into equal-distance segments and calculate ΔL for each segment. i The corresponding sample local density δ i , i = 1, 2, ..., N, where N is the number of segments; In the formula, Indicates each small segment ΔL i The length of the sample included.

6. The method according to claim 1, characterized in that The distance corresponding to the position where the density drops fastest is the optimal mean shift clustering bandwidth.

7. The method according to claim 1, characterized in that The selection of the optimal mean shift clustering bandwidth is based on the distribution characteristics of the measured CSEM signal itself.

8. The method according to any one of claims 1 to 7, characterized in that After performing cluster analysis by taking the distance corresponding to the position where the local density of the sample decreases fastest as the bandwidth of the mean shift clustering, the method further includes: The time domain signal corresponding to the optimal cluster label is selected from the cluster analysis result labels for superposition reconstruction, and the corresponding effective frequency amplitude is extracted.

9. A CSEM data processing device based on optimized clustering, comprising a processor and / or a memory, wherein the memory is used to store software and the processor is used to run the software, wherein: The software is used to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Characteristic vector group's best selected spectrum clustering method based on density self-adaptation

    CN107239788A

  • Method For Electromagnetic Prospecting Waveform Design

    US20110087435A1

  • Deep unsupervised learning approach , device and storage medium for airspace complexity evaluation

    US20210174262A1

  • Dynamic clustering of sparse data utilizing hash partitions

    US20210326361A1