A method for extracting and identifying a borehole core image

By combining deep reinforcement learning and environmental perception parameter acquisition networks with frequency domain phase consistency response and geological prior logic, the problem of unstable boundary extraction of borehole core images was solved, achieving high-precision and continuous boundary recognition.

CN123181985APending Publication Date: 2026-11-27IANGSU COLLEGE OF ENG & TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611401585.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing image extraction techniques are easily affected by factors such as uneven illumination on the core surface, drilling marks, fracture textures, mineral patches, mud residues, and imaging noise in borehole core image scenarios. This leads to an increase in edge candidate locations, making it difficult to distinguish between real strata interfaces and non-geological textures. Boundary extraction is unstable, especially when there are changes in lithological structure, resulting in offsets, breaks, or incorrect connections.

Method used

A deep reinforcement learning strategy network combined with an environment perception parameter acquisition network is adopted. The geological prior edge-finding logic is obtained by weighting the phase gradient energy of the external image and the curvature smoothness of the internal spline curve. The initial boundary discrete control point set is determined by using the frequency domain phase consistency response map and the coarse boundary probability map. The weights are dynamically adjusted by combining the texture variance and fractal dimension values. The final converged control point coordinate matrix is ​​obtained iteratively and the boundary fitting process is performed.

Benefits of technology

It improves the accuracy and continuity of borehole core image boundary positioning, reduces the impact of noise and lithological changes on the recognition results, and realizes stable, continuous and spatially oriented quantized stratigraphic unconformity boundary lines in complex core texture environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181985A_ABST
    Figure CN123181985A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of image extraction, in particular to a drilling core image extraction and identification method, comprising the following steps: S1, pre-training a deep reinforcement learning strategy network according to an expert demonstration trajectory set to obtain a geological prior edge searching logic; taking a weighted sum of an external image phase gradient energy and an internal spline curve curvature smoothness as a reward function, and obtaining a weight coefficient of the weighted sum from an environment perception parameter acquisition network output. The present application obtains a convergent control point coordinate matrix through cyclic iteration and performs boundary fitting processing, can convert discrete edge searching results into a continuous, smooth and clear spatial trend formation unconformity vectorization boundary line, thereby improving the boundary positioning accuracy, boundary continuity, local turning adaptability and result stability in a complex core texture environment, and reducing the influence of manual delineation difference on the consistency of the identification result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image extraction technology, and in particular to a method for extracting and recognizing borehole core images. Background Technology

[0002] Image extraction technology involves identifying, separating, and obtaining target-meaning regions, contours, edges, textures, or structural information from raw digital images. Its processing objects are usually two-dimensional image data composed of pixel arrays. By analyzing information such as pixel grayscale, color distribution, local texture, edge gradient, frequency domain response, spatial position relationship, and regional continuity, target features can be extracted from complex image backgrounds.

[0003] Existing image extraction techniques typically extract target regions or contours based on information such as pixel grayscale, color distribution, local texture, edge gradient, frequency domain response, and regional continuity. However, in borehole core image scenarios, the actual process is easily affected by factors such as uneven illumination on the core surface, drilling marks, fracture textures, mineral patches, mud residue, and imaging noise. Sudden changes in local grayscale or texture may simultaneously produce significant responses with the actual stratigraphic boundaries, leading to an increase in the number of edge candidate locations and making it difficult to maintain a stable distinction between the actual stratigraphic interface and non-geological textures. In existing processing, various image features are usually used for boundary extraction according to relatively fixed judgment scales. When the local lithology changes from a homogeneous structure to a fractured structure, or when the stratigraphic interface changes from a clear abrupt change to a gradual transition, the same judgment scale can easily lead to boundary shifts, local interruptions, or incorrect connections. For example, when there are fractures on the core surface close to the stratigraphic boundary direction, the edge response may extend continuously along the fracture direction, causing the extracted contour to deviate from the actual stratigraphic interface. Conversely, when the local texture change in the core is weak, insufficient response may cause boundary breakage. Therefore, improvements are needed. Summary of the Invention

[0004] The purpose of this invention is to overcome the shortcomings of existing technologies and propose a method for extracting and recognizing borehole core images.

[0005] To achieve the above objectives, the present invention adopts the following technical solution: a method for extracting and recognizing borehole core images, comprising the following steps:

[0006] S1. The deep reinforcement learning policy network is pre-trained based on the expert demonstration trajectory set to obtain the geological prior edge-finding logic; the weighted sum of the phase gradient energy of the external image and the curvature smoothness of the internal spline curve is used as the reward function, and the weight coefficients of the weighted sum of the output of the environmental perception parameter acquisition network are obtained by joint training to obtain the converged environmental perception parameter acquisition network and the deep reinforcement learning policy network.

[0007] S2, acquire the borehole core image to be processed, perform feature extraction on the borehole core image to obtain the frequency domain phase consistency response map and the coarse boundary probability map, and obtain the initial boundary discrete control point set based on the frequency domain phase consistency response map and the coarse boundary probability map;

[0008] S3, for the current control point in the initial boundary discrete control point set, a local observation window is extracted on the frequency domain phase consistency response map, and the frequency domain energy amplitude matrix in the local observation window is spliced ​​with the two-dimensional spatial coordinate position offset of the current control point to construct the spatial state tensor;

[0009] S4, extract the texture variance and fractal dimension values ​​corresponding to the current control point in the borehole core image to be processed, input the texture variance and fractal dimension values ​​into the environment perception parameter acquisition network, and output the local environment adaptive weight coefficients containing the internal curvature smoothness weight and the external image phase gradient weight.

[0010] S5 inputs the spatial state tensor and local environment adaptive weight coefficients into the deep reinforcement learning policy network to obtain the iterative displacement increment. The iterative displacement increment is accumulated into the spatial coordinate matrix of the current control point. The process is repeated to obtain the final converged control point coordinate matrix. The final converged control point coordinate matrix is ​​then subjected to boundary fitting processing to output the quantized unconformity boundary line.

[0011] Preferably, the steps for acquiring the environment perception parameter acquisition network and the deep reinforcement learning policy network are as follows:

[0012] We collected control point movement sequences formed by senior geological experts when manually delineating stratigraphic boundaries based on historical core images. According to the boundary delineation process corresponding to a single historical core image, we recorded the initial coordinates of the control points, the coordinates of the control points after continuous movement, the order of coordinate changes of adjacent control points, and the termination position of the boundary movement. We arranged the control points in the same delineation process according to the actual movement sequence. We saved the control point movement sequences corresponding to different historical core images separately. We removed control point movement sequences that were missing in order, whose coordinate positions were outside the range of the historical core image, or that could not form a continuous boundary direction. We organized the retained control point movement sequences according to a unified coordinate representation form to obtain an expert demonstration trajectory set.

[0013] The deep reinforcement learning strategy network continuously outputs two-dimensional movement actions of control points according to the current environment observation, and forms the walking trajectory acquired by the agent according to the action execution order. The walking trajectory acquired by the agent and the expert demonstration trajectory set are respectively input into the discriminator. The changes in the movement direction of control points, the changes in the increment of adjacent displacements, the changes in the local boundary contact position, and the continuous walking order in each walking trajectory are extracted. The discriminator outputs the discrimination result of the expert demonstration trajectory corresponding to each walking trajectory. The action output parameters of the deep reinforcement learning strategy network are adjusted in reverse according to the discrimination result, so that the walking trajectory acquired by the agent approaches the movement law of control points in the expert demonstration trajectory set round by round. The trajectory acquisition, trajectory discrimination and parameter adjustment are continuously executed until the change of the discrimination result in the continuous training rounds is lower than the preset convergence threshold, and the geological prior edge finding logic is obtained.

[0014] Based on the aforementioned geological prior edge-finding logic, after the adversarial pre-training reaches convergence, the deep reinforcement learning policy network continues to output the two-dimensional movement action of the control point. The phase gradient energy of the external image corresponding to the movement position of the control point and the curvature smoothness of the internal spline curve formed by the continuous movement of the control point are calculated respectively. The texture variance and fractal dimension values ​​of the current local image are input into the environment perception parameter acquisition network, which outputs the weight coefficients for the phase gradient energy of the external image and the weight coefficients for the curvature smoothness of the internal spline curve. The phase gradient energy of the external image and the curvature smoothness of the internal spline curve are weighted and summarized according to the two weight coefficients. The advantage change corresponding to each two-dimensional movement action of the control point is calculated based on the weighted summation result. The ratio of the probability of the current policy action to the probability of the policy action before the update is compared and the ratio is limited to a preset truncation interval. Accordingly, the parameters of the deep reinforcement learning policy network and the parameters of the environment perception parameter acquisition network are adjusted synchronously. The weight output, action update and parameter adjustment are executed iteratively until the policy output change and weight output change in consecutive training rounds are both lower than the corresponding convergence threshold.

[0015] Preferably, the step of obtaining the frequency domain phase consistency response map is as follows:

[0016] A core image of the borehole to be processed is acquired. The gray values ​​of each pixel position in the core image are read and arranged into a pixel array according to row and column coordinates. The pixel array is transformed from the spatial coordinate domain to the frequency coordinate domain. The amplitude response and phase response of each frequency position are extracted according to the preset scale sequence and direction sequence. The amplitude responses of different scales corresponding to the same pixel position are accumulated, and the cosine difference of the phase response of different directions relative to the local reference phase is calculated. The phase consistency response intensity of each pixel position is determined based on the local amplitude accumulation and the cosine difference of the phase deviation. All phase consistency response intensities are rearranged according to the original pixel coordinates to obtain the frequency domain phase consistency response map.

[0017] Preferably, the steps for obtaining the initial boundary discrete control point set are as follows:

[0018] The process involves acquiring the core image of the borehole to be processed, sequentially reading the grayscale differences of each pixel position and adjacent pixel positions according to a preset convolutional layer, passing the local pixel weighting result layer by layer and performing bias stacking, nonlinear mapping and spatial scale compression, and then restoring the final output to the original pixel coordinate range of the core image of the borehole to be processed. For each pixel position, the probability value corresponding to the formation boundary is output, and all probability values ​​are arranged according to the horizontal coordinate and vertical coordinate of the pixel, so that each probability value corresponds to the unique pixel position in the core image of the borehole to be processed, thereby obtaining a rough boundary probability map.

[0019] Based on the frequency domain phase consistency response map and the coarse boundary probability map, the phase consistency response intensity and boundary probability value are read point by point according to the same pixel coordinates. The response intensity of the center pixel and the adjacent pixels are compared along the local response change direction of each pixel position. Only the maximum position in the local response sequence is retained. The boundary probability value corresponding to the retained position is used to extract the local extreme value according to the numerical distribution and determine the adaptive extreme value threshold. Local extreme positions below the adaptive extreme value threshold are screened out. The pixel horizontal coordinate and pixel vertical coordinate of the remaining local extreme positions are recorded. The edge peak coordinate position point sequence is arranged according to the spatial adjacent order to obtain the initial boundary discrete control point set.

[0020] Preferably, the step of obtaining the local observation window is as follows:

[0021] For the current control point in the initial boundary discrete control point set, read the horizontal and vertical pixel coordinates of the current control point in the frequency domain phase consistency response map. Use the corresponding positions of the horizontal and vertical pixel coordinates as the window center, determine the left and right truncation boundaries according to the preset horizontal window size, and determine the upper and lower truncation boundaries according to the preset vertical window size. Limit the truncation positions that exceed the boundaries of the frequency domain phase consistency response map according to the boundary pixel positions. Retain the phase consistency response intensity of each pixel position within the coverage area of ​​the truncation boundaries according to the original spatial arrangement order to obtain a local observation window.

[0022] Preferably, the step of obtaining the spatial state tensor is as follows:

[0023] According to the horizontal and vertical arrangement order of each pixel position within the local observation window, the energy amplitude of the corresponding frequency response is read point by point. The energy amplitude corresponding to the same horizontal and vertical position is written into the corresponding matrix element, keeping the matrix row and column index and the pixel coordinates of the local observation window in a one-to-one correspondence, forming a frequency domain energy amplitude matrix. At the same time, the horizontal and vertical pixel coordinates of the current control point are read. Using the center position of the local observation window as the coordinate reference, the horizontal coordinate difference and vertical coordinate difference of the current control point relative to the coordinate reference are calculated respectively, to obtain the frequency domain energy amplitude matrix and the two-dimensional spatial coordinate position offset.

[0024] According to the row and column indices of the frequency domain energy amplitude matrix, the original spatial correspondence of each energy amplitude is maintained. The two-dimensional spatial coordinate position offset is mapped to the horizontal position feature channel and the vertical position feature channel respectively. The horizontal position feature channel and the vertical position feature channel are expanded to the spatial size corresponding to the frequency domain energy amplitude matrix. The frequency domain energy amplitude, horizontal position offset feature and vertical position offset feature are stitched together position by position according to the same horizontal index and vertical index, so that each spatial position retains both local physical structure response features and spatial geometric position features. All stitching results are arranged in a unified channel order to obtain the spatial state tensor.

[0025] Preferably, the step of obtaining the local environment adaptive weight coefficients is as follows:

[0026] Using the horizontal and vertical pixel coordinates of the current control point as the center position, a local image window is cropped in the borehole core image to be processed according to a preset horizontal and vertical range. The gray value in the local image window is read pixel by pixel, the average value of all gray values ​​is calculated, the square of the difference between each gray value and the average value is calculated and accumulated and averaged, and the texture variance reflecting the local gray dispersion is extracted. At the same time, the local image window is divided according to multiple progressive spatial scales, and the number of grids required to cover the effective texture structure at each spatial scale is counted. The scale change of the texture structure is determined according to the change in spatial scale and the change in the number of grids, and the texture variance and fractal dimension values ​​are obtained.

[0027] The texture variance is placed in the first feature position and the fractal dimension value is placed in the second feature position according to a fixed input order. The values ​​corresponding to the two feature positions are input into the environment perception parameter acquisition network. The parameter matrix corresponding to the first layer connection position is called to perform multiplication and accumulation on the texture variance and the fractal dimension value respectively. Then, the corresponding bias parameters are superimposed to form the first layer projection result. Nonlinear numerical mapping is performed on the first layer projection result element by element. The mapping result is passed to the next layer connection position. Multiplication and accumulation, bias superposition and nonlinear numerical mapping are repeatedly performed according to the parameter matrix order of each layer until all operations of the preset level are completed, and the multi-layer linear projection and nonlinear activation operation results are obtained.

[0028] Based on the results of the multi-layer linear projection and nonlinear activation operation, the activation values ​​corresponding to each feature position in the last layer are read, and the activation values ​​of the last layer are passed to two independent output positions respectively. The activation values ​​of the last layer are weighted and summarized according to the regression parameters corresponding to the two output positions. The value range of the weighted summation result is constrained so that the two output positions form independent weight values ​​that can change with the texture variance and the fractal dimension value. The weight value corresponding to the first output position is determined as the internal curvature smoothness weight, and the weight value corresponding to the second output position is determined as the external image phase gradient weight. The internal curvature smoothness weight and the external image phase gradient weight are saved in a fixed order to obtain the local environment adaptive weight coefficient.

[0029] Preferably, the step of obtaining the stratigraphic unconformity oriented quantization boundary line is as follows:

[0030] The spatial state tensor is expanded according to the feature channel order. The internal curvature smoothness weight and external image phase gradient weight in the local environment adaptive weight coefficient are extended to the corresponding feature positions. The extended weight values ​​are concatenated to the end of the spatial state tensor to form a fusion input, which is input to the deep reinforcement learning policy network. The parameter weights corresponding to each feature position are read layer by layer and multiplication accumulation, bias superposition and nonlinear mapping are performed. The action probability values ​​corresponding to the horizontal movement direction and the vertical movement direction are obtained at the output. All action probability values ​​are normalized and arranged. An action sampling is completed according to the normalized cumulative probability interval. The sampled action is mapped to the movement of the current control point in the horizontal and vertical coordinates to obtain the iterative displacement increment.

[0031] Read the horizontal and vertical coordinate values ​​of the current control point in the spatial coordinate matrix, accumulate the horizontal movement corresponding to the iterative displacement increment to the horizontal coordinate value, and accumulate the vertical movement corresponding to the iterative displacement increment to the vertical coordinate value. Update the spatial coordinate matrix point by point according to the arrangement order of the control points in the initial boundary discrete control point set. After completing one round of control point position update, re-extract the spatial state tensor and the local environment adaptive weight coefficient corresponding to the updated position, and obtain the next round of iterative displacement increment. Continuously record the number of iterations and compare the magnitude of the iterative displacement increment in each round. When the number of iterations reaches the preset maximum number of iterations, or the iterative displacement increment is lower than the preset convergence threshold, terminate the position update and obtain the final converged control point coordinate matrix.

[0032] Based on the final converged control point coordinate matrix, the horizontal and vertical coordinate values ​​are read sequentially according to the arrangement order of the control points during the boundary walk. Continuous parameter positions are set between adjacent control points. The interpolated coordinates of each parameter position are calculated using the coordinates of adjacent control points and the corresponding basis function weights. All interpolated coordinates are connected sequentially to form a continuous cubic B-spline curve. A closed connection is established between the coordinates at the beginning and end of the curve. The tangential changes and local curvature changes of adjacent coordinates on the closed curve are compared point by point. The interpolated coordinates that deviate from the trend of adjacent coordinate changes are adjusted for position smoothing. The closed connection relationship is maintained and all smoothed coordinates are rearranged according to the original control point walk direction to obtain the quantized boundary line of the stratigraphic unconformity.

[0033] Compared with the prior art, the advantages and positive effects of the present invention are as follows:

[0034] This invention transforms the wandering trajectory formed by senior geologists manually delineating stratigraphic boundaries into a geologically prior boundary-finding constraint. This allows control point movement to no longer solely rely on local pixel grayscale or edge responses, but instead inherits the extension direction, turning patterns, and continuity characteristics of stratigraphic boundaries. Furthermore, the movement of control points is constrained by both the external image phase gradient energy and the internal spline curve curvature smoothness. This ensures that boundary search simultaneously considers image structural response intensity and curve geometric continuity. The weights of the internal curvature smoothness and the external image phase gradient are dynamically adjusted based on texture variance and fractal dimension, allowing different edge-finding emphases to correspond to different lithological textures, degrees of fragmentation, and boundary clarity. Moreover, by jointly determining the initial discrete control point set using a frequency domain phase consistency response map and a coarse boundary probability map, false edges caused by brightness variations, shadows, and local noise from a single grayscale gradient are reduced. This incorporates frequency domain structural stability and spatial boundary probability into the initial localization process. A local observation window is extracted around the current control point. The frequency domain energy amplitude and the two-dimensional spatial coordinate position offset are combined into a spatial state tensor. This allows the control point movement judgment to simultaneously perceive the local physical structure and the current spatial geometric position. Then, combined with the local environment adaptive weight coefficient, iterative displacement increments are obtained, enabling each control point to continuously correct its movement direction and amplitude according to the local geological morphology. After iterative iteration, a convergent control point coordinate matrix is ​​obtained and boundary fitting is performed. This transforms the discrete edge-finding results into a continuous, smooth, and spatially oriented quantized unconformity boundary line, thereby improving the boundary positioning accuracy, boundary continuity, local transition adaptability, and result stability in complex core texture environments, and reducing the impact of manual delineation differences on the consistency of recognition results. Attached Figure Description

[0035] Figure 1 A schematic diagram of the internal curvature smoothness weight;

[0036] Figure 2 This is a schematic diagram of the iterative displacement increment. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0038] Please see Figure 1-2 This invention provides a technical solution, a method for extracting and recognizing borehole core images, comprising the following steps:

[0039] S1. The deep reinforcement learning policy network is pre-trained based on the expert demonstration trajectory set to obtain the geological prior edge-finding logic; the weighted sum of the phase gradient energy of the external image and the curvature smoothness of the internal spline curve is used as the reward function, and the weight coefficients of the weighted sum of the output of the environmental perception parameter acquisition network are obtained by joint training to obtain the converged environmental perception parameter acquisition network and the deep reinforcement learning policy network.

[0040] S2, acquire the borehole core image to be processed, perform feature extraction on the borehole core image to obtain the frequency domain phase consistency response map and the coarse boundary probability map, and obtain the initial boundary discrete control point set based on the frequency domain phase consistency response map and the coarse boundary probability map;

[0041] S3, for the current control point in the initial boundary discrete control point set, a local observation window is extracted on the frequency domain phase consistency response map, and the frequency domain energy amplitude matrix in the local observation window is spliced ​​with the two-dimensional spatial coordinate position offset of the current control point to construct the spatial state tensor;

[0042] S4, extract the texture variance and fractal dimension values ​​corresponding to the current control point in the borehole core image to be processed, input the texture variance and fractal dimension values ​​into the environment perception parameter acquisition network, and output the local environment adaptive weight coefficients containing the internal curvature smoothness weight and the external image phase gradient weight.

[0043] S5 inputs the spatial state tensor and local environment adaptive weight coefficients into the deep reinforcement learning policy network to obtain the iterative displacement increment. The iterative displacement increment is accumulated into the spatial coordinate matrix of the current control point. The process is repeated to obtain the final converged control point coordinate matrix. The final converged control point coordinate matrix is ​​then subjected to boundary fitting processing to output the quantized unconformity boundary line.

[0044] The steps for acquiring environmental perception parameters and deep reinforcement learning policy networks are as follows:

[0045] We collected control point movement sequences formed by senior geological experts when manually delineating stratigraphic boundaries based on historical core images. According to the boundary delineation process corresponding to a single historical core image, we recorded the initial coordinates of the control points, the coordinates of the control points after continuous movement, the order of coordinate changes of adjacent control points, and the termination position of the boundary movement. We arranged the control points in the same delineation process according to the actual movement sequence. We saved the control point movement sequences corresponding to different historical core images separately. We removed control point movement sequences that were missing in order, whose coordinate positions were outside the range of the historical core image, or that could not form a continuous boundary direction. We organized the retained control point movement sequences according to a unified coordinate representation form to obtain an expert demonstration trajectory set.

[0046] The deep reinforcement learning strategy network continuously outputs two-dimensional movement actions of control points according to the current environment observation, and forms the walking trajectory acquired by the agent according to the action execution order. The walking trajectory acquired by the agent and the expert demonstration trajectory set are respectively input into the discriminator. The changes in the movement direction of control points, the changes in the increment of adjacent displacements, the changes in the local boundary contact position, and the continuous walking order in each walking trajectory are extracted. The discriminator outputs the discrimination result of each walking trajectory corresponding to the expert demonstration trajectory. Based on the discrimination result, the action output parameters of the deep reinforcement learning strategy network are adjusted in reverse so that the walking trajectory acquired by the agent approaches the movement pattern of control points in the expert demonstration trajectory set round by round. The trajectory acquisition, trajectory discrimination, and parameter adjustment are continuously executed until the change in the discrimination result in consecutive training rounds is lower than the preset convergence threshold, thus obtaining the geological prior edge finding logic.

[0047] Based on the geological prior edge-finding logic, after the adversarial pre-training reaches convergence, the deep reinforcement learning policy network continues to output the two-dimensional movement action of the control point. The phase gradient energy of the external image corresponding to the movement position of the control point and the curvature smoothness of the internal spline curve formed by the continuous movement of the control point are calculated respectively. The texture variance and fractal dimension of the current local image are input into the environment perception parameter acquisition network, which outputs the weight coefficients for the phase gradient energy of the external image and the weight coefficients for the curvature smoothness of the internal spline curve. The phase gradient energy of the external image and the curvature smoothness of the internal spline curve are weighted and summarized according to the two weight coefficients. The advantage change corresponding to each two-dimensional movement action of the control point is calculated based on the weighted summation result. The ratio of the probability of the current policy action to the probability of the policy action before the update is compared and the ratio is limited to a preset truncation interval. Accordingly, the parameters of the deep reinforcement learning policy network and the parameters of the environment perception parameter acquisition network are adjusted synchronously. The weight output, action update and parameter adjustment are executed iteratively until the policy output change and weight output change in consecutive training rounds are both lower than the corresponding convergence threshold.

[0048] Specifically, based on the expert boundary delineation process corresponding to historical core images, the horizontal and vertical coordinates of the control points corresponding to the starting position of each delineation are read. The coordinate order of subsequent control points is restored according to the time index formed during acquisition. The coordinate changes corresponding to adjacent time indices are taken as one two-dimensional displacement, and the time index corresponding to the last valid coordinate is marked as the termination position of the boundary walk. The valid range of coordinates is based on the actual width of the corresponding historical core image. and height Confirmed, the horizontal coordinate is limited to 0 to... The corresponding pixel range, with the vertical coordinate limited to 0 to... The corresponding pixel range, where This represents the number of horizontal pixels in the current historical core image. Representing the number of vertical pixels in the current historical core image, the process of delineating the time index with skipped numbers checks whether the control points before and after the skipped number can still be filled in by actual continuous movement records. If they cannot be filled in, the corresponding walk sequence is removed. For continuity checks, the allowable range is determined by the displacement amplitude distribution of adjacent control points in the same batch of valid walk sequences. All adjacent displacements in the training part are sorted by amplitude, and different upper quantile positions are used as candidate allowable upper limits. In the validation part, the trajectory integrity retention ratio and the number of abnormal boundary segments are calculated one by one. The quantile position corresponding to the highest trajectory integrity retention ratio and the lowest number of abnormal boundary segments is taken as the allowable upper limit of displacement. The retained coordinates are divided by the corresponding image width and height to complete the unified coordinate expression. At the same time, the original pixel coordinates are retained for subsequent local window positioning calls. Different delineation processes are isolated according to image number and the time order of control points within each process is maintained. The summaries are used to obtain the expert demonstration trajectory set.

[0049] Based on the expert demonstration trajectory set, the policy network and discriminator are organized according to the training relationship of Generative Adversarial Imitation Learning (GAIL). First, the current control point position, the previous two-dimensional displacement, the current two-dimensional movement action, the local frequency domain phase consistency response, and the relative order of the current step in the entire walk sequence are read from each expert walk step. Environmental observations with the same structure are provided to the deep reinforcement learning policy network to generate the agent's two-dimensional movement actions. These actions are executed continuously until the boundary walk termination condition is met, forming the agent's walk trajectory. The discriminator adopts a fully connected feedforward structure. The features concatenated from the single-step state and action are sequentially processed through a hidden layer nonlinear mapping and then fed into a single Sigmoid discriminant output position. The number of hidden layers and the width of each layer are determined from candidate structures constructed by increasing the input dimension of the training set. Each candidate structure is trained using the same training trajectory. On the validation trajectory, the shallowest structure with the validation cross-entropy within the optimal range of one standard error is selected according to a one-standard-error rule. The standard error is calculated by the dispersion of the discriminant loss of the corresponding candidate structure on each validation trajectory. After the structure is determined, the connection relationship is fixed. The adversarial target adopts the existing target form of GAIL.

[0050] ;

[0051] in These represent the trainable parameters of the deep reinforcement learning policy network. The trainable parameters of the discriminator, The distribution of expert strategies corresponding to the representative expert demonstration trajectory. This represents the policy distribution generated by the current policy network. The probability of expert trajectory discrimination is represented by the output of the discriminator. Represents the current environmental state. Represents the current two-dimensional movement action. and These represent the expected values ​​obtained according to the expert strategy distribution and the current strategy distribution, respectively. The discriminator parameters and the strategy network parameters are updated alternately. The allowable change in the discrimination result of consecutive training rounds is determined by the natural fluctuation range of the discrimination probability of the verification trajectory after convergence. The upper quantile value of the discrimination probability change distribution of each round after the verification curve enters the plateau area is taken as the allowable change. The quantile position is determined by the candidate position corresponding to the lowest misclassification rate of the verification trajectory. After continuously reaching this criterion, the strategy parameters are fixed to obtain the geological prior edge-finding logic.

[0052] Based on the geological prior edge-finding logic, the two-dimensional movement action of the control point is generated according to the current spatial state. At each action landing point, the phase gradient energy of the external image corresponding to the frequency domain phase consistency response is read. Simultaneously, the current control point and its adjacent control points form a local spline segment, and the curvature change is read to form the curvature smoothness of the internal spline curve. The two types of quantities are transformed to the same dimensionless range according to their own distribution in the training image. The normalized upper and lower bounds are taken as the lower and upper quantiles of the corresponding training quantities, respectively. The quantile positions are searched step by step on the validation trajectory, and the position corresponding to the narrowest effective interval where the validation reward change enters the stable region is taken. The texture variance and fractal dimension values ​​are input into the environment perception parameter acquisition network to obtain the weights of the internal curvature smoothness and the external image phase gradient. The weighted reward is written as:

[0053] ;

[0054] in Representing the The weighted reward for each walk step Representing the External image phase gradient weights for each walk step This represents the phase gradient energy of the external image after dimensionless processing. Representing the The internal curvature smoothness weight of each walk step The internal spline curve curvature smoothness represents the result of dimensionless processing. Weights are obtained from network training based on environment-aware parameters. Action advantage is calculated by subtracting the current value estimate from the cumulative reward during the finite walk process. PPO updates use a truncated alternative target.

[0055] ;

[0056] in Representative strategy parameters The corresponding PPO truncation target, This represents the expectation of the current batch's movement steps. This represents the ratio of the probability of the current policy action to the probability of the policy action before the update. Representing the Advantages of footwork Represents the truncation function. The value represents the half-width of the cutoff interval. The candidate interval is constructed by the policy probability ratio offset distribution generated by the actual training trajectory after GAIL convergence. On the validation trajectory, the candidate value with the highest cumulative reward and the policy probability change within a stable range is selected. The policy network parameters and environment perception parameter acquisition network parameters are updated in reverse simultaneously. The allowable change of policy output and the allowable change of weight output are determined by the stable fluctuation distribution of the corresponding output in the validation phase. After the two convergence criteria are satisfied consecutively, the converged environment perception parameter acquisition network and deep reinforcement learning policy network are obtained.

[0057] The steps for obtaining the frequency domain phase consistency response map are as follows:

[0058] The process involves acquiring the core image of the borehole to be processed, reading the grayscale values ​​of each pixel in the core image, arranging them into a pixel array according to row and column coordinates, converting the pixel array from the spatial coordinate domain to the frequency coordinate domain, extracting the amplitude response and phase response of each frequency position according to a preset scale sequence and direction sequence, accumulating the amplitude responses of different scales corresponding to the same pixel position, and calculating the cosine difference of the phase response in different directions relative to the local reference phase. Then, the phase consistency response intensity of each pixel position is determined based on the local amplitude accumulation and the cosine difference of the phase deviation. All phase consistency response intensities are rearranged according to the original pixel coordinates to obtain the frequency domain phase consistency response map.

[0059] Specifically, based on the core image of the borehole to be processed, the gray values ​​of each pixel are constructed into a two-dimensional pixel array according to the original horizontal and vertical coordinates. A two-dimensional discrete Fourier transform is used to obtain the frequency coordinate domain representation. Then, a multi-scale, multi-directional Log-Gabor orthogonal filter is used to obtain even-symmetric and odd-symmetric responses respectively. The local amplitude and local phase corresponding to each scale and direction are obtained from the two responses. The minimum effective wavelength of the scale sequence is determined according to the Nyquist constraint corresponding to the image pixel sampling, and the maximum effective wavelength is determined according to the short side length of the current image and the expert boundary width distribution of the training image. The center frequencies of adjacent scales are determined according to the condition that the Log-Gabor passband continuously covers the half-power position. The number of directions is determined according to the boundary direction distribution formed by adjacent control points of the expert demonstration trajectory. The number of directions is gradually increased, and the distance between the phase consistency peak position and the expert boundary center line is compared in the verification image. The minimum number of directions is taken when the distance no longer decreases with the increase of the number of directions. The calculation is performed according to the Kovesi two-dimensional phase consistency expression relationship.

[0060] ;

[0061] in Represents pixel coordinates Phase consistency response intensity, and These represent the horizontal and vertical pixel coordinates, respectively. Represents direction index, Represents the total number of directions. Represents a scale index. Represents the total number of scales. Represents the local amplitude at the corresponding scale and direction. This represents the deviation of the corresponding local phase relative to the local reference phase in the same direction. Representing the The noise energy compensation in each direction is obtained using Rayleigh noise estimation based on the minimum-scale filter response. This represents the operation where negative values ​​are truncated to zero for the positive part. This represents a stable quantity to prevent the denominator from being zero. It is set according to the machine precision scale of the non-zero amplitude accumulation, completes the calculation of all pixels and restores the original coordinate arrangement, and obtains the frequency domain phase consistency response map.

[0062] The steps for obtaining the initial set of discrete control points for the boundary are as follows:

[0063] The process involves acquiring the core image of the borehole to be processed, sequentially reading the grayscale differences of each pixel position and adjacent pixel positions according to the preset convolutional layers, passing the local pixel weighting results layer by layer and performing bias stacking, nonlinear mapping and spatial scale compression, and then restoring the final output to the original pixel coordinate range of the core image of the borehole to be processed. The process outputs the probability value of the corresponding stratigraphic boundary for each pixel position, and arranges all probability values ​​according to the horizontal and vertical coordinates of the pixels to ensure that each probability value corresponds to the unique pixel position in the core image of the borehole to be processed, thereby obtaining a rough boundary probability map.

[0064] Based on the frequency domain phase consistency response map and the rough boundary probability map, the phase consistency response intensity and boundary probability values ​​are read point by point according to the same pixel coordinates. The response intensity of the center pixel and the adjacent pixels are compared along the local response change direction of each pixel position. Only the maximum positions in the local response sequence are retained. The boundary probability values ​​corresponding to the retained positions are extracted according to the numerical distribution to extract local extrema and determine the adaptive extrema threshold. Local maximum positions below the adaptive extrema threshold are screened out. The pixel horizontal coordinates and pixel vertical coordinates of the remaining local maximum positions are recorded. The edge peak coordinate position point sequence is arranged according to the spatial adjacent order to obtain the initial boundary discrete control point set.

[0065] Specifically, based on the borehole core images to be processed, a U-Net structure is used to train pixel-level stratigraphic boundary probability prediction relationships. Adjacent control points of the expert demonstration trajectory are connected in their original walk order and rasterized to the corresponding historical core image coordinates. Pixels along the connecting lines are used as boundary supervision positions, and the remaining valid image pixels are used as non-boundary supervision positions. The historical core images are divided into training and validation parts at the image level to avoid local areas of the same image simultaneously entering both the training and validation parts. The input end reads a single-channel grayscale image and performs scale unification according to the grayscale distribution of the training part. The encoding end continuously sets convolutional blocks and spatial downsampling. Each convolutional block uses a method covering the center pixel and its 8 neighbors. The convolution kernel performs convolution and ReLU mapping, using adjacent kernels for each downsampling. The region undergoes scale compression. The number of coding layers is determined by the typical spatial span between adjacent control points in the expert trajectory covering the receptive field. Coding layers are added starting from shallower candidate layers. Boundary cross-entropy is calculated on the validation image. When the decrease in validation loss after increasing the coding depth by one level falls within the natural fluctuation range of the validation loss, the previous layer is retained. The decoding end corresponds to the coding end level by level. Spatial dimensions are restored through upsampling, and the coding features of the same scale are concatenated by channel before continuing the process. Convolution, ultimately using Convolution compresses the final-level features into a single-channel response and obtains pixel boundary probabilities of 0 to 1 through Sigmoid mapping. The training loss adopts binary cross-entropy with class balance. The class weights of boundary pixels and non-boundary pixels are determined according to the inverse proportional relationship between the actual number of two classes of pixels in the training part. The network parameters are updated batch by batch from the training images. The update stops when the validation loss does not fall below the previous minimum validation loss for several consecutive rounds. The number of consecutive rounds is determined by the length distribution of the plateau region of the training curve. The upper quantile position of the plateau region length is taken and the corresponding quantile is determined by the principle of the lowest validation set error. The network parameters corresponding to the lowest validation loss round are fixed. The core image of the borehole to be processed is sequentially encoded, decoded and probability mapped in the same way. The pixel probabilities are arranged according to the original horizontal and vertical coordinates to obtain a rough boundary probability map.

[0066] Based on the frequency domain phase consistency response map and the coarse boundary probability map, the pixel coordinates of the two images are kept in a one-to-one correspondence. The local response change direction of each pixel is calculated for the frequency domain phase consistency response map. The adjacent responses on both sides of the normal in this direction are read. When the comparison position falls on non-integer coordinates, bilinear interpolation is used to obtain the phase consistency response intensity. Only the position where the center response is not less than the responses on both sides of the normal is retained to form the candidate position of the phase consistency local peak. Then, the stratigraphic boundary probability corresponding to each candidate position is read from the coarse boundary probability map. All candidate probabilities are used to form the candidate probability distribution of the current image. The Otsu's maximum inter-class variance method is used to traverse the segmentation positions that can be formed by the candidate probabilities. The candidate probabilities are divided into low probability group and high probability group. The inter-class variance corresponding to each segmentation position is calculated, and the position with the maximum inter-class variance is taken as the adaptive extreme value threshold. When multiple segmentation positions have the same maximum inter-class variance, the adjacent maximum position is taken. The intermediate probability is used as the adaptive extreme value threshold. Candidate positions of local peaks with phase consistency below this value are deleted. The position records are kept, including the corresponding horizontal pixel coordinates, vertical pixel coordinates, phase consistency response intensity, and formation boundary probability. Spatial arrangement starts from the first retained position on the left side of the image. When there are multiple candidate positions with the same horizontal coordinate, the position with the higher formation boundary probability is selected first. Then, the Euclidean distance is compared from the unvisited candidate positions at the current position, and the closest position is selected. When the distances of multiple positions are the same, the angle with the previous movement direction is compared, and the position with the smaller angle is selected. When the distance and the angle are the same, the position with the higher phase consistency response intensity is selected. The spatial adjacency sorting of all retained positions is completed in sequence. For local segments that show reverse folding in the sorting, the movement directions are compared and the sorting continues from the remaining closest positions. The edge peak coordinates after sorting are summarized to obtain the initial set of discrete control points for the boundary.

[0067] The steps for obtaining a local observation window are as follows:

[0068] For the current control point in the initial boundary discrete control point set, read the horizontal and vertical pixel coordinates of the current control point in the frequency domain phase consistency response map. Use the corresponding positions of the horizontal and vertical pixel coordinates as the window center, determine the left and right truncation boundaries according to the preset horizontal window size, and determine the upper and lower truncation boundaries according to the preset vertical window size. Limit the truncation positions that exceed the boundaries of the frequency domain phase consistency response map according to the boundary pixel positions. Preserve the phase consistency response intensity of each pixel position within the coverage area of ​​the truncation boundary according to the original spatial arrangement order to obtain the local observation window.

[0069] Specifically, based on the current control point in the initial boundary discrete control point set, the continuous horizontal and vertical coordinates of the current control point are read, and the corresponding nearest integer pixel position is used as the center of the local observation window. The horizontal range of the window is determined by the distribution of the absolute value of single-step horizontal displacement in the expert demonstration trajectory and the maximum spatial support range of the Log-Gabor filter. First, the absolute values ​​of all single-step horizontal displacements are counted according to the training trajectory, and candidate horizontal half-widths are formed from different upper quantile positions. Then, each candidate horizontal half-width is compared with the maximum spatial support radius and the larger one is taken. In the verification trajectory, the candidate quantile positions are gradually increased, and the proportion of the next expert control point falling inside the window is counted. When the proportion changes into the natural fluctuation range of the verification sample proportion after the window width is further increased, the first candidate horizontal half-width is retained. The vertical range of the window is determined by the same process based on the absolute value of single-step vertical displacement. Therefore, the horizontal and vertical dimensions are derived from the actual movement span of the expert and the spatial support range of the frequency domain filter, respectively. Pixels are read from the center of the window to the left and right according to the determined horizontal half-width, and pixels are read upward and downward according to the determined vertical half-width. When the truncation coordinate is less than 0, the corresponding boundary pixel coordinate is used; when the horizontal truncation coordinate is greater than 0, the corresponding boundary pixel coordinate is used. Time limit is When the vertical cutoff coordinate is greater than Time limit is ,in The number of horizontal pixels in the frequency domain phase consistency response map. The number of vertical pixels in the frequency domain phase consistency response map is represented by the number of pixels in the vertical direction. For the window position that is missing due to boundary constraints, the phase consistency response intensity corresponding to the nearest boundary pixel is copied. The number of rows and columns of the window is kept consistent with the window used for the internal control point position. All phase consistency response intensities are read according to the original horizontal and vertical arrangement to obtain the local observation window.

[0070] The steps to obtain the spatial state tensor are as follows:

[0071] According to the horizontal and vertical arrangement order of each pixel position within the local observation window, the energy amplitude of the corresponding frequency response is read point by point. The energy amplitude corresponding to the same horizontal and vertical position is written into the corresponding matrix element. The matrix row and column index and the pixel coordinates of the local observation window are kept in one-to-one correspondence to form a frequency domain energy amplitude matrix. At the same time, the horizontal and vertical pixel coordinates of the current control point are read. With the center position of the local observation window as the coordinate reference, the horizontal coordinate difference and vertical coordinate difference of the current control point relative to the coordinate reference are calculated respectively to obtain the frequency domain energy amplitude matrix and the two-dimensional spatial coordinate position offset.

[0072] Preserving the original spatial correspondence of each energy amplitude according to the row and column indices of the frequency domain energy amplitude matrix, the two-dimensional spatial coordinate position offsets are mapped to the horizontal position feature channel and the vertical position feature channel respectively. The horizontal and vertical position feature channels are expanded to the spatial size corresponding to the frequency domain energy amplitude matrix. The frequency domain energy amplitude, horizontal position offset feature and vertical position offset feature are stitched together position by position according to the same horizontal and vertical indices, so that each spatial position retains both the local physical structure response feature and the spatial geometric position feature. All stitching results are arranged in a unified channel order to obtain the spatial state tensor.

[0073] Specifically, based on the local observation window, the Log-Gabor local amplitudes at each scale and direction, already obtained when calculating the frequency domain phase consistency response map, are called. The amplitude is read at each pixel location covered by the window using the same scale and direction indices, without changing the scale and direction sequences again. All local amplitudes corresponding to the same pixel are summed and squared to form a single frequency domain energy amplitude. The calculation relationship is written as:

[0074] ;

[0075] in Represents the local observation window number Line 1 The corresponding frequency domain energy amplitude, Represents the vertical row index of the window. Represents the horizontal column index of the window. Represents direction index, Represents the total number of directions identified above. Represents a scale index. This represents the total number of scales determined above. Represents pixel coordinates In the The first scale and the first The local amplitude corresponding to each direction and These represent the horizontal and vertical pixel coordinates of the window element in the original frequency domain phase consistency response map, respectively. The frequency domain energy amplitude matrix is ​​formed by writing the matrix according to the window row and column indices, while retaining the continuous coordinates of the current control point. The horizontal and vertical coordinates of the integer pixels corresponding to the center of the window are used as coordinate references. The difference between the horizontal coordinates of the continuous control points and the center horizontal coordinates and the difference between the vertical coordinates of the continuous control points and the center vertical coordinates are calculated respectively. Therefore, the initial integer control point has an offset of 0. When the subsequent strategy action forms sub-pixel coordinates, the sub-pixel position changes can be retained. The frequency domain energy amplitude matrix and the two-dimensional spatial coordinate position offset are obtained by summarizing.

[0076] Based on the frequency domain energy amplitude matrix and the two-dimensional spatial coordinate position offset, the frequency domain energy amplitude is first subjected to dimensionless scaling transformation according to the amplitude distribution of all local observation windows in the training image. The upper and lower bounds of the scale are determined from the candidate lower and upper quantile positions of the training amplitude distribution. After scaling transformation, the number of input saturation positions and the boundary tracking error are compared group by group in the validation image. The quantile group with the lowest number of input saturation positions and the boundary tracking error entering the stable range is taken as the final upper and lower bounds of the scale. Amplitudes less than the lower bound and greater than the upper bound are respectively limited to the endpoints of the dimensionless range. The two-dimensional spatial coordinate position offset is divided by the actual half-width of the corresponding direction of the local observation window to transform the horizontal and vertical offsets to a unified dimensionless position scale. Then, the same horizontal offset value is copied to the entire window to form a horizontal position feature channel, and the same vertical offset value is copied to the entire window to form a vertical position feature channel. The channels are then stitched together position by position in a fixed order of frequency domain energy amplitude channel, horizontal position feature channel, and vertical position feature channel. This can be written as:

[0077] ;

[0078] in The space state tensor represents the state tensor in the th case. Line 1 All channel values ​​of the column, Represents the vertical row index of the local observation window. Represents the horizontal column index of the local observation window. This represents the frequency domain energy amplitude after dimensionless scaling. This represents the horizontal offset of the completed window after normalization of its horizontal half-width. The vertical position offset represents the normalized vertical half-width of the window. The colon indicates that all feature channels of the spatial position are read and written to all positions according to the original row and column relationship of the window to obtain the spatial state tensor.

[0079] The steps for obtaining the local environment adaptive weight coefficients are as follows:

[0080] Using the horizontal and vertical pixel coordinates of the current control point as the center position, a local image window is cropped in the borehole core image to be processed according to the preset horizontal and vertical ranges. The gray value in the local image window is read pixel by pixel, the average value of all gray values ​​is calculated, the square of the difference between each gray value and the average value is calculated and accumulated and averaged to extract the texture variance that reflects the local gray dispersion. At the same time, the local image window is divided according to multiple progressive spatial scales, and the number of grids required to cover the effective texture structure at each spatial scale is counted. The scale change of the texture structure is determined according to the change in spatial scale and the change in the number of grids, and the texture variance and fractal dimension values ​​are obtained.

[0081] The texture variance is placed in the first feature position and the fractal dimension value is placed in the second feature position according to a fixed input order. The values ​​corresponding to the two feature positions are input into the environment perception parameter acquisition network. The parameter matrix corresponding to the first layer connection position is called to perform multiplication and accumulation on the texture variance and fractal dimension value respectively. Then, the corresponding bias parameters are superimposed to form the first layer projection result. Nonlinear numerical mapping is performed on the first layer projection result element by element. The mapping result is passed to the next layer connection position. Multiplication and accumulation, bias superposition and nonlinear numerical mapping are repeated according to the parameter matrix order of each layer until all operations of the preset level are completed, and the multi-layer linear projection and nonlinear activation operation results are obtained.

[0082] Based on the results of multi-layer linear projection and nonlinear activation operations, the activation values ​​corresponding to each feature position in the last layer are read, and the activation values ​​of the last layer are passed to two independent output positions. The activation values ​​of the last layer are weighted and summarized according to the regression parameters corresponding to the two output positions. The range of values ​​of the weighted summation result is constrained so that the two output positions form independent weight values ​​that can change with the texture variance and fractal dimension. The weight value corresponding to the first output position is determined as the internal curvature smoothness weight, and the weight value corresponding to the second output position is determined as the external image phase gradient weight. The internal curvature smoothness weight and the external image phase gradient weight are saved in a fixed order to obtain the local environment adaptive weight coefficient.

[0083] Specifically, based on the location corresponding to the current control point, a local grayscale window is read from the borehole core image to be processed using the same horizontal and vertical ranges as the local observation window. This ensures that the texture features and subsequent strategy states correspond to the same spatial neighborhood. Grayscale values ​​are read pixel by pixel, and the local grayscale average value is calculated. Then, the texture variance is obtained by averaging the squared differences between each grayscale value and the average value. This texture variance is directly calculated using the actual grayscale data of the current window. For fractal dimension values, the grayscale image differential box counting method is used. The local grayscale window is divided into progressive grid scales that can divide the window size evenly or completely. The finest scale is determined by the single-pixel sampling resolution, and the coarsest scale is limited to a position where at least two grids can still be formed in both the horizontal and vertical directions. Starting from the finest scale, the grid side length is increased in integer multiples. For each two-dimensional grid, the maximum and minimum grayscale layers of the pixels it covers are read, and the box count at the current scale is obtained by accumulating the number of vertical grayscale boxes corresponding to the grayscale span. The box counts at each effective scale are linearly fitted according to the standard box count relationship:

[0084] ;

[0085] in The grid scale is represented by The cumulative number of boxes required to cover a local grayscale texture. This represents a dimensionless scale formed by the current grid side length relative to the local grayscale window reference side length. This represents the fractal dimension value corresponding to the slope of the linear fit. Represents the linear fit intercept. This represents a logarithmic operation applied uniformly to all scales. The number of scales involved in the fitting is determined by the actual size of the current window. Only scales capable of forming complete box counts are retained, and the regression results are used to determine the final scale. The fractal dimension value corresponding to the current control point is combined with the aforementioned texture variance in a fixed order to form a 2D environmental feature, thus obtaining the texture variance and the fractal dimension value.

[0086] Based on texture variance and fractal dimension values, the data scale is first determined using two types of features corresponding to all control points of the training image during the environmental perception parameter acquisition network training phase. Standardization is then performed based on the mean and dispersion of the training components, ensuring that the texture variance and fractal dimension values ​​are within a comparable range before entering the connection layer. The scale parameters obtained from the training component are used consistently during the validation and inference phases. Two feature positions are set at the input: the first position receives the texture variance, and the second position receives the fractal dimension value. The hidden structure employs a fully connected feedforward connection. The hidden layer depth is determined from candidate structures in layers 1, 2, and 3 according to the training data. The width of each candidate layer is constructed according to the quadratic expansion relationship of the number of input features, ensuring that the width of the subsequent hidden layer is no greater than the width of the previous hidden layer. Training is performed on each candidate structure using the same training trajectory and PPO joint objective. During the validation trajectory calculation, weighted reward stability and boundary position error are evaluated according to a one-standard-error rule. The structure with the fewest parameters is selected when the difference is within one standard error of the optimal value. The standard error is calculated from the image-by-image error of the validation images. After the structure is selected, the number of hidden layers and the width of each layer are fixed. For each hidden position, all activation values ​​of the previous layer are read first, multiplied and accumulated with the corresponding connection parameters, and then the bias is added. After ReLU nonlinear mapping, the values ​​are sent to the next connection layer. The hidden features of the last layer are connected to two independent scalar output positions. The connection parameters are initialized using Xavier. The initial scale is calculated based on the actual number of input nodes and output nodes of the two adjacent layers. The subsequent connection parameters and bias parameters are updated according to the weighted reward backpropagation during the PPO joint training after GAIL pre-training. The training batch is divided according to the complete expert walk trajectory, so that the continuous steps of the same trajectory are kept within the same batch. After the output changes of the consecutive validation rounds enter the natural fluctuation range of the validation output, the network parameters are fixed to obtain the results of multi-layer linear projection and nonlinear activation operations.

[0087] Based on the results of multi-layer linear projection and nonlinear activation operations, the hidden feature vector of the last layer of the network is obtained by reading the environmental perception parameters. All the hidden features of the last layer are multiplied and summed with the connection parameters at the output position of the internal curvature smoothness, and the corresponding biases are superimposed to obtain the first output value. The same hidden feature of the last layer is multiplied and summed with another set of connection parameters at the output position of the external image phase gradient, and the corresponding biases are superimposed to obtain the second output value. The two sets of output connection parameters are saved separately and updated in reverse during joint training, without sharing the last layer output parameters. Sigmoid constraints are applied to both output values.

[0088] ;

[0089] in Represents the weight of internal curvature smoothness. Represents the phase gradient weights of the external image. This represents the linear output value of the internal curvature smoothness output position before the Sigmoid mapping. This represents the linear output value of the external image phase gradient output position before the Sigmoid mapping. Represents the Sigmoid mapping function. The general input variables representing the Sigmoid function, Representing the natural exponential function, both weights are in the range of 0 to 1. The specific values ​​of the two weights are determined by the texture variance, fractal dimension, current network connection parameters, and joint PPO reward. During training, the two output weights are calculated for each control point, and the aforementioned dimensionless external image phase gradient energy and internal spline curve curvature smoothness are used to form a weighted reward. The hidden layer connection parameters and the two independent output position parameters are updated in reverse according to the PPO target. The changes of the two weight sequences in adjacent training rounds are statistically analyzed in the validation trajectory. The allowable range of change is determined according to the weight fluctuation distribution after entering the plateau region in the validation phase. When the joint training convergence condition is continuously met, the connection parameters are fixed and saved in the order of internal curvature smoothness weight first and external image phase gradient weight second to obtain the local environment adaptive weight coefficients.

[0090] The steps for obtaining the quantized boundary line of the stratigraphic unconformity are as follows:

[0091] The spatial state tensor is expanded according to the feature channel order. The internal curvature smoothness weight and external image phase gradient weight in the local environment adaptive weight coefficient are extended to the corresponding feature positions. The extended weight values ​​are then appended to the end of the spatial state tensor to form a fusion input, which is input into the deep reinforcement learning policy network. The parameter weights corresponding to each feature position are read layer by layer and multiplication, accumulation, bias stacking, and nonlinear mapping are performed. At the output end, the action probability values ​​corresponding to the horizontal and vertical movement directions are obtained respectively. All action probability values ​​are normalized and arranged. An action sampling is completed according to the normalized cumulative probability interval. The sampled action is mapped to the movement of the current control point in the horizontal and vertical coordinates to obtain the iterative displacement increment.

[0092] Read the horizontal and vertical coordinate values ​​of the current control point in the spatial coordinate matrix. Accumulate the horizontal movement corresponding to the iterative displacement increment to the horizontal coordinate value and the vertical movement corresponding to the iterative displacement increment to the vertical coordinate value. Update the spatial coordinate matrix point by point according to the arrangement order of the control points in the initial boundary discrete control point set. After completing one round of control point position update, re-extract the spatial state tensor and local environment adaptive weight coefficients corresponding to the updated position, and obtain the next round of iterative displacement increment again. Continuously record the number of iterations and compare the magnitude of the displacement increment in each round of iteration. When the number of iterations reaches the preset maximum number of iterations or the iterative displacement increment is lower than the preset convergence threshold, terminate the position update and obtain the final converged control point coordinate matrix.

[0093] Based on the final converged control point coordinate matrix, the horizontal and vertical coordinate values ​​are read sequentially according to the arrangement order of the control points during the boundary walk. Continuous parameter positions are set between adjacent control points. The interpolated coordinates of each parameter position are calculated using the coordinates of adjacent control points and the corresponding basis function weights. All interpolated coordinates are connected sequentially to form a continuous cubic B-spline curve. A closed connection is established between the coordinates at the beginning and end of the curve. The tangential changes and local curvature changes of adjacent coordinates on the closed curve are compared point by point. The interpolated coordinates that deviate from the trend of adjacent coordinate changes are adjusted for position smoothing. The closed connection relationship is maintained and all smoothed coordinates are rearranged according to the original control point walk direction to obtain the quantized boundary line of the stratigraphic unconformity.

[0094] Specifically, based on the spatial state tensor and local environment adaptive weight coefficients, the spatial state tensor is expanded in the order of frequency domain energy amplitude channel, lateral position feature channel, and vertical position feature channel. The internal curvature smoothness weights are copied to a feature length equal to the number of spatial positions in the window, and the external image phase gradient weights are copied in the same way. These are then sequentially appended to the ends of the expanded spatial state features to form the policy fusion input. The deep reinforcement learning policy network adopts a fully connected shared backbone and a Softmax action output structure. Each hidden layer of the shared backbone sequentially performs linear mapping and ReLU activation. The depth and width of the hidden layers are selected during the GAIL pre-training stage according to the verification trajectory imitation error using a one-standard-error rule. After the structure is determined, the connection relationship remains unchanged, and the parameters are updated again during the PPO stage. The action set is extracted from the actual two-dimensional displacements of adjacent control points of the expert demonstration trajectory. Displacements equivalent in image coordinate resolution are merged into the same action, and each retained two-dimensional displacement is used as an action prototype. The final layer of the strategy generates unnormalized outputs for all action prototypes and passes them through:

[0095] ;

[0096] Converted to action probabilities, where Representing the The normalized probability corresponding to each action prototype Representing the The final linear output corresponding to each action prototype. Represents the current action index. This represents the action index used for Softmax summation. This represents the total number of motion prototypes derived from expert demonstration trajectories. Represents the natural exponential function, accumulated according to the action index. Form a continuous probability interval from 0 to 1, generate a uniformly random number in the range of 0 to 1, and select the action prototype corresponding to the number falling into the interval. Then, select the action prototype... and The horizontal and vertical movement of the current control point are used respectively to obtain the iterative displacement increment.

[0097] Based on iterative displacement increments, the continuous lateral and longitudinal coordinates of each current control point are read sequentially according to a predetermined arrangement in the initial boundary discrete control point set. The lateral movement is accumulated to the current lateral coordinate, and the longitudinal movement is accumulated to the current longitudinal coordinate. For a single control point... The wheel coordinate update relationship is written as:

[0098] ;

[0099] in Representing the The control point completes the first... The updated two-dimensional coordinates Representing the The control point at the ... Two-dimensional coordinates before the round update Representing the The control point at the ... The iterative displacement increment obtained by the policy network. Represents the control point arrangement index. Representing the iteration round, after completing one round of updates for all control points, the local observation window is repositioned using the updated coordinates, and the spatial state tensor, texture variance, fractal dimension value, and local environment adaptive weight coefficient are recalculated. Then, the displacement increment for the next iteration is generated. The displacement convergence threshold is determined based on the minimum non-zero two-dimensional displacement amplitude in the expert demonstration trajectory action set. This minimum non-zero amplitude is used as the distinguishable action scale. When the displacement amplitude of all control points in the current round is lower than this scale, the corresponding action can only be in the range of zero displacement or indistinguishable change. The maximum number of iterations is determined based on the actual convergence round of the verification trajectory. The rounds corresponding to when all verification images reach the aforementioned displacement conditions are counted, and the maximum convergence round in the successfully converged verification trajectory is taken as the maximum number of iterations. When all control points in a round meet the displacement convergence condition or the iteration round reaches the maximum number of iterations, the update stops. The continuous horizontal and vertical coordinates corresponding to the stop are summarized according to the original index of the control points to obtain the final converged control point coordinate matrix.

[0100] Based on the coordinate matrix of the finally converged control points, the control points are read in the original boundary walk order. The parameter positions are established by chord length parameterization based on the cumulative actual Euclidean distance between adjacent control points, so that adjacent control points with larger spatial distances correspond to larger parameter intervals, and adjacent control points with smaller spatial distances correspond to smaller parameter intervals. A continuous curve is constructed using cubic B-spline basis functions.

[0101] ;

[0102] in Representative parameter position The corresponding two-dimensional B-spline curve coordinates, This represents the parameters of the continuous curve obtained by parameterizing the chord length. Represents the control point index. Represents the maximum index of the final control point. Representing the The cubic B-spline basis functions corresponding to each control point, where the subscript 3 indicates the degree of the cubic polynomial. The first term representing the eventual convergence Two-dimensional control points are established, and the nodes at the beginning and end are extended according to the periodic B-spline connection condition to ensure that the tangential direction at the beginning and end is continuous at the closed position. The bending energy constraint of the closed curve is applied using a cubic smooth spline.

[0103] ;

[0104] in This represents the curve smoothing objective to be minimized. This represents a closed B-spline curve to be adjusted. Represents the control point index. Represents the maximum index of the final control point. Representing the The chord length parameter positions corresponding to each control point Representing the The final convergence control point Represents the two-dimensional Euclidean norm. This represents the smoothing parameter between the data fitting term and the curvature smoothing term. The representative curve with respect to the parameter The second derivative, The term represents the parameters of the continuous curve, and the integral term represents the cumulative sum of the squares of the second derivatives of the entire closed curve. The generalized cross-validation (GCV) is determined from the coordinates of the current control point. The positive smoothing parameters are traversed and the GCV value corresponding to the prediction error of the left point is calculated. The parameter corresponding to the position with the minimum GCV value is taken. The adjacent tangent and curvature are calculated point by point using the obtained curve and the smoothing coordinate is updated. The periodic closed node relationship is maintained. Finally, all curve coordinates are read according to the original control point wandering direction to obtain the unconformity oriented quantized boundary line of the formation.

[0105] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any other way. Any person skilled in the art may make changes or modifications to the above-disclosed technical content to create equivalent embodiments that can be applied to other fields. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the protection scope of the present invention.

Claims

1. A method for extracting and recognizing borehole core images, characterized in that, Includes the following steps: S1. The deep reinforcement learning policy network is pre-trained based on the expert demonstration trajectory set to obtain the geological prior edge-finding logic; the weighted sum of the phase gradient energy of the external image and the curvature smoothness of the internal spline curve is used as the reward function, and the weight coefficients of the weighted sum of the output of the environmental perception parameter acquisition network are obtained by joint training to obtain the converged environmental perception parameter acquisition network and the deep reinforcement learning policy network. S2, acquire the borehole core image to be processed, perform feature extraction on the borehole core image to obtain the frequency domain phase consistency response map and the coarse boundary probability map, and obtain the initial boundary discrete control point set based on the frequency domain phase consistency response map and the coarse boundary probability map; S3, for the current control point in the initial boundary discrete control point set, a local observation window is extracted on the frequency domain phase consistency response map, and the frequency domain energy amplitude matrix in the local observation window is spliced ​​with the two-dimensional spatial coordinate position offset of the current control point to construct the spatial state tensor; S4, extract the texture variance and fractal dimension values ​​corresponding to the current control point in the borehole core image to be processed, input the texture variance and fractal dimension values ​​into the environment perception parameter acquisition network, and output the local environment adaptive weight coefficients containing the internal curvature smoothness weight and the external image phase gradient weight. S5 inputs the spatial state tensor and local environment adaptive weight coefficients into the deep reinforcement learning policy network to obtain the iterative displacement increment. The iterative displacement increment is accumulated into the spatial coordinate matrix of the current control point. The process is repeated to obtain the final converged control point coordinate matrix. The final converged control point coordinate matrix is ​​then subjected to boundary fitting processing to output the quantized unconformity boundary line.

2. The borehole core image extraction and recognition method according to claim 1, characterized in that, The steps for acquiring the environment perception parameter acquisition network and the deep reinforcement learning policy network are as follows: We collected control point movement sequences formed by senior geological experts when manually delineating stratigraphic boundaries based on historical core images. According to the boundary delineation process corresponding to a single historical core image, we recorded the initial coordinates of the control points, the coordinates of the control points after continuous movement, the order of coordinate changes of adjacent control points, and the termination position of the boundary movement. We arranged the control points in the same delineation process according to the actual movement sequence. We saved the control point movement sequences corresponding to different historical core images separately. We removed control point movement sequences that were missing in order, whose coordinate positions were outside the range of the historical core image, or that could not form a continuous boundary direction. We organized the retained control point movement sequences according to a unified coordinate representation form to obtain an expert demonstration trajectory set. The deep reinforcement learning strategy network continuously outputs two-dimensional movement actions of control points according to the current environment observation, and forms the walking trajectory acquired by the agent according to the action execution order. The walking trajectory acquired by the agent and the expert demonstration trajectory set are respectively input into the discriminator. The changes in the movement direction of control points, the changes in the increment of adjacent displacements, the changes in the local boundary contact position, and the continuous walking order in each walking trajectory are extracted. The discriminator outputs the discrimination result of the expert demonstration trajectory corresponding to each walking trajectory. The action output parameters of the deep reinforcement learning strategy network are adjusted in reverse according to the discrimination result, so that the walking trajectory acquired by the agent approaches the movement law of control points in the expert demonstration trajectory set round by round. The trajectory acquisition, trajectory discrimination and parameter adjustment are continuously executed until the change of the discrimination result in the continuous training rounds is lower than the preset convergence threshold, and the geological prior edge finding logic is obtained. Based on the aforementioned geological prior edge-finding logic, after the adversarial pre-training reaches convergence, the deep reinforcement learning policy network continues to output the two-dimensional movement action of the control point. The phase gradient energy of the external image corresponding to the movement position of the control point and the curvature smoothness of the internal spline curve formed by the continuous movement of the control point are calculated respectively. The texture variance and fractal dimension values ​​of the current local image are input into the environment perception parameter acquisition network, which outputs the weight coefficients for the phase gradient energy of the external image and the weight coefficients for the curvature smoothness of the internal spline curve. The phase gradient energy of the external image and the curvature smoothness of the internal spline curve are weighted and summarized according to the two weight coefficients. The advantage change corresponding to each two-dimensional movement action of the control point is calculated based on the weighted summation result. The ratio of the probability of the current policy action to the probability of the policy action before the update is compared and the ratio is limited to a preset truncation interval. Accordingly, the parameters of the deep reinforcement learning policy network and the parameters of the environment perception parameter acquisition network are adjusted synchronously. The weight output, action update and parameter adjustment are executed iteratively until the policy output change and weight output change in consecutive training rounds are both lower than the corresponding convergence threshold.

3. The borehole core image extraction and recognition method according to claim 1, characterized in that, The steps for obtaining the frequency domain phase consistency response map are as follows: A core image of the borehole to be processed is acquired. The gray values ​​of each pixel position in the core image are read and arranged into a pixel array according to row and column coordinates. The pixel array is transformed from the spatial coordinate domain to the frequency coordinate domain. The amplitude response and phase response of each frequency position are extracted according to the preset scale sequence and direction sequence. The amplitude responses of different scales corresponding to the same pixel position are accumulated, and the cosine difference of the phase response of different directions relative to the local reference phase is calculated. The phase consistency response intensity of each pixel position is determined based on the local amplitude accumulation and the cosine difference of the phase deviation. All phase consistency response intensities are rearranged according to the original pixel coordinates to obtain the frequency domain phase consistency response map.

4. The borehole core image extraction and recognition method according to claim 1, characterized in that, The steps for obtaining the initial boundary discrete control point set are as follows: The process involves acquiring the core image of the borehole to be processed, sequentially reading the grayscale differences of each pixel position and adjacent pixel positions according to a preset convolutional layer, passing the local pixel weighting result layer by layer and performing bias stacking, nonlinear mapping and spatial scale compression, and then restoring the final output to the original pixel coordinate range of the core image of the borehole to be processed. For each pixel position, the probability value corresponding to the formation boundary is output, and all probability values ​​are arranged according to the horizontal coordinate and vertical coordinate of the pixel, so that each probability value corresponds to the unique pixel position in the core image of the borehole to be processed, thereby obtaining a rough boundary probability map. Based on the frequency domain phase consistency response map and the coarse boundary probability map, the phase consistency response intensity and boundary probability value are read point by point according to the same pixel coordinates. The response intensity of the center pixel and the adjacent pixels are compared along the local response change direction of each pixel position. Only the maximum position in the local response sequence is retained. The boundary probability value corresponding to the retained position is used to extract the local extreme value according to the numerical distribution and determine the adaptive extreme value threshold. Local extreme positions below the adaptive extreme value threshold are screened out. The pixel horizontal coordinate and pixel vertical coordinate of the remaining local extreme positions are recorded. The edge peak coordinate position point sequence is arranged according to the spatial adjacent order to obtain the initial boundary discrete control point set.

5. The borehole core image extraction and recognition method according to claim 1, characterized in that, The steps for obtaining the local observation window are as follows: For the current control point in the initial boundary discrete control point set, read the horizontal and vertical pixel coordinates of the current control point in the frequency domain phase consistency response map. Use the corresponding positions of the horizontal and vertical pixel coordinates as the window center, determine the left and right truncation boundaries according to the preset horizontal window size, and determine the upper and lower truncation boundaries according to the preset vertical window size. Limit the truncation positions that exceed the boundaries of the frequency domain phase consistency response map according to the boundary pixel positions. Retain the phase consistency response intensity of each pixel position within the coverage area of ​​the truncation boundaries according to the original spatial arrangement order to obtain a local observation window.

6. The borehole core image extraction and recognition method according to claim 1, characterized in that, The steps for obtaining the spatial state tensor are as follows: According to the horizontal and vertical arrangement order of each pixel position within the local observation window, the energy amplitude of the corresponding frequency response is read point by point. The energy amplitude corresponding to the same horizontal and vertical position is written into the corresponding matrix element, keeping the matrix row and column index and the pixel coordinates of the local observation window in a one-to-one correspondence, forming a frequency domain energy amplitude matrix. At the same time, the horizontal and vertical pixel coordinates of the current control point are read. Using the center position of the local observation window as the coordinate reference, the horizontal coordinate difference and vertical coordinate difference of the current control point relative to the coordinate reference are calculated respectively, to obtain the frequency domain energy amplitude matrix and the two-dimensional spatial coordinate position offset. According to the row and column indices of the frequency domain energy amplitude matrix, the original spatial correspondence of each energy amplitude is maintained. The two-dimensional spatial coordinate position offset is mapped to the horizontal position feature channel and the vertical position feature channel respectively. The horizontal position feature channel and the vertical position feature channel are expanded to the spatial size corresponding to the frequency domain energy amplitude matrix. The frequency domain energy amplitude, horizontal position offset feature and vertical position offset feature are stitched together position by position according to the same horizontal index and vertical index, so that each spatial position retains both local physical structure response features and spatial geometric position features. All stitching results are arranged in a unified channel order to obtain the spatial state tensor.

7. The borehole core image extraction and recognition method according to claim 1, characterized in that, The steps for obtaining the local environment adaptive weight coefficients are as follows: Using the horizontal and vertical pixel coordinates of the current control point as the center position, a local image window is cropped in the borehole core image to be processed according to a preset horizontal and vertical range. The gray value in the local image window is read pixel by pixel, the average value of all gray values ​​is calculated, the square of the difference between each gray value and the average value is calculated and accumulated and averaged, and the texture variance reflecting the local gray dispersion is extracted. At the same time, the local image window is divided according to multiple progressive spatial scales, and the number of grids required to cover the effective texture structure at each spatial scale is counted. The scale change of the texture structure is determined according to the change in spatial scale and the change in the number of grids, and the texture variance and fractal dimension values ​​are obtained. The texture variance is placed in the first feature position and the fractal dimension value is placed in the second feature position according to a fixed input order. The values ​​corresponding to the two feature positions are input into the environment perception parameter acquisition network. The parameter matrix corresponding to the first layer connection position is called to perform multiplication and accumulation on the texture variance and the fractal dimension value respectively. Then, the corresponding bias parameters are superimposed to form the first layer projection result. Nonlinear numerical mapping is performed on the first layer projection result element by element. The mapping result is passed to the next layer connection position. Multiplication and accumulation, bias superposition and nonlinear numerical mapping are repeatedly performed according to the parameter matrix order of each layer until all operations of the preset level are completed, and the multi-layer linear projection and nonlinear activation operation results are obtained. Based on the results of the multi-layer linear projection and nonlinear activation operation, the activation values ​​corresponding to each feature position in the last layer are read, and the activation values ​​of the last layer are passed to two independent output positions respectively. The activation values ​​of the last layer are weighted and summarized according to the regression parameters corresponding to the two output positions. The value range of the weighted summation result is constrained so that the two output positions form independent weight values ​​that can change with the texture variance and the fractal dimension value. The weight value corresponding to the first output position is determined as the internal curvature smoothness weight, and the weight value corresponding to the second output position is determined as the external image phase gradient weight. The internal curvature smoothness weight and the external image phase gradient weight are saved in a fixed order to obtain the local environment adaptive weight coefficient.

8. The borehole core image extraction and recognition method according to claim 1, characterized in that, The steps for obtaining the quantized unconformity boundary line of the formation are as follows: The spatial state tensor is expanded according to the feature channel order. The internal curvature smoothness weight and external image phase gradient weight in the local environment adaptive weight coefficient are extended to the corresponding feature positions. The extended weight values ​​are concatenated to the end of the spatial state tensor to form a fusion input, which is input to the deep reinforcement learning policy network. The parameter weights corresponding to each feature position are read layer by layer and multiplication accumulation, bias superposition and nonlinear mapping are performed. The action probability values ​​corresponding to the horizontal movement direction and the vertical movement direction are obtained at the output. All action probability values ​​are normalized and arranged. An action sampling is completed according to the normalized cumulative probability interval. The sampled action is mapped to the movement of the current control point in the horizontal and vertical coordinates to obtain the iterative displacement increment. Read the horizontal and vertical coordinate values ​​of the current control point in the spatial coordinate matrix, accumulate the horizontal movement corresponding to the iterative displacement increment to the horizontal coordinate value, and accumulate the vertical movement corresponding to the iterative displacement increment to the vertical coordinate value. Update the spatial coordinate matrix point by point according to the arrangement order of the control points in the initial boundary discrete control point set. After completing one round of control point position update, re-extract the spatial state tensor and the local environment adaptive weight coefficient corresponding to the updated position, and obtain the next round of iterative displacement increment. Continuously record the number of iterations and compare the magnitude of the iterative displacement increment in each round. When the number of iterations reaches the preset maximum number of iterations, or the iterative displacement increment is lower than the preset convergence threshold, terminate the position update and obtain the final converged control point coordinate matrix. Based on the final converged control point coordinate matrix, the horizontal and vertical coordinate values ​​are read sequentially according to the arrangement order of the control points during the boundary walk. Continuous parameter positions are set between adjacent control points. The interpolated coordinates of each parameter position are calculated using the coordinates of adjacent control points and the corresponding basis function weights. All interpolated coordinates are connected sequentially to form a continuous cubic B-spline curve. A closed connection is established between the coordinates at the beginning and end of the curve. The tangential changes and local curvature changes of adjacent coordinates on the closed curve are compared point by point. The interpolated coordinates that deviate from the trend of adjacent coordinate changes are adjusted for position smoothing. The closed connection relationship is maintained and all smoothed coordinates are rearranged according to the original control point walk direction to obtain the quantized boundary line of the stratigraphic unconformity.