Method for generating three-dimensional geological bodies continuously from coarse to fine sliding windows
By using a coarse-to-fine sliding window method, the problems of structural discontinuity between sub-blocks and loss of known constraints in 3D geological modeling were solved. This enabled the continuous generation and detail restoration of large-scale 3D geological bodies, reduced inter-block seams, and preserved the original geological information.
Patent Information
- Application Number
- CN202611437177.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-16
- Publication Date
- 2026-11-24
AI Technical Summary
When performing large-scale three-dimensional geological modeling, the discontinuous structure between sub-blocks and the easy loss of original known geological constraints are difficult to handle effectively with existing technologies.
A coarse-to-fine sliding window continuous generation method is adopted. By acquiring a coarse-scale geological model, overlapping three-dimensional sub-blocks are divided, and a spatial mapping relationship is established using a global index to generate fine-scale latent variables. These variables are then fused with the original known conditions and the conditions of neighboring blocks to ensure the backfilling of known values and the continuity of the structure.
It enables the continuous generation of large-scale three-dimensional geological bodies, reduces the seams between sub-blocks, preserves original known values and structural annotations, and improves the overall continuity and accuracy of the model.
Smart Images

Figure CN123160809A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of three-dimensional geological modeling technology, and specifically discloses a method for continuously generating three-dimensional geological bodies using a sliding window from coarse to fine. Background Technology
[0002] Large-scale, three-dimensional geological modeling is limited by the single-processing size of the generated model and typically requires block-based processing. If sub-blocks are generated independently, the boundaries and fault locations of adjacent overlapping areas may be inconsistent, making it difficult to utilize the information from the generated neighborhoods through subsequent stitching alone. Furthermore, known values from boreholes, profiles, and areas preserved in existing models may be overwritten during the fusion process. Therefore, a clear processing order needs to be established between sub-block generation, overlap fusion, and preservation of original data. Summary of the Invention
[0003] This invention aims to solve the technical problems of discontinuous structure between sub-blocks and easy loss of original known geological constraints when generating large-scale three-dimensional fine-scale geological models.
[0004] This invention provides a method for continuously generating three-dimensional geological bodies using a coarse-to-fine sliding window, comprising:
[0005] Obtain a coarse-scale geological model of the target modeling area;
[0006] Based on the target fine-scale modeling range and target resolution, the coarse-scale geological model is mapped to the target fine-scale coordinate system;
[0007] The target modeling area is divided into multiple overlapping 3D sub-blocks by sliding window according to the preset window size and preset overlap width. Each 3D sub-block retains its global coordinate index in the target modeling area and establishes a spatial mapping relationship with the coarse-scale geological model accordingly.
[0008] For each 3D sub-block, a coarse-scale prior is extracted based on its spatial mapping relationship, and original known condition data and original known voxel constraint region mask are constructed. The multiple 3D sub-blocks are generated sequentially in a preset order. One or more of the voxel results, structural edge results, or latent variable results of adjacent generated 3D sub-blocks in the overlapping region are written into the inheritance condition data of the current 3D sub-block according to the result type and spatial position, and the effective position is marked in the inheritance condition mask. Based on the coarse-scale prior, original known condition data, inheritance condition data, and their respective masks, the fine-scale latent variables of the 3D sub-block are generated, and the fine-scale latent variables are decoded into fine-scale voxel results.
[0009] The overlapping regions of adjacent 3D sub-blocks are fused to obtain the fused result in voxel space;
[0010] Within the original known voxel constraint area, the original known values are backfilled into the corresponding output channel of the fusion result according to the data type, and the backfilling of the original known values has a higher priority than the fusion result, so as to obtain the large-scale three-dimensional geological body result of the target modeling area.
[0011] The present invention provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and when the processor invokes the computer program, it executes the method.
[0012] The beneficial technical effects of this invention are: coarse-scale priors provide a common hierarchical sequence or structural background for each sub-block; neighboring block condition inheritance in overlapping areas provides local connection information for the current sub-block; during fusion, the predictions of multiple sub-blocks at the same location are integrated, which helps to reduce inter-block seams; after fusion, the original known values are restored according to the data type, which can retain known categories and corresponding structural annotations. Attached Figure Description
[0013] Figure 1 This is a schematic diagram of the overall process of the method for continuously generating three-dimensional geological bodies using a sliding window from coarse to fine according to the present invention.
[0014] Figure 2 This is a schematic diagram showing the correspondence between the coarse-scale geological model and the target fine-scale modeling range of this invention.
[0015] Figure 3 This is a planar projection diagram of the adjacent sliding window sub-blocks, window step length, and overlap width of the present invention.
[0016] Figure 4 This is a schematic diagram illustrating the coarse-to-fine generation of a single three-dimensional sub-block according to the present invention.
[0017] Figure 5 This is a schematic diagram of overlapping area fusion and known constraint backfilling in this invention. Detailed Implementation
[0018] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0019] like Figure 1 As shown, this implementation first obtains a coarse-scale geological model of the target modeling region. The coarse-scale geological model can be a low-resolution three-dimensional voxel model, a regional geological prior model constructed from existing geological interpretation data, or a coarse-scale latent variable result obtained through a pre-trained encoder. The coarse-scale geological model provides one or more of the following: overall sequence relationship, fault trend, and background boundary of the target region, and serves as a common structural source for the subsequent generation of fine-scale latent variables for each overlapping three-dimensional sub-block.
[0020] like Figure 2As shown, a unified grid origin, axis, and voxel spacing are established based on the target fine-scale modeling range and resolution, and the coarse-scale geological model is mapped to this grid. Semantic categories are resampled using nearest neighbor or category-preserving methods, while structural edges are resampled using independent channels. The coarse-scale model in latent variable form uses the same encoder and latent variable normalization scale as subsequent generation, and is cropped or interpolated according to the corresponding spatial range; the prior in voxel form is first aligned to the sub-block grid, and then converted into prior latent variables by the encoder.
[0021] like Figure 3 As shown, the target region is divided into multiple overlapping 3D sub-blocks. Two adjacent windows are displayed in planar projection. Window size, step size, and overlap width are all calculated based on the number of voxels along the same axis. The standard overlap width equals the window size minus the step size. The window size is determined based on the processing capability of the generative model, and the step size is smaller than the window size; in one embodiment, at least one axis uses an even number of window sizes and a half-window standard step size. Each sub-block records its global starting point and extent. The global coordinates are obtained by adding the sub-block's starting point to the local coordinates, and the corresponding coarse-scale prior is extracted accordingly.
[0022] The sliding window coordinates are established along three axes. If the length of the target region on a certain axis is not less than the window size, the window starting point is incremented by the normal step size from the region's starting point, and then the final window starting point (obtained by subtracting the window size from the region's ending point) is added. This process removes duplicates and sorts the data; the final actual displacement can be less than the normal step size. If the length of the region along that axis is less than the window size, the boundary prior values are used to extend and fill the area to the window size. The original observation mask for the filled portion is set to zero and then clipped after output. Each window simultaneously preserves its effective range and overlap relationship, ensuring that the original target region is fully covered by the window.
[0023] For each sub-block, separate original known conditions and inherited conditions are established. Original known conditions are derived from boreholes, profiles, structural annotations, and pre-specified existing models to be retained; semantic categories and structural values are stored separately, with each mask setting one for valid positions and zero for others. Inherited conditions are derived from the generated neighbor block cache; values are stored by type, and the inherited mask only records available positions. Voxel conditions are encoded in the original voxel mesh, and position masks are mapped separately to the latent space; latent variable conditions are directly aligned according to the common latent mesh. The latent space known mask sets valid cells for all covered voxels to one and zero for the rest; the original voxel resolution mask is used for final original value backfilling.
[0024] The sub-blocks are traversed in row-major, column-major, depth-major, or known constraint density order. Before generating the current sub-block, the generated semantics, structure, or latent variable results of the overlapping region are read from the cache according to the global index, written to the corresponding inheritance condition tensor, and its inheritance mask is set to one. When multiple generated neighboring blocks cover the same position, the inheritance value can be obtained according to the following fusion rules. When the original known conditions and the inheritance conditions are inconsistent in the same type and position, the original known conditions shall prevail. The inheritance conditions and their masks of the first sub-block or sub-blocks without generated neighbors are set to zero; after each sub-block is generated, the results and global index are written to the cache.
[0025] like Figure 4 As shown, the aligned coarse-scale prior is encoded as a prior latent variable. An initial latent variable is constructed by a weighted sum of the prior latent variable and standard normal noise of the same shape; both coefficients are non-negative and sum to one. A latent space refinement network trained with coarse-scale priors and known conditions is used. This network receives the initial latent variable, the original known conditions, the inherited conditions, and their respective masks, progressively updating to obtain the fine-scale latent variable. When using a rectified flow network, the current velocity is multiplied by the time increment and added to the current state, with the flow time progressing from zero to one. The physical scale can be represented by the ratio of the sub-block length to a fixed reference length, and the depth can be represented by the ratio of the depth from the center of the sub-block to the top of the region to the total depth of the region; training and generation maintain the same definition. The fine-scale latent variables are used by the same decoder to recover semantic voxels; when using a dual-head decoder, structural edges are also recovered. The original known data and neighboring block inherited conditions in the figure are each equipped with a positional mask.
[0026] like Figure 5 As shown, after sub-blocks are generated, a fusion space is selected. The voxel space branch first decodes each sub-block, then accumulates voting weights by category on a unified global voxel grid, using the category with the highest voting weight as the semantic result; structural edge probabilities are averaged by weight. The latent space branch retains the latent variables of the sub-blocks, accumulates weighted latent variables and weights on the same coding space, normalized scale, and global latent grid, divides by the sum of weights to obtain the fusion latent variables, and then restores the voxel results through the corresponding decoder. Both branches perform original value backfilling after obtaining the voxel space results.
[0027] One implementation of weighted fusion uses the number of cells from the location to the nearest boundary of the sub-block plus one as the original weight, then normalizes it by dividing by the sum of weights for the same global location. Voxel branches use the number of voxel cells, latent space branches use the number of latent grid cells, and boundary weights are all greater than zero. Categories are voted on according to their weights; in case of a tie, the category of the sub-block closer to the sub-block center is prioritized; if the distance is still the same, the category of the sub-block that was traversed earlier is chosen. Locations covered by only one sub-block directly use its result. Semantic categories are selected by voting or center-first selection, and structural probabilities are then numerically averaged.
[0028] After fusion, at positions marked with valid original semantic masks, the fused semantic category is replaced with the original category; at positions with structural output and valid original structural mask marks, the same type of structural channel is replaced with the original structural value. When only semantic voxels are output, the tomographic location is used for structural verification, and the layer location is used for category boundary verification. Final backfilling is based on independently saved original data and masks, and neighboring block inherited values are retained in the generation and fusion chain. Figure 1 and Figure 5 The "known constraint backfilling" in the text refers to this original data backfilling step.
[0029] Output checks are performed along sub-block boundaries, overlapping areas, boreholes, and profile locations. For semantically known locations, the category is checked for recovery; for structurally known locations, the corresponding channel or boundary location is checked; for other regions, sequence and structural connections are observed through slicing. The source, fusion weights, and backfilling markers of each voxel can be saved simultaneously to distinguish between original observations, single-block predictions, and multi-block fusion results.
[0030] Through the above steps, large-scale continuous three-dimensional geological bodies can be obtained even with limited single-generation scale. This result inherits the overall structure provided by the coarse-scale geological model, restores local details through fine-scale sub-block generation, and reduces inter-block seams and constraint inconsistencies through adjacent sub-block condition inheritance, overlapping fusion, and backfilling with known constraints.
[0031] This invention can be executed by an electronic device. The electronic device may include a processor and a memory, the memory storing a computer program for performing the above steps. When the processor invokes the computer program, it can complete coarse-scale prior construction, sliding window sub-block partitioning, fine-scale sub-block generation, overlapping region fusion, and known constraint backfilling.
[0032] Sub-block generation and cache writing are performed in a preset traversal order, and the inheritance conditions for reading the current sub-block only come from the neighboring blocks that have already been generated.
[0033] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for continuously generating three-dimensional geological bodies using a sliding window from coarse to fine, characterized in that, include: Obtain a coarse-scale geological model of the target modeling area; Based on the target fine-scale modeling range and target resolution, the coarse-scale geological model is mapped to the target fine-scale coordinate system; The target modeling area is divided into multiple overlapping 3D sub-blocks by sliding window according to the preset window size and preset overlap width. Each 3D sub-block retains its global coordinate index in the target modeling area and establishes a spatial mapping relationship with the coarse-scale geological model accordingly. For each 3D sub-block, a coarse-scale prior is extracted based on its spatial mapping relationship, and original known condition data and original known voxel constraint region mask are constructed. The multiple 3D sub-blocks are generated sequentially in a preset order. One or more of the voxel results, structural edge results, or latent variable results of adjacent generated 3D sub-blocks in the overlapping region are written into the inheritance condition data of the current 3D sub-block according to the result type and spatial position, and the effective position is marked in the inheritance condition mask. Based on the coarse-scale prior, original known condition data, inheritance condition data, and their respective masks, the fine-scale latent variables of the 3D sub-block are generated, and the fine-scale latent variables are decoded into fine-scale voxel results. The overlapping regions of adjacent 3D sub-blocks are fused to obtain the fused result in voxel space; Within the original known voxel constraint area, the original known values are backfilled into the corresponding output channel of the fusion result according to the data type, and the backfilling of the original known values has a higher priority than the fusion result, so as to obtain the large-scale three-dimensional geological body result of the target modeling area.
2. The method according to claim 1, characterized in that, In the sliding window division, the step size of the regular window is smaller than the window size, and the step size of the regular window in at least one sliding direction is half of the corresponding window size, so as to form a half-step sliding window layout. The position of the last window at the boundary is adjusted according to the boundary alignment rule.
3. The method according to claim 2, characterized in that, When the length of the target area in a sliding direction is not less than the window size, align the termination coordinates of the last window in that direction with the boundary of the target area. When the value is smaller than the window size, fill the area in that direction to the size of a window and record the effective range; record the global coordinate range, local coordinate range, and adjacent overlap relationship of each window, and truncate the filled part during output.
4. The method according to claim 1, characterized in that, Extracting the coarse-scale prior includes: extracting priors aligned with the spatial extent of the 3D sub-block; if the prior is in voxel form, resampling the semantic category and the available structural edges respectively; if the prior is in latent variable form, cropping or interpolating to the latent space grid of the sub-block under the coding space and latent variable normalization scale consistent with the fine-scale generation.
5. The method according to claim 1, characterized in that, The original known voxel constraint region includes one or more of the following: the pre-specified existing model retention region, the borehole location with original observations, the profile location, the structural edge constraint region, and the fault constraint region; the original known condition data stores known semantic categories and known structural values respectively, and sets effective position masks of various types; the inherited condition data and inherited condition masks are stored separately.
6. The method according to claim 1, characterized in that, The multiple 3D sub-blocks are traversed in a row-first, column-first, depth-first, or order determined by known constraint density, and a cache of generated 3D sub-blocks is maintained. Before generating the current 3D sub-block, the generated results that overlap with it are read from the cache, and the inheritance condition data is written according to the result type and spatial correspondence. The corresponding inheritance condition mask is set to valid.
7. The method according to claim 1, characterized in that, The fusion is performed in the latent space or the decoded voxel space: in the latent space, the latent variables of the overlapping regions are synthesized on a unified latent grid according to weights, and then the fusion result in the voxel space is obtained by the decoder; In the voxel space, the semantic categories are categorized using either center-priority or weighted voting, and the structural edge probabilities are categorized using a weighted average to obtain the voxel space fusion result.
8. The method according to claim 7, characterized in that, The fusion weights in voxel space are determined by the distance from the voxel to the sub-block boundary, while the fusion weights in latent space are determined by the distance from the corresponding latent grid position to the sub-block latent grid boundary. Weights greater than zero are used, with weights closer to the sub-block center being higher than those closer to the boundary, and the weights participating in the fusion are normalized at the same global position.
9. The method according to claim 1, characterized in that, During backfilling, the original known categories are written into the semantic output according to the semantic effective position mask; when there is a structural output, the original structural values are written into the corresponding structural output according to the structural effective position mask; the original known values of each type cover the fusion values of the same type, and the inherited condition data only participates in the generation and fusion of sub-blocks.
10. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program, and when the processor invokes the computer program, it performs the method according to any one of claims 1 to 9.
