A fully automated method and system for detecting formation water and alarming oil-water layers at drilling sites
By correcting the detection sequence of the formation water detection device at the drilling site and using the correlation between the reference fluid response recovery record and the actual drilling fluid record, an effective anomaly interval is generated, which solves the problems of detection response lag and tailing and achieves accurate identification of the oil-water layer boundary.
Patent Information
- Application Number
- CN202611618620.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-20
- Publication Date
- 2026-11-17
AI Technical Summary
Existing formation water detection devices at drilling sites suffer from lag and tailing issues in their detection response, leading to deviations in formation information and making it difficult to accurately identify the boundaries between oil and water layers.
By recording reference fluid response recovery records, the detection sequence is corrected, an effective anomaly range is generated, and combined with light hydrocarbon records, the well depth and oil-water layer alarm results are determined. By using the correlation between reference fluid response recovery records and actual drilling fluid records, the detection results are corrected, and a corrected detection sequence is formed.
It enables the correction of the detection link response, restores the true formation water anomaly, determines the well section location, accurately identifies the oil-water layer boundary, and improves the detection accuracy at the drilling site.
Smart Images

Figure CN123109649A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of drilling operation technology, and more particularly to a fully automated method and system for detecting formation water and alarming oil-water layers at drilling sites. Background Technology
[0002] In oil drilling operations, to promptly identify water-bearing and oil-water layers in the drilled formation, it is necessary to continuously monitor formation fluid information returned with the drilling fluid and accurately correlate the monitoring results with the actual drilled well section. Existing well site formation water monitoring equipment can continuously extract water-based or oil-based drilling fluid from the drilling fluid circulation system via mud sampling pumps, deliver the drilling fluid to the monitoring unit, and use a membrane separation structure to allow ions in the drilling fluid to enter the monitoring chamber. Continuous monitoring results for ions such as calcium, magnesium, potassium, sodium, chloride, sulfate, carbonate, and bicarbonate are then obtained through corresponding detection electrodes. This data, combined with well depth and drilling circulation information provided by the integrated logging tool, forms a drilling monitoring record. Existing on-site light hydrocarbon monitoring equipment can also continuously obtain light hydrocarbon component information, providing a basis for determining whether hydrocarbon indicators exist in the drilled well section. However, existing detection devices do not obtain the original response of formation fluid entering the drilling fluid at the bottom of the well during actual drilling. Instead, they obtain the response after the formation fluid returns through the wellbore annulus with the drilling fluid and further passes through the surface sampling pipeline, membrane separation structure, and detection chamber. The wellbore circulation process causes a delay in the return of formation information from the bottom of the well to the surface. Liquid replacement in the surface sampling pipeline, ion permeation in the separation membrane, and liquid renewal in the detection chamber further cause the initial lag, duration broadening, and trailing of the detection response. Especially during continuous drilling, the state of the sampling pipeline, the permeation state of the separation membrane, and the actual replacement process in the detection chamber change with the working conditions, making the response lag and trailing caused by the detection link itself not always constant. At the same time, changes in mud pump discharge, short-term pump stoppages, single connection, and continuous increase in well depth also change the actual circulation process of formation information returning from the bottom of the well to the surface. Therefore, if the detection results are shifted as a whole based solely on a pre-set fixed delay time, or if the abnormal layer is determined directly according to the well depth near the ground detection time, the front and rear boundaries of the actual formation water anomaly may be shifted, and the tail formed by the detection link itself may be mistaken for the continuous entry of formation water, resulting in an increase in the thickness of the abnormal layer, a shift in the layer boundary position, and incorrect correspondence of water phase and hydrocarbon information between adjacent layers.
[0003] Furthermore, even if formation water detection and light hydrocarbon detection can obtain abnormal results, since the two types of samples have their own sampling and analysis processes, if the correspondence is only based on the time when the surface detection results appear, it is possible to interpret the water phase anomalies and hydrocarbon anomalies from different well sections as the same oil-water layer.
[0004] It is evident that existing technologies can already accomplish continuous drilling fluid sampling, membrane separation, multi-ion detection, light hydrocarbon detection, well depth acquisition, and on-site alarms. However, there is still room for improvement in the continuous technology chain of recovering the actual formation water anomaly from the surface detection response, recovering the actual drilled well section from the actual anomaly, and determining the oil-water layer on the basis of a unified well depth. Summary of the Invention
[0005] The purpose of this invention is to provide a fully automated method and system for detecting formation water and alarming oil-water layers at drilling sites, in order to solve the problems mentioned in the background art.
[0006] To achieve the above objectives, this invention provides a fully automated method for detecting formation water and alarming oil-water layers at drilling sites, comprising: When the reference fluid enters the detection chamber through the separation membrane, the response recovery is recorded to obtain the reference fluid response recovery record. After the ions recover to the stable range before the reference fluid, the actual drilling fluid record is collected. The reference fluid response recovery record, the actual drilling fluid record, and the cycle are correlated over time to form a calibration detection sequence. The calibration detection sequence is divided into continuous operating intervals according to the drilling cycle record. The start and end points of the continuous operating intervals are determined. The continuous operating intervals are corrected based on the reference fluid response recovery record to generate effective abnormal intervals for each ion. The continuous overlapping segment of the effective abnormal intervals of at least two ions is taken as the main body of the abnormality. The drilling cycle, well depth, and light hydrocarbon records in the calibration detection sequence are extracted according to the start and end points of the main body of the abnormality to form an effective formation water abnormal sequence. Extract the anomaly start and end boundaries and light hydrocarbon records from the effective formation water anomaly sequence. Using the start and end boundaries as the return boundaries, accumulate the circulation volume along the drilling circulation record in the historical direction. When the accumulated circulation volume reaches the corresponding effective return volume, determine the well depth. Associate the light hydrocarbon records with the well depth to form a well section evidence sequence. When the light hydrocarbon record in the well section evidence sequence is valid, a continuous hydrocarbon anomaly sub-segment within the well section is identified, and the well depth co-occurrence ratio of the continuous hydrocarbon anomaly sub-segment and the formation water anomaly well section is calculated. Based on the well depth co-occurrence ratio, an oil-water layer alarm result is output.
[0007] In some embodiments, the reference solution response recovery record includes the number of acquisition cycles from the start of each ion entering the reference solution to the formation of a continuous and effective response at the detection end, and the number of acquisition cycles from the cessation of reference solution entry to the re-stabilization of the reference ions.
[0008] In some embodiments, the step of correcting the continuous operating range based on the reference liquid response recovery record to generate an effective abnormal range for each ion specifically includes: The candidate anomaly starting point is moved forward along the time direction by the corresponding number of acquisition cycles to obtain the effective anomaly starting point. The number of acquisition cycles is the number of cycles corresponding to the response lag in the reference liquid response recovery record. The candidate abnormal endpoint is moved forward along the time direction by the corresponding number of acquisition cycles to obtain the effective abnormal endpoint. The number of acquisition cycles is the minimum of the number of acquisition cycles in the candidate abnormal recovery stage and the number of acquisition cycles in the recovery stage of the reference liquid. The effective anomaly interval is determined based on the effective anomaly start point and the effective anomaly end point.
[0009] In some embodiments, the step of outputting oil-water layer alarm results based on the well depth co-occurrence ratio specifically includes: When the co-occurrence ratio at the well depth reaches the co-occurrence determination threshold, an oil-water layer alarm is output. When the co-occurrence ratio at the specified well depth does not reach the co-occurrence determination threshold, an air layer alarm is output.
[0010] In some embodiments, determining the start and end points of the continuous operating interval specifically includes: When ions deviate from their own background variation range, maintain the same overall variation direction, and reach the number of consecutive confirmations, the first collection position in the consecutive deviation record is determined as the candidate anomaly starting point; When ions re-enter the background variation range and reach the same number of consecutive confirmations, the first acquisition location in the continuous recovery record is determined as the candidate abnormal endpoint.
[0011] In some embodiments, determining the well depth when the cumulative circulation volume reaches the corresponding effective return volume specifically includes: determining the source location at the bottom of the well when the corresponding effective return volume is reached, and recording the abnormal start and end well depths from the well depth record. The well depth record is generated by the field integrated logging instrument and is used to reflect the acquisition record of the current drill bit position or well depth over time.
[0012] In some embodiments, the wellbore source location is determined based on the acquisition location of the abnormal start boundary or abnormal end boundary in the ground detection sequence, the acquisition cycle at which the effective return volume is first reached, the actual circulation volume, and the effective return volume.
[0013] In some embodiments, the method further includes: writing the oil-water layer alarm result into a real-time record, and outputting the water layer alarm status or the oil-water layer alarm status through a field alarm interface.
[0014] In some embodiments, the well depth co-occurrence ratio is determined based on the well depth length after merging the actual overlapping parts of the formation water anomaly well section and all hydrocarbon anomaly sub-sections, as well as the well depth length of the formation water anomaly well section itself.
[0015] To achieve the above objectives, another aspect of the present invention proposes a fully automated formation water detection and oil-water layer alarm system for drilling sites, comprising: The detection sequence construction module is used to record the response recovery when the reference fluid enters the detection chamber through the separation membrane to obtain the reference fluid response recovery record. After the ions recover to the stable range before the reference fluid, the actual drilling fluid record is collected. The reference fluid response recovery record, the actual drilling fluid record, and the cycle are correlated by time to form a calibration detection sequence. The formation water anomaly detection module is used to divide the calibration detection sequence into continuous operating intervals according to the drilling cycle record, determine the start and end points of the continuous operating intervals, correct the continuous operating intervals based on the reference fluid response recovery record, generate effective anomaly intervals for each ion, take the continuous overlapping segment of the effective anomaly intervals of at least two ions as the anomaly body, and extract the drilling cycle, well depth, and light hydrocarbon records in the calibration detection sequence according to the start and end points of the anomaly body to form an effective formation water anomaly sequence; The well section evidence sequence construction module is used to extract the abnormal start and end boundaries and light hydrocarbon records from the effective formation water anomaly sequence. Using the start and end boundaries as the return boundaries, the circulation volume is accumulated along the drilling circulation record in the historical direction. When the accumulated circulation volume reaches the corresponding effective return volume, the well depth is determined, and the light hydrocarbon records are associated with the well depth to form a well section evidence sequence. The oil-water layer alarm module is used to identify continuous hydrocarbon anomaly segments within the well section when the light hydrocarbon record in the well section evidence sequence is valid, and to calculate the well depth co-occurrence ratio of the continuous hydrocarbon anomaly segments and the formation water anomaly segments, and output the oil-water layer alarm result based on the well depth co-occurrence ratio.
[0016] Compared with the prior art, the beneficial effects of the present invention are: This invention first forms a reference fluid segment with known entry and exit processes in the actual formation water detection branch. The main ions involved in formation water anomaly identification pass through the current sampling pipeline, separation membrane, and detection chamber, respectively. Based on the actual response process of each ion, the response hysteresis and trailing edge recovery characteristics corresponding to the current detection state are obtained, thereby establishing a correction basis that is in a similar equipment state to the subsequent actual drilling fluid detection data. Then, using the reference response of each main ion itself, the initial and ending boundaries of candidate anomalies appearing in the actual drilling fluid detection process are recovered respectively. The effective formation water anomalies are determined by combining the continuous consistency relationship of multiple main ions after correction. This transforms the anomaly range affected by link hysteresis and trailing at the detection end into an effective anomaly range that is closer to the actual formation water entry process. Based on this, the front and rear boundaries of the effective anomaly are used as the ground return positions. The drilling fluid circulation process that actually occurs under the corresponding drilling conditions is traced to the bottom of the well. Combined with the well depth record, the actual drilling location corresponding to the front and rear boundaries of the anomaly is determined. This allows the effective formation water anomaly to be further transformed from the detection time range into a formation water anomaly well section with a clear start and end well depth. At the same time, the light hydrocarbon detection results are assigned to the well depth space according to their actual sample time sequence and the same drilling circulation relationship, so that the formation water anomaly and hydrocarbon anomaly can establish a corresponding relationship within the same actual drilling well section.
[0017] Finally, based on the co-occurrence of water phase anomalies and continuous hydrocarbon anomalies at the actual well depth, the water layer or oil-water layer is determined, and the on-site alarm device is driven to output the corresponding well section and layer alarm results. Through the above continuous processing, the determination of the detection link response is directly used for formation water anomaly recovery, the recovered valid anomalies are directly used for actual well section tracking, and the water phase and hydrocarbon evidence after well depth repositioning is directly used for on-site layer determination and alarm. This makes the whole scheme a complete technical process from current detection status correction, actual anomaly recovery, actual well section determination to oil-water layer alarm, and forms a unified solution for the practical engineering problems of changes in drilling site detection link status, changes in circulation transport status, and the easy distortion of the correspondence between well depths of different detection results. Attached Figure Description
[0018] Figure 1 This is a flowchart of a fully automated drilling site formation water detection and oil-water layer alarm method provided in an embodiment of this application. Figure 2 A diagram of a fully automated formation water detection and oil-water layer alarm system for drilling sites provided in this application embodiment; Figure 3 The original candidate region, link correction region, and common support quantity relationship diagram of ions provided in the embodiments of this application; Figure 4 The diagram shows the results of circulation volume backtracking, source location interpolation, and co-occurrence of two well depths provided for embodiments of this application. Detailed Implementation
[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] refer to Figure 1 As shown in the figure, this application provides a fully automated method for detecting formation water and alarming oil-water layers at drilling sites, including: S1: When the reference fluid enters the detection chamber through the separation membrane, the response recovery is recorded to obtain the reference fluid response recovery record. After the ions recover to the stable range before the reference fluid, the actual drilling fluid record is collected. The reference fluid response recovery record, the actual drilling fluid record, and the circulation are correlated over time to form a calibration detection sequence, which specifically includes: When the formation water detection device at the drilling site is operating normally, the mud sampling pump continuously extracts drilling fluid from the drilling fluid return end, allowing the drilling fluid to pass sequentially through the sampling pipeline, separation membrane, and detection chamber, with corresponding ion detection electrodes continuously forming detection records. Before the operation begins, while the mud sampling pump is running stably and the reference fluid has not been introduced, the stable background of each major ion is recorded. The stable variation range is determined based on the actual fluctuation range of the record segment and the electrode repeatability error. The number of consecutive confirmations is determined based on the sampling cycle and the longest duration of a single transient interference in the record segment, ensuring that the total duration of consecutive confirmations is longer than the longest duration, and is then written into the detection software. The reference fluid is pre-stored in an independent sealed container, and its ionic composition is consistent with the major ions used in subsequent anomaly recovery. The change in the concentration of each ion relative to the current stable background should exceed the corresponding stable variation range, while remaining within the calibration linear range of the corresponding detection electrode. The reference fluid is introduced through a switching component located on the detection branch, before the separation membrane. This allows the reference fluid to sequentially pass through the end of the sampling pipeline, the separation membrane, and the detection chamber, thus following the same main detection path as the actual drilling fluid sample. After the detection software confirms that the main ions meet the aforementioned continuous confirmation conditions and that the mud sampling pump is operating normally, it controls the switching component to switch the medium entering the detection branch from normal drilling fluid to the reference fluid, simultaneously recording the start time. The duration of the reference fluid input is determined through pre-testing at the same sampling flow rate during installation and commissioning. It must be no less than the sum of the response lag at the detection end of the slowest-responding ion and the continuous confirmation time, ensuring a continuous reference fluid section with clearly defined front and rear boundaries and unchanged internal composition within the detection branch.
[0021] After the reference solution enters, the detection electrodes for each major ion continue to record the detection results continuously according to the normal acquisition method. When the change direction of a major ion is consistent with the expected change direction of the reference solution relative to the background, and the aforementioned number of consecutive confirmations is reached, the first acquisition position in this set of continuous records is determined as the position where the ion forms an effective response, and the response hysteresis corresponding to that ion is obtained accordingly. After the reference solution reaches the determined input duration, the switching unit resumes normal drilling fluid sampling, and the detection software continues to record the recovery process of each major ion until the corresponding ion re-enters the stable change range before the reference solution enters and reaches the same number of consecutive confirmations, thereby obtaining the trailing edge recovery record of each major ion. In this way, the detection channels for chloride ions, sodium ions, calcium ions, and magnesium ions, which subsequently participate in the abnormal recovery, all have reference response records corresponding to their own membrane permeation and electrode response processes. When S2 processes the actual abnormality of a major ion, it directly calls the reference response of that ion itself. The start time, duration, and end time of the reference solution are all recorded by the action of the switching unit, so the actual response of each major ion can establish a time correspondence with the same reference solution input process.
[0022] After the reference fluid response ends, the system continues normal drilling fluid sampling until the major ions involved in subsequent anomaly recovery continuously return to their stable variation range before the reference fluid was introduced. Then, it begins recording the actual drilling fluid detection sequence corresponding to this reference fluid correction. The actual drilling fluid passes through the same sampling pipeline, separation membrane, and detection chamber, and the existing ion detection electrodes continuously generate formation water ion detection records. The detection software simultaneously reads the well depth record and drilling circulation record generated by the integrated logging tool. The drilling circulation record at least saves the mud pump operating status, the actual circulation volume for each acquisition cycle, and the effective return volume corresponding to the current well depth. The effective return volume uses circulation parameters generated by the field logging system based on the current well depth, wellbore structure, and drill string structure. The light hydrocarbon detection record generated by the field continuous light hydrocarbon detection equipment is also retained according to the sampling sequence. These records are established with the actual drilling fluid ion detection record according to a unified time benchmark, ensuring that subsequent anomaly recovery, circulation tracking, and well depth repositioning can all utilize the same set of field records.
[0023] Finally, the response lag and trailing edge recovery records generated by the reference fluid through the current detection link, the actual drilling fluid ion detection records obtained after the reference fluid response ends, and the drilling circulation records, well depth records, and light hydrocarbon detection records corresponding to the held time are all organized into the current calibration detection sequence. The reference fluid response records in the current calibration detection sequence are used to correct time offsets and tailing in the next step, while the remaining records continue to be used for anomaly extraction, well depth repositioning, and oil-water layer alarms. After the drilling circulation is resumed by pump shutdown, the mud sampling pump is restarted, or the state of the separation membrane and sampling pipeline is adjusted, the detection software executes S1 again when the main ions reach a stable background, and makes subsequent detection records call the most recent reference fluid calibration results to avoid using response records before the equipment state change. The current calibration detection sequence is the only output of S1 and directly enters S2.
[0024] S2: Divide the calibration detection sequence into continuous operating intervals according to the drilling circulation record, determine the start and end points of the continuous operating intervals, correct the continuous operating intervals based on the reference fluid response recovery record, generate effective anomaly intervals for each ion, take the continuous overlapping segment of the effective anomaly intervals of at least two ions as the anomaly body, and extract the drilling circulation, well depth, and light hydrocarbon records in the calibration detection sequence according to the start and end points of the anomaly body to form an effective formation water anomaly sequence, specifically including: S2 uses the current calibration detection sequence formed in the previous step as the sole input, directly utilizing the corresponding saved reference fluid response records, actual drilling fluid ion detection records, drilling circulation records, well depth records, and light hydrocarbon detection records. First, based on the drilling circulation records, continuous detection data is limited to the interval where the mud pump is continuously running and the circulation state is continuous. Within each continuous interval, continuous records of chloride, sodium, calcium, and magnesium ions from existing detection channels in the actual drilling fluid are read, and the stable records from the beginning of this continuous interval are updated using the same caliber as the stable variation range determined in S1. When an ion deviates from its own background variation range, maintains the same overall direction of change, and reaches the number of consecutive confirmations determined in S1, the first position in this group of continuous deviations is determined as the candidate anomaly starting point; when the ion re-enters the background variation range and reaches the same number of consecutive confirmations, the first position in this group of continuous recovery is determined as the candidate anomaly ending point. If a stable background has not been obtained after the start of a continuous interval, or if there are fewer than two effective main ion channels, the detection software has insufficient data and does not temporarily form a candidate formation water anomaly until the background and the number of effective channels are restored. Throughout this process, well depth records and light hydrocarbon detection records always maintain a correspondence with candidate anomalies according to the original acquisition sequence, so that after the anomaly boundary is adjusted, related records within the same time range can be captured synchronously.
[0025] The time boundaries of candidate anomalies are recovered using the actual response of the reference fluid obtained from S1. The basic relationship originates from the classical system identification concepts of pure time delay compensation and finite response interval correction: when an input with known start and end positions passes through a detection link with propagation delay and finite tail, the leading boundary of the output anomaly shifts backward relative to the input, and the continued response caused by the link itself is retained after the output anomaly ends. This application specifically applies this relationship to the formation water detection link composed of drilling fluid sampling pipeline, separation membrane, and detection chamber, and directly uses the response result obtained after the S1 reference fluid actually passes through this link as the correction amount. For each major ion candidate anomaly, its effective time interval is recovered according to the following formula: ; in, This indicates the effective anomaly range of the current ion after correction for link effects; This indicates the position where the ion first continuously deviates from the background in the actual drilling fluid detection record; This indicates the position where the ion re-establishes its position in the background; This indicates the number of acquisition cycles that the reference liquid in S1 takes from the moment it enters the detection branch until a continuous and effective response is formed at the detection end; This indicates the number of collection cycles that the current candidate anomaly goes through from entering the recovery phase to stabilizing again. The starting point of the recovery phase is the first collection position after the anomaly amplitude reaches the maximum deviation of this time, continuously changes towards the background direction, and reaches the number of consecutive confirmations. This represents the number of acquisition cycles from the cessation of reference solution entry into S1 until the reference ions regain stability. All variables are expressed in terms of the number of acquisition cycles; therefore, the preceding and following boundaries in the equation are on the same discrete time scale. This relationship is first derived using… Restore the candidate anomaly front boundary to before the detection link responds, and then utilize... The portion of the actual anomaly that can be explained by the current link tail is deducted, ensuring that the deduction does not exceed either the actual recovery segment length or the link tail length represented by the reference liquid. If a satisfactory recovery phase has not yet formed before the end of the current continuous interval, the candidate anomaly is retained and awaits subsequent recording, without being pre-determined. If the corrected start position is earlier than the currently available record in the sequence, or the corrected end position is earlier than the start position, then the correction result is invalid and will not be output as a valid exception.
[0026] For example, within a continuous drilling interval, a candidate anomaly for a major ion starts at the 120th acquisition position and stabilizes again at the 150th acquisition position. The S1 reference fluid record shows that the effective response lag of the current detection link is 4 acquisition cycles. After the reference fluid stops, it stabilizes after 3 acquisition cycles, while the actual candidate anomaly itself recovers for 5 acquisition cycles. Substituting the above relationship, the anomaly front boundary recovers to the 116th acquisition position, and the anomaly back boundary is corrected forward by 3 acquisition positions, resulting in the effective anomaly interval from the 116th to the 147th acquisition position. The remaining 2 recovery acquisition cycles of the actual candidate anomaly remain within the effective anomaly because its duration exceeds the link tail range that the current reference fluid can characterize. Thus, the response lag and back-edge recovery record obtained from S1 simultaneously affect the front and back boundary recovery of S2, making the correction result directly correspond to the actual working state of the current detection link.
[0027] After obtaining the effective anomaly intervals for each major ion, the main body of the formation water anomaly is formed according to their common temporal continuity. If the effective anomaly intervals of at least two major ions overlap continuously, the time period covered by these ions is taken as the core anomaly part, and the preceding and following intervals that are continuously connected to the core anomaly and are still supported by at least two major ions are also retained. If a certain ion only shows an isolated short-term deviation, while other major ions maintain their own background state within the corresponding time, then this isolated change does not expand the formation water anomaly boundary. Here, the temporal consistency of multiple ions after being corrected by the same link is used to determine the anomaly range, thereby distinguishing between instantaneous changes of a single electrode and continuous anomalies with a common fluid source. Anomaly intervals separated by pump shutdown or circulation interruption are saved separately, so that each effective anomaly corresponds to a continuous drilling fluid return process.
[0028] After identifying the main anomaly, the corresponding drilling cycle record, well depth record, and existing light hydrocarbon detection record are synchronously extracted from the current corrected detection sequence according to the start and end positions of the final valid anomaly. These are then combined with the corrected multi-ion anomaly record to form a valid formation water anomaly sequence. The well depth record maintains its original acquisition sequence in this step, and the light hydrocarbon detection record maintains its original detection results. Their function is to transmit the recovered valid anomaly to S3, allowing S3 to start from a clearly identified valid formation water anomaly and continue to integrate the drilling cycle process to reposition the actual drilled well section. Therefore, the final valid formation water anomaly sequence output by S2 includes the anomaly start position, anomaly end position, multi-ion continuous change record, and drilling cycle record, well depth record, and light hydrocarbon detection record corresponding to the anomaly's duration, corrected by the current detection link response, and is directly used as input to S3.
[0029] S3: Extract the anomaly start and end boundaries and light hydrocarbon records from the effective formation water anomaly sequence. Using the start and end boundaries as return boundaries, accumulate the circulation volume along the drilling circulation record in the historical direction. When the accumulated circulation volume reaches the corresponding effective return volume, determine the well depth. Associate the light hydrocarbon records with the well depth to form a well interval evidence sequence, specifically including: S3 uses the effective formation water anomaly sequence output by S2 as its sole input. For each anomaly event that has undergone detection link correction, it restores the anomaly start and end positions to their corresponding actual drilling depths. The effective formation water anomaly sequence already includes the anomaly front and rear boundaries, multi-ion anomaly records, drilling circulation records, well depth records, and light hydrocarbon detection records. The drilling circulation records further retain the mud pump operating status, actual circulation volume for each acquisition cycle, and effective return volume corresponding to the current well depth, all generated by the field logging system. S3 first uses the anomaly start position determined by S2 as the first surface return boundary. From this boundary, it accumulates the actual circulation volume cycle by cycle along the drilling circulation records in the historical direction. When the mud pump is running normally, it uses the actual circulation volume recorded in the corresponding acquisition cycle; when the discharge rate changes, it directly uses the changed record; when the pump stops, the circulation increment for the corresponding cycle remains zero. When the accumulated circulation volume reaches the effective return volume corresponding to the drilling state at this boundary, it indicates that the time range of drilling fluid carrying the anomaly information at the bottom of the well has been traced. Subsequently, the same processing is performed on the anomaly end position. Since the front and rear boundaries of the anomaly are tracked through the actual cycle process, when there is a change in displacement, a short-term pump stop, or a single connection during the anomaly return period, the two boundaries can be determined according to the actual cycle state to maintain the correspondence between the anomaly duration range recovered by S2 and the actual drilling process.
[0030] The aforementioned boundary tracking relationship originates from the volume conservation relationship during drilling fluid circulation. That is, when drilling fluid carrying information about a specific formation at the bottom of the well moves from the bottom to the surface sampling location, subsequent circulating drilling fluid needs to replace the volume corresponding to the effective return volume from the wellbore at that time. Field circulation records are stored according to discrete acquisition cycles; therefore, the cumulative circulation volume usually crosses the effective return volume within a certain acquisition cycle. To address this field characteristic, based on the classic cumulative flow delay calculation, the "acquisition cycle in which the target circulation volume is first reached" is further refined into the actual source location within that cycle. The following formula is used to determine the bottom-of-well source location corresponding to the abnormal boundary: ; in, This indicates the wellbore source location corresponding to the current anomaly boundary, represented by continuously acquired locations; This indicates the acquisition position of the current valid anomaly boundary determined by S2 in the ground detection sequence, with the anomaly start boundary and anomaly end boundary substituted respectively; Indicates from The collection cycle in which the effective return volume is first reached when the cumulative drilling fluid circulation volume is accumulated in the historical direction, and meets the requirements from... The next collection cycle will accumulate to The effective return volume has not yet been reached, from Accumulated to The effective return volume has been reached; Indicates the first The actual cycle volume within each collection cycle Indicates the first time that the target volume is crossed. Actual cycle volume within each collection cycle This indicates the effective return volume corresponding to the current abnormal boundary in the drilling state. All three should be expressed in cubic meters or the same volume unit configured on site. This must correspond to a period where the cycle quantity is greater than 0, therefore The volume ratio in the formula is a dimensionless number, which can be correlated with the sampling location. Add. Only if The reset is executed on time; if it is 0 or missing, the current abnormal boundary is retained, and calculation is performed only after a valid record is obtained. The cycle increment of the pump stop cycle is 0 and cannot be selected as... If the cumulative loop count in the existing historical records is still less than Similarly, it will not be calculated for the time being. And wait to obtain enough historical records.
[0031] For example, when accumulating data towards the historical trend from a certain effective anomaly starting boundary, the accumulated cycle volumes from the closest to the furthest are 6 cubic meters, 12 cubic meters, 17 cubic meters, and 23 cubic meters, respectively. The effective return volume corresponding to this boundary is 20 cubic meters. Therefore, the target location is located within the acquisition cycle where the accumulated volume increases from 17 cubic meters to 23 cubic meters. The actual cycle volume of this cycle is 6 cubic meters, and the accumulated value exceeds the target value by 3 cubic meters. That is, the source location at the bottom of the well is located at the first The system uses this ratio to linearly locate the point between the current sampling location and the next sampling location. It then uses this ratio to locate the point between two well depth records stored in the same effective formation water anomaly sequence, obtaining the actual well depth encountered at the anomaly initiation boundary. The same process is applied to the anomaly termination boundary to obtain the anomaly termination depth. If the source location is in a single-root connection process and adjacent well depth records are consistent, it is directly assigned to the same well depth. When the discharge rate changes, the actual circulation volume of each cycle directly enters the accumulation process.
[0032] After identifying the formation water anomaly section, the multi-ion anomaly records stored in S2 are correlated to this section to form evidence of water phase anomalies. The anomaly range and continuous variation relationship of each ion are based on the results already determined in S2. Subsequently, the light hydrocarbon detection records in the effective formation water anomaly sequence are processed. For each light hydrocarbon record, the actual sampling time of the drilling fluid sample recorded by the continuous light hydrocarbon detection equipment is preferentially used as the surface sample time. When the equipment records the injection time after degassing and transportation, the injection time is converted to the corresponding surface sample time based on the sample transportation time between the sampling location and the injection location determined during equipment installation and commissioning. Then, the drilling cycle record corresponding to the surface sample time is read, and the bottom-hole source location of the light hydrocarbon sample is traced according to the aforementioned cumulative cycle relationship, and the corresponding well depth is read. The analysis cycle of the light hydrocarbon chromatography itself is saved with the original detection record, and the well depth is determined based on the surface sample time. The light hydrocarbon records within the current formation water anomaly well section are arranged in order of well depth. At the same time, a continuous and stable light hydrocarbon record before this anomaly well section is retained as a background record for subsequent judgment of hydrocarbon anomalies. The evidence content of this well section is formed by the multi-ion anomaly record, the light hydrocarbon record within the well section and its stable background record.
[0033] For multiple effective formation water anomalies output by S2, cyclic tracing of the anomaly initiation and termination boundaries is performed separately. When adjacent anomalies, after repositioning, have a continuous well depth range and their corresponding drilling cycle records belong to the same continuous cycle, they are grouped into the same continuous anomaly segment, while retaining their original multi-ion anomaly changes. Anomalies with clear well depth intervals after repositioning are formed into independent well segment records. Finally, a well segment evidence sequence is formed, with each well segment record including the anomaly initiation depth, the anomaly termination depth, multi-ion water phase anomaly evidence formed by S2, and light hydrocarbon detection evidence repositioned to the same well segment. This well segment evidence sequence serves as the sole output of S3 and directly enters S4, allowing the current detection link response obtained by S1, after being restored to an effective formation water anomaly by S2, to be further transformed in S3 into a basis for determining oil-water layers with clear actual drilling locations.
[0034] S4: When the light hydrocarbon record in the well section evidence sequence is valid, identify the continuous hydrocarbon anomaly sub-segment within the well section, calculate the well depth co-occurrence ratio of the continuous hydrocarbon anomaly sub-segment and the formation water anomaly well section, and output the oil-water layer alarm result based on the well depth co-occurrence ratio, specifically including: S4 uses the well section evidence sequence output by S3 as the sole input to determine the stratification of each anomalous well section that has been repositioned to its true depth. Before calculation, it is confirmed that the light hydrocarbon detection record covers the anomalous well section and that the corresponding equipment is in good working order. If the light hydrocarbon result is invalid due to missing records, communication interruption, or equipment failure, and only light hydrocarbon data is recorded, water layer and oil-water layer determination will not be performed temporarily to avoid mistaking "no valid light hydrocarbon data" for "no hydrocarbon anomalies in valid data". When the light hydrocarbon record is valid, continuous hydrocarbon anomaly sub-segments are identified within the well section. The continuous deviation threshold and the number of confirmations are determined by the on-site light hydrocarbon detection equipment before the operation starts based on the stable background and instrument repeatability, and written into the detection software as anomaly criteria. When multiple consecutive valid results continuously enhance relative to the stable background and reach the required number of confirmations, the corresponding well depth range is determined as a hydrocarbon anomaly sub-segment. Enhancement only occurring at isolated detection locations retains the original record, but the boundary of the anomalous sub-segment is not expanded.
[0035] After forming a hydrocarbon anomaly sub-segment, the actual overlap between it and the current formation water anomaly segment is calculated. This calculation relationship is derived from the mathematical ratio of the intersection length of two intervals to the length of a reference interval, used to represent the degree to which one interval is covered by another type of interval. This application limits this classic interval coverage relationship to water-phase anomaly segments and light hydrocarbon anomaly sub-segments that have completed drilling cycle repositioning, and uses the formation water anomaly segment as the reference interval, so that the calculation result directly expresses "how many parts of the well segment where formation water anomalies have been confirmed also have continuous hydrocarbon indications". The calculation relationship is as follows: ; in, This indicates the depth ratio of co-occurrence of water phase anomalies and hydrocarbon anomalies within the current formation water anomaly well section; This indicates the well depth length after merging the actual overlapping portion of the current formation water anomaly segment and all hydrocarbon anomaly segments. This indicates the well depth length of the current formation water anomaly section. Both are derived from the start and end well depths output by S3 and are uniformly expressed in meters or the same well depth unit. This is a dimensionless proportion. Before calculation, overlapped or consecutively occurring hydrocarbon anomaly segments should be merged to avoid double counting; only when... Time calculation If the starting and ending well depths are the same or the sequence is abnormal, the well section boundary is recorded as invalid and returned to S3 for verification, without performing a layer determination.
[0036] In specific determinations, assuming the light hydrocarbon record is valid, the first step is to check whether a continuous hydrocarbon anomaly segment has formed within the current formation water anomaly well section. If no such segment has formed, the well section is designated as a water-affected zone alarm segment; if so, the co-occurrence ratio at well depth is calculated and compared with the co-occurrence determination boundary determined and written into the detection software before the start of operations, based on the interpreted well sections in the same block or existing logging interpretation rules. This boundary is a dimensionless number between 0 and 1. When this limit is reached, the current well section will be designated as an oil-water layer alarm section; When the formation water level falls below this limit, it is designated as a water-affected well section, and the location of the local hydrocarbon anomaly is preserved. For example, if the length of the formation water anomaly well section is... The length of the continuous light hydrocarbon anomaly after relocation is 10 meters, and its overlap length is... If it is 7 meters, then When the dimensionless co-occurrence threshold of 0.6 is used, the well section meets the criteria for determining an oil-water layer. If... If it is 2 meters, then This well section was treated as a water-bearing layer. Therefore, the final stratification depends on the degree of spatial co-occurrence after the actual well depth is determined, rather than whether the two detection devices simultaneously exhibit anomalies at the surface end.
[0037] After completing the stratification determination, the system generates an oil-water layer alarm result by analyzing the abnormal starting depth, abnormal ending depth, and stratification type of the current well section, and calls the field alarm interface through the formation water detection software. If the well is determined to be a water layer, a water layer alarm status is output; if it is determined to be an oil-water layer, an oil-water layer alarm status is output, and the alarm well section, stratification type, water phase anomaly record, and overlapping light hydrocarbon anomaly record are written to the real-time log. If S4 detects insufficient light hydrocarbon data or an invalid well section boundary, only the corresponding data anomaly prompt is output, without outputting the water layer or oil-water layer type. Therefore, the current detection link response benchmark formed by S1, the effective formation water anomaly recovered by S2, and the actual abnormal well section determined by S3 are ultimately converted into a stratification alarm result with valid detection basis corresponding to the actual drilling location.
[0038] refer to Figure 2 As shown, another aspect of this application embodiment also proposes a fully automated formation water detection and oil-water layer alarm system for drilling sites, comprising: The detection sequence construction module is used to record the response recovery when the reference fluid enters the detection chamber through the separation membrane to obtain the reference fluid response recovery record. After the ions recover to the stable range before the reference fluid, the actual drilling fluid record is collected. The reference fluid response recovery record, the actual drilling fluid record, and the cycle are correlated by time to form a calibration detection sequence. The formation water anomaly detection module is used to divide the calibration detection sequence into continuous operating intervals according to the drilling cycle record, determine the start and end points of the continuous operating intervals, correct the continuous operating intervals based on the reference fluid response recovery record, generate effective anomaly intervals for each ion, take the continuous overlapping segment of the effective anomaly intervals of at least two ions as the anomaly body, and extract the drilling cycle, well depth, and light hydrocarbon records in the calibration detection sequence according to the start and end points of the anomaly body to form an effective formation water anomaly sequence; The well section evidence sequence construction module is used to extract the abnormal start and end boundaries and light hydrocarbon records from the effective formation water anomaly sequence. Using the start and end boundaries as the return boundaries, the circulation volume is accumulated along the drilling circulation record in the historical direction. When the accumulated circulation volume reaches the corresponding effective return volume, the well depth is determined, and the light hydrocarbon records are associated with the well depth to form a well section evidence sequence. The oil-water layer alarm module is used to identify continuous hydrocarbon anomaly segments within the well section when the light hydrocarbon record in the well section evidence sequence is valid, and to calculate the well depth co-occurrence ratio of the continuous hydrocarbon anomaly segments and the formation water anomaly segments, and output the oil-water layer alarm result based on the well depth co-occurrence ratio.
[0039] The following specific examples illustrate this application: In one computational embodiment, the sampling period for ion detection recording is 2 seconds. The main ions involved in anomaly recovery are chloride, sodium, calcium, and magnesium ions. The minimum number of effective ions required to form an effective layer water anomaly is set to 2. The candidate anomaly interval for chloride ions is from the 120th to the 150th sampling location, and the hysteresis period obtained from the reference liquid response is [not specified]. 4. Actual number of recovery cycles 5. Reference trailing edge recovery cycle number The value is 3. After substituting it into the abnormal interval correction relationship from step two, the starting point is... The destination is Similarly, the candidate range for sodium ions, 121 to 149, was... , , Corrected to 118 to 147, the candidate range for calcium ions is 123 to 153. , , Corrected to 118 to 149, the candidate range for magnesium ions is 122 to 151. , , The correction range is 118 to 148. The number of ions remaining within the effective range after correction is counted at each sampling location. Sampling locations 118 to 148 consistently show support from at least two ions; therefore, this continuous range is identified as the main body of the effective anomalous formation. Sampling locations 116 to 117 show support only from chloride ions, and sampling location 149 shows support only from calcium ions; therefore, the effective anomalous boundary is not expanded based on these results. The original candidate range, link correction range, and number of ions with common support are as follows: Figure 3 As shown.
[0040] When performing well depth relocation for a surface boundary of the aforementioned valid anomalies, the acquisition location of that boundary is... Set to 200, and read the actual cycle volume for four cycles from this position in the historical direction: 6 cubic meters, 6 cubic meters, 5 cubic meters, and 6 cubic meters respectively. The cumulative cycle volumes are 6 cubic meters, 12 cubic meters, 17 cubic meters, and 23 cubic meters respectively. The effective return volume is 20 cubic meters. Therefore, the cumulative volume jumps from 17 cubic meters to 23 cubic meters within the cycle corresponding to collection position 197. Take 197, Take 6 cubic meters and substitute it into the cyclical repositioning relationship in step three to obtain... This allows the system to locate the boundary of the ground anomaly to the midpoint between acquisition locations 197 and 198; the system then performs linear positioning between the two corresponding well depth records according to this ratio.
[0041] Further verification of the alarm branch in step four was conducted using the 10-meter formation water anomaly well section after repositioning. The continuous light hydrocarbon anomaly sub-segment in scenario one is located between 2 and 9 meters in this relative well section, overlapping with the formation water anomaly well section by 7 meters, with a co-occurrence ratio of [missing information]. The value exceeds the co-occurrence threshold of 0.6, triggering an oil-water layer alarm. In Scenario 2, the continuous light hydrocarbon anomaly segment is located between 4 and 6 meters, with an overlap length of 2 meters and a co-occurrence ratio of [missing information]. If the water level falls below the same threshold, the system outputs a water layer alarm. The results of circulation volume backtracking, source location interpolation, and co-occurrence of two well depths are as follows: Figure 4 As shown. Therefore, the link response parameters obtained from the reference fluid are first used to recover the effective anomaly of multiple ions. The recovered anomaly boundary is then used to locate the source based on the actual circulation volume. Finally, the co-occurrence relationship between the aqueous phase and light hydrocarbons under the same well depth coordinates drives the layer alarm, forming a complete calculation process consistent with steps one to four. In actual applications, the sampling period, reference response parameters, circulation volume, effective return volume, and co-occurrence judgment boundary are determined according to the aforementioned field recording and debugging methods.
[0042] The above embodiments are merely descriptions of preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made by those skilled in the art to the technical solutions of the present invention without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.
Claims
1. A fully automated method for detecting formation water and alarming oil-water layers at drilling sites, characterized in that, Include: When the reference fluid enters the detection chamber through the separation membrane, the response recovery is recorded to obtain the reference fluid response recovery record. After the ions recover to the stable range before the reference fluid, the actual drilling fluid record is collected. The reference fluid response recovery record, the actual drilling fluid record, and the cycle are correlated over time to form a calibration detection sequence. The calibration detection sequence is divided into continuous operating intervals according to the drilling cycle record. The start and end points of the continuous operating intervals are determined. The continuous operating intervals are corrected based on the reference fluid response recovery record to generate effective abnormal intervals for each ion. The continuous overlapping segment of the effective abnormal intervals of at least two ions is taken as the main body of the abnormality. The drilling cycle, well depth, and light hydrocarbon records in the calibration detection sequence are extracted according to the start and end points of the main body of the abnormality to form an effective formation water abnormal sequence. Extract the anomaly start and end boundaries and light hydrocarbon records from the effective formation water anomaly sequence. Using the start and end boundaries as the return boundaries, accumulate the circulation volume along the drilling circulation record in the historical direction. When the accumulated circulation volume reaches the corresponding effective return volume, determine the well depth. Associate the light hydrocarbon records with the well depth to form a well section evidence sequence. When the light hydrocarbon record in the well section evidence sequence is valid, a continuous hydrocarbon anomaly sub-segment within the well section is identified, and the well depth co-occurrence ratio of the continuous hydrocarbon anomaly sub-segment and the formation water anomaly well section is calculated. Based on the well depth co-occurrence ratio, an oil-water layer alarm result is output.
2. The fully automated drilling site method for detecting formation water and alarming oil-water layers according to claim 1, characterized in that, The reference solution response recovery record includes the number of acquisition cycles from when each ion enters the reference solution to when it forms a continuous and effective response at the detection end, as well as the number of acquisition cycles from when the reference solution stops entering until the reference ions become stable again.
3. The fully automated formation water detection and oil-water layer alarm method at the drilling site according to claim 1, characterized in that, The step of correcting the continuous operating range based on the reference liquid response recovery record to generate effective abnormal ranges for each ion specifically includes: The candidate anomaly starting point is moved forward along the time direction by the corresponding number of acquisition cycles to obtain the effective anomaly starting point. The number of acquisition cycles is the number of cycles corresponding to the response lag in the reference liquid response recovery record. The candidate abnormal endpoint is moved forward along the time direction by the corresponding number of acquisition cycles to obtain the effective abnormal endpoint. The number of acquisition cycles is the minimum of the number of acquisition cycles in the candidate abnormal recovery stage and the number of acquisition cycles in the recovery stage of the reference liquid. The effective anomaly interval is determined based on the effective anomaly start point and the effective anomaly end point.
4. The fully automated formation water detection and oil-water layer alarm method at the drilling site according to claim 1, characterized in that, The output of oil-water layer alarm results based on the well depth co-occurrence ratio specifically includes: When the co-occurrence ratio at the well depth reaches the co-occurrence determination threshold, an oil-water layer alarm is output. When the co-occurrence ratio at the specified well depth does not reach the co-occurrence determination threshold, an air layer alarm is output.
5. The fully automated drilling site method for detecting formation water and alarming oil-water layers according to claim 1, characterized in that, Determining the start and end points of the continuous operating interval specifically includes: When ions deviate from their own background variation range, maintain the same overall variation direction, and reach the number of consecutive confirmations, the first collection position in the consecutive deviation record is determined as the candidate anomaly starting point; When ions re-enter the background variation range and reach the same number of consecutive confirmations, the first acquisition location in the continuous recovery record is determined as the candidate abnormal endpoint.
6. The fully automated formation water detection and oil-water layer alarm method at the drilling site according to claim 1, characterized in that, The process of determining the well depth when the cumulative circulation volume reaches the corresponding effective return volume specifically includes: determining the source location at the bottom of the well when the corresponding effective return volume is reached, and recording the abnormal start and end well depths from the well depth record. The well depth record is generated by the on-site integrated logging instrument and is used to reflect the acquisition record of the current drill bit position or well depth over time.
7. The fully automated formation water detection and oil-water layer alarm method at the drilling site according to claim 6, characterized in that, The source location at the bottom of the well is determined based on the acquisition location of the abnormal start boundary or abnormal end boundary in the ground detection sequence, the acquisition cycle at which the effective return volume is first reached, the actual circulation volume, and the effective return volume.
8. The fully automated drilling site method for detecting formation water and alarming oil-water layers according to claim 1, characterized in that, The method further includes: writing the oil-water layer alarm result into a real-time record, and outputting the water layer alarm status or the oil-water layer alarm status through the field alarm interface.
9. The fully automated drilling site method for detecting formation water and alarming oil-water layers according to claim 1, characterized in that, The well depth co-occurrence ratio is determined based on the well depth length after merging the actual overlapping parts of the formation water anomaly well section and all hydrocarbon anomaly sub-sections, as well as the well depth length of the formation water anomaly well section itself.
10. A fully automated formation water detection and oil-water layer alarm system for drilling sites, characterized in that, Include: The detection sequence construction module is used to record the response recovery when the reference fluid enters the detection chamber through the separation membrane to obtain the reference fluid response recovery record. After the ions recover to the stable range before the reference fluid, the actual drilling fluid record is collected. The reference fluid response recovery record, the actual drilling fluid record, and the cycle are correlated by time to form a calibration detection sequence. The formation water anomaly detection module is used to divide the calibration detection sequence into continuous operating intervals according to the drilling cycle record, determine the start and end points of the continuous operating intervals, correct the continuous operating intervals based on the reference fluid response recovery record, generate effective anomaly intervals for each ion, take the continuous overlapping segment of the effective anomaly intervals of at least two ions as the anomaly body, and extract the drilling cycle, well depth, and light hydrocarbon records in the calibration detection sequence according to the start and end points of the anomaly body to form an effective formation water anomaly sequence; The well section evidence sequence construction module is used to extract the abnormal start and end boundaries and light hydrocarbon records from the effective formation water anomaly sequence. Using the start and end boundaries as the return boundaries, the circulation volume is accumulated along the drilling circulation record in the historical direction. When the accumulated circulation volume reaches the corresponding effective return volume, the well depth is determined, and the light hydrocarbon records are associated with the well depth to form a well section evidence sequence. The oil-water layer alarm module is used to identify continuous hydrocarbon anomaly segments within the well section when the light hydrocarbon record in the well section evidence sequence is valid, and to calculate the well depth co-occurrence ratio of the continuous hydrocarbon anomaly segments and the formation water anomaly segments, and output the oil-water layer alarm result based on the well depth co-occurrence ratio.
