Phase state detection system and method for oil and gas reservoir fluid
Through the combination of the GRU model and the adaptive equilibrium feature vector fusion module, the identification problem of the oil and gas reservoir fluid phase state detection method under different temperature and pressure conditions is solved, and the accurate identification and prediction of the oil and gas reservoir fluid phase state is achieved, providing oil and gas Mining provides a reliable basis.
Patent Information
- Application Number
- CN202410911519.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-09
AI Technical Summary
Existing oil and gas reservoir fluid phase state detection methods rely on on-site sampling, which is difficult to accurately reflect the phase state changes of oil and gas reservoir fluids under different temperature and pressure conditions, affecting mining, transportation and processing decisions.
The sequence encoder and adaptive equilibrium feature vector fusion module based on the GRU model are used, combined with the nonlinear feedback interactive module, to identify the phase type of oil and gas reservoir fluids through feature extraction and collaborative analysis of test temperature, pressure and fluid viscosity values. .
It achieves accurate identification and prediction of fluid phase state in oil and gas reservoirs, provides a more reliable basis for mining, transportation and processing, and improves the accuracy of fluid phase state judgment.
Smart Images

Figure CN118464710B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of oil and gas reservoirs, and in particular, to a phase state detection system and method for oil and gas reservoir fluids. Background Art
[0002] Oil and gas reservoirs are rock layers that store oil and natural gas underground. The fluids in oil and gas reservoirs usually contain multiple components such as oil, gas and water, which will undergo phase changes under different temperature and pressure conditions. The different phases of oil and gas reservoir fluids will directly affect their physical and chemical properties, such as density, viscosity and compressibility. Changes in these properties have a profound impact on oil and gas production efficiency, equipment design and operational safety. Therefore, accurately detecting and predicting the phase state of fluids in oil and gas reservoirs is of great significance for the production, transportation and processing of oil and gas.
[0003] Therefore, a phase state detection system for oil and gas reservoir fluid is desired. Summary of the invention
[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0005] In a first aspect, the present application provides a phase detection method for oil and gas reservoir fluid, the method comprising: obtaining a sequence of test temperatures and a sequence of test pressures input by a user; obtaining fluid viscosity values of the oil and gas reservoir fluid to be detected at different test temperatures and different test pressures; respectively performing sequence encoding on the test temperature sequence and the test pressure sequence to obtain a test temperature associated representation vector and a test pressure associated representation vector; inputting the test temperature associated representation vector and the test pressure associated representation vector into an adaptive equalization feature vector fusion module to obtain a test temperature-test pressure associated representation vector; performing sequence encoding on the fluid viscosity values of the oil and gas reservoir fluid to be detected at different test temperatures and different test pressures to obtain a fluid viscosity associated representation vector; inputting the fluid viscosity associated representation vector and the test temperature-test pressure associated representation vector into a nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector; and determining the phase type label of the oil and gas reservoir fluid to be detected based on the test parameter-test result nonlinear response interaction representation vector.
[0006] Optionally, the sequence of the test temperature and the sequence of the test pressure are sequence encoded respectively to obtain a test temperature associated representation vector and a test pressure associated representation vector, including: passing the sequence of the test temperature and the sequence of the test pressure respectively through a sequence encoder based on a GRU model to obtain the test temperature associated representation vector and the test pressure associated representation vector.
[0007] Optionally, the test temperature associated representation vector and the test pressure associated representation vector are input into an adaptive equalization feature vector fusion module to obtain a test temperature-test pressure associated representation vector, including: performing threshold constraints based on different linear transformations and fusion methods on the test temperature associated representation vector and the test pressure associated representation vector to obtain a first activated linear transformation test temperature-test pressure associated feature vector, a second activated linear transformation test temperature-test pressure associated feature vector and a third activated linear transformation test temperature-test pressure associated feature vector; using each position feature value in the first activated linear transformation test temperature-test pressure associated feature vector as a first threshold value, using each position feature value in the second activated linear transformation test temperature-test pressure associated feature vector as a second threshold value, using each position feature value in the third activated linear transformation test temperature-test pressure associated feature vector as a third threshold value, and calculating the weighted sum of the test temperature associated representation vector and the test pressure associated representation vector input into the adaptive equalization feature vector to obtain the test temperature-test pressure associated representation vector.
[0008] Optionally, the test temperature associated representation vector and the test pressure associated representation vector are subjected to threshold constraints based on different linear transformations and fusion methods to obtain a first activated linear transformation test temperature-test pressure associated feature vector, a second activated linear transformation test temperature-test pressure associated feature vector and a third activated linear transformation test temperature-test pressure associated feature vector, including: cascading the test temperature associated representation vector and the test pressure associated representation vector to obtain a first test temperature-pressure associated feature vector; calculating the matrix multiplication of the first test temperature-pressure associated feature vector and the first transformation matrix, and then adding the obtained feature vector to the first bias vector by position to obtain the first linear transformation test temperature-pressure associated feature vector; using The activation function activates the first linear transformation test temperature-pressure associated feature vector to obtain the first activated linear transformation test temperature-test pressure associated feature vector; the test temperature associated representation vector and the test pressure associated representation vector are added positionally to obtain a second test temperature-pressure associated feature vector; after calculating the matrix multiplication of the second test temperature-pressure associated feature vector and the second transformation matrix, the obtained feature vector is added positionally to the second bias vector to obtain a second linear transformation test temperature-pressure associated feature vector; using The activation function activates the second linear transformation test temperature-pressure associated feature vector to obtain the second activated linear transformation test temperature-test pressure associated feature vector; the test temperature associated representation vector and the test pressure associated representation vector are multiplied by position point to obtain a third test temperature-pressure associated feature vector; after calculating the matrix multiplication of the third test temperature-pressure associated feature vector and the third transformation matrix, the obtained feature vector is added to the third bias vector by position to obtain a third linear transformation test temperature-pressure associated feature vector; using The activation function activates the third linear transformation test temperature-pressure associated feature vector to obtain the third activated linear transformation test temperature-test pressure associated feature vector.
[0009] Optionally, the characteristic values of each position in the first activated linear transformation test temperature-test pressure associated feature vector are used as the first threshold value, the characteristic values of each position in the second activated linear transformation test temperature-test pressure associated feature vector are used as the second threshold value, and the characteristic values of each position in the third activated linear transformation test temperature-test pressure associated feature vector are used as the third threshold value, and the weighted sum of the test temperature associated representation vector and the test pressure associated representation vector input adaptive equalization characteristic vector is calculated to obtain the test temperature-test pressure associated representation vector, including: calculating the mean between the first threshold value, the second threshold value and the third threshold value to obtain the threshold mean; calculating the difference minus the threshold mean and then multiplying it with the characteristic value of each position in the test temperature associated representation vector to obtain a weighted item test temperature associated representation vector; calculating the product of the characteristic value of each position in the test pressure associated representation vector and the threshold mean to obtain a weighted item test pressure associated representation vector; adding the weighted item test temperature associated representation vector and the weighted item test pressure associated representation vector by position to obtain the test temperature-test pressure associated representation vector.
[0010] Optionally, the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures are sequence-encoded to obtain a fluid viscosity association representation vector, including: passing the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures through the sequence encoder based on the GRU model to obtain the fluid viscosity association representation vector.
[0011] Optionally, the fluid viscosity association representation vector and the test temperature-test pressure association representation vector are input into a nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector, including: calculating the position-by-position response between the fluid viscosity association representation vector and the test temperature-test pressure association representation vector to obtain a test parameter-test result interaction feature vector; calculating the product between the square value of each position feature value in the test parameter-test result interaction feature vector and a first predetermined adjustment hyperparameter to obtain a first test parameter-test result interaction nonlinear factor quadratic adjustment parameter; calculating the product between each position feature value in the test parameter-test result interaction feature vector and a second predetermined adjustment hyperparameter to obtain a first test parameter-test result interaction nonlinear factor linear adjustment parameter; calculating the sum of the first test parameter-test result interaction nonlinear factor quadratic adjustment parameter and the first test parameter-test result interaction nonlinear factor linear adjustment parameter to obtain the first test parameter-test result interaction nonlinear factor; calculating Calculate the product of the square value of each position eigenvalue in the test parameter-test result interaction feature vector and the third predetermined adjustment hyperparameter to obtain the second test parameter-test result interaction nonlinear factor quadratic adjustment parameter; calculate the product of each position eigenvalue in the test parameter-test result interaction feature vector and the fourth predetermined adjustment hyperparameter to obtain the second test parameter-test result interaction nonlinear factor linear adjustment parameter; calculate the sum of the second test parameter-test result interaction nonlinear factor quadratic adjustment parameter and the second test parameter-test result interaction nonlinear factor linear adjustment parameter and then perform a constant term plus one modulation to obtain the second test parameter-test result interaction nonlinear factor; calculate the division between the first test parameter-test result interaction nonlinear factor and the second test parameter-test result interaction nonlinear factor to obtain a test parameter-test result interaction nonlinear response value, and vectorize and regularize the multiple test parameter-test result interaction nonlinear response values according to the time dimension to obtain the test parameter-test result interaction feature vector.
[0012] Optionally, based on the test parameter-test result nonlinear response interaction representation vector, the phase type label of the oil and gas reservoir fluid to be tested is determined, including: inputting the test parameter-test result nonlinear response interaction representation vector into a classifier-based phase detection result generator to obtain a detection result, and the detection result is used to represent the phase type label of the oil and gas reservoir fluid to be tested.
[0013] Optionally, it also includes a training step: for training the GRU model-based sequence encoder, the adaptive equalization feature vector fusion module, the nonlinear feedback interaction module and the classifier-based phase detection result generator; wherein the training step includes: obtaining a sequence of training test temperatures and a sequence of training test pressures input by a user, as well as a true result of the phase type label of the oil and gas reservoir fluid to be detected; obtaining the training fluid viscosity value of the oil and gas reservoir fluid to be detected at different test temperatures and different test pressures; respectively performing sequence encoding on the sequence of training test temperatures and the sequence of training test pressures to obtain a training test temperature association representation vector and a training test pressure association representation vector; inputting the training test temperature association representation vector and the training test pressure association representation vector into the adaptive equalization feature vector fusion module to obtain a training test temperature-test pressure association table The invention discloses a method for preparing a phase state detection result generator based on a GRU model, comprising: performing sequence encoding on the viscosity values of the training fluid at different test temperatures and different test pressures of the oil and gas reservoir fluid to be detected to obtain a training fluid viscosity association representation vector; inputting the training fluid viscosity association representation vector and the training test temperature-test pressure association representation vector into the nonlinear feedback interaction module to obtain a training test parameter-test result nonlinear response interaction representation vector; inputting the training test parameter-test result nonlinear response interaction representation vector into the classifier-based phase state detection result generator to obtain a training test result; calculating the cross entropy loss function value between the training test result and the true result as the classification loss function value; and training the GRU model-based sequence encoder, the adaptive equalization feature vector fusion module, the nonlinear feedback interaction module and the classifier-based phase state detection result generator based on the classification loss function value.
[0014] In a second aspect, the present application provides a phase state detection system for oil and gas reservoir fluids, the system comprising: a test temperature and pressure input module, used to obtain a test temperature sequence and a test pressure sequence input by a user; a fluid viscosity acquisition module, used to obtain the fluid viscosity value of the oil and gas reservoir fluid to be detected at different test temperatures and different test pressures; a sequence encoding module, used to sequence encode the test temperature sequence and the test pressure sequence to obtain a test temperature associated representation vector and a test pressure associated representation vector; a feature vector fusion module, used to input the test temperature associated representation vector and the test pressure associated representation vector into an adaptive equalization feature vector. A vector fusion module is used to obtain a test temperature-test pressure association representation vector; a sequence encoding module is used to sequence the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures to obtain a fluid viscosity association representation vector; a nonlinear feedback interaction module is used to input the fluid viscosity association representation vector and the test temperature-test pressure association representation vector into a nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector; a phase type label determination module is used to determine the phase type label of the oil and gas reservoir fluid to be tested based on the test parameter-test result nonlinear response interaction representation vector.
[0015] The above technical solution is adopted, by respectively encoding the test temperature sequence and the test pressure sequence, and then inputting the adaptive equalization feature vector fusion module to obtain the test temperature-test pressure association representation vector; the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures are sequence-encoded to obtain the fluid viscosity association representation vector; the fluid viscosity association representation vector and the test temperature-test pressure association representation vector are input into the nonlinear feedback interaction module to obtain the test parameter-test result nonlinear response interaction representation vector, and then the phase type label of the oil and gas reservoir fluid to be tested is determined. In this way, the fluid viscosity in the oil and gas reservoir can be identified based on different environmental conditions, so as to predict the phase state of the fluid, providing a basis for subsequent exploitation, transportation and processing.
[0016] Other features and advantages of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0018] In the attached picture: Figure 1The present invention is a flow chart of a method for detecting a phase state of oil and gas reservoir fluid according to an exemplary embodiment.
[0019] Figure 2 The figure is a flow chart of sample receiving and detection according to an exemplary embodiment.
[0020] Figure 3 It is a block diagram of a phase detection system for oil and gas reservoir fluid according to an exemplary embodiment.
[0021] Figure 4 It is a block diagram of an electronic device according to an exemplary embodiment.
[0022] Figure 5 It is an application scenario diagram of a phase state detection method for oil and gas reservoir fluid according to an exemplary embodiment. DETAILED DESCRIPTION
[0023] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0024] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.
[0025] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0026] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0027] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0029] In order to solve the above problems, the present application provides a phase state detection system and method for oil and gas reservoir fluids, which respectively encodes the sequence of test temperature and the sequence of test pressure, and then inputs the sequence into an adaptive equalization feature vector fusion module to obtain a test temperature-test pressure correlation representation vector; the fluid viscosity values of the oil and gas reservoir fluid to be detected at different test temperatures and different test pressures are sequence-encoded to obtain a fluid viscosity correlation representation vector; the fluid viscosity correlation representation vector and the test temperature-test pressure correlation representation vector are input into a nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector, and then the phase state type label of the oil and gas reservoir fluid to be detected is determined. In this way, the fluid viscosity in the oil and gas reservoir can be identified based on different environmental conditions, so as to predict the phase state of the fluid, providing a basis for subsequent exploitation, transportation and processing.
[0030] The specific implementation of the present application is described in detail below with reference to the accompanying drawings.
[0031] Figure 1 is a flow chart of a phase state detection method for oil and gas reservoir fluid according to an exemplary embodiment. Figure 1 As shown, the method includes: step S101, acquiring a test temperature sequence and a test pressure sequence input by a user.
[0032] Step S102, obtaining the viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures.
[0033] Step S103 : performing sequence encoding on the test temperature sequence and the test pressure sequence respectively to obtain a test temperature associated representation vector and a test pressure associated representation vector.
[0034] Step S104: input the test temperature association representation vector and the test pressure association representation vector into an adaptive equalization feature vector fusion module to obtain a test temperature-test pressure association representation vector.
[0035] Step S105: sequence encoding the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures to obtain a fluid viscosity correlation representation vector.
[0036] Step S106: input the fluid viscosity correlation representation vector and the test temperature-test pressure correlation representation vector into a nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector.
[0037] Step S107: determining the phase type label of the oil and gas reservoir fluid to be tested based on the test parameter-test result nonlinear response interaction representation vector.
[0038] It should be understandable that the traditional phase state detection method of oil and gas reservoir fluid usually relies on on-site sampling to analyze the fluid phase to determine whether it is solid, liquid, gas or supercritical. However, the phase state of oil and gas reservoir fluid is not always constant. It will change due to differences in environmental temperature and pressure and other factors. This will lead to deviations in the phase state judgment of the fluid in the oil and gas reservoir and subsequent mining, transportation and processing decisions, thereby affecting the development and effective utilization of the oil and gas reservoir.
[0039] Fluid viscosity is one of the important parameters that describe the viscosity and fluidity of a fluid, and it can reflect the phase state of the fluid, such as solid, liquid, gaseous and supercritical. The viscosity of oil and gas reservoir fluids is affected by factors such as temperature and pressure, thereby determining the final phase state of the oil and gas reservoir fluids. Based on this, the technical concept of the present application is to input different test temperature and test pressure data on laboratory equipment, and collect the fluid viscosity values of oil and gas reservoir fluids at different test temperatures and different test pressures, and then introduce data processing and analysis algorithms based on artificial intelligence and deep learning in the back end to extract features and collaboratively analyze these different test temperature and test pressure data, as well as the viscosity values of oil and gas reservoir fluids under different test conditions, so as to identify and capture the implicit correlation patterns and responsive interaction characteristics between these environmental conditions and the viscosity of the fluid in the oil and gas reservoir, so as to identify and predict the phase state type of the oil and gas reservoir fluid. In this way, the viscosity of the fluid in the oil and gas reservoir can be identified based on different environmental conditions, so as to predict the phase state of the fluid, and provide a basis for subsequent exploitation, transportation and processing.
[0040] Specifically, in the technical solution of the present application, first, the sequence of test temperature and the sequence of test pressure input by the user are obtained, and the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures are obtained. Next, considering that the test temperature, the test pressure and the fluid viscosity value have autocorrelation characteristics and patterns between different tests, such as gradually increasing data or fluctuating change information, the effective extraction of these features is helpful for subsequent learning and capturing the hidden association patterns and interactive relationships between test parameters and test results. Based on this, in the technical solution of the present application, the sequence of the test temperature and the sequence of the test pressure are further passed through a sequence encoder based on a GRU model to obtain a test temperature association representation vector and a test pressure association representation vector, and the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures are passed through the sequence encoder based on the GRU model to obtain a fluid viscosity association representation vector. It should be understood that the GRU model is a variant of a recurrent neural network (RNN) commonly used to process sequence data. It has a gating mechanism that can effectively capture long-term dependencies in the sequence and reduce the gradient disappearance problem during training. The sequence encoder based on the GRU model encodes the test temperature sequence, the test pressure sequence and the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures respectively, and can capture the self-correlation patterns and characteristic information of the test temperature, test pressure and fluid viscosity value in each test process respectively. These characteristics are crucial for the subsequent oil and gas reservoir fluid phase state detection.
[0041] In one embodiment of the present application, the sequence of the test temperature and the sequence of the test pressure are sequence encoded to obtain a test temperature association representation vector and a test pressure association representation vector, respectively, including: passing the sequence of the test temperature and the sequence of the test pressure through a sequence encoder based on a GRU model to obtain the test temperature association representation vector and the test pressure association representation vector.
[0042] In one embodiment of the present application, the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures are sequence-encoded to obtain a fluid viscosity association representation vector, including: passing the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures through the sequence encoder based on the GRU model to obtain the fluid viscosity association representation vector.
[0043] Then, considering that in oil and gas reservoirs, temperature and pressure are two important environmental factors that have a significant impact on the properties and phase states of oil and gas reservoir fluids. In addition, since there is a mutual correlation and hidden correlation pattern between the test temperature and pressure, the correlation pattern between the test temperature and the test pressure may be different in different test environments. For example, the test temperature may be more sensitive to certain phase changes, while the test pressure may be more sensitive to other phase changes. Based on this, in order to be able to more comprehensively and accurately capture the correlation characteristics and pattern information between the test temperature and the test pressure, so as to provide a data basis for the subsequent correlation interaction analysis of the test parameters and test results, in the technical solution of the present application, the test temperature correlation representation vector and the test pressure correlation representation vector are further input into the adaptive equalization feature vector fusion module to obtain the test temperature-test pressure correlation representation vector. Through the processing of the adaptive equalization feature vector fusion module, the interaction and complex correlation between the test temperature and the test pressure under different test conditions can be automatically learned and captured, and the weights of the two can be adaptively adjusted, so that the model can pay more attention to the features that are more critical to phase state detection, so as to better fuse the test temperature association representation vector and the test pressure association representation vector, so as to more comprehensively and accurately express the environmental characteristic information of the test parameters, which will help to more accurately predict the phase state of the fluid in the oil and gas reservoir in the future.
[0044] In one embodiment of the present application, the test temperature association representation vector and the test pressure association representation vector are input into an adaptive equalization feature vector fusion module to obtain a test temperature-test pressure association representation vector, including: performing threshold constraints based on different linear transformations and fusion methods on the test temperature association representation vector and the test pressure association representation vector to obtain a first activated linear transformation test temperature-test pressure association feature vector, a second activated linear transformation test temperature-test pressure association feature vector and a third activated linear transformation test temperature-test pressure association feature vector; using each position feature value in the first activated linear transformation test temperature-test pressure association feature vector as a first threshold value, using each position feature value in the second activated linear transformation test temperature-test pressure association feature vector as a second threshold value, and using each position feature value in the third activated linear transformation test temperature-test pressure association feature vector as a third threshold value, and calculating the weighted sum of the test temperature association representation vector and the test pressure association representation vector input into the adaptive equalization feature vector to obtain the test temperature-test pressure association representation vector.
[0045] Furthermore, in one embodiment of the present application, the test temperature associated representation vector and the test pressure associated representation vector are subjected to threshold constraints based on different linear transformations and fusion methods to obtain a first activated linear transformation test temperature-test pressure associated feature vector, a second activated linear transformation test temperature-test pressure associated feature vector and a third activated linear transformation test temperature-test pressure associated feature vector, including: cascading the test temperature associated representation vector and the test pressure associated representation vector to obtain a first test temperature-pressure associated feature vector; calculating the matrix multiplication of the first test temperature-pressure associated feature vector and the first transformation matrix, and then adding the obtained feature vector to the first bias vector by position to obtain a first linear transformation test temperature-pressure associated feature vector; using The activation function activates the first linear transformation test temperature-pressure associated feature vector to obtain the first activated linear transformation test temperature-test pressure associated feature vector; the test temperature associated representation vector and the test pressure associated representation vector are added positionally to obtain a second test temperature-pressure associated feature vector; after calculating the matrix multiplication of the second test temperature-pressure associated feature vector and the second transformation matrix, the obtained feature vector is added positionally to the second bias vector to obtain a second linear transformation test temperature-pressure associated feature vector; using The activation function activates the second linear transformation test temperature-pressure associated feature vector to obtain the second activated linear transformation test temperature-test pressure associated feature vector; the test temperature associated representation vector and the test pressure associated representation vector are multiplied by position point to obtain a third test temperature-pressure associated feature vector; after calculating the matrix multiplication of the third test temperature-pressure associated feature vector and the third transformation matrix, the obtained feature vector is added to the third bias vector by position to obtain a third linear transformation test temperature-pressure associated feature vector; using The activation function activates the third linear transformation test temperature-pressure associated feature vector to obtain the third activated linear transformation test temperature-test pressure associated feature vector.
[0046] Furthermore, in one embodiment of the present application, each position characteristic value in the first activated linear transformation test temperature-test pressure associated characteristic vector is used as a first threshold value, each position characteristic value in the second activated linear transformation test temperature-test pressure associated characteristic vector is used as a second threshold value, and each position characteristic value in the third activated linear transformation test temperature-test pressure associated characteristic vector is used as a third threshold value, and the weighted sum of the test temperature associated representation vector and the test pressure associated representation vector input adaptive equalization characteristic vector is calculated to obtain the test temperature-test pressure associated representation vector. It includes: calculating the mean among the first threshold value, the second threshold value and the third threshold value to obtain the threshold mean; calculating the difference minus the threshold mean and then multiplying it with the eigenvalue of each position in the test temperature association representation vector to obtain a weighted item test temperature association representation vector; calculating the product of the eigenvalue of each position in the test pressure association representation vector and the threshold mean to obtain a weighted item test pressure association representation vector; adding the weighted item test temperature association representation vector and the weighted item test pressure association representation vector by position to obtain the test temperature-test pressure association representation vector.
[0047] Specifically, the test temperature association representation vector and the test pressure association representation vector are input into the adaptive equalization feature vector fusion module for processing using the following adaptive equalization fusion formula to obtain the test temperature-test pressure association representation vector; wherein the adaptive equalization fusion formula is: ;in, and are the test temperature association representation vector and the test pressure association representation vector, respectively, and are the test temperature association representation vectors The vector associated with the test pressure is The eigenvalues at each position in , is the characteristic value of each position in the test temperature-test pressure association representation vector, represents the concatenation of vectors, , and is the transformation matrix, , and is the bias vector, is the first activated linear transformation test temperature-test pressure correlation eigenvector, represents vector addition by position, It means vector multiplication by position. is the second activated linear transformation test temperature-test pressure correlation eigenvector, is the third activated linear transformation test temperature-test pressure correlation eigenvector, is the first activated linear transformation test temperature-test pressure correlation feature vector The threshold value of each position in is the second activation linear transformation test temperature-test pressure correlation feature vector The threshold value of each position in is the third activated linear transformation test temperature-test pressure correlation feature vector The threshold value of each position in , express Activation function.
[0048] Furthermore, considering that the phase change of oil and gas reservoir fluid is a complex process, and when predicting the phase type of oil and gas reservoir, the viscosity of the fluid is an important characteristic parameter, which is jointly affected by both temperature and pressure. Therefore, in order to better capture the complex hidden associations and interactions between the viscosity of oil and gas reservoir fluid and the test temperature and pressure, so as to more accurately predict the phase type of gas reservoir fluid, in the technical solution of the present application, the fluid viscosity association representation vector and the test temperature-test pressure association representation vector are further input into a nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector. Through the processing of the nonlinear feedback interaction module, it is possible to self-learn and capture the complex nonlinear correlation patterns and interactions between the test parameter association features and the test result features, and adaptively adjust the interaction weights between different features to better reflect their importance in phase detection. In this way, it is possible to more comprehensively explore the complex relationship between fluid viscosity and temperature and pressure under different test conditions, improve the generalization ability of the model, and provide a more accurate and comprehensive feature representation for subsequent phase detection and prediction.
[0049] In one embodiment of the present application, the fluid viscosity association representation vector and the test temperature-test pressure association representation vector are input into a nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector, including: calculating the position-by-position response between the fluid viscosity association representation vector and the test temperature-test pressure association representation vector to obtain a test parameter-test result interaction feature vector; calculating the product between the square value of each position feature value in the test parameter-test result interaction feature vector and a first predetermined adjustment hyperparameter to obtain a first test parameter-test result interaction nonlinear factor quadratic adjustment parameter; calculating the product between each position feature value in the test parameter-test result interaction feature vector and a second predetermined adjustment hyperparameter to obtain a first test parameter-test result interaction nonlinear factor linear adjustment parameter; calculating the sum of the first test parameter-test result interaction nonlinear factor quadratic adjustment parameter and the first test parameter-test result interaction nonlinear factor linear adjustment parameter to obtain a first test parameter-test result interaction nonlinear factor. factor; calculate the product between the square value of each position eigenvalue in the test parameter-test result interaction eigenvalue vector and the third predetermined adjustment hyperparameter to obtain the second test parameter-test result interaction nonlinear factor quadratic adjustment parameter; calculate the product between each position eigenvalue in the test parameter-test result interaction eigenvalue vector and the fourth predetermined adjustment hyperparameter to obtain the second test parameter-test result interaction nonlinear factor linear adjustment parameter; calculate the sum of the second test parameter-test result interaction nonlinear factor quadratic adjustment parameter and the second test parameter-test result interaction nonlinear factor linear adjustment parameter and then perform a constant term plus one modulation to obtain the second test parameter-test result interaction nonlinear factor; calculate the division between the first test parameter-test result interaction nonlinear factor and the second test parameter-test result interaction nonlinear factor to obtain the test parameter-test result interaction nonlinear response value, and vectorize and regularize the multiple test parameter-test result interaction nonlinear response values according to the time dimension to obtain the test parameter-test result interaction eigenvalue vector.
[0050] Specifically, the fluid viscosity association representation vector and the test temperature-test pressure association representation vector are input into the nonlinear feedback interaction module and processed by the following nonlinear feedback interaction formula to obtain the test parameter-test result nonlinear response interaction representation vector; wherein the nonlinear feedback interaction formula is: ;in, is the first The eigenvalues at the positions, is the fluid viscosity correlation representation vector The eigenvalues at the positions, is the first in the test parameter-test result interaction feature vector The eigenvalues at the positions, , , and To tune the hyperparameters, is the first in the test parameter-test result nonlinear response interaction representation vector The feature value at each position.
[0051] Furthermore, the test parameter-test result nonlinear response interaction representation vector is input into the phase state detection result generator based on the classifier to obtain the detection result, and the detection result is used to represent the phase state type label of the oil and gas reservoir fluid to be detected. In other words, the nonlinear response interaction feature representation between the test parameters and the test results is used to perform classification processing, so as to identify and predict the phase state type of the oil and gas reservoir fluid. In this way, the viscosity of the fluid in the oil and gas reservoir can be identified based on different environmental conditions, so as to predict the phase state of the fluid, such as solid, liquid, gas and supercritical state, to provide a basis for subsequent exploitation, transportation and processing.
[0052] In one embodiment of the present application, based on the test parameter-test result nonlinear response interaction representation vector, the phase type label of the oil and gas reservoir fluid to be detected is determined, including: inputting the test parameter-test result nonlinear response interaction representation vector into a classifier-based phase detection result generator to obtain a detection result, and the detection result is used to represent the phase type label of the oil and gas reservoir fluid to be detected.
[0053] Furthermore, in one embodiment of the present application, the phase detection method of the oil and gas reservoir fluid also includes a training step: for training the sequence encoder based on the GRU model, the adaptive equalization feature vector fusion module, the nonlinear feedback interaction module and the classifier-based phase detection result generator; wherein the training step includes: obtaining a sequence of training test temperatures and a sequence of training test pressures input by a user, as well as a real result of the phase type label of the oil and gas reservoir fluid to be detected; obtaining the training fluid viscosity value of the oil and gas reservoir fluid to be detected at different test temperatures and different test pressures; respectively performing sequence encoding on the sequence of the training test temperature and the sequence of the training test pressure to obtain a training test temperature associated representation vector and a training test pressure associated representation vector; inputting the training test temperature associated representation vector and the training test pressure associated representation vector into the adaptive equalization feature vector fusion module to obtain Training test temperature-test pressure association representation vector; performing sequence encoding on the training fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures to obtain a training fluid viscosity association representation vector; inputting the training fluid viscosity association representation vector and the training test temperature-test pressure association representation vector into the nonlinear feedback interaction module to obtain a training test parameter-test result nonlinear response interaction representation vector; inputting the training test parameter-test result nonlinear response interaction representation vector into the classifier-based phase detection result generator to obtain a training detection result; calculating the cross entropy loss function value between the training detection result and the true result as the classification loss function value; and training the GRU model-based sequence encoder, the adaptive equalization feature vector fusion module, the nonlinear feedback interaction module and the classifier-based phase detection result generator based on the classification loss function value.
[0054] In a preferred embodiment, the applicant of the present application takes into account that the training test temperature-test pressure association representation vector is used to represent the time-series correlation adaptive equalization fusion characteristics of the training test temperature and the training test pressure, and the training fluid viscosity association representation vector is used to represent the time-series correlation characteristics of the training fluid viscosity value of the oil and gas reservoir fluid to be detected. When performing nonlinear feedback interaction, there will be misalignment in its time-series distribution, so that the training test parameter-test result nonlinear response interaction representation vector will have local distribution differences caused by the misalignment of the time-series dimension, thereby affecting the classification iteration effect. Therefore, when the training test parameter-test result nonlinear response interaction representation vector is input into the classifier-based phase detection result generator for classification, the training test parameter-test result nonlinear response interaction representation vector is optimized, including the steps of: determining the first The first test parameter at the location - the test result nonlinear response interaction represents the value and the second The second test parameter of the location - test result nonlinear response interaction represents the value.
[0055] Determine the training test parameter-test result nonlinear response interaction representation vector obtained by the classifier and the oil and gas reservoir fluid to be detected The phase type labels correspond to The probability value of a phase type.
[0056] Calculate the The standard deviation between the probability values of the phase type is used to obtain the relative distribution value of the phase type, and the The product of the probability values of the phase types The square root is used to obtain the phase type co-distribution value.
[0057] The first test parameter-test result nonlinear response interaction representation value and the second test parameter-test result nonlinear response interaction representation value are respectively subtracted from the phase type relative distribution value and then multiplied to obtain the test parameter-test result nonlinear response interaction representation relative distribution value.
[0058] The first test parameter-test result nonlinear response interaction representation value and the second test parameter-test result nonlinear response interaction representation value are added and then divided by the phase type cooperative distribution value to obtain the test parameter-test result nonlinear response interaction representation cooperative distribution value.
[0059] The test parameter-test result nonlinear response interaction relative distribution value and the test parameter-test result nonlinear response interaction cooperative distribution value are added as the first test parameter-test result nonlinear response interaction representation value and the second test parameter-test result nonlinear response interaction representation value. Location and Position corresponding coordinates The matrix value at is used to obtain the test parameter-test result nonlinear response interaction correction moment.
[0060] The inner product of each row vector of the test parameter-test result nonlinear response interaction correction matrix and the training test parameter-test result nonlinear response interaction representation vector is calculated to obtain an optimized test parameter-test result nonlinear response interaction representation vector.
[0061] That is, by taking the eigenvalue of the training test parameter-test result nonlinear response interaction representation vector as a unit, for the relative class probability distribution form and the collaborative class probability distribution form of the class probabilities corresponding to different labels obtained by the classifier using the training test parameter-test result nonlinear response interaction representation vector as a feature set, a relativity-based joint characterization and a synergy-based response characterization of the eigenvalue pairs of the training test parameter-test result nonlinear response interaction representation vector are performed respectively, so as to avoid the class induction bias caused by the corresponding local distribution differences between the eigenvalues of the training test parameter-test result nonlinear response interaction representation vector, so as to establish a robust understanding paradigm for class cognition of the training test parameter-test result nonlinear response interaction representation vector as a feature set as a whole, thereby improving the iteration effect of the training test parameter-test result nonlinear response interaction representation vector as a feature set in the classification process, that is, improving the classification training speed and the accuracy of the classification results when the training test parameter-test result nonlinear response interaction representation vector is input into the phase detection result generator based on the classifier for classification. In this way, the viscosity of the fluid in the oil and gas reservoir can be identified more accurately based on different environmental conditions, so as to predict the phase state of the fluid and provide a basis for subsequent exploitation, transportation and processing.
[0062] In summary, the above scheme is adopted to input different test temperature and test pressure data on laboratory equipment, and collect fluid viscosity values of oil and gas reservoir fluids at different test temperatures and different test pressures. Then, data processing and analysis algorithms based on artificial intelligence and deep learning are introduced in the back end to extract features and collaboratively analyze these different test temperature and test pressure data, as well as the viscosity values of oil and gas reservoir fluids under different test conditions, so as to identify and capture the implicit correlation patterns and responsive interaction characteristics between these environmental conditions and the viscosity of fluids in oil and gas reservoirs, so as to identify and predict the phase type of oil and gas reservoir fluids. In this way, the viscosity of fluids in oil and gas reservoirs can be identified based on different environmental conditions, so as to predict the phase state of the fluid, providing a basis for subsequent exploitation, transportation and processing.
[0063] In one embodiment of the present application, a sample detection process is provided, such as Figure 2 shown.
[0064] (1) Sample collection for testing. In order to confirm the changes in the properties and phase characteristics of the formation fluid in the well during the production process, after the samples are sent to the laboratory, the samples are checked under separator conditions such as separator pressure and separator temperature, and the sample temperature, gas sample pressure, oil sample pressure, etc. are checked. The sample list is checked according to the well number, geographical location, structural location, well section, layer, etc.
[0065] (2) Identification of test samples. The sample receiving personnel shall uniquely identify the samples for testing; upon receiving the samples, the data administrator shall check the test items and sample names, and after verification, uniquely number the samples and indicate the status of pending testing, retained samples, or returned samples; the data administrator shall assign tasks to the samples according to the sample test items, and after receiving the samples, the testing room shall check the sample numbers and additional test items. When testing the samples, the samples shall be marked with the in-test status, and after the test is completed, the standard tested status shall be marked. If the samples need to be retained, the retained status shall be marked.
[0066] (3) Handover and delivery of test samples. When accepting a client's commissioned test, the data manager shall register and record in detail the status, quantity, attachments, information, storage and confidentiality requirements of the test samples. When the client has special requirements, the client should indicate them in the sample test commission form. After verifying the contents of the commission form, both parties sign and confirm. The sample test commission form is in duplicate, and the data manager assists the client in filling it out. A copy is stamped with the company seal and allowed to be taken away by the client as a receipt for the report. The original copy is handed over to the testing room together with the sample by the data manager when issuing the test task as a test certificate. After the testing room receives the test task copy, it determines the person in charge of the test, and the person in charge and the data manager go through the handover procedures for the samples, attachments and information to be tested, and signs and confirms the "Sample Handover Registration and Report Record Form". The sample number shall not be changed after the sample is delivered to the testing room. Samples should be protected during the circulation and testing process to avoid non-testing damage or loss; after the sample is completed, the testing room will hand it over to the data administrator together with the report and sample; when the client collects the tested samples, attachments and materials, he / she should present the "Sample Testing Commission Form" and sign on the registration form.
[0067] (4) Sample backup. When it is necessary to keep a sample of the test sample for backup, the data manager (sample collector) should keep the backup sample and seal it. And sign on the seal; the sealed backup sample should be stored in accordance with the storage conditions agreed by both parties; when it is necessary to unseal the sealed backup sample for testing, it should be agreed by both parties and unsealed together when both parties are present. After unsealing, the sample should be arranged for testing as soon as possible to avoid sample deterioration.
[0068] (5) Storage of test samples. The storage conditions of test samples should meet the requirements of the customer. For test samples with special storage requirements, the sample manager should record the storage environment conditions to verify that the storage of test samples always meets the customer's requirements. The monitoring of the storage environment of test samples shall be carried out in accordance with the "Facility and Environmental Control Procedures"; when the storage and preservation conditions do not meet the customer's requirements, the customer shall be informed. Or other storage and preservation methods shall be adopted with the customer's consent.
[0069] (6) Sample testing process. The testing process shall be strictly carried out in accordance with the established analytical testing business process. After receiving the commission, the tester shall actively communicate with the client to determine the purpose of the analytical testing, the content of the analytical testing, sampling matters and other related requirements. If necessary, the analytical testing plan shall be prepared and communicated with the client for confirmation, and the content and requirements of the test shall be agreed upon. The testing personnel shall conduct independent, fair and accurate inspections in strict accordance with relevant standards, specifications and operating instructions. The testing personnel shall also strictly abide by professional ethics and staff rules and strictly keep confidentiality. The technical standards used shall be checked every quarter in accordance with the relevant provisions of the quality system to ensure that the standards used are current and effective. After the analytical testing work is completed, the test results shall be reviewed at three levels, and the business management personnel shall issue the test report. The testing room shall be equipped with corresponding instruments and equipment in accordance with relevant specifications and standards, and the instruments and equipment used shall be maintained, maintained and checked during the period.
[0070] (7) Disposal of samples after testing. After the test is completed, the samples are delivered to the customer together with the report. If the customer needs to keep the samples, they should be stored according to the storage method of the test samples and fill in the "Sample Storage and Disposal Form". If the customer waives the right to dispose of the samples after testing, the data manager will propose a disposal plan. After approval by the technical person in charge, the data manager will register and dispose of them one by one.
[0071] (8) Preparation of test samples. The preparation of test samples should comply with the provisions and requirements of the test standards or work instructions. If the customer requests to observe the destructive testing process of the test samples, the technical person in charge should arrange for the relevant testing room to be ready for reception. If necessary, the customer should be asked to sign and confirm the preparation of the test samples or the testing status.
[0072] (9) Confidentiality of test samples. During the circulation of test samples, the person in charge of each stage of the test shall be responsible for the confidentiality of the test samples; the data manager shall be responsible for the storage, safety, confidentiality and integrity of the test samples, and supervise the management of the test samples during the inspection period; when the customer has special requirements for the confidentiality of the test samples, the testing room shall return the samples, accessories and technical data to the test sample library before the end of each day for safekeeping by the data manager; no unrelated personnel are allowed to visit the test samples during the inspection. No unrelated personnel are allowed to read or take away the relevant technical data from the testing site; test samples involving patented products and patented technologies shall not be retained, and their data and the tested test samples (prototypes) shall be completely returned to the customer.
[0073] The analysis of the experimental process includes: flash evaporation experiment, in which the laboratory conducts a flash evaporation experiment on the separator oil sample at a constant temperature and pressure to the on-site separator conditions, and determines the oil and gas composition and the oil density in the tank.
[0074] Match samples, correct the production gas-oil ratio, and calculate the matched sample gas-oil ratio. Match the oil sample and gas sample according to the matched sample gas-oil ratio to obtain the formation fluid. The sample should be a single-phase fluid under the formation pressure and formation temperature conditions. Measure the dew point pressure and perform experimental analysis according to the "Condensate Gas Fluid Analysis Standard". Perform component analysis on flash oil, flash steam, and separator gas to obtain the original well flow composition.
[0075] Constant mass expansion test, constant mass expansion test is the process of measuring the change of fluid volume with pressure at a specified temperature. The different dew point pressures at three temperature points are tested.
[0076] The constant volume depletion experiment simulates the production process of formation fluid from dew point pressure to depletion pressure. During the constant volume depletion experiment, the maximum condensate volume and the corresponding pressure can be obtained.
[0077] Fluid phase research According to the composition of the sample well flow, the different dew point pressures at three temperature points were fitted and calculated. After the full-component phase diagram envelope calculation and constant mass expansion calculation, the hydrocarbon fluid phase diagram was obtained. At the same time, the critical pressure, critical temperature, critical condensate pressure, critical condensate temperature and other characteristic parameters of the condensate gas fluid were obtained. The classification composition of the well flow was obtained, and the C1+N 2、 C2~C6+CO2、C7 + Triangular phase diagram.
[0078] Figure 3 FIG. 1 is a block diagram of a phase state detection system for oil and gas reservoir fluid according to an exemplary embodiment. Figure 3 As shown, the phase state detection system 200 includes: a test temperature and pressure input module 201, which is used to obtain a test temperature sequence and a test pressure sequence input by a user.
[0079] The fluid viscosity acquisition module 202 is used to acquire the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures.
[0080] The sequence encoding module 203 is used to perform sequence encoding on the test temperature sequence and the test pressure sequence respectively to obtain a test temperature associated representation vector and a test pressure associated representation vector.
[0081] The feature vector fusion module 204 is used to input the test temperature association representation vector and the test pressure association representation vector into an adaptive equalization feature vector fusion module to obtain a test temperature-test pressure association representation vector.
[0082] The sequence encoding module 205 is used to perform sequence encoding on the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures to obtain a fluid viscosity correlation representation vector.
[0083] The nonlinear feedback interaction module 206 is used to input the fluid viscosity correlation representation vector and the test temperature-test pressure correlation representation vector into the nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector.
[0084] The phase type label determination module 207 is used to determine the phase type label of the oil and gas reservoir fluid to be tested based on the test parameter-test result nonlinear response interaction representation vector.
[0085] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present application. The terminal device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0086] like Figure 4 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0087] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0088] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0089] It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0090] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0091] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0092] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0093] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0094] The modules involved in the embodiments described in this application can be implemented by software or hardware. The name of the module does not limit the module itself in some cases. For example, the test parameter acquisition module can also be described as a "module for acquiring device test parameters corresponding to the target device".
[0095] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0096] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0097] Figure 5 FIG. 1 is an application scenario diagram of a phase state detection method for oil and gas reservoir fluid according to an exemplary embodiment. Figure 5 As shown, in this application scenario, first, a sequence of test temperatures input by a user is obtained (for example, Figure 5 C1) and the sequence of test pressures (e.g. Figure 5 C2 as shown in the figure); obtain the fluid viscosity value of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures (for example, Figure 5 Then, the obtained test temperature sequence, test pressure sequence and fluid viscosity value are input to a server (for example, Figure 5 In S) shown in the figure, the server is capable of processing the sequence of test temperatures, the sequence of test pressures and the fluid viscosity value based on the phase detection algorithm of the oil and gas reservoir fluid to determine the phase type label of the oil and gas reservoir fluid to be detected.
[0098] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
[0099] In addition, although each operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or to be performed in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the application. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0100] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A method for detecting the phase state of oil and gas reservoir fluid, characterized in that: include: Acquire a test temperature sequence and a test pressure sequence input by a user; Obtaining fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures; Sequentially encoding the test temperature sequence and the test pressure sequence to obtain a test temperature associated representation vector and a test pressure associated representation vector; Inputting the test temperature association representation vector and the test pressure association representation vector into an adaptive equalization feature vector fusion module to obtain a test temperature-test pressure association representation vector; Sequentially encoding the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures to obtain a fluid viscosity correlation representation vector; Inputting the fluid viscosity correlation representation vector and the test temperature-test pressure correlation representation vector into a nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector; Determining the phase type label of the oil and gas reservoir fluid to be tested based on the test parameter-test result nonlinear response interaction representation vector; The sequence encoding of the test temperature sequence and the test pressure sequence is performed respectively to obtain the test temperature associated representation vector and the test pressure associated representation vector, including: passing the test temperature sequence and the test pressure sequence through a sequence encoder based on a GRU model to obtain the test temperature associated representation vector and the test pressure associated representation vector; The step of inputting the test temperature association representation vector and the test pressure association representation vector into an adaptive equalization feature vector fusion module to obtain a test temperature-test pressure association representation vector includes: Performing threshold constraints based on different linear transformations and fusion methods on the test temperature association representation vector and the test pressure association representation vector to obtain a first activated linear transformation test temperature-test pressure association feature vector, a second activated linear transformation test temperature-test pressure association feature vector, and a third activated linear transformation test temperature-test pressure association feature vector; Taking each position characteristic value in the first activated linear transformation test temperature-test pressure associated characteristic vector as the first threshold value, taking each position characteristic value in the second activated linear transformation test temperature-test pressure associated characteristic vector as the second threshold value, taking each position characteristic value in the third activated linear transformation test temperature-test pressure associated characteristic vector as the third threshold value, calculate the weighted sum of the test temperature associated representation vector and the test pressure associated representation vector input adaptive equalization characteristic vector to obtain the test temperature-test pressure associated representation vector; The fluid viscosity values of the oil and gas reservoir fluid to be detected at different test temperatures and different test pressures are sequence-encoded to obtain a fluid viscosity association representation vector, including: passing the fluid viscosity values of the oil and gas reservoir fluid to be detected at different test temperatures and different test pressures through the sequence encoder based on the GRU model to obtain the fluid viscosity association representation vector; The fluid viscosity correlation representation vector and the test temperature-test pressure correlation representation vector are input into a nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector, including: Calculating the position-by-position response between the fluid viscosity correlation representation vector and the test temperature-test pressure correlation representation vector to obtain a test parameter-test result interaction feature vector; Calculate the product of the square value of each position feature value in the test parameter-test result interaction feature vector and the first predetermined adjustment hyperparameter to obtain the first test parameter-test result interaction nonlinear factor quadratic term adjustment parameter; Calculate the product of each position feature value in the test parameter-test result interaction feature vector and a second predetermined adjustment hyperparameter to obtain a first test parameter-test result interaction nonlinear factor linear term adjustment parameter; Calculate the sum of the first test parameter-test result interactive nonlinear factor quadratic term adjustment parameter and the first test parameter-test result interactive nonlinear factor linear term adjustment parameter to obtain the first test parameter-test result interactive nonlinear factor; Calculate the product of the square value of each position feature value in the test parameter-test result interaction feature vector and the third predetermined adjustment hyperparameter to obtain a second test parameter-test result interaction nonlinear factor quadratic term adjustment parameter; Calculate the product of each position feature value in the test parameter-test result interaction feature vector and a fourth predetermined adjustment hyperparameter to obtain a first-order adjustment parameter of a second test parameter-test result interaction nonlinear factor; Calculate the sum of the second test parameter-test result interactive nonlinear factor quadratic term adjustment parameter and the second test parameter-test result interactive nonlinear factor linear term adjustment parameter, and then perform a constant term plus one modulation to obtain the second test parameter-test result interactive nonlinear factor; Calculate the division between the first test parameter-test result interaction nonlinear factor and the second test parameter-test result interaction nonlinear factor to obtain a test parameter-test result interaction nonlinear response value, and vectorize and regularize a plurality of the test parameter-test result interaction nonlinear response values according to the time dimension to obtain the test parameter-test result interaction feature vector; Wherein, based on the test parameter-test result nonlinear response interaction representation vector, determining the phase type label of the oil and gas reservoir fluid to be detected includes: inputting the test parameter-test result nonlinear response interaction representation vector into a classifier-based phase detection result generator to obtain a detection result, and the detection result is used to represent the phase type label of the oil and gas reservoir fluid to be detected.
2. The phase state detection method of oil and gas reservoir fluid according to claim 1, characterized in that: The test temperature associated representation vector and the test pressure associated representation vector are subjected to threshold constraints based on different linear transformations and fusion methods to obtain a first activated linear transformation test temperature-test pressure associated feature vector, a second activated linear transformation test temperature-test pressure associated feature vector, and a third activated linear transformation test temperature-test pressure associated feature vector, including: Cascading the test temperature association representation vector and the test pressure association representation vector to obtain a first test temperature-pressure association feature vector; After calculating the matrix multiplication of the first test temperature-pressure associated eigenvector and the first transformation matrix, the obtained eigenvector is added to the first bias vector by position to obtain the first linear transformation test temperature-pressure associated eigenvector; use The activation function activates the first linear transformation test temperature-pressure associated feature vector to obtain the first activated linear transformation test temperature-test pressure associated feature vector; Adding the test temperature association representation vector and the test pressure association representation vector by position to obtain a second test temperature-pressure association feature vector; After calculating the matrix multiplication of the second test temperature-pressure associated eigenvector and the second transformation matrix, the obtained eigenvector is added to the second bias vector by position to obtain the second linear transformation test temperature-pressure associated eigenvector; use The activation function activates the second linear transformation test temperature-pressure associated feature vector to obtain the second activated linear transformation test temperature-test pressure associated feature vector; Multiplying the test temperature association representation vector and the test pressure association representation vector by position points to obtain a third test temperature-pressure association feature vector; After calculating the matrix multiplication of the third test temperature-pressure associated eigenvector and the third transformation matrix, the obtained eigenvector is added to the third bias vector by position to obtain a third linear transformation test temperature-pressure associated eigenvector; use The activation function activates the third linear transformation test temperature-pressure associated feature vector to obtain the third activated linear transformation test temperature-test pressure associated feature vector.
3. The phase state detection method of oil and gas reservoir fluid according to claim 2, characterized in that: Taking each position characteristic value in the first activated linear transformation test temperature-test pressure associated characteristic vector as the first threshold value, taking each position characteristic value in the second activated linear transformation test temperature-test pressure associated characteristic vector as the second threshold value, taking each position characteristic value in the third activated linear transformation test temperature-test pressure associated characteristic vector as the third threshold value, calculating the weighted sum of the test temperature associated representation vector and the test pressure associated representation vector input adaptive equalization characteristic vector to obtain the test temperature-test pressure associated representation vector, including: Calculating the average of the first threshold value, the second threshold value and the third threshold value to obtain a threshold average; Calculate a difference value minus the threshold mean value and then multiply it by the eigenvalue of each position in the test temperature association representation vector to obtain a weighted item test temperature association representation vector; Calculate the product of the characteristic value of each position in the test pressure association representation vector and the threshold mean value to obtain a weighted test pressure association representation vector; The weighted item test temperature association representation vector and the weighted item test pressure association representation vector are added according to position to obtain the test temperature-test pressure association representation vector.
4. The phase state detection method of oil and gas reservoir fluid according to claim 3, characterized in that: The method further includes a training step for training the GRU model-based sequence encoder, the adaptive equalization feature vector fusion module, the nonlinear feedback interaction module, and the classifier-based phase detection result generator; Wherein, the training step includes: Acquire the sequence of training test temperatures and the sequence of training test pressures input by the user, as well as the actual result of the phase type label of the oil and gas reservoir fluid to be tested; Obtaining the viscosity values of the training fluid of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures; Sequentially encoding the sequence of the training test temperature and the sequence of the training test pressure to obtain a training test temperature associated representation vector and a training test pressure associated representation vector; Inputting the training test temperature association representation vector and the training test pressure association representation vector into the adaptive equalization feature vector fusion module to obtain a training test temperature-test pressure association representation vector; Sequentially encoding the viscosity values of the training fluid at different test temperatures and different test pressures of the oil and gas reservoir fluid to be tested to obtain a training fluid viscosity correlation representation vector; Inputting the training fluid viscosity association representation vector and the training test temperature-test pressure association representation vector into the nonlinear feedback interaction module to obtain a training test parameter-test result nonlinear response interaction representation vector; Inputting the training test parameter-test result nonlinear response interaction representation vector into the classifier-based phase state detection result generator to obtain a training detection result; Calculating a cross entropy loss function value between the training detection result and the true result as a classification loss function value; The GRU model-based sequence encoder, the adaptive equalization feature vector fusion module, the nonlinear feedback interaction module and the classifier-based phase detection result generator are trained based on the classification loss function value.
5. A phase state detection system for oil and gas reservoir fluid according to the phase state detection method for oil and gas reservoir fluid according to any one of claims 1 to 4, characterized in that: include: A test temperature and pressure input module, used to obtain a test temperature sequence and a test pressure sequence input by a user; A fluid viscosity acquisition module, used to obtain the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures; A sequence encoding module, used for respectively performing sequence encoding on the test temperature sequence and the test pressure sequence to obtain a test temperature associated representation vector and a test pressure associated representation vector; A feature vector fusion module, used for inputting the test temperature association representation vector and the test pressure association representation vector into an adaptive equalization feature vector fusion module to obtain a test temperature-test pressure association representation vector; A sequence encoding module, used for performing sequence encoding on the fluid viscosity values of the oil and gas reservoir fluid to be tested at different test temperatures and different test pressures to obtain a fluid viscosity correlation representation vector; A nonlinear feedback interaction module, used for inputting the fluid viscosity correlation representation vector and the test temperature-test pressure correlation representation vector into the nonlinear feedback interaction module to obtain a test parameter-test result nonlinear response interaction representation vector; The phase type label determination module is used to determine the phase type label of the oil and gas reservoir fluid to be tested based on the test parameter-test result nonlinear response interaction representation vector.
