Method, apparatus for visualizing presenting while-drilling telemetry decoded data
By using the RGB color model to correct grayscale values in the drilling measurement and control decoding data, the problem of not being able to display parameter values and accuracy values simultaneously in existing technologies has been solved, achieving a better visualization effect and meeting the needs of drilling and production sites and research.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA PETROLEUM & CHEMICAL CORP
- Filing Date
- 2023-05-05
- Publication Date
- 2026-07-24
AI Technical Summary
In existing technologies, the visualization display schemes for drilling measurement and control decoding data cannot fully display parameter values and accuracy values, resulting in the lack of feature information in the visualization display process, which affects the completeness, diversity and intuitiveness of the display.
By using the RGB color model for correction, the calibration grayscale value of each point in the drilling measurement and control decoding data curve is determined, and the grayscale value is recolored based on the parameter value and accuracy value, so as to achieve simultaneous display of parameter value and accuracy value.
It enables the simultaneous display of parameter values and accuracy values in the drilling measurement and control decoding data, providing better visualization effects and offering better visualization support for drilling and production sites and subsequent research.
Smart Images

Figure CN118897907B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of petroleum engineering technology, and in particular to a method, apparatus, electronic device, and storage medium for visually presenting drilling measurement and control decoding data. Background Technology
[0002] Measurement-while-drilling (MWD) data refers to engineering or geological parameters measured in real time during drilling and production. These parameters can be used to determine the downhole environment and tool operating status, enabling real-time assessment of potential risks and providing safety support for drilling and production. As the use of MWD data becomes increasingly widespread, the demand for its visualization is also constantly growing.
[0003] Currently, the visualization display schemes used in existing technologies for the drilling measurement and control decoding data cannot display the complete information of the drilling measurement and control decoding data. Summary of the Invention
[0004] To address the aforementioned technical problems, the present disclosure provides a solution. Embodiments of this disclosure offer a method, apparatus, electronic device, and storage medium for visually presenting drilling measurement and control (M&C) decoding data.
[0005] According to a first aspect of the present disclosure, a method for visualizing drilling measurement and control decoding data is provided, comprising: drawing an initial curve for each type of target drilling measurement and control decoding data based on the classification results of multiple acquired target drilling measurement and control decoding data; wherein the target drilling measurement and control decoding data is drilling measurement and control decoding data to be visualized; determining a calibration grayscale value for each point in the initial curve of each type of target drilling measurement and control decoding data based on a preset calibration rule; wherein one point corresponds to one target drilling measurement and control decoding data, and one point corresponds to one calibration grayscale value; recoloring the corresponding point using the calibration grayscale value based on the correspondence between the point and the calibration grayscale value in the initial curve of each type of target drilling measurement and control decoding data to obtain a calibration curve; and pushing the calibration curve to a user terminal.
[0006] According to a second aspect of the present disclosure, an apparatus for visualizing drilling measurement and control decoding data is provided, comprising: a preprocessing module configured to: draw an initial curve for each type of target drilling measurement and control decoding data based on the classification results of multiple acquired target drilling measurement and control decoding data; wherein the target drilling measurement and control decoding data is the drilling measurement and control decoding data to be visualized; a calibration module configured to: determine the calibration grayscale value of each point in the initial curve of each type of target drilling measurement and control decoding data based on a preset calibration rule; wherein one point corresponds to one target drilling measurement and control decoding data, and one point corresponds to one calibration grayscale value; a recoloring execution module configured to: recolor the corresponding point using the calibration grayscale value based on the correspondence between the point and the calibration grayscale value in the initial curve of each type of target drilling measurement and control decoding data to obtain a calibration curve; and a push module to push the calibration curve to a user terminal.
[0007] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the method for visually presenting drilling measurement and control decoding data as described in the present disclosure.
[0008] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, the storage medium storing a computer program for executing the method for visualizing drilling measurement and control decoding data as described in the present disclosure.
[0009] In summary, by utilizing the method for visualizing drilling measurement and control decoding data according to the above embodiments of this disclosure, the calibration grayscale value of each point in the curve can be determined. The calibration grayscale value of each point can be determined using the parameter value and accuracy value corresponding to that point, and then the curve can be recolored using the calibration grayscale value. The resulting curve achieves at least the simultaneous display of parameter values and accuracy values in the drilling measurement and control decoding data, thereby providing a better visualization effect for drilling and production sites or subsequent research. Attached Figure Description
[0010] The above and other objects, features, and advantages of this disclosure will become more apparent from the more detailed description of the embodiments thereof in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of this disclosure and form part of the specification. They are used together with the embodiments of this disclosure to explain the disclosure and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same components or steps.
[0011] Figure 1This is a flowchart illustrating a method for visually presenting drilling measurement and control decoding data according to an exemplary embodiment of the present disclosure;
[0012] Figure 2 This is a public announcement Figure 1 An exemplary flowchart of a method for visually presenting drilling measurement and control decoding data provided in this embodiment;
[0013] Figure 3 This is a public announcement Figure 1 Another exemplary flowchart of the method for visually presenting drilling measurement and control decoding data provided in the embodiments;
[0014] Figure 4 This is a public announcement Figure 1 Another exemplary flowchart of the method for visually presenting drilling measurement and control decoding data provided in the embodiments;
[0015] Figure 5 This is a public announcement Figure 1 Another exemplary flowchart of the method for visually presenting drilling measurement and control decoding data provided in the embodiment;
[0016] Figure 6 This is a schematic diagram of the calibration curve provided in an exemplary embodiment of this disclosure;
[0017] Figure 7 This is a schematic diagram of the structure of an apparatus for visually presenting drilling measurement and control decoding data according to an exemplary embodiment of the present disclosure;
[0018] Figure 8 This is a public announcement Figure 1 An exemplary structural diagram of the apparatus for visually presenting drilling measurement and control decoding data provided in the embodiment;
[0019] Figure 9 This is a schematic diagram of the structure of an application embodiment of the electronic device disclosed herein. Detailed Implementation
[0020] The present disclosure will be further described below with reference to the embodiments shown in the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present disclosure, and not all embodiments of the present disclosure. It should be understood that the present disclosure is not limited to the exemplary embodiments described herein.
[0021] It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of this disclosure.
[0022] Those skilled in the art will understand that the terms "first," "second," etc., in the embodiments of this disclosure are only used to distinguish different steps, devices, or modules, and do not represent any specific technical meaning, nor do they indicate a necessary logical order between them.
[0023] It should also be understood that in the embodiments disclosed herein, "a plurality of" may refer to two or more, and "at least one" may refer to one, two or more.
[0024] It should also be understood that any component, data or structure mentioned in the embodiments of this disclosure can generally be understood as one or more unless expressly defined or given to the contrary in the context.
[0025] Furthermore, the term "and / or" in this disclosure is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this disclosure generally indicates that the preceding and following related objects have an "or" relationship.
[0026] It should also be understood that the description of the various embodiments in this disclosure emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.
[0027] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.
[0028] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use.
[0029] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0030] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0031] The embodiments disclosed herein can be applied to electronic devices such as terminal devices, computer systems, and servers, and can operate together with a wide range of other general-purpose or special-purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments, and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, and servers include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments including any of the above systems, etc.
[0032] Electronic devices such as terminal devices, computer systems, and servers can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in distributed cloud computing environments, where tasks are executed by remote processing devices linked through communication networks. In distributed cloud computing environments, program modules can reside on local or remote computing system storage media, including storage devices.
[0033] First, the inventive concept of this disclosure will be summarized in conjunction with the background technology.
[0034] The inventors of this disclosure, through repeated research, discovered that the reason why the visualization display scheme for the drilling measurement and control decoding data used in the prior art cannot display the complete information of the drilling measurement and control decoding data is as follows:
[0035] In the prior art, when plotting the visualization curve of the drilling measurement and control decoding data, the RGB color model is often used, and a three-dimensional rectangular coordinate system is used to represent the gray values of the three RGB channels of the color respectively. Therefore, the curve can only display one parameter feature information (e.g., parameter value) in a single color. That is, any point on the curve cannot fully display the complete feature information of the drilling measurement and control decoding data (e.g., parameter value and accuracy value), which results in the loss of feature information in the visualization display stage, affecting the completeness, diversity and intuitiveness of the feature information display.
[0036] In view of the above, the inventors of this disclosure considered:
[0037] A curve can be first plotted using the acquired measurement-while-drilling (MWD) data. Then, a color correction method (e.g., RGB three-channel grayscale values) is used to determine the calibration grayscale value of each point on the curve (based on the accuracy and parameter values). The curve is then recolored using these calibration grayscale values. This method allows for the simultaneous display of both parameter and accuracy values from the MWD data, providing superior visualization for drilling operations and subsequent research.
[0038] The following is combined with Figures 1-9 This paper describes the scheme for visualizing and presenting drilling measurement and control decoding data disclosed herein.
[0039] Exemplary methods
[0040] Figure 1 This is a schematic flowchart illustrating a method for visually presenting drilling measurement and control decoding data according to an exemplary embodiment of this disclosure. This embodiment can be applied to electronic devices (e.g., servers), such as... Figure 1 As shown, the method for visualizing and presenting drilling measurement and control decoding data includes the following steps:
[0041] S1. Based on the classification results of the acquired multiple target measurement-while-drilling (MWD) decoding data, plot the initial curve for each type of target MWD decoding data. The target MWD decoding data refers to the MWD decoding data to be visualized.
[0042] This disclosure does not limit the specific value of "multiple", nor the specific value of the number of target drilling measurement and control decoding data included in each type of target measurement and control decoding data; these values can be determined based on the data collection situation at the drilling and production site.
[0043] Classification can refer to: extracting data belonging to a single category from multiple target drilling and monitoring (MRM) decoding data and storing them in a single data file for plotting the initial curve. The data file corresponding to each category of target MRM decoding data can then be used as the classification result.
[0044] The specific classification methods and initial curve plotting techniques will be described below and will not be repeated here.
[0045] Furthermore, this disclosure does not limit the method of "acquiring" multiple target measurement and control decoding data. For example, it may include, but is not limited to, paradigms of direct reading or sampling to acquire the real-time transmission of measurement and control decoding data from the drilling and production site.
[0046] Furthermore, this disclosure does not limit the specific form in which multiple target measurement and control decoding data are "acquired". For example, it can be in the form of a data table; and the data table may include different types of target measurement and control decoding data.
[0047] S2. Based on the preset calibration rules, determine the calibration gray value of each point in the initial curve of the drilling measurement and control decoding data of each type of target.
[0048] Wherein, one point corresponds to one target drilling and control decoding data, and one point corresponds to one calibration gray value.
[0049] It should be noted that the calibration grayscale value of each point can be determined based on the parameter value and accuracy value in the target drilling and control decoding data corresponding to that point. The specific steps will be described below and will not be repeated here.
[0050] S3. Based on the correspondence between the points in the initial curve of the drilling measurement and control decoding data of each type of target and the calibration gray value, the corresponding points are recolored using the calibration gray value to obtain the calibration curve.
[0051] The “correspondence” can be determined with reference to step S2, which is described in detail below.
[0052] S4. Push the calibration curve to the user terminal.
[0053] Since steps S1 to S3 are executed on the server side, they need to be pushed to the user terminal to facilitate viewing the recolored initial curve.
[0054] Here, user terminals may include, but are not limited to, dedicated display terminals at drilling and mining sites, smartphones, tablets, and other terminals.
[0055] The server and the user can communicate via wired or wireless means. Wireless means may include, but are not limited to, Wi-Fi and mobile communication networks.
[0056] In summary, by utilizing the method for visualizing drilling measurement and control decoding data according to the above embodiments of this disclosure, the calibration grayscale value of each point in the curve can be determined. The calibration grayscale value of each point can be determined using the parameter value and accuracy value corresponding to that point, and then the curve can be recolored using the calibration grayscale value. The resulting curve achieves at least the simultaneous display of parameter values and accuracy values in the drilling measurement and control decoding data, thereby providing a better visualization effect for drilling and production sites or subsequent research.
[0057] exist Figure 1Based on the embodiments, as an optional example, each target drilling and control decoding data includes at least the data acquisition time, parameter name, original parameter value, and original accuracy value.
[0058] Reference Figure 2 Step S1, "Based on the classification results of the acquired multiple target logging-while-drilling decoding data, the initial curve of the logging-while-drilling decoding data for each type of target" may include the following steps:
[0059] S110. Classify the multiple target drilling and control decoding data using the parameter names, and group the data acquisition time, original parameter value and original accuracy value belonging to the same parameter name into one category as a group of data to be processed.
[0060] The data acquisition time, original parameter value, and original accuracy value belonging to the same target drilling and control decoding data are stored accordingly.
[0061] It should be explained here that, since multiple target drilling and control decoding data may include data with different parameter names, it is necessary to use the above step S110 to classify the data based on the parameter name and save the classification results in their respective data files for easy querying.
[0062] One classification result can correspond to a set of data to be processed, and the set of data to be processed is named or identified by its corresponding parameter name.
[0063] Furthermore, this disclosure does not impose any restrictions on the format of the data file; for example, the data file can be an array.
[0064] In an optional example, assuming a set of data to be processed corresponds to a data table (e.g., Table 1), the data corresponding to each row of the data table can be stored in a corresponding array in the form of key-value pairs for easy querying. Specifically, for each data item corresponding to any row of the data table, in this array, the data acquisition time can be used as the key (i.e., Key), and the original parameter value and original precision can be used as values (i.e., Value), thus forming corresponding key-value pairs (i.e., Key-Value) as elements in the array for storage; that is, stored in the form of (data acquisition time, original parameter value) and (data acquisition time, original precision value). Further, (data acquisition time, original parameter value) and (data acquisition time, original precision value) can be stored in two separate arrays.
[0065] In one optional example, for a specific drilling and production scenario, after classifying the acquired multiple sets of target measurement and control decoding data, multiple sets of data to be processed are obtained. Assume that one set of data to be processed is...
[0066] The data shown in Table 1.
[0067]
[0068]
[0069] Table 1
[0070] Referring to Table 1, each row of data in this set of data to be processed can include four items: data acquisition time, parameter name, original parameter value, and original precision value. The parameter name is AZM. Regarding the data acquisition time, taking 16.24.02 as an example, 16 represents "hour," 24 represents "minute," and 02 represents "second"; its complete time meaning is 16 hours 24 minutes 02 seconds. In subsequent steps, the corresponding initial curve can be plotted based on the data to be processed in Table 1.
[0071] S120. For each group of data to be processed, in a preset coordinate system, draw the initial curve using the original parameter value and the data acquisition time as coordinates. The data acquisition time and the original parameter value belonging to the same target drilling and control decoding data form a single point.
[0072] In step S120, the preset coordinate system can be a Cartesian coordinate system. The original parameter values are used as the abscissa, and the data acquisition time is used as the ordinate. The scales of the abscissa and ordinate can be set according to requirements, and this disclosure does not impose any limitations on this.
[0073] Specifically, for each set of data to be processed, the point corresponding to each data point (including parameter name, data acquisition time, original parameter value, and original precision value) in the aforementioned Cartesian coordinate system is determined, thereby enabling the plotting of the initial curve. The initial curve can be named using the parameter name corresponding to each set of data to be processed.
[0074] Using the method described in the above embodiments, an initial curve can be plotted for each set of data to be processed, preparing for subsequent steps to perform recoloring based on calibrated grayscale values.
[0075] exist Figure 1 , 2 Based on the embodiments, as an optional example, the mapping data range of each group of data to be processed includes a first mapping data range of the original parameter values and a second mapping data range of the original precision values; the grayscale value range includes the grayscale value range of each of the three RGB channels.
[0076] Reference Figure 3 Step S2, "Determining the calibration grayscale value of each point in the initial curve of the drilling and control decoding data for each type of target based on preset calibration rules," can be achieved by including the following steps:
[0077] S21. Based on preset data processing rules, determine the mapped data range and the grayscale value range matching the mapped data range for each group of data to be processed. S22. For each group of data to be processed, using the boundary values of the mapped data range and the boundary values of the grayscale value range matching the mapped data range, determine the calibration grayscale value corresponding to each new parameter value within the mapped data range for that group of data to be processed. S23. For each new parameter value within the mapped data range for the data to be processed, based on the mapping relationship between the original data range and the mapped data range, determine the original parameter value corresponding to the new parameter value. S24. For each new parameter value within the mapped data range for the data to be processed, based on the point in the associated initial curve corresponding to the original parameter value corresponding to the new parameter value, use the calibration grayscale value corresponding to the new parameter value as the calibration grayscale value for that point.
[0078] Using the method described in the above embodiments, the calibration grayscale value of each point in the initial curve of the drilling measurement and control decoding data for each type of target can be determined, thereby preparing for subsequent recoloring.
[0079] In this disclosure, step S21 can be implemented in a variety of available ways. For example, refer to Figure 4 In an optional example, step S21 may include the following steps:
[0080] S2110. Based on mathematical statistics, determine the first initial data range of the original parameter values and the second initial data range of the original precision values in each group of data to be processed.
[0081] Specifically, step S2110 can be implemented as follows:
[0082] First, based on sorting the original parameter values in each group of data to be processed according to their numerical values, a first initial data range for the original parameter values is determined. The effective maximum value of the original parameter values serves as the upper limit of the first initial data range, and the effective minimum value of the original parameter values serves as the lower limit of the first initial data range. Second, based on sorting the original precision values in each group of data to be processed according to their numerical values, a second initial data range for the original precision values is determined. The effective maximum value of the original precision values serves as the upper limit of the second initial data range, and the effective minimum value of the original precision values serves as the lower limit of the second initial data range.
[0083] It should be noted that after sorting the original parameter values and original precision values according to their numerical values, invalid values must be filtered out to ensure that the values in the first initial data range of the original parameter values and the second initial data range of the original precision values are all valid values.
[0084] Taking the original parameter value as an example, the method for filtering out invalid values can be as follows:
[0085] Calculate the mean of the original parameters for the data sequence sorted by their numerical values. Then, calculate the difference between each original parameter and its mean. Delete the original parameters whose difference is greater than a preset difference threshold. Keep the remaining original parameters.
[0086] S2120. Using a preset mapping rule, map each original parameter value in each group of data to be processed from the first initial data range to the first mapped data range, and map each original precision value in each group of data to be processed from the second initial data range to the second mapped data range.
[0087] Depending on the circumstances, step S2120 can be implemented in the following specific manner:
[0088] This corresponds to the case of "mapping each original parameter value in each group of data to be processed from the first initial data range to the first mapped data range":
[0089] First, based on the preset quantile rules, the first quantile value and the second quantile value of the original parameter value in each group of data to be processed are determined; second, the upper limit of the first initial data range is replaced with the first quantile value of the original parameter value, and the lower limit of the first initial data range is replaced with the second quantile value of the original parameter value to obtain the first mapped data range; finally, according to the calculation formula (1), each original parameter value in each group of data to be processed except for the upper and lower limits of the first initial data range is mapped to the first mapped data range.
[0090]
[0091] Where i represents the index of the original parameter value in each group of data to be processed; μ i This represents any original parameter value in each set of data to be processed before mapping, excluding the upper and lower limits of the first initial data range; val i valMAX represents any new parameter value in each group of data to be processed after mapping, excluding the upper and lower limits of the first mapped data range; valMIN represents the upper limit of the first mapped data range.
[0092] For the case of "mapping each original precision value in each group of data to be processed from the second initial data range to the second mapped data range":
[0093] First, based on the preset quantile rules, the first quantile and the second quantile of the original precision value in each group of data to be processed are determined; second, the upper limit of the second initial data range is replaced with the first quantile of the original precision value, and the lower limit of the second initial data range is replaced with the second quantile of the original precision value, to obtain the second mapped data range; finally, according to the calculation formula (2), each original precision value in each group of data to be processed except for the upper and lower limits of the second initial data range is mapped to the second mapped data range.
[0094]
[0095] Where j represents the index of the original precision value in each group of data to be processed; θ j This represents any original precision value in each set of data to be processed before mapping, excluding the upper and lower limits of the second initial data range; pre j After mapping, preMAX represents any new precision value in each group of data to be processed, excluding the upper and lower limits of the second mapped data range; preMIN represents the lower limit of the second mapped data range.
[0096] It should be noted that this disclosure does not limit the selection of the first quantile and the second quantile, which can be determined according to the user's preset quantile rules. For example, the first quantile can be the upper 80th quantile, and the second quantile can be the lower 20th quantile.
[0097] S2130. For each group of data to be processed, the grayscale value range of each of the three RGB channels is determined by using the first initial data range and the first mapping data range in the group of data to be processed.
[0098] Here, step S2130 can be implemented in the following specific manner:
[0099] First, based on the first initial data range and the upper and lower limits of the first mapped data range, the general grayscale value range matching the first mapped data range is determined using calculation formulas (3) to (4); second, using the preset configuration rules and the upper limit of the general grayscale value range, the grayscale values of each of the RGB three channels corresponding to the upper limit of the first mapped data range are determined as the upper limit of the grayscale value range of each of the RGB three channels; finally, using the preset configuration rules and the lower limit of the general grayscale value range, the grayscale values of each of the RGB three channels corresponding to the lower limit of the first mapped data range are determined as the lower limit of the grayscale value range of each of the RGB three channels.
[0100]
[0101]
[0102] Among them, G max Indicates the upper limit of the general grayscale value range; G min valMAX represents the lower limit of the general grayscale value range; valMIN represents the upper limit of the first mapped data range; μ represents the lower limit of the first mapped data range. max μ represents the upper limit of the first initial data range; min This represents the lower limit of the first initial data range.
[0103] This disclosure does not limit the aforementioned "preset configuration rules". For example, it can be a random number between (0, 1). Based on this, "determining the grayscale values of the RGB three channels corresponding to the upper limit of the first mapping data range using the preset configuration rules and the upper limit of the general grayscale value range" can be specifically implemented as follows:
[0104] Taking the calculation of the grayscale value of the R channel in the RGB three-channel system as an example, a random number between (0, 1) is generated, for example, 0.46. The random number 0.46 is related to the upper limit G of the general grayscale value range. max The result of multiplication is (0.46 × G) max) The grayscale value of the R three channels corresponding to the upper limit of the first mapped data range.
[0105] Similarly, the grayscale values of the G and B channels corresponding to the upper limit of the first mapped data range can be calculated; and the grayscale values of the RGB three channels corresponding to the lower limit of the first mapped data range can be calculated.
[0106] In this disclosure, step S22 can be implemented in a variety of available ways. For example, refer to Figure 5 In an optional example, step S22 may include the following steps:
[0107] S2210. For each new parameter value, using the preset first correction rule, the boundary value of the first mapping data range, and the boundary value of the respective grayscale value range of the RGB three channels, determine the first correction grayscale value of each of the RGB three channels corresponding to the new parameter value.
[0108] Specifically, step S2210 can be implemented as follows:
[0109] Using the following calculation formulas (5) to (7), calculate the first-correction grayscale value of each of the three RGB channels corresponding to the new parameter value;
[0110]
[0111]
[0112]
[0113] Where R1 represents the grayscale value of the R channel after one correction; R max Indicates the upper limit of the grayscale value range of the R channel; R min G1 represents the lower limit of the grayscale value range of the R channel; G1 represents the grayscale value of the G channel after primary correction; G max Indicates the upper limit of the grayscale value range of the G channel; G min B1 represents the lower limit of the grayscale value range of the G channel; B1 represents the grayscale value of the B channel after primary correction; B max Indicates the upper limit of the grayscale value range of the B channel; B min val represents the lower limit of the grayscale value range of the B channel; val represents the new parameter value within the range of the first mapped data; valMAX represents the upper limit of the range of the first mapped data; valMIN represents the lower limit of the range of the first mapped data.
[0114] S2220. Using a preset conversion rule, convert the first-correction grayscale values of each of the three RGB channels corresponding to the new parameter value into HSI values.
[0115] Specifically, step S2220 can be implemented as follows:
[0116] Using the following calculation formulas (8) to (12), the first-correction grayscale values of the three RGB channels corresponding to the new parameter values are converted into HSI values;
[0117]
[0118]
[0119] S = 0 (10)
[0120]
[0121]
[0122] When calculating S, if I is 0, then formula (10) is used; if I is between 0 and 0.6, then formula (11) is used; if I is between 0.6 and 1, then formula (12) is used.
[0123] H represents the hue value; I represents the brightness value; S represents the saturation value; x and n represent one of the first-corrected grayscale values of the three RGB channels corresponding to the new parameter value, and the difference between the two is the largest; f represents the maximum difference between the first-corrected grayscale values of the three RGB channels corresponding to the new parameter value; f0 represents the minimum difference between the first-corrected grayscale values of the three RGB channels corresponding to the new parameter value; K represents a constant, which takes the value of 0, 2 or 4.
[0124] S2230. Using the preset second correction rule, the boundary value of the second mapping data range, and the new precision value of the target drilling measurement and control decoding data that belongs to the same target as the new parameter value, the HSI value is corrected to obtain the corrected HSI value.
[0125] Specifically, step S2230 can be implemented as follows:
[0126] The HSI value is corrected using the following calculation formulas (13) to (16) to obtain the corrected HSI value;
[0127]
[0128] H1=H (14)
[0129] S1=S×rp (15)
[0130] I1=I×rp (16)
[0131] Wherein, pre represents the new precision value belonging to the same target drilling and control decoding data as the new parameter value; rp represents the precision index; preMAX represents the upper limit of the range of the second mapping data; preMIN represents the lower limit of the range of the second mapping data; H represents the hue value; I represents the brightness value; S represents the saturation value; H1 represents the corrected hue value; I1 represents the corrected brightness value; and S1 represents the corrected saturation value.
[0132] S2240. Convert the corrected HSI value into RGB three-channel grayscale values as the calibration grayscale value.
[0133] Specifically, step S2240 can be implemented as follows:
[0134] For each of the corrected HSI values, it can be converted into the corresponding RGB three-channel grayscale value as appropriate.
[0135] When the corrected hue value is 0≤H1<120°, the corresponding RGB three-channel grayscale values can be calculated according to the following calculation formulas (17)~(19);
[0136] B′=I1(1-S1) (17)
[0137]
[0138] G′=3I1-(R′+B′) (19)
[0139] Wherein, R represents the grayscale value of the R channel after conversion using the corrected HSI value; G represents the grayscale value of the G channel after conversion using the corrected HSI value; B represents the grayscale value of the B channel after conversion using the corrected HSI value; H1 represents the corrected hue value; I1 represents the corrected luminance value; and S1 represents the corrected saturation value.
[0140] When the corrected hue value is 120°≤H1<240°, the corresponding RGB three-channel grayscale value can be calculated according to the following calculation formulas (20)~(23);
[0141] H′=H1-120 (20)
[0142] R′=I1(1-S1) (21)
[0143]
[0144] B′=3I1-(R′+G′) (23)
[0145] Wherein, R represents the grayscale value of the R channel after conversion using the corrected HSI value; G represents the grayscale value of the G channel after conversion using the corrected HSI value; B represents the grayscale value of the B channel after conversion using the corrected HSI value; H1 represents the corrected hue value; I1 represents the corrected luminance value; S1 represents the corrected saturation value; and H represents the result of subtracting 120 from the corrected hue value.
[0146] When the corrected hue value is 240°≤H1<360°, the corresponding RGB three-channel grayscale value can be calculated according to the following calculation formulas (24)~(27);
[0147] H″=H1-240 (24)
[0148] G′=I1(1-S1) (25)
[0149]
[0150] R′=3I1-(R′+B′) (27)
[0151] Wherein, R represents the grayscale value of the R channel after conversion using the corrected HSI value; G represents the grayscale value of the G channel after conversion using the corrected HSI value; B represents the grayscale value of the B channel after conversion using the corrected HSI value; H1 represents the corrected hue value; I1 represents the corrected luminance value; S1 represents the corrected saturation value; and H represents the result of subtracting 240 from the corrected hue value.
[0152] In this disclosure, by utilizing steps S23 and S24 in the above embodiments, the correspondence between the points in the initial curve of the drilling measurement and control decoding data of each type of target and the calibration gray value can be determined; that is, a mapping relationship between each point in each initial curve and the corresponding calibration gray value is established; thereby preparing for the execution of step S3.
[0153] In summary, by utilizing the method for visualizing drilling measurement and control decoding data according to the above embodiments of this disclosure, the calibration grayscale value of each point in the curve can be determined. The calibration grayscale value of each point can be determined using the parameter value and accuracy value corresponding to that point, and then the curve can be recolored using the calibration grayscale value. The resulting curve achieves at least the simultaneous display of parameter values and accuracy values in the drilling measurement and control decoding data, thereby providing a better visualization effect for drilling and production sites or subsequent research.
[0154] The following is an overview of the method for visually presenting drilling measurement and control decoding data according to the above embodiments of this disclosure, with specific examples.
[0155] Suppose that for a certain drilling and production scenario, 100 target measurement and control decoding data are simulated using random numbers. Then, after classifying the 100 target measurement and control decoding data, a set of data to be processed is determined (refer to Table 2, which includes 10 data points), and the parameter name is AZ.
[0156] 16.24.00 AZ 56.158 6.65 16.24.10 AZ 176.20 6.22 16.24.20 AZ 49.885 2.26 16.24.30 AZ 22.455 3.93 16.24.40 AZ 98.626 0.10 16.24.50 AZ 108.67 8.37 16.24.60 AZ 5.38 4.08 16.24.70 AZ 109.31 7.85 16.24.80 AZ 145.04 9.00 16.24.90 AZ 72.027 6.79
[0157] Table 2
[0158] Based on the data to be processed in Table 2, the following steps can be performed sequentially:
[0159] Step 1: By executing steps S110 to S120 in the above embodiments of this disclosure, an initial curve AZ can be drawn;
[0160] Step 2, by executing step S2110 in the above embodiments of this disclosure, the first initial data range of the original parameter value can be determined to be 5.38 to 176.20, and the second initial data range of the original precision value is 0.10 to 9.00; wherein, the average value of the original parameter value is 89.20; and the average value of the original precision value is 4.86.
[0161] Step 3: Execute step S2120 in the above embodiments of this disclosure. Assuming that the first quantile value can be the upper 80% quantile value and the second quantile value can be the lower 20% quantile value, the range of the first mapped data can be determined to be 20 to 150. In this case, any original parameter value in the data to be processed will be transformed into the corresponding new parameter value after mapping.
[0162] Similarly, the range of the second mapped data can be determined to be 0.15 to 8.5, wherein any original precision value in the set of data to be processed is transformed into the corresponding new precision value after mapping.
[0163] Step 4: Execute step S2130 in the above embodiments of this disclosure to determine the grayscale value range of each of the RGB three channels of the data to be processed. Specifically, the grayscale value range of the R channel is (30~240), the grayscale value range of the G channel is (45~220), and the grayscale value range of the B channel is (20~225).
[0164] Step 5: For a certain new parameter value, execute step S2210 in the above embodiments of this disclosure to determine the first-correction grayscale value of each of the three RGB channels corresponding to the new parameter value; that is, the grayscale value of the R channel is 173, the grayscale value of the G channel is 169, and the grayscale value of the B channel is 169.
[0165] Step 6: For the new parameter value in step 5, execute step S2220 in the above embodiments of this disclosure to determine the HSI value corresponding to the new parameter value; that is, the hue value H is 0, the brightness value I is 170, and the saturation value S1 is 1.
[0166] Step 7: For the HSI value in step 6, execute step S2230 in the above embodiment of this disclosure to determine the accuracy index as 0.73; the corrected hue value H1 is 0, the corrected brightness value I1 is 124.1, and the saturation value S is 0.73.
[0167] Step 8: For the corrected HSI value in step 7, execute step S2240 in the above embodiment of this disclosure to determine the calibration gray value corresponding to the new parameter value; that is, the gray value of the R channel is 12, the gray value of the G channel is 0, and the gray value of the B channel is 12.
[0168] By repeating steps 5 to 8 above, the calibration grayscale value corresponding to each parameter value in the set of data to be processed can be determined.
[0169] Step 9: Execute steps S23 to S24 in the above embodiments of this disclosure to determine the mapping relationship between each point in the initial curve AZ and the corresponding calibration gray value, thereby determining the calibration gray value of each point in the initial curve AZ.
[0170] Step 10: Execute step S3 in the above embodiments of this disclosure, and recolor the corresponding points in the initial curve AZ using the calibration grayscale value to obtain the calibration curve AZ.
[0171] Step 11: Push the calibration curve AZ to the user terminal.
[0172] like Figure 6 The figure shows the calibration curve AZ, where the vertical axis represents the data acquisition time, the horizontal axis represents the original parameter value, and the curve name is AZ. (Refer to...) Figure 6 As can be observed, there are changes in the brightness of the curve. These changes in brightness can reveal the precision control characteristics, thus displaying more information on the same curve. For example, there is a noticeable change in the curve at 16.24.42 seconds.
[0173] In summary, by utilizing the method for visualizing drilling measurement and control decoding data according to the above embodiments of this disclosure, the calibration grayscale value of each point in the curve can be determined. The calibration grayscale value of each point can be determined using the parameter value and accuracy value corresponding to that point, and then the curve can be recolored using the calibration grayscale value. The resulting curve achieves at least the simultaneous display of parameter values and accuracy values in the drilling measurement and control decoding data, thereby providing a better visualization effect for drilling and production sites or subsequent research.
[0174] Exemplary device
[0175] It should be understood that the methods for visualizing drilling measurement and control decoding data described in the foregoing embodiments herein can also be similarly applied to the apparatuses for visualizing drilling measurement and control decoding data described below for similar extensions; for the sake of simplicity, they are not described in detail.
[0176] Figure 7 This is a schematic diagram of an apparatus for visually presenting drilling measurement and control decoding data, provided in an exemplary embodiment of this disclosure. (Refer to...) Figure 7 The device for visually presenting drilling measurement and control decoding data includes:
[0177] The preprocessing module 710 is configured to: draw an initial curve for each type of target measurement-while-drilling (MWD) decoding data based on the classification results of the acquired multiple target MWD decoding data; wherein the target MWD decoding data is the MWD decoding data to be visualized; the calibration module 720 is configured to: determine the calibration grayscale value of each point in the initial curve of each type of target MWD decoding data based on a preset calibration rule; wherein one point corresponds to one target MWD decoding data, and one point corresponds to one calibration grayscale value; the recoloring execution module 730 is configured to: recolor the corresponding points based on the correspondence between the points and the calibration grayscale values in the initial curve of each type of target MWD decoding data to obtain a calibration curve; the push module 740: pushes the calibration curve to the user terminal.
[0178] Optionally, each target measurement and control decoding data shall include at least the data acquisition time, parameter name, original parameter value, and original accuracy value.
[0179] Optionally, the preprocessing module 710 is further configured to: classify the multiple target measurement-while-drilling (MWD) decoding data using the parameter names, and group the data acquisition time, original parameter value, and original accuracy value belonging to the same parameter name into one category as a group of data to be processed; wherein the data acquisition time, original parameter value, and original accuracy value belonging to the same target MWD decoding data are stored accordingly; for each group of data to be processed, the initial curve is plotted in a preset coordinate system using the original parameter value and the data acquisition time as coordinates; wherein the data acquisition time and original parameter value belonging to the same target MWD decoding data form a point.
[0180] Optionally, refer to Figure 8The calibration module 720 includes: a first processing submodule 7210 configured to: determine the mapping data range and the grayscale value range matching the mapping data range for each group of data to be processed based on preset data processing rules; a second processing submodule 7220 configured to: for each group of data to be processed, determine the calibration grayscale value corresponding to each new parameter value in the mapping data range using the boundary values of the mapping data range and the boundary values of the grayscale value range matching the mapping data range; a third processing submodule 7230 configured to: for each new parameter value in the mapping data range, determine the original parameter value corresponding to the new parameter value based on the mapping relationship between the original data range and the mapping data range; and a fourth processing submodule 7230 configured to: for each new parameter value in the mapping data range, use the calibration grayscale value corresponding to the new parameter value as the calibration grayscale value of the point corresponding to the original parameter value in the associated initial curve.
[0181] Optionally, the mapping data range of each group of data to be processed includes a first mapping data range of the original parameter values and a second mapping data range of the original precision values; the grayscale value range includes the grayscale value range of each of the three RGB channels.
[0182] Optionally, the first processing submodule 7210 is further configured to: determine a first initial data range of the original parameter values and a second initial data range of the original precision values in each group of data to be processed based on mathematical statistics; map each original parameter value in each group of data to be processed from the first initial data range to the first mapped data range, and map each original precision value in each group of data to be processed from the second initial data range to the second mapped data range, using a preset mapping rule; and determine the grayscale value range of each of the RGB three channels for each group of data to be processed, using the first initial data range and the first mapped data range in that group of data to be processed.
[0183] Optionally, the first processing submodule 7210 is further configured to: determine a first initial data range of the original parameter values based on sorting the original parameter values in each group of data to be processed according to their numerical values, wherein the effective maximum value of the original parameter values is used as the upper limit of the first initial data range, and the effective minimum value of the original parameter values is used as the lower limit of the first initial data range; and determine a second initial data range of the original precision values based on sorting the original precision values in each group of data to be processed according to their numerical values, wherein the effective maximum value of the original precision values is used as the upper limit of the second initial data range, and the effective minimum value of the original precision values is used as the lower limit of the second initial data range.
[0184] Optionally, the first processing submodule 7210 is further configured to: determine the first quantile and the second quantile of the original parameter values in each group of data to be processed based on a preset quantile rule, and determine the first quantile and the second quantile of the original precision values in each group of data to be processed; replace the upper limit of the first initial data range with the first quantile of the original parameter values, and replace the lower limit of the first initial data range with the second quantile of the original parameter values to obtain the first mapped data range; and map each original parameter value in each group of data to be processed, except for the upper and lower limits of the first initial data range, to the first mapped data range according to the calculation formula (1).
[0185]
[0186] Where i represents the index of the original parameter value in each group of data to be processed; μ i This represents any original parameter value in each set of data to be processed before mapping, excluding the upper and lower limits of the first initial data range; val i This represents any new parameter value in each group of data to be processed after mapping, excluding the upper and lower limits of the first mapped data range; valMAX represents the upper limit of the first mapped data range; valMIN represents the lower limit of the first mapped data range.
[0187] In addition, the upper limit of the second initial data range is replaced with the first quantile value of the original precision value, and the lower limit of the second initial data range is replaced with the second quantile value of the original precision value to obtain the second mapped data range;
[0188] According to the calculation formula (2), each original precision value in each group of data to be processed, except for the upper and lower limits of the second initial data range, is mapped to the second mapped data range;
[0189]
[0190] Where j represents the index of the original precision value in each group of data to be processed; θ j This represents any original precision value in each set of data to be processed before mapping, excluding the upper and lower limits of the second initial data range; pre j After mapping, preMAX represents any new precision value in each group of data to be processed, excluding the upper and lower limits of the second mapped data range; preMIN represents the lower limit of the second mapped data range.
[0191] Optionally, the first processing submodule 7210 is further configured to: determine a general grayscale value range matching the first mapped data range based on the upper and lower limits of the first initial data range and the first mapped data range using calculation formulas (3) to (4); determine the grayscale values of each of the RGB three channels corresponding to the upper limit of the first mapped data range using preset configuration rules and the upper limit of the general grayscale value range, as the upper limit of the grayscale value range of each of the RGB three channels; and determine the grayscale values of each of the RGB three channels corresponding to the lower limit of the first mapped data range using preset configuration rules and the lower limit of the general grayscale value range, as the lower limit of the grayscale value range of each of the RGB three channels.
[0192]
[0193]
[0194] Among them, G max Indicates the upper limit of the general grayscale value range; G min valMAX represents the lower limit of the general grayscale value range; valMIN represents the upper limit of the first mapped data range; μ represents the lower limit of the first mapped data range. max μ represents the upper limit of the first initial data range; min This represents the lower limit of the first initial data range.
[0195] Optionally, the second processing submodule 7220 is further configured to: for each new parameter value, determine the first-corrected grayscale value of each of the three RGB channels corresponding to the new parameter value using a preset first correction rule, the boundary value of the first mapping data range, and the boundary value of the respective grayscale value range of the three RGB channels; convert the first-corrected grayscale value of each of the three RGB channels corresponding to the new parameter value into an HSI value using a preset conversion rule; correct the HSI value using a preset second correction rule, the boundary value of the second mapping data range, and a new precision value belonging to the same target drilling and control decoding data as the new parameter value, to obtain a corrected HSI value; and convert the corrected HSI value into a grayscale value of the three RGB channels as the calibration grayscale value.
[0196] Optionally, the second processing submodule 7220 is further configured to: calculate the first-correction grayscale value of each of the three RGB channels corresponding to the new parameter value using the following calculation formulas (5) to (7);
[0197]
[0198]
[0199]
[0200] Where R1 represents the first-correction grayscale value of the R channel; R max Indicates the upper limit of the grayscale value range of the R channel; R min G1 represents the lower limit of the grayscale value range of the R channel; G1 represents the grayscale value of the G channel after primary correction; G max Indicates the upper limit of the grayscale value range of the G channel; G min B1 represents the lower limit of the grayscale value range of the G channel; B1 represents the grayscale value of the B channel after primary correction; B max Indicates the upper limit of the grayscale value range of the B channel; B min val represents the lower limit of the grayscale value range of the B channel; val represents the new parameter value within the range of the first mapped data; valMAX represents the upper limit of the range of the first mapped data; valMIN represents the lower limit of the range of the first mapped data.
[0201] Optionally, the second processing submodule 7220 is further configured to convert the first-correction grayscale values of the three RGB channels corresponding to the new parameter value into HSI values using the following calculation formulas (8) to (12);
[0202]
[0203]
[0204] S = 0 (10)
[0205]
[0206]
[0207] When calculating S, if I is 0, then formula (10) is used; if I is between 0 and 0.6, then formula (11) is used; if I is between 0.6 and 1, then formula (12) is used.
[0208] H represents the hue value; I represents the brightness value; S represents the saturation value; x and n represent one of the first-corrected grayscale values of the three RGB channels corresponding to the new parameter value, and the difference between the two is the largest; f represents the maximum difference between the first-corrected grayscale values of the three RGB channels corresponding to the new parameter value; f0 represents the minimum difference between the first-corrected grayscale values of the three RGB channels corresponding to the new parameter value; K represents a constant, which takes the value of 0, 2 or 4.
[0209] Optionally, the second processing submodule 7220 is further configured to: correct the HSI value using the following calculation formulas (13) to (16) to obtain the corrected HSI value;
[0210]
[0211] H1=H (14)
[0212] S1=S×rp (15)
[0213] I1=I×rp (16)
[0214] Wherein, pre represents the new precision value belonging to the same target drilling and control decoding data as the new parameter value; rp represents the precision index; preMAX represents the upper limit of the range of the second mapping data; preMIN represents the lower limit of the range of the second mapping data; H represents the hue value; I represents the brightness value; S represents the saturation value; H1 represents the corrected hue value; I1 represents the corrected brightness value; and S1 represents the corrected saturation value.
[0215] In summary, using the apparatus for visualizing drilling measurement and control decoding data according to the above embodiments of this disclosure, the calibration grayscale value of each point in the curve can be determined. The calibration grayscale value of each point can be determined using the parameter value and accuracy value corresponding to that point, and then the curve can be recolored using the calibration grayscale value. The resulting curve achieves at least the simultaneous display of parameter values and accuracy values in the drilling measurement and control decoding data, thereby providing a better visualization effect for drilling and production sites or subsequent research.
[0216] Exemplary electronic devices
[0217] In addition, this disclosure also provides an electronic device, including: a memory for storing a computer program; and a processor for executing the computer program stored in the memory, wherein when the computer program is executed, it implements the method for visually presenting drilling measurement and control decoding data as described in any of the above embodiments of this disclosure.
[0218] Figure 9 This is a schematic diagram of an application embodiment of the electronic device disclosed herein. Below, reference is made to… Figure 9 This describes an electronic device according to embodiments of the present disclosure. The electronic device may be either or both of a first device and a second device, or a standalone device independent of them, which may communicate with the first device and the second device to receive acquired input signals from them.
[0219] like Figure 9As shown, the electronic device includes one or more processors and memory. The processor may be a central processing unit (CPU) or other processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. The memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory. The non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor may execute the program instructions to implement the methods for visually presenting drilling measurement and control decoding data according to the various embodiments of this disclosure described above, and / or other desired functions.
[0220] In one example, the electronic device may further include input and output devices, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). Furthermore, the input device may include, for example, a keyboard, a mouse, etc. The output device can output various information to the outside, including determined distance information, direction information, etc. The output device may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.
[0221] Of course, for the sake of simplicity, Figure 9 Only some of the components of the electronic device relevant to this disclosure are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device may include any other suitable components depending on the specific application.
[0222] In addition to the methods and apparatus described above, embodiments of this disclosure may also be computer program products comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the methods for visually presenting drilling measurement and control decoding data according to various embodiments of this disclosure as described in the foregoing portion of this specification.
[0223] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this disclosure. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on a user's computing device, partially on a user's computing device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0224] Furthermore, embodiments of this disclosure may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps in the methods for visually presenting drilling measurement and control decoding data according to various embodiments of this disclosure as described in the foregoing portion of this specification.
[0225] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0226] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as ROM, RAM, magnetic disk, or optical disk.
[0227] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.
[0228] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For system embodiments, since they largely correspond to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0229] The block diagrams of devices, apparatuses, devices, and systems disclosed herein are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0230] The methods and apparatus of this disclosure may be implemented in many ways. For example, they may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps for the methods is for illustrative purposes only, and the steps of the methods of this disclosure are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, this disclosure may also be implemented as a program recorded on a recording medium, the program including machine-readable instructions for implementing the methods according to this disclosure. Thus, this disclosure also covers recording media storing programs for performing the methods according to this disclosure.
[0231] It should also be noted that in the apparatus, devices, and methods of this disclosure, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions to this disclosure.
[0232] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.
[0233] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. A method for visualizing and presenting drilling measurement and control decoding data, comprising: Based on the classification results of the acquired multiple target measurement and control decoding data, an initial curve for each type of target measurement and control decoding data is plotted; wherein, the target measurement and control decoding data is the measurement and control decoding data to be visualized. Based on preset calibration rules, the calibration grayscale value of each point in the initial curve of the drilling measurement and control decoding data of each type of target is determined; wherein, one point corresponds to one piece of the target drilling measurement and control decoding data, and one point corresponds to one calibration grayscale value; Based on the correspondence between the points in the initial curve of the drilling measurement and control decoding data of each type of target and the calibration gray value, the corresponding points are recolored using the calibration gray value to obtain the calibration curve; The calibration curve is then pushed to the user terminal. Each target drilling and control decoding data includes at least the data acquisition time, parameter name, original parameter value, and original accuracy value. The step of plotting an initial curve for each type of target's measurement-while-drilling (MWD) decoding data based on the classification results of the acquired multiple target MWD decoding data includes: The multiple target drilling measurement and control decoding data are classified using the parameter names. Data acquisition time, original parameter value, and original accuracy value belonging to the same parameter name are grouped into one category as a set of data to be processed. The data acquisition time, original parameter value, and original accuracy value belonging to the same target drilling measurement and control decoding data are stored accordingly. For each set of data to be processed, an initial curve is plotted in a preset coordinate system using the original parameter value and the data acquisition time as coordinates; wherein, the data acquisition time and the original parameter value belonging to the same target drilling and control decoding data form a point; The step of determining the calibration grayscale value of each point in the initial curve of the drilling and control decoding data for each type of target based on preset calibration rules includes: Based on preset data processing rules, the mapping data range of each group of data to be processed and the gray value range that matches the mapping data range are determined. For each group of data to be processed, the boundary value of the mapped data range of the group of data to be processed and the boundary value of the gray value range that matches the mapped data range are used to determine the calibration gray value corresponding to each new parameter value in the mapped data range of the group of data to be processed. For each new parameter value of the data to be processed within the mapped data range, the original parameter value corresponding to the new parameter value is determined based on the mapping relationship between the original data range and the mapped data range; For each new parameter value of the data to be processed within the range of the mapped data, based on the point in the associated initial curve corresponding to the original parameter value corresponding to the new parameter value, the calibration gray value corresponding to the new parameter value is used as the calibration gray value of that point; The mapping data range for each group of data to be processed includes a first mapping data range of the original parameter values and a second mapping data range of the original precision values. The grayscale value range includes the grayscale value range of each of the three RGB channels; Specifically, for each group of data to be processed, the calibration grayscale corresponding to each new parameter value within the mapped data range is determined using the boundary values of the mapped data range of the group of data to be processed and the boundary values of the grayscale value range matching the mapped data range, including: For each new parameter value, the first correction grayscale value of each of the three RGB channels is determined by using the preset first correction rule, the boundary value of the first mapping data range, and the boundary value of the grayscale value range of each of the three RGB channels. Using a preset conversion rule, the first-correction grayscale values of each of the three RGB channels corresponding to the new parameter value are converted into HSI values; The HSI value is corrected by using a preset second correction rule, the boundary value of the second mapping data range, and a new precision value that belongs to the same target drilling measurement and control decoding data as the new parameter value, to obtain the corrected HSI value. The corrected HSI value is converted into an RGB three-channel grayscale value, which is used as the calibration grayscale value.
2. The method according to claim 1, wherein The step of determining the mapping data range and the grayscale value range matching the mapping data range for each group of data to be processed based on preset data processing rules includes: Based on mathematical statistics, a first initial data range of the original parameter values and a second initial data range of the original precision values are determined for each group of data to be processed. Using a preset mapping rule, each original parameter value in each group of data to be processed is mapped from the first initial data range to the first mapped data range, and each original precision value in each group of data to be processed is mapped from the second initial data range to the second mapped data range; For each group of data to be processed, the grayscale value range of each of the three RGB channels is determined by using the first initial data range and the first mapped data range in that group of data to be processed.
3. The method according to claim 2, wherein The step of determining the first initial data range of the original parameter values and the second initial data range of the original precision values in each group of data to be processed based on mathematical statistics includes: Based on sorting the original parameter values in each group of data to be processed according to their numerical values, a first initial data range of the original parameter values is determined, wherein the effective maximum value of the original parameter values is used as the upper limit of the first initial data range, and the effective minimum value of the original parameter values is used as the lower limit of the first initial data range. Based on sorting the original precision values in each group of data to be processed according to their numerical values, a second initial data range of the original precision values is determined, wherein the effective maximum value of the original precision values is used as the upper limit of the second initial data range, and the effective minimum value of the original precision values is used as the lower limit of the second initial data range.
4. The method according to claim 2, wherein The step of using a preset mapping rule to map each original parameter value in each group of data to be processed from the first initial data range to the first mapped data range, and to map each original precision value in each group of data to be processed from the second initial data range to the second mapped data range, includes: Based on the preset quantile rules, the first quantile and the second quantile of the original parameter values in each group of data to be processed are determined, as well as the first quantile and the second quantile of the original precision values in each group of data to be processed are determined. The upper limit of the first initial data range is replaced with the first quantile value of the original parameter value, and the lower limit of the first initial data range is replaced with the second quantile value of the original parameter value to obtain the first mapped data range; According to the calculation formula (1), each original parameter value in each group of data to be processed, except for the upper and lower limits of the first initial data range, is mapped to the first mapped data range; (1) Among them, i represents the serial number of the original parameter value in each group of data to be processed; μ i represents any other original parameter value in each group of data to be processed except the upper and lower limits of the first initial data range before mapping; val i represents any other new parameter value in each group of data to be processed except the upper and lower limits of the first mapped data range after mapping; valMAX represents the upper limit of the first mapped data range; valMIN represents the lower limit of the first mapped data range; as well as, The upper limit of the second initial data range is replaced with the first quantile of the original precision value, and the lower limit of the second initial data range is replaced with the second quantile of the original precision value to obtain the second mapped data range; According to the calculation formula (2), each original precision value in each group of data to be processed, except for the upper and lower limits of the second initial data range, is mapped to the second mapped data range; (2) Among them, j represents the serial number of the original precision value in each group of data to be processed; θ j represents any other original precision value in each group of data to be processed except the upper and lower limits of the second initial data range before mapping; pre j represents any other new precision value in each group of data to be processed except the upper and lower limits of the second mapped data range after mapping; preMAX represents the upper limit of the second mapped data range; pre MIN represents the lower limit of the second mapped data range.
5. The method according to claim 2, wherein, For each set of data to be processed, the grayscale value range of each of the RGB three channels is determined using the first initial data range and the first mapped data range in that set of data, including: Based on the first initial data range and the upper and lower limits of the first mapped data range, the general gray value range matching the first mapped data range is determined using calculation formulas (3) to (4). Using preset configuration rules and the upper limit of the general grayscale value range, determine the grayscale values of each of the three RGB channels corresponding to the upper limit of the first mapping data range, and use them as the upper limit of the grayscale value range of each of the three RGB channels. Using preset configuration rules and the lower limit of the general grayscale value range, the grayscale values of the RGB three channels corresponding to the lower limit of the first mapped data range are determined as the lower limit of the grayscale value range of the RGB three channels. (3) (4) in, G max This indicates the upper limit of the general grayscale value range; G min This indicates the lower limit of the general grayscale value range; valMAX This indicates the upper limit of the range of the first mapped data; valMIN This indicates the lower limit of the range of the first mapped data; μ max This represents the upper limit of the first initial data range; μ min This represents the lower limit of the first initial data range.
6. The method according to claim 1, wherein, For each new parameter value, the first-correction grayscale value for each of the three RGB channels is determined using a preset first correction rule, the boundary values of the first mapped data range, and the boundary values of the respective grayscale value ranges of the three RGB channels. This includes: Using the following calculation formulas (5) to (7), calculate the first-correction grayscale value of each of the three RGB channels corresponding to the new parameter value; (5) (6) (7) in, R 1 indicates the grayscale value of the R channel after one correction; R max Indicates the upper limit of the grayscale value range of the R channel; R min Indicates the lower limit of the grayscale value range of the R channel; G 1 indicates the grayscale value of the G channel being corrected once; G max Indicates the upper limit of the grayscale value range of the G channel; G min Indicates the lower limit of the grayscale value range of the G channel; B 1 indicates that the grayscale value of channel B was corrected once; B max Indicates the upper limit of the grayscale value range of channel B; B min val represents the lower limit of the grayscale value range of channel B; val represents the new parameter value within the range of the first mapped data. valMAX This indicates the upper limit of the range of the first mapped data; valMIN This indicates the lower limit of the range of the first mapped data.
7. The method according to claim 1, wherein, The step of converting the first-correction grayscale values of each of the three RGB channels corresponding to the new parameter value into HSI values using a preset conversion rule includes: Using the following calculation formulas (8) to (12), the first-correction grayscale values of the three RGB channels corresponding to the new parameter values are converted into HSI values; (8) (9) (10) (11) (12) Among them, when calculating S, when I If the value is 0, then use formula (10); when I If the value is between 0 and 0.6, but excluding 0 and 0.6, then use formula (11); when I If the value is between 0.6 and 1, then use formula (12). H Indicates the hue value; I Indicates the brightness value; S Indicates the saturation value; x, n Each of the two values represents one of the first-correction grayscale values of the three RGB channels corresponding to the new parameter value, and the difference between the two values is the largest. f This represents the maximum difference between the first-correction grayscale values of each of the three RGB channels corresponding to the new parameter value; f 0 represents the minimum difference between the first-correction grayscale values of each of the three RGB channels corresponding to the new parameter value; K This represents a constant, with values of 0, 2, or 4.
8. The method according to claim 1, wherein, The HSI value is corrected by using a preset second correction rule, the boundary value of the second mapped data range, and a new precision value belonging to the same target drilling and measurement-while-drilling decoding data as the new parameter value, to obtain the corrected HSI value, including: The HSI value is corrected by using the following calculation formulas (13) to (16) to obtain the corrected HSI value; (13) (14) (15) (16) Wherein, pre represents the new precision value that belongs to the same target drilling and control decoding data as the new parameter value; rp Indicates the precision index; preMAX This indicates the upper limit of the range of the second mapped data; pre MIN This indicates the lower limit of the range of the second mapped data; H Indicates the hue value; I Indicates the brightness value; S Indicates the saturation value; H 1 indicates the corrected hue value; I 1 indicates the corrected brightness value; S 1 represents the corrected saturation value.
9. An apparatus for visually presenting drilling measurement and control decoding data, comprising: The preprocessing module is configured to: draw an initial curve for each type of target measurement and control decoding data based on the classification results of the acquired multiple target measurement and control decoding data; wherein, the target measurement and control decoding data is the measurement and control decoding data to be visualized. The calibration module is configured to: determine the calibration grayscale value of each point in the initial curve of the drilling measurement and control decoding data of each type of target based on a preset calibration rule; wherein, one point corresponds to one piece of the target drilling measurement and control decoding data, and one point corresponds to one calibration grayscale value; The recoloring execution module is configured to: based on the correspondence between the points in the initial curve of the drilling measurement and control decoding data of each type of target and the calibration gray value, recolor the corresponding points using the calibration gray value to obtain the calibration curve; Push module: Pushes the calibration curve to the user terminal; Each target drilling and control decoding data includes at least the data acquisition time, parameter name, original parameter value, and original accuracy value. The preprocessing module is further configured as follows: The multiple target drilling measurement and control decoding data are classified using the parameter names. Data acquisition time, original parameter value, and original accuracy value belonging to the same parameter name are grouped into one category as a set of data to be processed. The data acquisition time, original parameter value, and original accuracy value belonging to the same target drilling measurement and control decoding data are stored accordingly. For each set of data to be processed, an initial curve is plotted in a preset coordinate system using the original parameter value and the data acquisition time as coordinates; wherein, the data acquisition time and the original parameter value belonging to the same target drilling and control decoding data form a point; The calibration module is further configured as follows: Based on preset data processing rules, the mapping data range of each group of data to be processed and the gray value range that matches the mapping data range are determined. For each group of data to be processed, the boundary value of the mapped data range of the group of data to be processed and the boundary value of the gray value range that matches the mapped data range are used to determine the calibration gray value corresponding to each new parameter value in the mapped data range of the group of data to be processed. For each new parameter value of the data to be processed within the mapped data range, the original parameter value corresponding to the new parameter value is determined based on the mapping relationship between the original data range and the mapped data range; For each new parameter value of the data to be processed within the range of the mapped data, based on the point in the associated initial curve corresponding to the original parameter value corresponding to the new parameter value, the calibration gray value corresponding to the new parameter value is used as the calibration gray value of that point; The mapping data range for each group of data to be processed includes a first mapping data range of the original parameter values and a second mapping data range of the original precision values. The grayscale value range includes the grayscale value range of each of the three RGB channels; The calibration module is further configured as follows: For each new parameter value, the first correction grayscale value of each of the three RGB channels is determined by using the preset first correction rule, the boundary value of the first mapping data range, and the boundary value of the grayscale value range of each of the three RGB channels. Using a preset conversion rule, the first-correction grayscale values of each of the three RGB channels corresponding to the new parameter value are converted into HSI values; The HSI value is corrected by using a preset second correction rule, the boundary value of the second mapping data range, and a new precision value that belongs to the same target drilling measurement and control decoding data as the new parameter value, to obtain the corrected HSI value. The corrected HSI value is converted into an RGB three-channel grayscale value, which is used as the calibration grayscale value.
10. An electronic device, the electronic device comprising: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method for visually presenting drilling measurement and control decoding data as described in any one of claims 1-8.
11. A computer-readable storage medium storing a computer program for executing the method for visually presenting drilling measurement and control decoding data as described in any one of claims 1-8.