Self-adaptive oil well working fluid level real-time measurement method based on machine learning

Through machine learning technology, real-time monitoring and analysis of oil well liquid level changes and dynamic adjustment of measurement strategies solve the problems of inaccurate data collection and low efficiency in traditional technologies, and improve the efficiency and safety of oil well production.

CN118733973APending Publication Date: 2024-10-01BEIJING BOZHONGJIAHE PETRO TECH
View PDF 0 Cites 12 Cited by

Patent Information

Application Number
CN202411155536.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Traditional oil well dynamic liquid level measurement technology relies on preset parameters and static strategies and cannot respond to environmental changes in real time, resulting in inaccurate data collection and low efficiency, as well as safety risks and resource waste.

Method used

Adopting an adaptive method based on machine learning, by monitoring liquid level changes in real time, adjusting signal strength and filtering parameters, using autoregressive moving average models and recursive neural networks for noise characteristic analysis and trend prediction, dynamically adjusting sampling frequency and sensor configuration, and optimizing Measurement strategies.

Benefits of technology

It improves the adaptability and response speed of the measurement system, enhances prediction accuracy and operational timeliness, and improves the overall efficiency and safety of oil well production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733973A_ABST
    Figure CN118733973A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of self-adaptive measurement, in particular to a self-adaptive oil well working fluid level real-time measurement method based on machine learning, which comprises the following steps of: deploying a sensor and connecting a data acquisition device, monitoring oil well fluid level setting in real time, acquiring fluid level change data and dynamic fluid level data, and simultaneously recording internal pressure and temperature values of an oil well. And acquiring liquid level monitoring data. According to the method, the response of the filter can be accurately adjusted based on the noise characteristic matrix through the autoregression moving average model, the signal processing precision is improved, the configuration of the filter is optimized, and the adaptability and the response speed of a measurement system are improved in a complex noise environment; the liquid level change trend is extracted, the prediction model is dynamically adjusted, the prediction capacity of the model for future states is enhanced, the data-driven learning process is combined with real-time feedback, the accuracy of the prediction result and the operation timeliness are ensured, and the overall efficiency and safety of oil well exploitation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of adaptive measurement technology, and in particular to a real-time measurement method for dynamic liquid level of an oil well based on machine learning adaptive measurement. Background Art

[0002] The field of adaptive measurement technology focuses on using advanced algorithms and computer technology to automatically adjust the parameters of the measurement system, thereby optimizing the measurement process and improving the accuracy and reliability of the measurement results. In adaptive measurement technology, the system can dynamically adjust according to the data collected in real time, adapt to environmental changes or changes in input data, and ensure the quality and efficiency of data collection.

[0003] The main purpose of the real-time measurement method of oil well dynamic liquid level based on machine learning is to automatically adjust the measurement strategy and parameters through real-time data processing and learning to adapt to the dynamic changes in oil well operation, aiming to achieve higher measurement accuracy, reduce human intervention, and improve the efficiency and safety of oil well production. By analyzing the dynamic data of the oil well in real time, predicting and responding to liquid level changes, the operating conditions and output of the oil well can be optimized.

[0004] Traditional technologies rely on preset parameters and static measurement strategies, lacking real-time data analysis and adaptive adjustment mechanisms. Traditional methods cannot respond immediately to rapidly changing environmental conditions, resulting in inaccurate and inefficient data collection. When encountering sudden changes in pressure and temperature, fixed parameter settings may not be able to accurately capture liquid level changes, leading to incorrect operational decisions and potential safety risks. Fixed sampling frequencies and measurement strategies may waste resources when frequent data updates are not required, or may respond insufficiently in emergency situations that require high-resolution monitoring, hindering the efficiency and safety of oil well operations and limiting the ability to adapt to complex geological and operating conditions. Summary of the invention

[0005] The purpose of the present invention is to solve the shortcomings existing in the prior art and propose a real-time measurement method of oil well dynamic liquid level based on machine learning adaptive.

[0006] In order to achieve the above object, the present invention adopts the following technical solution: a real-time measurement method of oil well dynamic liquid level based on machine learning adaptive, comprising the following steps: Step 1: Deploy sensors and connect data acquisition devices to monitor the oil well liquid level in real time, collect liquid level change data and dynamic liquid level data, and record the internal pressure and temperature values ​​of the oil well to obtain liquid level monitoring data; Step 2: Based on the liquid level monitoring data, adjust the signal strength and filtering parameters, analyze the noise and signal characteristics in the original data, perform frequency domain separation operation, adjust the filtering parameters and process the signal data at the same time, and obtain an enhanced filtered signal; Step 3: Based on the enhanced filtered signal, noise characteristic analysis and dynamic evaluation are performed to track and identify noise characteristics of different frequency bands, classify various noise sources and determine the degree of interference, obtain a noise characteristic matrix based on the interference data, and generate a noise characteristic evaluation report; Step 4: Based on the noise characteristic evaluation report, filter parameters are screened, filter response characteristics are adjusted according to the noise characteristic matrix, multiple groups of filter configurations are compared, an autoregressive sliding average model is used, the optimal configuration is selected to measure the actual environment, and a filter parameter adjustment plan is obtained; Step 5: Based on the filtering parameter adjustment scheme, a dynamic linear model prediction of the liquid level change trend is performed, a recursive neural network is used to extract the change trend, and the prediction model is adjusted, the key variables in the model are updated, the future change trend of the liquid level is obtained, and a trend prediction result is generated; Step 6: Based on the trend prediction results, dynamically adjust the sampling frequency and sampling point location, reconfigure key parameters of the measurement equipment, adjust the sensitivity and coverage of the sensor, and obtain an optimized measurement strategy.

[0007] As a further solution of the present invention, the liquid level monitoring data includes liquid level height, temperature and pressure values, the enhanced filtered signal includes enhanced frequency distribution, signal strength and noise residual after filtering, the noise characteristic evaluation report includes noise source classification, noise spectrum characteristics and interference degree, the filtering parameter adjustment scheme includes filter bandwidth adjustment, gain setting and response time optimization, the trend prediction results include a curve of future liquid level changes, predicted high and low points and trend turning points, and the optimized measurement strategy includes sampling frequency adjustment, sensor sensitivity setting and redistribution of sampling points.

[0008] As a further solution of the present invention, the specific steps of generating the liquid level monitoring data are: Connect the sensor to the data acquisition device, perform preliminary power and signal detection on the sensor, and perform equipment function calibration to obtain an initial monitoring baseline; Based on the initial monitoring baseline, set the monitoring parameters of the data acquisition device, including the sampling frequency of the liquid level height and dynamic liquid level, adjust the sensitivity and response time of the sensor to adapt to the changes in the oil well environment, and conduct real-time data acquisition to obtain data records of liquid level changes; Based on the data recording of liquid level changes, the pressure and temperature in the oil well are recorded in synchronous acquisition mode, and the calibration parameters of the pressure and temperature sensors are adjusted to obtain the liquid level monitoring data.

[0009] As a further solution of the present invention, the specific steps of generating the enhanced filtered signal are: Based on the liquid level monitoring data, the signal strength is evaluated, the frequency response curve is adjusted to match the actual characteristics of the signal, and the parameters are optimized to generate an optimized parameter configuration; Based on the optimized parameter configuration, using a real-time monitoring tool to analyze the signal-to-noise ratio in the raw data, manually adjusting the frequency response of the filter, performing signal cleaning, and generating noise separation data; Based on the noise separation data, a specific operation of frequency domain separation is performed, filter parameters are adjusted, signal processing is refined, and an enhanced filter signal is generated.

[0010] As a further solution of the present invention, the specific steps of generating the noise characteristic evaluation report are: Based on the enhanced filtered signal, measure the energy in the frequency band, draw an amplitude-frequency graph, refine the energy distribution of the frequency band, record the energy values ​​of different frequency bands, and obtain the frequency band energy distribution; Based on the energy distribution of the frequency bands, the energy values ​​of different frequency bands are compared, the main noise sources are identified, the interference intensity of each noise source is measured, the noise sources are classified by energy comparison, a detailed relationship between the noise source and the interference degree is constructed, and a noise source classification and interference matrix is ​​established; Based on the noise source classification and interference matrix, various types of noise data are integrated, a unified evaluation template is formulated, the impact and changes of each noise source are recorded, and finally a comprehensive dynamic evaluation report is generated to obtain a noise characteristic evaluation report.

[0011] As a further solution of the present invention, the specific steps of generating the filtering parameter adjustment solution are: Based on the noise characteristic matrix, preliminary screening of filter parameters is performed, by comparing the noise level with the preset parameter threshold, calibrating the parameters to match the characteristics of each frequency band, and recording the preliminary adjusted data to obtain preliminary filter parameter settings; Based on the preliminary filter parameter setting, adjust the filter frequency response, evaluate the adjustment effect of the frequency threshold and gain, record the performance data of each configuration, and make detailed parameter adjustments to obtain optimized filter parameters; Based on the optimized filtering parameters, an autoregressive sliding average model is used to conduct performance tests in actual environments. By collecting noise data on site and comparing the noise suppression effects of different configurations, the configuration with the best performance is selected to obtain a filtering parameter adjustment plan.

[0012] As a further solution of the present invention, the autoregressive moving average model is according to the formula:

[0013] in: is the predicted value or output value at the current time point, is the weight coefficient of the autoregressive part, is the autoregressive coefficient, for The observations before time units ago, is the weighting coefficient of the sliding average part, is the sliding mean coefficient, for The error term before time units, is the weighting coefficient of the current error term, is the error term at the current time point, is the mean adjustment coefficient of the time series, is the mean of the time series.

[0014] As a further solution of the present invention, the specific steps of generating the trend prediction result are: The filter parameter adjustment scheme is adopted to collect historical liquid level data. By recording data at different time points, the continuous changes of the liquid level are analyzed, the dynamic change characteristics are extracted, and the historical change data of the liquid level are obtained; Based on the historical change data of the liquid level, a recursive neural network is used to extract the trend of the liquid level change. By identifying and recording the main patterns of data changes, analyzing periodic fluctuations and extreme points, and adjusting the key variables of the model, the liquid level trend extraction results are obtained; The liquid level trend extraction results are used to update the key parameters in the prediction model. The trend prediction results are obtained by simulating the liquid level changes in different scenarios and calibrating the model at the same time.

[0015] As a further solution of the present invention, the recursive neural network is according to the formula:

[0016] in: is the hidden state at the current time step, is the hidden state weight adjustment factor, are the weights between hidden states, is the hidden state at the previous time step, is the input weight adjustment factor, is the weight input to the hidden state, is the input of the current time step, is the bias adjustment factor, is the bias term, To add a dynamic adjustment coefficient, To supplement the feature quantity, is the activation function.

[0017] As a further solution of the present invention, the specific steps of generating the optimized measurement strategy are: Based on the trend prediction results, the frequency and amplitude characteristics of the liquid level change are analyzed, the sampling frequency is reset, and the dynamic behavior of the liquid level change is adapted by adjusting the time interval and changing the number of sampling points to obtain a sampling parameter adjustment plan; Adopting the sampling parameter adjustment scheme, reconfiguring the key parameters of the measuring equipment, adjusting the spatial position and distribution of the sampling points, and obtaining the measurement point configuration optimization result by checking the geographical and environmental adaptability of the points on the spot; Based on the measurement point configuration optimization result, the sensitivity setting of the sensor and the coverage of the monitoring area are adjusted, the influence of different sensitivity settings on the data accuracy is tested, and the sensor configuration is optimized to obtain an optimized measurement strategy.

[0018] Compared with the prior art, the advantages and positive effects of the present invention are: In the present invention, the autoregressive sliding average model can be used to accurately adjust the filter response based on the noise characteristic matrix, thereby improving the accuracy of signal processing, optimizing the configuration of the filter, and improving the adaptability and response speed of the measurement system in a complex noise environment. A recursive neural network is used to extract the liquid level change trend and dynamically adjust the prediction model, thereby enhancing the model's ability to predict future states. The data-driven learning process is combined with real-time feedback to ensure the accuracy of the prediction results and the timeliness of the operation, thereby improving the overall efficiency and safety of oil well exploitation. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic diagram of the main steps of the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0021] Embodiment 1 See also Figure 1 The present invention provides a technical solution: a real-time measurement method of oil well dynamic liquid level based on machine learning adaptive, comprising the following steps: Step 1: Deploy sensors and connect data acquisition devices to monitor the oil well liquid level in real time, collect liquid level change data and dynamic liquid level data, and record the internal pressure and temperature values ​​of the oil well to obtain liquid level monitoring data; Step 2: Based on the liquid level monitoring data, adjust the signal strength and filtering parameters, analyze the noise and signal characteristics in the original data, perform frequency domain separation operations, adjust the filtering parameters and process the signal data at the same time to obtain an enhanced filtered signal; Step 3: Based on the enhanced filtered signal, perform noise characteristic analysis and dynamic evaluation, track and identify the noise characteristics of different frequency bands, classify various noise sources and determine the interference degree, obtain the noise characteristic matrix based on the interference data, and generate a noise characteristic evaluation report; Step 4: Based on the noise characteristic evaluation report, filter parameters are screened, filter response characteristics are adjusted according to the noise characteristic matrix, multiple groups of filter configurations are compared, and the autoregressive sliding average model is used to select the optimal configuration to measure the actual environment and obtain the filter parameter adjustment plan; Step 5: Based on the filter parameter adjustment scheme, a dynamic linear model prediction of the liquid level change trend is performed, a recursive neural network is used to extract the change trend, and the prediction model is adjusted, the key variables in the model are updated, the future change trend of the liquid level is obtained, and the trend prediction result is generated; Step 6: Based on the trend prediction results, dynamically adjust the sampling frequency and sampling point location, reconfigure the key parameters of the measurement equipment, adjust the sensitivity and coverage of the sensor, and obtain the optimized measurement strategy.

[0022] The liquid level monitoring data includes the liquid level height, temperature and pressure values. The enhanced filtered signal includes the enhanced frequency distribution, signal strength and noise residual after filtering. The noise characteristic evaluation report includes the noise source classification, noise spectrum characteristics and interference degree. The filtering parameter adjustment plan includes the filter bandwidth adjustment, gain setting and response time optimization. The trend prediction results include the curve of future liquid level changes, predicted high and low points and trend turning points. The optimized measurement strategy includes sampling frequency adjustment, sensor sensitivity setting and redistribution of sampling points.

[0023] The specific steps to generate liquid level monitoring data are: Connect the sensor to the data acquisition device, perform preliminary power and signal detection on the sensor, and perform equipment function calibration to obtain an initial monitoring baseline; Based on the initial monitoring baseline, set the monitoring parameters of the data acquisition device, including the sampling frequency of the liquid level height and dynamic liquid level, adjust the sensitivity and response time of the sensor to adapt to the changes in the oil well environment, and conduct real-time data acquisition to obtain data records of liquid level changes; Based on the data recording of liquid level changes, the pressure and temperature in the oil well are recorded in synchronous acquisition mode, and the calibration parameters of the pressure and temperature sensors are adjusted to obtain the liquid level monitoring data; Connect the sensor to the data acquisition device, and perform preliminary power and signal detection on the sensor. Use an ammeter and signal generator to set the power parameters of the sensor, set the current to 200mA, the voltage to 5V and the signal output, the frequency to 1kHz, the amplitude to 10Vpp, and calibrate to obtain the initial monitoring baseline, and record the equipment function calibration results; Based on the initial monitoring baseline, the monitoring parameters of the data acquisition device were set, including the sampling frequency of the liquid level and the dynamic liquid level, which was set to 10 Hz. The sensitivity and response time of the sensor were adjusted. The sensitivity was adjusted to a resolution of 0.01 mm / Hz, and the response time was adjusted to 0.1 seconds to adapt to the rapidly changing environment. Real-time data acquisition was performed to generate data records of liquid level changes. Based on the data recording of liquid level changes, the synchronous acquisition mode is used to record the pressure and temperature in the oil well, and the calibration parameters of the pressure and temperature sensors are adjusted. The pressure sensor is calibrated to an accuracy of ±0.1%, and the temperature sensor is calibrated to an accuracy of ±0.5°C to generate liquid level monitoring data.

[0024] The specific steps to generate the enhanced filtered signal are: Based on the liquid level monitoring data, evaluate the signal strength, adjust the frequency response curve, match the actual characteristics of the signal, and perform parameter optimization to generate the optimized parameter configuration; Based on the optimized parameter configuration, the real-time monitoring tool is used to analyze the signal-to-noise ratio in the raw data, manually adjust the frequency response of the filter, perform signal cleaning, and generate noise separation data; Based on the noise separation data, perform specific operations of frequency domain separation, adjust the filtering parameters, refine the signal processing, and generate enhanced filtered signals; Based on the liquid level monitoring data, the signal strength was evaluated. The spectrum analysis tool was used to set the analysis window to 256 points, the overlap to 50%, the Hanning window as the window function, and the frequency response curve was adjusted to match the actual characteristics of the signal. The sliding average algorithm was used, the window size was set to 5 points, the average noise level was smoothed, and the parameters were optimized to generate the optimized parameter configuration. Based on the optimized parameter configuration, a real-time spectrum analyzer was used with an observation window of 500 ms to analyze the signal-to-noise ratio in the raw data. The frequency response of the filter was manually adjusted. The cutoff frequency of the filter was adjusted to 500 Hz using a digital filter design tool. Signal cleaning was performed to generate noise separation data. Based on the noise separation data, the specific operation of frequency domain separation is performed, the filtering parameters are adjusted, the bandpass filter parameters are set, the upper limit of the cutoff frequency is set to 1000 Hz, and the lower limit is set to 100 Hz. The signal processing is refined, the fast Fourier transform is used, the transformation length is set to 1024 points, and the enhanced filtered signal is generated.

[0025] The specific steps to generate a noise characteristics evaluation report are: Based on the enhanced filtered signal, the energy in the frequency band is measured, and the energy distribution of the frequency band is refined by drawing an amplitude-frequency graph, and the energy values ​​of different frequency bands are recorded to obtain the energy distribution of the frequency band; Based on the frequency band energy distribution, compare the energy values ​​of different frequency bands, identify the main noise sources, measure the interference intensity of each noise source, classify the noise sources by energy comparison, build a detailed relationship between noise sources and interference levels, and establish a noise source classification and interference matrix; Based on the noise source classification and interference matrix, various noise data are integrated, a unified evaluation template is formulated, the impact and changes of each noise source are recorded, and finally a comprehensive dynamic evaluation report is generated to obtain a noise characteristic evaluation report; Based on the enhanced filtered signal, the energy in the frequency band is measured, and the power spectrum density analysis is adopted. The FFT length is set to 1024 points, and the Welch method is used. The window function selects the Hanning window, the window size is 512 points, and the overlap is 50%. The energy distribution of the frequency band is refined by drawing the amplitude-frequency graph, and the energy values ​​of different frequency bands are recorded to generate the frequency band energy distribution; Based on the frequency band energy distribution, the energy values ​​of different frequency bands are compared. The energy threshold judgment algorithm is used to set the energy threshold to -20dB. At the same time, the dividing line between noise and signal is set to identify the main noise source, measure the interference intensity of each noise source, classify the noise source through energy comparison, construct a detailed relationship between noise source and interference degree, and establish a noise source classification and interference matrix; Based on the noise source classification and interference matrix, various types of noise data are integrated and a standard evaluation form is used, including noise source category, frequency range, and interference intensity score. The scoring standard ranges from 1 to 10 points. The impact and changes of each noise source are recorded, and finally a comprehensive dynamic evaluation report is generated to obtain a noise characteristic evaluation report.

[0026] The specific steps to generate the filter parameter adjustment scheme are: Based on the noise characteristic matrix, preliminary screening of filter parameters is performed. By comparing the noise level with the preset parameter threshold, the parameters are calibrated to match the characteristics of each frequency band, and the preliminary adjustment data is recorded to obtain preliminary filter parameter settings; Based on the preliminary filter parameter settings, adjust the filter frequency response, evaluate the adjustment effect of frequency threshold and gain, record the performance data of each configuration, make detailed parameter adjustments, and obtain optimized filter parameters; Based on the optimization of filtering parameters, the autoregressive sliding average model is used to conduct performance tests in actual environments. By collecting noise data on site and comparing the noise suppression effects of different configurations, the configuration with the best performance is selected to obtain the filtering parameter adjustment plan. Based on the noise characteristic matrix, preliminary screening of filter parameters is carried out. The noise level matching algorithm is adopted. The noise level threshold is -20dB and the bandwidth is set to 100Hz to 1kHz. By comparing the noise level with the preset parameter threshold, the parameters are calibrated to match the characteristics of each frequency band, and the preliminary adjustment data is recorded to generate preliminary filter parameter settings; Based on the preliminary filter parameter settings, adjust the filter frequency response. Use the frequency response adjustment tool, set the frequency threshold to 500Hz, and adjust the gain in the range of -10dB to 10dB. Evaluate the adjustment effects of the frequency threshold and gain, record the performance data of each configuration, and make detailed parameter adjustments to generate optimized filter parameters. Based on the optimization of filtering parameters, the autoregressive sliding average model is used to conduct performance tests in actual environments. The model order is 5 and the sliding window size is 10. By collecting noise data on the spot and comparing the noise suppression effects of different configurations, the configuration with the best performance is selected to generate a filtering parameter adjustment plan.

[0027] Autoregressive moving average model, according to the formula:

[0028] in: is the predicted value or output value at the current time point, is the weight coefficient of the autoregressive part, is the autoregressive coefficient, for The observations before time units ago, is the weighting coefficient of the sliding average part, is the sliding mean coefficient, for The error term before time units, is the weighting coefficient of the current error term, is the error term at the current time point, is the mean adjustment coefficient of the time series, is the mean of the time series; Execution process: First, collect the oil well dynamic liquid level data in real time as time series input , apply machine learning techniques to the data to dynamically adjust the parameters of the autoregressive moving average model by setting the autoregressive coefficients and the sliding average coefficient , the corresponding weighting coefficient and , predict the current dynamic liquid level position based on historical data and error patterns, Weighted adjusted autoregressive term Contribution Adjusted the sliding average The impact on the prediction results ensures that the model responds quickly to the dynamic changes of the oil well. The current error pass The coefficients are adjusted to incorporate the latest observation errors and the average value of the time series , through the coefficient Adjustments help the model capture the long-term trend of the oil well's dynamic liquid level and ensure real-time and accurate measurement of the oil well's dynamic liquid level position under various operating conditions.

[0029] The specific steps to generate trend forecast results are: The filter parameter adjustment scheme is adopted to collect historical liquid level data. By recording data at different time points, the continuous changes of the liquid level are analyzed, the dynamic change characteristics are extracted, and the historical change data of the liquid level are obtained; Based on the historical change data of the liquid level, a recursive neural network is used to extract the trend of the liquid level change. By identifying and recording the main patterns of data changes, analyzing periodic fluctuations and extreme points, and adjusting the key variables of the model, the liquid level trend extraction results are obtained; The liquid level trend extraction results are used to update the key parameters in the prediction model. The trend prediction results are obtained by simulating the liquid level changes in different scenarios and calibrating the model at the same time. The filter parameter adjustment scheme is adopted to collect historical liquid level data. Through the data recording device, the recording interval is set to 1 minute, the continuous changes of the liquid level height are analyzed, the moving average method is used, the window size is set to 5 data points, the dynamic change characteristics are extracted, and the data at different time points are recorded to generate the historical change data of the liquid level; Based on the historical change data of the liquid level, a recursive neural network is used, which is set as a long short-term memory artificial neural network with 50 hidden units, the learning rate is set to 0.01, the batch size is 32, and the number of training iterations is 100 rounds. The trend of liquid level change is extracted by identifying and recording the main patterns of data changes, analyzing periodic fluctuations and extreme points, and adjusting the key variables of the model. At the same time, the weight and bias of the input layer are adjusted to obtain the liquid level trend extraction results; The liquid level trend extraction results are used to update the key parameters in the prediction model. By simulating the liquid level changes in different scenarios, the scenario simulation technology is used, the simulation step is set to 0.1 seconds, and the model is calibrated at the same time. The back propagation algorithm is used, and the error threshold is set to 0.05 to obtain the trend prediction results.

[0030] Recurrent neural network, according to the formula:

[0031] in: is the hidden state at the current time step, is the hidden state weight adjustment factor, are the weights between hidden states, is the hidden state at the previous time step, is the input weight adjustment factor, is the weight input to the hidden state, is the input of the current time step, is the bias adjustment factor, is the bias term, To add a dynamic adjustment coefficient, To supplement the feature quantity, is the activation function; Execution process: First calculate the input liquid level data and the weights of the input to the hidden state The product of, multiplied by the input weight adjustment factor , adjust the influence of the input data, and then calculate the hidden state of the previous time step The weight between the hidden state The product of , multiplied by the hidden state weight adjustment factor , optimize the model's learning of time series dependencies and introduce supplementary feature quantities , by adding a dynamic adjustment coefficient Adjust the contribution to the model and add a bias adjustment factor Adjusted bias , the summation result is processed by the activation function to generate the hidden state of the current time step , represents the real-time estimation of the current liquid level position, improves the accuracy of oil well liquid level monitoring, and enhances the model's adaptability to liquid level change trends and prediction accuracy.

[0032] The specific steps to generate an optimized measurement strategy are: Based on the trend prediction results, the frequency and amplitude characteristics of the liquid level changes are analyzed, the sampling frequency is reset, and the dynamic behavior of the liquid level changes is adapted by adjusting the time interval and changing the number of sampling points to obtain the sampling parameter adjustment plan; Adopt the sampling parameter adjustment scheme, reconfigure the key parameters of the measurement equipment, adjust the spatial location and distribution of the sampling points, and obtain the optimization results of the measurement point configuration through on-site inspection of the geographical and environmental adaptability of the points; Based on the measurement point configuration optimization results, adjust the sensor sensitivity settings and the coverage of the monitoring area, test the impact of different sensitivity settings on data accuracy, and optimize the sensor configuration to obtain the optimal measurement strategy; Based on the trend prediction results, the frequency and amplitude characteristics of the liquid level changes are analyzed, and the sampling frequency is reset. By adjusting the time interval, the time interval is set to sample once every 10 seconds. The number of sampling points is changed, and the total number of sampling points is increased to 500 to adapt to the dynamic behavior of the liquid level changes, and the sampling parameter adjustment plan is obtained.

[0033] A sampling parameter adjustment plan was adopted to reconfigure the key parameters of the measuring equipment, adjust the spatial position and distribution of the sampling points, and adjust the sampling point spacing to one every 5 meters. The geographical and environmental adaptability of the points were checked on the spot, the geographical slope and humidity level were checked, the equipment stability was ensured, and the measurement point configuration optimization results were obtained.

[0034] Based on the optimization results of the measurement point configuration, the sensitivity setting of the sensor and the coverage of the monitoring area were adjusted to test the impact of different sensitivity settings on data accuracy. The sensitivity adjustment range was set to 0.01mm to 0.1mm. At the same time, the sensor configuration was optimized to obtain the optimized measurement strategy.

[0035] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A real-time measurement method of oil well dynamic liquid level based on machine learning, characterized in that: The following steps are involved: Step 1: Deploy sensors and connect data acquisition devices to monitor the oil well liquid level in real time, collect liquid level change data and dynamic liquid level data, and record the internal pressure and temperature values ​​of the oil well to obtain liquid level monitoring data; Step 2: Based on the liquid level monitoring data, adjust the signal strength and filtering parameters, analyze the noise and signal characteristics in the original data, perform frequency domain separation operation, adjust the filtering parameters and process the signal data at the same time, and obtain an enhanced filtered signal; Step 3: Based on the enhanced filtered signal, noise characteristic analysis and dynamic evaluation are performed to track and identify noise characteristics of different frequency bands, classify various noise sources and determine the degree of interference, obtain a noise characteristic matrix based on the interference data, and generate a noise characteristic evaluation report; Step 4: Based on the noise characteristic evaluation report, filter parameters are screened, filter response characteristics are adjusted according to the noise characteristic matrix, multiple groups of filter configurations are compared, an autoregressive sliding average model is used, the optimal configuration is selected to measure the actual environment, and a filter parameter adjustment plan is obtained; Step 5: Based on the filtering parameter adjustment scheme, a dynamic linear model prediction of the liquid level change trend is performed, a recursive neural network is used to extract the change trend, and the prediction model is adjusted, the key variables in the model are updated, the future change trend of the liquid level is obtained, and a trend prediction result is generated; Step 6: Based on the trend prediction results, dynamically adjust the sampling frequency and sampling point location, reconfigure key parameters of the measurement equipment, adjust the sensitivity and coverage of the sensor, and obtain an optimized measurement strategy.

2. The method for real-time measurement of dynamic liquid level in oil wells based on machine learning adaptive according to claim 1 is characterized in that: The liquid level monitoring data includes liquid level height, temperature and pressure values; the enhanced filtering signal includes enhanced frequency distribution, signal strength and noise residual after filtering; the noise characteristic evaluation report includes noise source classification, noise spectrum characteristics and interference degree; the filtering parameter adjustment scheme includes filter bandwidth adjustment, gain setting and response time optimization; the trend prediction result includes a curve of future liquid level changes, predicted high and low points and trend turning points; the optimized measurement strategy includes sampling frequency adjustment, sensor sensitivity setting and redistribution of sampling points.

3. The method for real-time measurement of oil well dynamic liquid level based on machine learning adaptive according to claim 1 is characterized in that: The specific steps of generating the liquid level monitoring data are: Connect the sensor to the data acquisition device, perform preliminary power and signal detection on the sensor, and perform equipment function calibration to obtain an initial monitoring baseline; Based on the initial monitoring baseline, set the monitoring parameters of the data acquisition device, including the sampling frequency of the liquid level height and dynamic liquid level, adjust the sensitivity and response time of the sensor to adapt to the changes in the oil well environment, and conduct real-time data acquisition to obtain data records of liquid level changes; Based on the data recording of liquid level changes, the pressure and temperature in the oil well are recorded in synchronous acquisition mode, and the calibration parameters of the pressure and temperature sensors are adjusted to obtain the liquid level monitoring data.

4. The method for real-time measurement of dynamic liquid level in oil wells based on machine learning adaptive according to claim 1, characterized in that: The specific steps of generating the enhanced filtered signal are: Based on the liquid level monitoring data, the signal strength is evaluated, the frequency response curve is adjusted to match the actual characteristics of the signal, and the parameters are optimized to generate an optimized parameter configuration; Based on the optimized parameter configuration, using a real-time monitoring tool to analyze the signal-to-noise ratio in the raw data, manually adjusting the frequency response of the filter, performing signal cleaning, and generating noise separation data; Based on the noise separation data, a specific operation of frequency domain separation is performed, filter parameters are adjusted, signal processing is refined, and an enhanced filter signal is generated.

5. The method for real-time measurement of oil well dynamic liquid level based on machine learning adaptive according to claim 1 is characterized in that: The specific steps of generating the noise characteristic evaluation report are: Based on the enhanced filtered signal, measure the energy in the frequency band, draw an amplitude-frequency graph, refine the energy distribution of the frequency band, record the energy values ​​of different frequency bands, and obtain the frequency band energy distribution; Based on the energy distribution of the frequency bands, the energy values ​​of different frequency bands are compared, the main noise sources are identified, the interference intensity of each noise source is measured, the noise sources are classified by energy comparison, a detailed relationship between the noise source and the interference degree is constructed, and a noise source classification and interference matrix is ​​established; Based on the noise source classification and interference matrix, various types of noise data are integrated, a unified evaluation template is formulated, the impact and changes of each noise source are recorded, and finally a comprehensive dynamic evaluation report is generated to obtain a noise characteristic evaluation report.

6. The method for real-time measurement of dynamic liquid level in oil wells based on machine learning adaptive according to claim 1, characterized in that: The specific steps of generating the filtering parameter adjustment scheme are: Based on the noise characteristic matrix, preliminary screening of filter parameters is performed, by comparing the noise level with the preset parameter threshold, calibrating the parameters to match the characteristics of each frequency band, and recording the preliminary adjusted data to obtain preliminary filter parameter settings; Based on the preliminary filter parameter setting, adjust the filter frequency response, evaluate the adjustment effect of the frequency threshold and gain, record the performance data of each configuration, and make detailed parameter adjustments to obtain optimized filter parameters; Based on the optimized filtering parameters, an autoregressive sliding average model is used to conduct performance tests in actual environments. By collecting noise data on site and comparing the noise suppression effects of different configurations, the configuration with the best performance is selected to obtain a filtering parameter adjustment plan.

7. The method for real-time measurement of dynamic liquid level in oil wells based on machine learning adaptive according to claim 1, characterized in that: The autoregressive moving average model is based on the formula: in: is the predicted value or output value at the current time point, is the weight coefficient of the autoregressive part, is the autoregressive coefficient, for The observations before time units ago, is the weighting coefficient of the sliding average part, is the sliding mean coefficient, for The error term before time units, is the weighting coefficient of the current error term, is the error term at the current time point, is the mean adjustment coefficient of the time series, is the mean of the time series.

8. The method for real-time measurement of dynamic liquid level in oil wells based on machine learning adaptation according to claim 1 is characterized in that: The specific steps of generating the trend prediction result are: The filter parameter adjustment scheme is adopted to collect historical liquid level data. By recording data at different time points, the continuous changes of the liquid level are analyzed, the dynamic change characteristics are extracted, and the historical change data of the liquid level are obtained; Based on the historical change data of the liquid level, a recursive neural network is used to extract the trend of the liquid level change. By identifying and recording the main patterns of data changes, analyzing periodic fluctuations and extreme points, and adjusting the key variables of the model, the liquid level trend extraction results are obtained; The liquid level trend extraction results are used to update the key parameters in the prediction model. The trend prediction results are obtained by simulating the liquid level changes in different scenarios and calibrating the model at the same time.

9. The method for real-time measurement of dynamic liquid level in oil wells based on machine learning adaptive according to claim 1, characterized in that: The recursive neural network, according to the formula: in: is the hidden state at the current time step, is the hidden state weight adjustment factor, are the weights between hidden states, is the hidden state at the previous time step, is the input weight adjustment factor, is the weight input to the hidden state, is the input of the current time step, is the bias adjustment factor, is the bias term, To add a dynamic adjustment coefficient, To supplement the feature quantity, is the activation function.

10. The method for real-time measurement of oil well dynamic liquid level based on machine learning adaptive according to claim 1, characterized in that: The specific steps of generating the optimized measurement strategy are: Based on the trend prediction results, the frequency and amplitude characteristics of the liquid level change are analyzed, the sampling frequency is reset, and the dynamic behavior of the liquid level change is adapted by adjusting the time interval and changing the number of sampling points to obtain a sampling parameter adjustment plan; Adopting the sampling parameter adjustment scheme, reconfiguring the key parameters of the measuring equipment, adjusting the spatial position and distribution of the sampling points, and obtaining the measurement point configuration optimization result by checking the geographical and environmental adaptability of the points on the spot; Based on the measurement point configuration optimization result, the sensitivity setting of the sensor and the coverage of the monitoring area are adjusted, the influence of different sensitivity settings on the data accuracy is tested, and the sensor configuration is optimized to obtain an optimized measurement strategy.

Citation Information

Cited By

  • Metering detection data identification method and system based on machine vision

    CN119037772A

  • Liquid level wave fitting monitoring method and system based on liquid level monitor

    CN119063821A

  • Oil level state judgment method and system of oil conservator transformer

    CN119197708A

  • A method and system for judging the oil level status of an oil storage cabinet transformer

    CN119197708B

  • Ship oil tank oil quantity data monitoring method based on recursive average filtering algorithm

    CN119290112A