Real-time mud logging pore pressure prediction method based on explicit evolution equation soft and hard constraints

By employing a combined soft and hard constraint approach for explicit evolutionary equations during real-time logging, the explicit evolutionary equations of historical well data and their non-zero term support sets are encapsulated into a knowledge package. Furthermore, the fusion weights are dynamically adjusted based on real-time data quality and the applicability of the equations. This approach solves the stability and adaptability issues of pore pressure prediction and enables continuous and reliable pore pressure prediction.

CN123159176APending Publication Date: 2026-11-24UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611285078.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing pore pressure prediction methods suffer from several problems during real-time logging, including insufficient regional adaptability of fixed empirical models, lack of explicit evolutionary structure in pure data-driven models, easy accumulation of biases due to direct recursion of historical equations, and difficulty in ensuring real-time prediction stability due to single soft constraints.

Method used

A soft-hard constraint co-operation method based on explicit evolution equations is adopted. By encapsulating the explicit evolution equations and their non-zero term support sets in historical well data into a knowledge package, the non-zero term support sets are kept unchanged in the current well. Only the coefficients of the retained non-zero terms are boundedly modified. The fusion weights are dynamically adjusted in combination with real-time data quality and equation applicability to construct a pore pressure prediction model with soft and hard constraints.

Benefits of technology

It achieves continuity, adaptability, and reliability in pore pressure prediction during real-time logging, enhances physical interpretability and structural stability, and reduces the risk of cumulative drift and prediction instability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure QLYQS_7
    Figure QLYQS_7
  • Figure SMS_381
    Figure SMS_381
  • Figure QLYQS_11
    Figure QLYQS_11
Patent Text Reader

Abstract

The application discloses a real-time pore pressure prediction method based on explicit evolution equation soft and hard constraint cooperation. The application reconstructs continuous pore pressure by using historical well multi-source data, obtains an explicit evolution equation and a non-zero term support set by automatic differentiation and sparse identification, and constructs a knowledge package; the support set is locked in the current well, a bounded correction is carried out on the non-zero term coefficient and unmodeled gradient disturbance, a structural hard constraint candidate profile is formed by deep recursion, and a soft constraint candidate profile is formed by the same equation residual, pressure data, three pressure windows and smoothness constraint continuous prediction model; according to the data reliability, equation applicability, equation residual, local correction amplitude and window violation degree, the weight is adjusted and smoothed, online updating is carried out according to the new data type, and the pore pressure profile, three pressure safety windows and prediction reliability are output, which are used for drilling well control risk evaluation and drilling fluid density design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the fields of oil and gas drilling engineering, formation pressure evaluation and intelligent logging technology, and specifically relates to a real-time logging pore pressure prediction method based on soft and hard constraints of explicit evolution equations. Background Technology

[0002] Pore ​​pressure is a crucial fundamental parameter for drilling fluid density design, well control risk assessment, and optimization of safe drilling parameters. When the predicted formation pore pressure is too low, the wellbore fluid column pressure may be insufficient to balance the formation fluid pressure, thereby increasing the risk of blowout or kick. Conversely, when the predicted pore pressure is too high, the drilling fluid density may be unnecessarily increased, compressing the safe density window jointly defined by fracture pressure and collapse pressure, and potentially inducing lost circulation, reservoir contamination, or wellbore instability. Therefore, continuously and promptly obtaining pore pressure profiles during drilling is of great significance for safe drilling in complex pressure systems and formations with narrow safe density windows.

[0003] Existing methods for predicting pore pressure mainly include empirical methods based on normal compaction trends, sonic transit time, or resistivity deviations; mechanistic methods based on formation mechanical relationships; and machine learning methods trained using historical well data. Empirical and mechanistic methods offer some interpretability, but typically require pre-determined model forms and regional parameters. When formation lithology, tectonic stress, diagenesis, or pressure genesis changes, fixed models and coefficients are insufficient to fully characterize the local evolution of pore pressure with well depth and logging parameters. Well logging data provides rich formation information, but it is mostly obtained post-drilling or after logging operations, making it difficult to directly meet the requirements of real-time updates while drilling.

[0004] Real-time logging data, characterized by high sampling frequency, continuous acquisition, and field availability, provides a data foundation for predicting pore pressure while drilling. However, logging parameters are affected by factors such as drill bit type, drilling parameter adjustments, drilling fluid properties, wellbore cleanliness, and sensor status, often containing noise, drift, missing data, and changes in operating conditions. Pure data-driven models can learn nonlinear relationships from historical samples, but their predictions typically lack a clear evolutionary structure. When current well conditions exceed the training data range or effective pressure calibration points are scarce, the model may exhibit local abrupt changes, cumulative drift, or results that do not conform to the evolutionary laws of formation pressure.

[0005] Explicit sparse equation discovery methods can filter a small number of effective terms from a candidate function library to obtain an explicit evolution relationship of pore pressure relative to well depth and engineering parameters, combining data adaptability and structural interpretability. However, if explicit equations and fixed coefficients obtained from historical wells are directly used for recursion in the current well, equation errors may accumulate with well depth. If the data model is allowed to arbitrarily change the candidate option structure of the explicit equation, the interpretability and transferability of the explicit laws will be weakened. If only the residuals of the explicit equations are used as the training loss of the neural network, the equation constraints may not function stably when the real-time data quality is low or the loss weights are set inappropriately. Therefore, existing methods lack a real-time pore pressure prediction method that keeps the support set of non-zero terms of the historical explicit equations unchanged in the current well, performs bounded local corrections only on the coefficients of the retained non-zero terms, constructs soft constraint branches using the residuals of the same explicit equation, and dynamically coordinates the two types of prediction results based on real-time data quality, equation applicability, local correction magnitude, and the three-pressure window state.

[0006] Therefore, a pore pressure prediction technique for real-time logging scenarios is needed. This technique encapsulates the explicit evolution equations and their non-zero term support sets found in historical well data into a callable knowledge package. In the current well, the non-zero term support set remains unchanged, allowing only local corrections to the equation coefficients within the support set within a preset range. This is combined with the previous well's deep pressure state to progressively form a structural hard constraint candidate profile. Simultaneously, a data-driven soft constraint candidate profile based on the residuals of the same explicit evolution equation is constructed. Then, based on data reliability, equation applicability, equation residuals, local correction magnitude, and the degree of violation of the three pressure windows, directional controlled dynamic fusion and online updates are performed to obtain continuous, stable, and interpretable pore pressure prediction results. Summary of the Invention

[0007] The purpose of this invention is to overcome the problems of insufficient regional adaptability of fixed empirical models, lack of explicit evolutionary structure in pure data-driven models, easy accumulation of bias due to direct recursion of historical equations, and difficulty in ensuring real-time prediction stability by a single soft constraint in existing technologies. This invention provides a real-time logging pore pressure prediction method based on the synergy of explicit evolutionary equations and soft / hard constraints. This invention discovers explicit evolutionary equations for pore pressure from historical well data and determines the support set of non-zero terms, encapsulating the equations and their support set into a knowledge package. In the current well's hard constraint branch, the support set of non-zero terms remains unchanged, and only the coefficients of retained non-zero terms and unmodeled gradient perturbations are boundedly corrected and recursively applied to deeper levels. In the soft constraint branch, continuous prediction is performed using the equation residuals, real-time data consistency, three-pressure window consistency, and smoothness of the same explicit evolutionary equation. Two types of candidate profiles are dynamically fused based on the reliability of real-time logging data, the applicability of the explicit evolutionary equation, the equation residuals, the magnitude of local corrections, and the degree of violation of the three-pressure window of the candidate profiles. The pressure state and model parameters are continuously updated with new data to improve the continuity, adaptability, and reliability of real-time pore pressure prediction.

[0008] The technical solution adopted in this invention is:

[0009] A well logging pore pressure prediction method based on explicit evolution equations and coordinated soft and hard constraints includes the following steps:

[0010] S1. Acquire historical well multi-source data and perform late depth correction, anomaly processing, and unified well depth registration. The multi-source data includes logging data, well logging data, rock mechanics data, and three-pressure data. Through continuous pore pressure reconstruction, automatic differentiation, and sparse equation identification, obtain an explicit evolution equation describing the change of pore pressure with well depth and online available parameters. Determine the support set corresponding to the non-zero candidate options in the explicit evolution equation, and encapsulate the equation structure, equation coefficients, input variables and their online acquisition methods, applicable well depth range, formation type, effective range of input parameters, allowable range of coefficient variation, and version identifier into a pore pressure evolution equation knowledge package.

[0011] S2. Obtain the current well fracture pressure reference profile and collapse pressure reference profile. Based on the current well formation type, well depth location, and whether the online available parameters fall within the valid range of the input parameters of the knowledge package, select the applicable explicit evolution equation. Perform time-depth mapping and late depth correction on the current well real-time logging parameters, and combine with auxiliary engineering parameters to form online available parameters. Construct a differentiable pressure recursive model. Generate local coefficient correction and unmodeled gradient perturbation by a local correction network. Only perform bounded correction on the equation coefficients corresponding to the non-zero candidate options in the support set. The coefficients of candidate options outside the support set remain zero. Apply boundary constraints to the unmodeled gradient perturbation to maintain the non-zero term support set and integral relationship of the explicit evolution equation in the recursive process, satisfy the initial pressure condition and well depth continuity condition, and obtain the hard-constrained pore pressure candidate profile.

[0012] S3. Construct a continuous pore pressure prediction model using the current well depth and the online available parameters as input. Obtain the well depth derivative of the soft-constrained pore pressure candidate profile through automatic differentiation, and construct the equation soft constraint based on the deviation between the well depth derivative and the right-hand side function of the explicit evolution equation. Combine the data consistency between the soft-constrained pore pressure candidate profile and the high-reliability pressure data, the consistency of the three pressure windows defined by the current well fracture pressure reference profile and the collapse pressure reference profile, and the pressure smoothness in the well depth direction, optimize the continuous pore pressure prediction model to obtain the soft-constrained pore pressure candidate profile and its normalized equation residual.

[0013] S4. Based on the reliability of real-time logging data, the applicability of explicit evolution equations, the residual of normalized equations, the correction magnitude of local coefficients, and the degree of violation of the three-pressure windows of both hard-constrained and soft-constrained pore pressure candidate profiles, determine the fusion weight of the hard-constrained pore pressure candidate profile. When the reliability of real-time logging data decreases or the residual of normalized equations increases, increase the weight of the hard-constrained branch; when the applicability of explicit evolution equations decreases or the correction magnitude of local coefficients increases, decrease the weight of the hard-constrained branch, and relatively increase the fusion contribution of candidate branches with smaller three-pressure window violations. Apply well depth direction smoothing constraints or limit the maximum change in a single step to the fusion weights to obtain the final fused pore pressure prediction result. Continuously update the pressure state and model parameters with new data, and output continuous real-time pore pressure profiles, three-pressure safety windows, and prediction reliability.

[0014] Furthermore, in S1, with Representing the unified depth coordinates of historical wells, in This represents the engineering parameter vector formed after historical wells have undergone late depth correction, anomaly handling, and unified well depth registration. Indicates historical well pore pressure, subscript Indicates pore pressure, subscript Represent historical wells; construct a continuous pressure surrogate model with well depth and multi-source engineering parameters as inputs and pore pressure as output. :

[0015] ,

[0016] in, Parameters for the continuous pressure surrogate model; for historical well pore pressure, well depth, and... Each engineering parameter is standardized separately:

[0017] ,

[0018] in, , and These are the means of the corresponding historical training variables. , and These represent the standard deviations of the corresponding historical training variables. The symbol " "" indicates that the corresponding variables have been standardized; the derivative of the standardized pore pressure with respect to the standardized well depth is obtained through automatic differentiation. ;by This represents a candidate function matrix composed of standardized pore pressure, standardized well depth, standardized engineering parameters, and their interaction terms. The sparse coefficients of the standardized equation are represented by the well depth derivative of the standardized pore pressure obtained through continuous pressure reconstruction and automatic differentiation. Non-zero candidate options are then identified and screened through the sparse equation to obtain the standardized explicit evolution equation:

[0019] ,

[0020] in, To standardize well depth, This is the online available parameter vector under hard-constraint branches. This is the function on the right-hand side of the standardized explicit evolution equation;

[0021] Define the non-zero term support set as ,in, Indicates the index of the candidate function. Indicates the first The sparse coefficients corresponding to the candidate functions This represents the set of non-zero candidate function indices retained by sparse equation identification;

[0022] The right-hand side function of the engineering quantity is: , Let X be the pore pressure, and X be the vector of online available parameters. and The mean and standard deviation of pore pressure are given. and The mean and standard deviation of the well depth are given. This is a standardized online available parameter vector;

[0023] The pore pressure evolution equation knowledge package also includes: variable mean. , ... and standard deviation , , Training data distribution, surrogate model version and surrogate value reliability threshold, equation residual reference scale, and For the first The mean and standard deviation of each engineering parameter; when the knowledge package is invoked in the current well, the applicability of the explicit evolution equation is determined according to the following formula:

[0024] ,

[0025] in, For well depth adaptation, For stratigraphic type matching degree, To ensure coverage of online parameter range, The similarity between the current parameter distribution and the training distribution. To verify the basic credibility of the residuals corresponding to the knowledge package; among which, The subscript represents the equation residual of the knowledge package on the validation data. This represents the verification data. Indicates the preset equation residual reference scale, subscript Indicates a reference scale. Indicates the variable Limited to the range Internal; all components are normalized to , to The weights are non-negative and their sum is 1. The larger the value, the more applicable the knowledge package is to the current location.

[0026] Furthermore, in S2, the current well depth is divided into discrete well depth positions connected sequentially. ,by Indicates the first Hard-constrained pore pressure at discrete well depths, Indicates online available parameters; derived from a local correction network. Based on online available parameters, pore pressure at the previous well depth, applicability of the explicit evolution equation, and the three-pressure window state, the local coefficient correction amount before boundary constraints is generated. and unmodeled gradient perturbation :

[0027] ,

[0028] in, To locally correct network parameters, Indicates the preset pressure reference scale and the three pressure window status. Defined as:

[0029] ,

[0030] in, , The determined number Reference values ​​for fracture pressure and collapse pressure at discrete well depths;

[0031] right and Apply boundary constraints separately:

[0032] ,

[0033] in, This indicates that the local coefficient correction is projected onto the allowable set. Projection operations within, This represents the set of allowed local coefficient corrections. and These represent the lower and upper bounds of the unmodeled gradient perturbation, respectively; the differentiable pressure recursion model satisfies:

[0034] ,

[0035] in, For the well depth increment between adjacent well depth locations, the recursive calculation is performed. Only applies to the support set The candidates in the middle, for ,make ;for ,Keep ; The bounded, unmodeled gradient perturbation is used in the recursion; the prediction result of the previous discrete well depth position is used as the initial state of the next discrete well depth position, when... When a preset warning threshold is reached or the bounded mapping becomes saturated, the applicability of the explicit evolution equation at the current location is reduced, thereby forming a candidate profile of hard-constrained pore pressure. .

[0036] Furthermore, its characteristic is that, in S3, a system is constructed based on well depth. and current well online available parameters A continuous prediction model with pore pressure as input and pore pressure as output. ,in, Indicates the parameters of the continuous prediction model; obtains candidate profiles of soft-constrained pore pressure:

[0037] ,

[0038] Obtained through automatic differentiation The deviation between the well depth derivative and the right-hand side function of the engineering dimension is defined as the equation residual:

[0039] ,

[0040] Therefore, the soft-constraint joint loss function is constructed as follows:

[0041] ,

[0042] ,

[0043] ,

[0044] ,

[0045] ,

[0046] in, This is to account for the loss of data consistency between soft-constrained pore pressure and high-reliability pressure data or pressure anchor points. For the loss of the evolution equation, For the consistency loss of the three pressure windows, For the smoothing loss of pressure gradient changes at adjacent well depths: To determine the effective number of pressure observations, For the first The weights of each sample, For robust regression functions, For the first Observations of a sample, superscript Represents the observed value. A positive number set to prevent the denominator from being zero; The number of constraint positions for the equation and subscript For the position index of the equation constraint, For the first The values ​​of the constraint positions of the equations For the soft-constraint model in the 1st Predicted pressure at the constraint locations of each equation and The first The equations define the collapse pressure and rupture pressure at the constrained locations. , , This represents the predicted pressure values ​​of the soft-constraint model at the constraint locations of three adjacent equations. , , and The corresponding non-negative loss weight is used; when the reliability of real-time pressure data is high, the weight is increased. When the applicability of the explicit evolution equation is high, it can be improved. And improve when candidate pressure occurs and window boundaries are violated. Effective pressure observations must include at least the recursive initial pressure or the most recent pressure anchor point with a reliability not lower than a preset threshold; real-time logging data reliability must meet the following requirements:

[0047] ,

[0048] in, It is the ratio of the number of valid input parameters to the total number of input parameters required by the knowledge package. This is the ratio of the number of abnormal input parameters to the number of input parameters used in the judgment. This represents the ratio of the number of sensors operating normally to the total number of sensors participating in data acquisition. To obtain the confidence level by normalizing the uncertainty based on the lateness depth correction, This represents the normalized deviation of the current parameter distribution from the knowledge package training distribution, with each component located at... , to The weights are non-negative and their sum is 1; the loss weights are adjusted according to the reliability of real-time logging data and the applicability of the explicit evolution equation to obtain candidate profiles of soft-constrained pore pressure and the residuals of the normalized equation. .

[0049] Furthermore, in S4, the normalized local coefficient correction magnitude is defined as:

[0050] ,

[0051] in, Represents the support set of non-zero items The number of candidate functions, Indicates the first The discrete well depth location Local coefficient correction of a non-zero candidate function The first recorded for the knowledge package The maximum allowable correction amount for the coefficients of a non-zero candidate function To prevent positive numbers with a denominator of zero, the fusion weight for hard-constrained pore pressure candidate profiles is:

[0052] ,

[0053] in, This indicates that the input value is mapped to a range. Logical functions, For gated bias. to The non-negative gating coefficient, and The superscript indicates the degree of violation of the normalized three-pressure window for candidate profiles of hard-constrained pore pressure and candidate profiles of soft-constrained pore pressure, respectively. and These represent hard constraint branches and soft constraint branches, respectively.

[0054] The final predicted pore pressure value is:

[0055] ;

[0056] by As the lower boundary of the three-pressure safety window, As the upper boundary of the three-pressure safety window, the three-pressure safety window is:

[0057] ,

[0058] when Output three pressure window conflict alarms;

[0059] The normalized soft and hard candidate profile differences and the degree of violation of the final fused profile window satisfy the following:

[0060] ,

[0061] ,

[0062] Prediction confidence is defined as:

[0063] ,

[0064] in, to The weights are non-negative and their sum is 1. The larger the value, the more reliable the prediction result.

[0065] The beneficial effects of this invention are as follows:

[0066] 1) Structural hard constraints of explicit laws: This invention encapsulates the explicit evolution equation of pore pressure and its non-zero term support set found in historical well data into a knowledge package. During the current well recursion process, the support set remains unchanged, and only the retained non-zero term coefficients and unmodeled gradient perturbations are allowed to be adjusted within a preset range. This ensures that the current well pore pressure prediction maintains the explicit equation structure, initial pressure conditions and well depth continuity conditions at each well depth step, thereby enhancing the physical interpretability and structural stability of real-time prediction.

[0067] 2) Flexible adaptation to local operating condition changes: This invention compensates for regional differences in explicit equations by correcting bounded local coefficients and unmodeled gradient perturbations. At the same time, it constructs a soft-constrained continuous prediction model by utilizing the equation residuals of the same explicit evolution equation, real-time data consistency, three-pressure window consistency, and smoothness constraints. When high-reliability pressure data is obtained, the hard-constrained recursive state is re-anchored, reducing the risk of cumulative drift and single-data model prediction instability caused by direct extrapolation of fixed equations.

[0068] 3) Direction-controlled dynamic collaboration of multi-source reliable information: This invention dynamically adjusts the fusion weights based on real-time data reliability, equation applicability, equation residuals, local correction magnitude, and the degree of window violation of hard and soft candidate profiles, and imposes well depth direction continuity constraints on the fusion weights; different online update methods are adopted for newly added logging data, newly added high-reliability pressure data, and formation state changes, thereby dynamically transferring the prediction dominance of soft and hard branches under different mismatch conditions, and simultaneously outputting continuous pore pressure profiles, three-pressure safety windows, and prediction reliability. Detailed Implementation

[0069] To make the objectives, technical solutions, and advantages of this application clearer, the specific embodiments of the present invention will be described in further detail below with reference to examples.

[0070] This invention includes the following steps:

[0071] S1. Explicit Evolution Equation Discovery and Knowledge Package Construction: Acquire historical well logging data, well logging data, rock mechanics data, and three-pressure data; perform late depth correction, anomaly processing, and unified well depth registration on multi-source data; obtain explicit evolution equations describing the changes in pore pressure with well depth and online available parameters through continuous pore pressure reconstruction, automatic differentiation, and sparse equation identification; determine the support set corresponding to the non-zero candidate options in the explicit evolution equations; associate the explicit evolution equations, the support set, with fracture pressure reference profiles and collapse pressure reference profiles; and encapsulate the equation structure, equation coefficients, input variables and their online acquisition methods, applicable well depth ranges, formation types, effective ranges of input parameters, allowable ranges of coefficient variation, and version identifiers into a pore pressure evolution equation knowledge package.

[0072] S2. Hard-Constrained Pore Pressure Recursion: Obtain the current well fracture pressure reference profile and collapse pressure reference profile. Based on the current well formation type, well depth, and whether the current well's online available parameters fall within the valid range of the knowledge package input parameters, select the applicable explicit evolution equation from the pore pressure evolution equation knowledge package. Perform time-depth mapping and late depth correction on the current well's real-time logging parameters, and combine them with auxiliary engineering parameters obtained online through adjacent well segment mapping or real-time proxy models to form online available parameters. Construct a differentiable pressure recursion model, generate local coefficient corrections and unmodeled gradient perturbations from a local correction network, and only perform bounded corrections on the equation coefficients corresponding to non-zero candidate options in the support set. The coefficients corresponding to candidate options outside the support set remain zero, and boundary constraints are applied to the unmodeled gradient perturbations to ensure that the recursion process maintains the support set and integral relationship of the non-zero terms of the explicit evolution equation, and satisfies the initial pressure condition and well depth continuity condition, thereby obtaining a hard-constrained pore pressure candidate profile.

[0073] S3. Continuous Prediction of Soft-Constrained Pore Pressure: A continuous prediction model for pore pressure is constructed using the current well depth and the online available parameters as inputs. The well depth derivative of the candidate profile for soft-constrained pore pressure is obtained through automatic differentiation. The soft constraint of the equation is constructed based on the deviation between the well depth derivative and the right-hand side function of the explicit evolution equation. The continuous prediction model for pore pressure is optimized by combining the data consistency between the candidate profile for soft-constrained pore pressure and the test values ​​while drilling, the interpreted values ​​of formation pressure, or the high-reliability pressure reference values ​​of adjacent well depths, the consistency of the three pressure windows defined by the current well fracture pressure reference profile and the collapse pressure reference profile, and the pressure smoothness in the well depth direction, to obtain the candidate profile for soft-constrained pore pressure and its normalized equation residual.

[0074] S4. Dynamic Fusion and Online Update of Hard and Soft Candidate Profiles: Based on the reliability of real-time logging data, the applicability of explicit evolution equations, the residual of soft-constrained normalization equations, the correction magnitude of hard-constrained local coefficients, and the degree of violation of the three-pressure windows of both hard-constrained and soft-constrained pore pressure candidate profiles, the fusion weight of hard-constrained pore pressure candidate profiles is determined. When the reliability of real-time logging data decreases or the residual of normalization equations increases, the weight of hard-constrained branches is increased; when the applicability of explicit evolution equations decreases or the correction magnitude of local coefficients increases, the weight of hard-constrained branches is decreased, and the fusion contribution of candidate branches with smaller three-pressure window violations is relatively increased. A depth-direction smoothing constraint or a limit on the maximum single-step change is applied to the fusion weights. The input state, initial pressure state, model parameters, applicability of explicit evolution equations, and fusion weights are updated according to newly added real-time logging data, newly added high-reliability pressure data, and formation state changes, respectively, outputting continuous real-time pore pressure profiles, three-pressure safety windows, and prediction confidence.

[0075] A further technical solution is that, in step S1, using Representing the unified depth coordinates of historical wells, in This represents the engineering parameter vector formed after historical wells have undergone late depth correction, anomaly handling, and unified well depth registration. This represents the historical well pore pressure. The historical well engineering parameter vector includes at least a portion of the following: mechanical drilling rate, drilling pressure, torque, rotary table speed, standpipe pressure, drilling fluid discharge rate, inlet drilling fluid density, outlet drilling fluid density, outlet flow rate, gas logging values, drilling fluid temperature, and auxiliary engineering parameters obtained from logging data or rock mechanics data. Invalid values ​​are removed, short-term missing data is interpolated, and abnormal data is assigned a lower reliability weight or masked.

[0076] To ensure the computability of the explicit evolution equations in the current well's real-time application phase, the engineering parameters that enter the candidate function matrix and are ultimately retained in the knowledge package should be directly obtainable from the current well's real-time logging system, or generated online through mapping of corresponding layers in adjacent wells or a real-time proxy model. This includes the deviation of the sonic transit time from the normal compaction trend. Indirect logging variables, where the subscript It represents the sonic transit time; it uses the segment mapping result constrained by the formation event anchor point of the adjacent well, or it uses a real-time surrogate model trained by the corresponding samples of historical well logging-well logging to generate its current well surrogate value, and records the reliability of the surrogate value; when the reliability of the surrogate value is lower than the preset threshold, it reduces the applicability of the explicit evolution equation, or switches to a knowledge package that does not contain the surrogate variable.

[0077] Construct a continuous pressure surrogate model with well depth and multi-source engineering parameters as inputs and pore pressure as output. The output of the continuous pressure surrogate model is:

[0078] ,

[0079] in, This is a vector of engineering parameters under a unified well depth coordinate system for historical wells. The parameters for the continuous pressure surrogate model are determined by training the continuous pressure surrogate model based on the effective pore pressure calibration value, pressure variation smoothness, and reasonable pressure range, and then obtaining the parameters through automatic differentiation. This avoids the amplification of errors caused by direct differential analysis of sparse and noisy pressure calibration points. This represents the pore pressure output by the historical well continuous pressure proxy model.

[0080] by This represents a candidate function matrix composed of standardized pore pressure, standardized well depth, standardized historical well engineering parameters, and their interaction terms. Represents the sparsity coefficients of the standardized equation. For historical well pore pressure, well depth, and the first... Each engineering parameter is standardized separately:

[0081] ,

[0082] in, , and These are the means of the corresponding historical training variables. , and These are the standard deviations of the corresponding historical training variables. Obtained through automatic differentiation. Furthermore, by identifying and screening non-zero candidate functions through sparse equations, the standardized explicit evolution equation of pore pressure is obtained:

[0083] ,

[0084] The standardized pressure derivative and the dimensional pressure gradient satisfy the following:

[0085] ,

[0086] The dimensional right-hand side function used for current well pressure recursion and equation residual calculation is defined as follows:

[0087] ,

[0088] in, The unit is MPa / m. The support set for non-zero terms is defined as:

[0089] ,

[0090] in, This only represents the index of the candidate function. For the first The sparse coefficients corresponding to the candidate functions This is the set of indices for non-zero candidate functions identified and retained through sparse equations. Candidate functions include at least a subset of constant terms, well depth terms, pore pressure terms, mechanical drilling rate terms, drilling pressure terms, torque terms, rotary table speed terms, standpipe pressure terms, drilling fluid displacement terms, drilling fluid density terms, gas logging terms, deviation from normal compaction trends terms, and their lower-order interaction terms. The candidate functions undergo dimensional transformation, standardization, and correlation pre-screening. Sequential threshold ridge regression, Lasso, sparse Bayesian learning, or proximal gradient methods are then used to further screen for non-zero candidate functions. and local coefficient correction amount All are located in the coefficient space of the standardized equations; unmodeled gradient perturbations. Located in the pressure gradient space of engineering dimensions, with units of MPa / m.

[0091] The standardized explicit evolution equation, the engineering dimension conversion relationship, and the corresponding well depth reference value of the fracture pressure are used to... and collapse pressure reference value Associate and support the non-zero items. The following information is encapsulated into a pore pressure evolution equation knowledge package: sparse equation coefficients, online available parameter names and units, variable mean and standard deviation, valid range of input parameters, applicable well depth range, formation type, training data distribution, online acquisition method of input variables, surrogate model version and surrogate value reliability threshold, equation residuals, allowable variation range of coefficients, and version identifier. When the current well calls the knowledge package, the applicability of the explicit evolution equation is determined according to the following formula:

[0092] ,

[0093] in, For well depth adaptation, For stratigraphic type matching degree, To ensure coverage of online parameter range, The similarity between the current parameter distribution and the training distribution. To verify the underlying reliability of the residuals in the knowledge package; all components are normalized to... , to The weights are non-negative and their sum is 1. The larger the value, the more applicable the knowledge package is to the current location.

[0094] A further technical solution is that, in step S2, the current well depth is divided into sequentially connected discrete well depth positions. ,by Indicates the first Hard-constrained pore pressure at discrete well depths, This represents the online available parameters, which consist of real-time logging parameters after time-depth mapping and late-depth correction, and auxiliary engineering parameters obtained online through adjacent well interval mapping or real-time proxy models. This represents the depth increment between adjacent well depth locations. Based on the effective annular volume, drilling fluid discharge rate, and drilling speed, time-depth mapping and late-arrival depth correction are applied to the outlet flow rate, gas logging values, and outlet drilling fluid parameters; real-time downhole parameters are directly assigned according to the acquired well depth. The selected pore pressure evolution equation knowledge package is used to... Perform dimensional conversion and standardization, and set the recursive initial state according to the priority order of the current well direct pressure test value, the current well high reliability pressure interpretation value, the adjacent well layer mapping value, and the wellhead boundary extrapolation value. Current well fracture pressure reference profile and collapse pressure reference profile The results are obtained from at least one of the following: current well logging interpretation, adjacent well layer mapping, formation mechanics model, or multi-source fusion results, and their reliability or confidence interval is recorded respectively.

[0095] By local correction network Based on online available parameters, pore pressure at the previous well depth, applicability of the explicit evolution equation, and the three-pressure window state, the local coefficient correction amount before boundary constraints is generated. and unmodeled gradient perturbation :

[0096] ,

[0097] in, This is for locally adjusting network parameters. This indicates the preset pressure reference scale. The three-pressure window state is defined as follows:

[0098] ,

[0099] The three components represent, respectively, the position of pore pressure relative to collapse pressure, the remaining margin of pore pressure relative to rupture pressure, and the normalized width of the three-pressure safety window, making this state predictable. Previously available. Yes and Apply boundary constraints separately:

[0100] ,

[0101] in, This represents the set of allowed local coefficient corrections. and Let represent the lower and upper bounds of the unmodeled gradient perturbation, respectively. The differentiable pressure recursion model satisfies:

[0102] ,

[0103] in, The unit is m. and The units are all MPa / m. and The units are all MPa.

[0104] The correction to the local coefficients only applies to the support set of non-zero terms. The candidates in the middle, that is, for ,make ;for ,Keep This prevents the local correction network from reactivating candidate equations that were not retained in the historical sparse equation identification. (The remaining text appears to be incomplete and possibly contains errors.) and Always within the permitted scope defined by the knowledge package; before the boundary restrictions When the preset warning threshold is reached, or when the boundary mapping becomes saturated, the corresponding position is marked as a low-applicability position of the explicit evolution equation and its application is reduced. Since the predicted results of the previous well depth are directly used as the initial state for the next well depth, the recursive process maintains the non-zero term support set and integral relationship of the selected explicit equations at each well depth step, and satisfies the initial pressure condition and the well depth continuity condition, thus forming a hard-constrained pore pressure candidate profile. .

[0105] The local correction network can be pre-trained using historical well sections, with the single-step pressure prediction error at adjacent well depths, local coefficient correction regularization terms, and unmodeled gradient perturbation regularization terms forming the training objectives. In the current well real-time application stage, the final layer parameters or local state of the local correction network are only updated incrementally with limited constraints when new high-reliability pressure data is obtained, so as to avoid a large change in the equation structure caused by a small amount of real-time data.

[0106] To suppress the accumulation of recursive errors over long well sections, when drilling pressure test values, formation pressure interpretation values, or other high-reliability pressure data are obtained, the recursive state after the well depth position is re-anchored using the newly added pressure data in real-time unidirectional prediction; during offline back-calculation, bidirectional correction upwards and downwards is allowed using the anchor point. The explicit equation structure remains unchanged between adjacent anchor points, and local coefficients are allowed to be continuously adjusted within the knowledge package setting range.

[0107] A further technical solution is that, in step S30, using This represents the online available parameter vector under the current continuous well depth coordinates, constructing a vector based on well depth. and A continuous prediction model with pore pressure in engineering dimensions as input and pore pressure in engineering dimensions as output. Candidate profiles of soft-constrained pore pressure were obtained:

[0108] ,

[0109] in, These are parameters for a continuous prediction model. They are obtained through automatic differentiation. The deviation between the dimensional well depth derivative and the dimensional right-hand side function is defined as the equation residual:

[0110] ,

[0111] The soft-constraint joint loss function is:

[0112] ,

[0113] in, This is to account for the loss of data consistency between soft-constrained pore pressure and high-reliability pressure data or pressure anchor points. For the loss of the evolution equation, For the consistency loss of the three pressure windows, This represents the smoothing loss due to pressure gradient variations at adjacent well depths. , , and The corresponding non-negative loss weight.

[0114] Let the first One effective pressure observation is Its reliability weight is Let the first The constraint positions of the equations are: Then the data consistency loss and the evolution equation loss are respectively:

[0115] ,

[0116] ,

[0117] in, This only indicates the pressure observation index. This only indicates the position index of the equation constraint. The number of effective stress observations to participate in the calculation of data consistency loss. The number of constraint locations for the equation. Effective pressure observations include drilling pressure test values, formation test values, quality-controlled interpreted pressure values, recursive initial pressure, and high-reliability pressure anchors at adjacent well depths; direct test values, interpreted values, and mapped values ​​are assigned different reliability weights based on their sources.

[0118] in, This is the squared loss or Huber loss. To prevent positive numbers with a denominator of zero, the consistency loss and smoothing loss for the three pressure windows are as follows:

[0119] ,

[0120] ,

[0121] in, The three-pressure window consistency loss is used to ensure that the lower boundary of the three-pressure safety window, jointly determined by the candidate pore pressure value and the reference collapse pressure value, is not higher than the reference rupture pressure value, without limiting the fixed magnitude relationship between pore pressure and collapse pressure; the smoothing loss is used to limit non-operating abrupt changes in pressure gradient between adjacent well sections.

[0122] Based on the reliability of real-time logging data and the applicability of explicit evolution equations Dynamically adjust the weights of each loss term; increase the weight when the reliability of real-time stress data is high. When the applicability of the explicit evolution equation is high, it can be improved. And improve when candidate pressure occurs and window boundaries are violated. The optimized output is a candidate profile of soft-constrained pore pressure. and normalized equation residuals The reliability of real-time logging data is determined by the following formula:

[0123] ,

[0124] in, It is the ratio of the number of valid input parameters to the total number of input parameters required by the knowledge package. This is the ratio of the number of abnormal input parameters to the number of input parameters used in the judgment. This represents the ratio of the number of sensors operating normally to the total number of sensors participating in data acquisition. To correct the uncertainty based on the lateness depth The credibility obtained This represents the normalized deviation of the current parameter distribution from the knowledge package training distribution; each component is located within... , to The weights are non-negative and their sum is 1. The residuals of the normalized equation satisfy:

[0125] ,

[0126] in, A preset reference scale for training or validating residuals of knowledge packages.

[0127] A further technical solution is that, in step S4, using Represents candidate profiles of hard-constrained pore pressure, with This represents a candidate profile of soft-constrained pore pressure. The normalized local coefficient correction magnitude is defined as:

[0128] ,

[0129] in, The first recorded for the knowledge package The maximum correction amount is allowed for the coefficients of the non-zero candidate functions. According to... , , , The fusion weight of hard-constrained candidate profiles is determined by the degree of violation of the three-pressure window of hard and soft candidate profiles. The fusion weights are located at The final pore pressure prediction results satisfy:

[0130] ,

[0131] The fusion weights can be obtained from preset rules, logistic regression models, or lightweight gating networks. One method for calculating fusion weights is as follows:

[0132] ,

[0133] In the formula, to The gating coefficients are preset or obtained through training. to It is a non-negative number; and These represent the degree of violation of the normalized three-pressure window for hard-constrained and soft-constrained candidate profiles, respectively. When the reliability of real-time logging data decreases or the equation residuals of the soft-constrained candidate profile increase, the [measurement / improvement] is [improved / enhanced]. When the applicability of the explicit evolution equation decreases or the correction magnitude of the normalized local coefficients increases, the efficiency of the equation decreases. ; Window violation This is used to relatively increase the contribution of candidate branches with lower window violation rates to the final result. Apply a smoothing constraint in the well depth direction or limit the maximum change in a single step. , , , , and Normalized to .for The degree of window violation is defined as:

[0134] ,

[0135] in, This only indicates the candidate branch index.

[0136] When only new real-time logging data is obtained, the reliability of the real-time logging data, the currently available online parameters of the well, the normalized equation residuals, and the three-pressure window state are updated. The data consistency loss of the recursive initial pressure or the most recent high-reliability pressure anchor point is retained, and the soft-constrained continuous prediction model is updated with limited increments using evolution equation loss, three-pressure window consistency loss, and smoothing loss. When new high-reliability pressure data is obtained, the data consistency loss corresponding to the new pressure data is activated, the hard-constrained recursive initial state is updated, and the local equation coefficients and the parameters of the last layer of the soft-constrained model are corrected within the allowable range based on the deviation between the new data and the explicit evolution equation output. When lithological interfaces, drilling rate abrupt changes, gas logging anomalies, or parameter distributions exceeding the effective range of the knowledge package input parameters are detected, the applicability of the explicit evolution equation is recalculated. When multiple candidate knowledge packages exist, the knowledge packages are selected according to their applicability ranking, and a switching threshold and hysteresis interval are set. During switching, the local coefficients and fusion weights are continuously adjusted through the transition zone of adjacent well depths, and the original knowledge package version, the target knowledge package version, the applicable scope, and the correction information are recorded.

[0137] by As the lower boundary of the three-pressure safety window, As the upper boundary of the three-pressure safety window, the width of the three-pressure safety window is:

[0138] ,

[0139] when A three-pressure window conflict alarm is output, and the current position is marked as having no available three-pressure safety window. The degree of normalization window violation for the difference between normalized soft and hard candidate profiles and the final fused profile is defined as follows:

[0140] ,

[0141] ,

[0142] Prediction confidence is defined as:

[0143] ,

[0144] in, to The weights are non-negative and their sum is 1. A larger value indicates a more reliable prediction result. Outputs a continuous real-time pore pressure profile, three-pressure safety windows, window conflict alarm status, and prediction reliability.

[0145] Example:

[0146] This embodiment constructs historical well data from four wells (A, B, C, and D) in the same block to discover the explicit evolution equation of pore pressure and establish a knowledge package. The target well intervals for the four wells are located between 3600 and 6100 m. The original sampling time interval for logging data is 1 second, and after late arrival depth correction, the data is resampled at 0.5 m well depth intervals. Logging parameters include mechanical drilling rate, drilling pressure, torque, rotary table speed, standpipe pressure, drilling fluid discharge, inlet and outlet drilling fluid density, outlet flow rate, total hydrocarbon value, and drilling fluid temperature; logging parameters include natural gamma, sonic transit time, resistivity, and bulk density; rock mechanics parameters include Poisson's ratio, cohesion, internal friction angle, and uniaxial compressive strength.

[0147] A total of 116 pore pressure calibration points, 43 fracture pressure calibration points, and 35 collapse pressure calibration points were set in the four wells. The pore pressure calibration values ​​were simulated from the results of drilling pressure testing, formation testing, and combined sonic-resistivity interpretation. The reliability weights were set to 0.65–1.00 based on the data sources. Outliers were identified using the local median absolute deviation for logging parameters. Monotonic cubic interpolation was used for missing segments with a continuous length not exceeding 5 m, and data unusable markers were set for longer missing segments.

[0148] The continuous pressure surrogate model employs a 4-layer fully connected network with 64 neurons per layer and a hyperbolic tangent activation function. Wells A, B, and C are used as training wells, and well D is used as a validation well. During training, a reliability-weighted Huber loss is used, and constraints are imposed on the non-negativity of pore pressure and abnormal oscillations in the well depth direction. After training, the well depth derivative of pore pressure is calculated using automatic differentiation on a 0.5 m well depth grid.

[0149] The candidate function library includes constant terms, standardized well depth, pore pressure, mechanical drilling rate, drilling pressure, torque, standpipe pressure, drilling fluid discharge rate, inlet drilling fluid density, total hydrocarbon value, sonic transit time deviation, normal compaction trend deviation, and low-order product terms of the above variables. After removing candidate options with an absolute correlation coefficient greater than 0.98 and redundant engineering meanings, sequential threshold ridge regression was used for sparsity screening, and the stability of the candidate option support set was tested through five resampling iterations.

[0150] In a set of simulation identification results, the explicit evolution equation expressed using standardized variables is:

[0151] ,

[0152] in, To standardize mechanical drilling speed, To standardize riser pressure, This represents the standardized deviation of the acoustic transit time from the normal compaction trend. The total hydrocarbon value is standardized. The support set consistency rate of the non-zero terms in the equation is 92% across 5 resampling operations. The normalized mean square residual of the equation in the validation section of Well D is 0.021, and the mean absolute error between the pore pressure obtained by integration along the well depth and the reference pressure is 1.06 MPa. The above values ​​are only used to illustrate the equation discovery and knowledge package encapsulation process and do not constitute a limitation on the candidate options or coefficient values. and These represent standardized pore pressure and standardized well depth, respectively.

[0153] Support set of non-zero terms of the equation The first pore pressure evolution equation knowledge package is encapsulated as follows: non-zero coefficients, variable names and units, mean and standard deviation, applicable well depth range (3600–6100 m), applicable formation type, effective range of input parameters, allowable coefficient variation range (±20%), equation residuals, support set stability rate, and version number. It also associates the corresponding well interval with fracture pressure and collapse pressure reference profiles and divides the well into sub-intervals according to formation type. For locations where the currently available online parameters of the well exceed the effective range of the knowledge package input parameters, the applicability of the explicit evolution equation is correspondingly reduced.

[0154] Using Well E as the current well, real-time pore pressure prediction is performed using the established knowledge package. The target interval for Well E is 4050–5350 m. Real-time logging data is received at 1-second intervals and converted into a 0.5-m depth grid according to the drill bit position. Fracture pressure and collapse pressure reference profiles are calculated from adjacent well interval mappings and rock mechanics parameters already acquired in the current well, and reference profile reliability is included. The deviation of sonic transit time from the normal compaction trend is also included. It is jointly generated by mapping the corresponding intervals of adjacent wells and a surrogate model based on the real-time logging parameters of the current well; when the reliability of its surrogate value is lower than a preset threshold, the applicability of the explicit evolution equation is reduced and it switches to a model without... The alternative knowledge package. The reliable pore pressure value of 42.6 MPa at 4050 m is used as the initial state for hard constraint recursion.

[0155] The local correction network is configured as a two-layer fully connected network with 32 neurons per layer. Inputs include mechanical drilling rate, drilling pressure, torque, rotary table speed, standpipe pressure, drilling fluid discharge rate, inlet drilling fluid density, total hydrocarbon value, and sonic transit time deviation. The online proxy value and its reliability, pore pressure at the previous well depth, applicability of the explicit evolution equation, and three-pressure window state are calculated. The local correction network first outputs the local coefficient correction and unmodeled gradient perturbation before boundary constraints, and then performs boundedness through hyperbolic tangent mapping or interval projection; the local coefficient correction involved in the recursion is limited to ±20% of the baseline coefficient, and the unmodeled gradient perturbation is limited to ±0.006 MPa / m. The local coefficient correction only applies to the knowledge package support set. Non-zero candidate options in the support set have coefficients that remain zero outside the support set. Hard-constrained branches first pass... The standardized equation output is restored to MPa / m, and then recursively applied point by point with a step size of 0.5 m to obtain... .

[0156] The soft-constraint continuous prediction model employs a fully connected network with four layers and 48 neurons per layer. The initial loss weights are set to... , , and When the proportion of effective logging parameters within the rolling window is less than 85%, the data consistency weight is reduced to 0.6; when the applicability of the explicit evolution equation is greater than 0.85, the equation loss weight is increased to 0.9; when the safety window width is less than 8 MPa, the window consistency weight is increased to 0.8. An incremental update is performed on the soft-constraint model for every 10 m of newly added well data, and the output is... And the normalized equation residuals. When only new real-time logging data is added without new pressure observations, the data consistency loss at the initial pressure at 4050 m or the most recent high-reliability pressure anchor point is retained; after obtaining new high-reliability pressure data, the data consistency loss is activated simultaneously and the model's last layer parameters are updated.

[0157] The fusion weights were calculated using a lightweight gated network, with the weight variation between adjacent 0.5 m well depth locations limited to no more than 0.08. In stable formations with low logging data reliability but high applicability of explicit evolution equations, the hard-constrained branch weights ranged from 0.68 to 0.82. In well sections near formation interfaces where the applicability of explicit evolution equations decreased and the local coefficient correction magnitude increased, the hard-constrained branch weights decreased to 0.32–0.48. In well sections with reliable logging data and small residuals in soft-constrained equations, the weights of the two candidate results were nearly balanced. When there were differences in the degree of violation of the three-pressure windows between the two candidate profiles, the gated network relatively increased the fusion contribution of the branch with a smaller window violation. Simulation results for some well sections are shown in Table 1.

[0158] Table 1. Results of soft and hard constraint fusion for some well sections in the current well (average fused pore pressure is calculated based on a 0.5m grid for the corresponding well section).

[0159]

[0160] In a set of simulation verifications, the average absolute errors of the hard-constrained candidate profile, soft-constrained candidate profile, and fused profile relative to the reference pore pressure were 1.42 MPa, 1.27 MPa, and 0.86 MPa, respectively; the maximum non-operational pressure abrupt change at a depth of 0.5 m adjacent to the fused profile was 0.18 MPa. Within the lithological transition zone of 4580–4820 m, the correction amplitude of the local hard-constraint coefficient increased, and the gating network reduced the hard-constraint weight, causing the fused results to mainly follow the soft-constraint branch. Within the local logging gap zone of 4300–4580 m, the data reliability decreased while the applicability of the explicit evolution equation remained high; the gating network increased the hard-constraint weight, thereby maintaining the continuity of the pressure profile.

[0161] When a new pressure data point with a reliability of 0.96 is added at 4975 m in Well E, this pressure value is used as the new recursive anchor point, and the local equation coefficients and soft constraint model state are updated within a 30 m range above and below it; the local equation coefficients are only updated in the non-zero term support set. Adjustments were made according to the knowledge package's allowed range. After the update, the average difference between soft and hard candidate profiles in this local well section decreased from 2.1 MPa to 0.9 MPa, and the prediction confidence improved from 0.74 to 0.88. Finally, the larger value between pore pressure and collapse pressure was used as the lower boundary of the three-pressure safety window, and the fracture pressure was used as the upper boundary. The output included a continuous pore pressure profile, the width of the three-pressure safety window, the window conflict alarm status, and the prediction confidence curve.

[0162] In other implementations, the historical well continuous pressure surrogate model and the current well soft-constraint continuous prediction model can employ residual fully connected networks, radial basis function networks, neural operator networks, or other differentiable models with continuous coordinate inputs, as long as a continuous pressure function and its derivative relative to the well depth can be obtained. The local correction network can employ a multilayer perceptron, a gated recurrent unit, or a lightweight temporal network.

[0163] The explicit evolution equation candidate library can add variables such as density, drilling fluid temperature, well inclination angle, geostress, porosity, fracture density, or stratigraphic sequence identifiers based on the geological conditions of the target block. It can also include polynomial, fractional, exponential, logarithmic, or physical response terms constructed from known compaction relationships. Sparse coefficients can be solved using sequential threshold ridge regression, Lasso, group sparse regression, sparse Bayesian learning, proximal gradient, or alternating optimization methods with hard thresholds.

[0164] Hard constraint pressure recursion can employ explicit Euler methods, improved Euler methods, Runge-Kutta methods, or adaptive step-size integration methods. When the well depth step size changes significantly, the recursion step size is automatically adjusted based on the rate of change of the local equations. Regardless of the integration method used, the local coefficient correction for the current well maintains the non-zero support set in the knowledge package unchanged. Fusion weights can be obtained using preset piecewise rules, logistic regression, fuzzy inference, or lightweight gating networks. The weight smoothing range can be adjusted according to the requirements of continuity, real-time performance, or conservatism in the field, but the directional relationship between data reliability, equation residuals, equation applicability, local correction magnitude, and window violation degree on the soft and hard branch weights should remain consistent with the aforementioned fusion rules.

[0165] Reference profiles for fracture pressure and collapse pressure can be obtained from current well logging interpretation, adjacent well interval mapping, formation mechanics models, or multi-source fusion results. Prediction confidence can be represented by hierarchical results or continuous numerical values, and can be adjusted with new pressure tests, changes in logging data quality, and knowledge package version updates. The above equivalent substitutions do not change the basic technical concept of maintaining the structural hard constraints of the support set for non-zero terms in the explicit equations, the soft constraints of the equation residuals, and the dynamic fusion of confidence. Reliability or confidence intervals are set for the fracture pressure and collapse pressure reference profiles respectively; when the reliability of the reference profile decreases, the window consistency loss and the impact of the window state on the fusion weights are correspondingly reduced.

Claims

1. A well logging pore pressure prediction method based on explicit evolution equations and synergistic soft and hard constraints, characterized in that, Includes the following steps: S1. Acquire historical well multi-source data and perform late depth correction, anomaly processing, and unified well depth registration. The multi-source data includes logging data, well logging data, rock mechanics data, and three-pressure data. Through continuous pore pressure reconstruction, automatic differentiation, and sparse equation identification, obtain an explicit evolution equation describing the change of pore pressure with well depth and online available parameters. Determine the support set corresponding to the non-zero candidate options in the explicit evolution equation, and encapsulate the equation structure, equation coefficients, input variables and their online acquisition methods, applicable well depth range, formation type, effective range of input parameters, allowable range of coefficient variation, and version identifier into a pore pressure evolution equation knowledge package. S2. Obtain the current well fracture pressure reference profile and collapse pressure reference profile. Based on the current well formation type, well depth location, and whether the online available parameters fall within the valid range of the input parameters of the knowledge package, select the applicable explicit evolution equation. Perform time-depth mapping and late depth correction on the current well real-time logging parameters, and combine with auxiliary engineering parameters to form online available parameters. Construct a differentiable pressure recursive model. Generate local coefficient correction and unmodeled gradient perturbation by a local correction network. Only perform bounded correction on the equation coefficients corresponding to the non-zero candidate options in the support set. The coefficients of candidate options outside the support set remain zero. Apply boundary constraints to the unmodeled gradient perturbation to maintain the non-zero term support set and integral relationship of the explicit evolution equation in the recursive process, satisfy the initial pressure condition and well depth continuity condition, and obtain the hard-constrained pore pressure candidate profile. S3. Construct a continuous pore pressure prediction model using the current well depth and the online available parameters as inputs. Obtain the well depth derivative of the soft-constraint pore pressure candidate profile through automatic differentiation, and construct the equation soft constraint based on the deviation between the well depth derivative and the right-hand function of the explicit evolution equation. By combining the data consistency between the soft-constrained pore pressure candidate profile and the high-reliability pressure data, the consistency of the three pressure windows defined by the current well fracture pressure reference profile and the collapse pressure reference profile, and the pressure smoothness in the well depth direction, the pore pressure continuous prediction model is optimized to obtain the soft-constrained pore pressure candidate profile and its normalized equation residual. S4. Based on the reliability of real-time logging data, the applicability of explicit evolution equations, the residual of normalized equations, the correction magnitude of local coefficients, and the degree of violation of the three pressure windows of both hard-constrained and soft-constrained pore pressure candidate profiles, determine the fusion weight of hard-constrained pore pressure candidate profiles. When the reliability of real-time logging data decreases or the residual of normalized equations increases, increase the weight of hard-constrained branches. When the applicability of explicit evolution equations decreases or the correction magnitude of local coefficients increases, decrease the weight of hard-constrained branches and relatively increase the fusion contribution of candidate branches with smaller three-pressure window violations. Apply well depth direction smoothing constraints or limit the maximum change in a single step to the fusion weights to obtain the final fusion pore pressure prediction results. The pressure state and model parameters are continuously updated with new data, and the continuous real-time pore pressure profile, three-pressure safety windows and prediction confidence are output.

2. The logging pore pressure prediction method based on explicit evolution equation and soft / hard constraint coordination as described in claim 1, characterized in that, In S1, with Representing the unified depth coordinates of historical wells, in This represents the engineering parameter vector formed after historical wells have undergone late depth correction, anomaly handling, and unified well depth registration. Indicates historical well pore pressure, subscript Refers to pore pressure, subscript Refers to the hard constraint branch; constructs a continuous pressure surrogate model with well depth and multi-source engineering parameters as inputs and pore pressure as output. : , in, Parameters for the continuous pressure surrogate model; obtained through automatic differentiation. Historical well pore pressure, well depth and first Each engineering parameter is standardized separately: , in, , and These are the means of the corresponding historical training variables. , and These are the standard deviations of the corresponding historical training variables; This represents a candidate function matrix composed of standardized pore pressure, standardized well depth, standardized engineering parameters, and their interaction terms. The sparse coefficients of the standardized equation are represented by the well depth derivative of the standardized pore pressure obtained through continuous pressure reconstruction and automatic differentiation. Non-zero candidate options are then identified and screened through the sparse equation to obtain the standardized explicit evolution equation: , in, To standardize well depth, This is the online available parameter vector under hard-constraint branches. This is the function on the right-hand side of the standardized explicit evolution equation; Define the zero-item support set as This only represents the index of the candidate function. For the first The sparse coefficients corresponding to the candidate functions This is the set of non-zero candidate function indices retained by sparse equation identification; The right-hand side function of the engineering quantity is: , Let X be the pore pressure, and X be the vector of available online parameters. and The mean and standard deviation of pore pressure are given. and The mean and standard deviation of the well depth are given. This is a standardized online available parameter vector; The pore pressure evolution equation knowledge package also includes: variable mean. , ... and standard deviation , , Training data distribution, surrogate model version and surrogate value reliability threshold, equation residual reference scale, and For the first The mean and standard deviation of each engineering parameter; when the knowledge package is invoked in the current well, the applicability of the explicit evolution equation is determined according to the following formula: , in, For well depth adaptation, For stratigraphic type matching degree, To ensure coverage of online parameter range, The similarity between the current parameter distribution and the training distribution. To verify the underlying reliability of the residuals in the knowledge package; all components are normalized to... , to The weights are non-negative and their sum is 1. The larger the value, the more applicable the knowledge package is to the current location.

3. The well logging pore pressure prediction method based on explicit evolution equation and soft / hard constraint coordination as described in claim 2, characterized in that, In S2, the current well depth is divided into discrete well depth positions connected sequentially. ,by Indicates the first Hard-constrained pore pressure at discrete well depths, Indicates parameters available online; By local correction network Based on online available parameters, pore pressure at the previous well depth, applicability of the explicit evolution equation, and the three-pressure window state, the local coefficient correction amount before boundary constraints is generated. and unmodeled gradient perturbation : , in, To locally correct network parameters, Indicates the preset pressure reference scale and the three pressure window status. Defined as: , in, , The determined number Reference values ​​for fracture pressure and collapse pressure at discrete well depths; right and Apply boundary constraints separately: , in, This represents the set of allowed local coefficient corrections. and These represent the lower and upper bounds of the unmodeled gradient perturbation, respectively; the differentiable pressure recursion model satisfies: , in, For the well depth increment between adjacent well depth locations, the recursive calculation is performed. Only applies to the support set The candidates in the middle, for ,make ;for ,Keep ; The bounded, unmodeled gradient perturbation is used in the recursion; the prediction result of the previous discrete well depth position is used as the initial state of the next discrete well depth position, when... When a preset warning threshold is reached or the bounded mapping becomes saturated, the applicability of the explicit evolution equation at the current location is reduced, thereby forming a candidate profile of hard-constrained pore pressure. .

4. The logging pore pressure prediction method based on explicit evolution equation and soft / hard constraint coordination as described in claim 3, characterized in that, In S3, a system based on well depth is constructed. and current well online available parameters A continuous prediction model with pore pressure as input and pore pressure as output. Candidate profiles of soft-constrained pore pressure were obtained: , Obtained through automatic differentiation The deviation between the well depth derivative and the right-hand side function of the engineering dimension is defined as the equation residual: , Therefore, the soft-constraint joint loss function is constructed as follows: , , , , , in, This is to account for the loss of data consistency between soft-constrained pore pressure and high-reliability pressure data or pressure anchor points. For the loss of the evolution equation, For the consistency loss of the three pressure windows, For the smoothing loss of pressure gradient changes at adjacent well depths: To determine the effective number of pressure observations, For the first The weights of each sample, For robust regression functions, For the first Observations of a sample; The number of constraint positions for the equation and subscript For the position index of the equation constraint, For the first The values ​​of the constraint positions of the equations For the soft-constraint model in the 1st Predicted pressure at the constraint locations of each equation and The first The equations define the collapse pressure and rupture pressure at the constrained locations. , , This represents the predicted pressure values ​​of the soft-constraint model at the constraint locations of three adjacent equations. , , and The corresponding non-negative loss weight is used; when the reliability of real-time pressure data is high, the weight is increased. When the applicability of the explicit evolution equation is high, it can be improved. And improve when candidate pressure occurs and window boundaries are violated. Effective pressure observations must include at least the recursive initial pressure or the most recent pressure anchor point with a reliability not lower than a preset threshold; real-time logging data reliability must meet the following requirements: , in, It is the ratio of the number of valid input parameters to the total number of input parameters required by the knowledge package. This is the ratio of the number of abnormal input parameters to the number of input parameters used in the judgment. This is the ratio of the number of sensors operating normally to the total number of sensors participating in data acquisition. To obtain the confidence level by normalizing the uncertainty based on the lateness depth correction, This represents the normalized deviation of the current parameter distribution from the knowledge package training distribution, with each component located at... , to The weights are non-negative and their sum is 1; the loss weights are adjusted according to the reliability of real-time logging data and the applicability of the explicit evolution equation to obtain candidate profiles of soft-constrained pore pressure and the residuals of the normalized equation. .

5. The logging pore pressure prediction method based on explicit evolution equation and soft / hard constraint coordination as described in claim 4, characterized in that, In S4, the normalized local coefficient correction magnitude is defined as: , in, Indicates the first The discrete well depth location Local coefficient correction of a non-zero candidate function The first recorded for the knowledge package The maximum allowable correction amount for the coefficients of a non-zero candidate function To prevent positive numbers with a denominator of zero, the fusion weight for hard-constrained pore pressure candidate profiles is: , in, For gated bias. to The non-negative gating coefficient, and These represent the degree of violation of the normalized three-pressure window for candidate profiles of hard-constrained pore pressure and candidate profiles of soft-constrained pore pressure, respectively. The final predicted pore pressure value is: ; by As the lower boundary of the three-pressure safety window, As the upper boundary of the three-pressure safety window, the three-pressure safety window is: , when Output three pressure window conflict alarms; The normalized soft and hard candidate profile differences and the degree of violation of the final fused profile window satisfy the following: , , Prediction confidence is defined as: , in, to The weights are non-negative and their sum is 1. The larger the value, the more reliable the prediction result.