Method, device and equipment for metering liquid production capacity of rod-pumped well and medium
By combining the machine learning model and the mechanism model, the work map characteristics of the pumping well are obtained and the liquid production volume is determined, which solves the problem of low liquid production measurement efficiency in the pumping well and achieves the effect of saving labor costs and improving measurement efficiency.
Patent Information
- Application Number
- CN202410317847.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-20
- Publication Date
- 2024-09-06
AI Technical Summary
The measurement efficiency of liquid production in pumping wells is low, resulting in problems such as heavy workload, low efficiency and high cost.
Through the combination of machine learning model and mechanism model, the work map characteristics of the pumping unit well are obtained, and the liquid production volume is determined based on the pre-trained work map oil measurement model, which reduces the manual calibration workload and improves the metering efficiency.
It effectively reduces the manual calibration workload, saves labor costs, and improves the measurement efficiency of liquid production in pumping wells.
Smart Images

Figure CN118607684A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine learning, and in particular to a method, device, electronic equipment and storage medium for measuring the liquid production of a pumping well. Background Art
[0002] Oil production by pumping rigs is the most widely used mechanical oil production method in oil development. Timely and accurate knowledge of oil well production is an important indicator to ensure the efficient operation of oil wells.
[0003] At present, the measurement of liquid production in pumping wells includes measurement through on-site instruments and calculation of liquid production through dynamometer diagrams. Due to the influence of the oil development environment, the service life of instrument equipment is short and the maintenance cost is high. The oil measurement method based on the dynamometer diagram requires regular manual calibration of the production of a single well, resulting in a large workload, low efficiency and high cost for liquid production measurement. Therefore, a method for measuring the liquid production of pumping wells is urgently needed to improve the efficiency of liquid production measurement. Summary of the invention
[0004] The present invention provides a method, device, equipment and storage medium for measuring the liquid production of a pumping well to solve the problem of low efficiency in measuring the liquid production. The manual calibration workload can be reduced by combining a machine learning model with a mechanism model, thereby saving labor costs and improving the metering efficiency of the liquid production of the pumping well.
[0005] According to one aspect of the present invention, a method for measuring the liquid production of a pumping well is provided, the method comprising:
[0006] Obtaining a work diagram of a target pumping well and determining work diagram characteristics of the work diagram;
[0007] According to the performance diagram characteristics, based on a pre-trained performance diagram oil measurement model, a liquid production measurement result of a target pumping well is determined;
[0008] The performance chart oil measurement model is obtained by training based on the historical performance chart of the pumping well and the liquid production matched with the historical performance chart; the liquid production is calculated based on the mechanism model determined by the working condition diagnosis result.
[0009] According to another aspect of the present invention, there is provided a device for measuring the amount of liquid produced in a pumping well, comprising:
[0010] A power diagram feature determination module, used to obtain a power diagram of a target pumping well and determine a power diagram feature of the power diagram;
[0011] A metering result determination module, used to determine the liquid production metering result of the target pumping well according to the power diagram characteristics and based on a pre-trained power diagram oil measurement model;
[0012] The performance chart oil measurement model is obtained by training based on the historical performance chart of the pumping well and the liquid production matched with the historical performance chart; the liquid production is calculated based on the mechanism model determined by the working condition diagnosis result.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for measuring the liquid production of a pumping well described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for measuring the liquid production of a pumping well described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention obtains the work diagram of the target pumping well and determines the work diagram characteristics of the work diagram. According to the work diagram characteristics, based on the pre-trained work diagram oil measurement model, the liquid production measurement result of the target pumping well is determined. This technical solution solves the problem of low efficiency in liquid production measurement, and can reduce the workload of manual calibration through the combination of machine learning models and mechanism models, save labor costs, and improve the measurement efficiency of liquid production in pumping wells.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 This is a flow chart of a method for measuring the liquid production of a pumping well provided according to the first embodiment of the present invention;
[0022] Figure 2This is a flow chart of a method for measuring the liquid production of a pumping well provided according to the second embodiment of the present invention;
[0023] Figure 3 2 is a schematic diagram of the structure of a device for measuring the production of a pumping well according to a third embodiment of the present invention;
[0024] Figure 4 The present invention is a schematic diagram of the structure of an electronic device for implementing the method for measuring the production volume of a pumping well according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0027] Embodiment 1
[0028] Figure 1 A flowchart of a method for measuring the production volume of a pumping well is provided for the first embodiment of the present invention. This embodiment is applicable to the scenario of predicting the production volume of a pumping well. The method can be executed by a device for measuring the production volume of a pumping well. The device can be implemented in the form of hardware and / or software, and the device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0029] S110, obtaining a work diagram of a target pumping well, and determining a work diagram feature of the work diagram.
[0030] This solution can be executed by electronic devices such as computers and servers, and the electronic devices can obtain the performance map of the target pumping well through the pumping well management platform, wherein the target pumping well can be a pumping well that needs to be measured for liquid production. The performance map of the target pumping well can be pre-generated based on the pumping well information within a preset time range. Specifically, the pumping well information can include well location geographic information, reservoir physical property information, production information, and pumping equipment information.
[0031] After obtaining the work diagram of the target pumping well, the electronic device may extract work diagram features of the work diagram. Specifically, the work diagram features may include graphic features and data features of the work diagram, wherein the data features include maximum load, minimum load and stroke.
[0032] S120, according to the performance diagram feature, based on a pre-trained performance diagram oil measurement model, determining a liquid production measurement result of a target pumping well.
[0033] After obtaining the performance diagram characteristics of the target pumping well, the performance diagram characteristics are input into the pre-trained performance diagram oil measurement model, and the liquid production measurement result of the target pumping well is determined according to the output of the performance diagram oil measurement model. The performance diagram oil measurement model is trained based on the historical performance diagram of the pumping well and the liquid production matched with the historical performance diagram; the liquid production is calculated based on the mechanism model determined by the working condition diagnosis result.
[0034] It is understandable that the electronic device can obtain the historical power diagram data of each pumping well in the oil field and the liquid production data corresponding to the historical power diagram through the pumping well management platform. By extracting the power diagram features of each historical power diagram, each power diagram feature is input into a pre-built machine learning model, and the liquid production matched by each power diagram feature is used as supervision to train the machine learning model to obtain a power diagram oil volume model that meets the liquid production prediction and evaluation conditions.
[0035] It should be noted that the liquid production matched by the historical power diagram of this scheme is calculated based on the mechanism model determined by the working condition diagnosis result. The working condition diagnosis result includes at least one of sand production, gas influence, insufficient liquid supply, normal, wax deposition, heavy oil, pumping and spraying, disconnection, oil pipe leakage, floating valve leakage, fixed valve leakage and double valve leakage.
[0036] Specifically, the electronic device can determine the working condition diagnosis result corresponding to each pumping well at the historical time node according to the pumping well information of each pumping well. According to the working condition diagnosis result, the mechanism model corresponding to each historical power diagram is determined. The mechanism model matched with the historical power diagram is used to calculate the liquid production according to the historical power diagram. Among them, the mechanism model can include an effective stroke model, an internal difference model, etc.
[0037] The technical solution of the embodiment of the present invention obtains the work diagram of the target pumping well and determines the work diagram characteristics of the work diagram. According to the work diagram characteristics, based on the pre-trained work diagram oil measurement model, the liquid production measurement result of the target pumping well is determined. This technical solution solves the problem of low efficiency in liquid production measurement, and can reduce the workload of manual calibration through the combination of machine learning models and mechanism models, save labor costs, and improve the measurement efficiency of liquid production in pumping wells.
[0038] Embodiment 2
[0039] Figure 2 This is a flow chart of a method for measuring the production volume of a pumping well provided in the second embodiment of the present invention. This embodiment is based on the above embodiment and is refined. Figure 2 As shown, the method includes:
[0040] S210, obtaining pumping well information within a preset time range.
[0041] In this solution, the preset time range may be the pumping well information 3 years before the current time, and the pumping well information includes well location geographic information, reservoir physical property information, production information and pumping equipment information.
[0042] In this solution, optionally, after obtaining the pumping well information within a preset time range, the method further includes:
[0043] The pumping well information is preprocessed and updated; wherein the preprocessing operation includes at least one of missing value processing, duplicate value processing, abnormal value processing, standardization processing and normalization processing.
[0044] It is understandable that after obtaining the pumping well information within a preset time range, the electronic device can perform preprocessing operations on the pumping well information to prevent data anomalies from affecting the accuracy of the power diagram and further affecting the training effect of the power diagram oil measurement model.
[0045] S220. According to the pumping well information, determine the matching work diagram and working condition diagnosis results of each pumping well at each preset time node.
[0046] The electronic device can draw the work diagram of each pumping well at each time node according to the pumping well information. Based on the mapping relationship between the pumping well information and the working condition, the electronic device can determine the working condition diagnosis result of each pumping well at each time node.
[0047] Preferably, the electronic device can construct a working condition diagnosis model based on a convolutional neural network, determine the working condition characteristics of each pumping well at each time node according to the pumping well information, use the working condition characteristics as input data of the pre-trained working condition diagnosis model, and determine the working condition diagnosis results of each pumping well at each time node. Specifically, the working condition diagnosis results include at least one of sand production, gas influence, insufficient liquid supply, normal, wax deposition, heavy oil, pumping and spraying, disconnection, oil pipe leakage, floating valve leakage, fixed valve leakage and double valve leakage.
[0048] S230. Determine the matching mechanism model of each pumping well at each time node according to the working condition diagnosis result.
[0049] According to the working condition diagnosis results of each pumping well at each time node, the electronic equipment can determine the matching mechanism model of each time node. Specifically, the working conditions such as sand production, gas influence, insufficient liquid supply, normal, wax deposition, heavy oil and pumping and spraying can use the effective stroke model to calculate the liquid production, and the working conditions such as disconnection, oil pipe leakage, floating valve leakage, fixed valve leakage and double valve leakage can use the internal difference model to calculate the liquid production.
[0050] S240, determining the liquid production of each pumping well at each time node according to the matching work diagram and mechanism model of each pumping well at each time node.
[0051] After obtaining the work diagram and corresponding mechanism model of each pumping well at each time node, the electronic device can calculate the liquid production of each pumping well at each time node based on the work diagram of each pumping well at each time node and use the corresponding mechanism model to obtain the liquid production of each pumping well at each time node.
[0052] For closed points in the work diagram whose calculation results are inaccurate, the electronic device can correct the position of the closed point in response to the user's correction request to ensure the accuracy of the training samples.
[0053] S250, using the predetermined work diagram features matched by each pumping well at each time node as the input of the pre-built neural network, and determining the prediction results of the liquid production matched by each pumping well at each time node.
[0054] The electronic device can extract the matching work diagram features of each pumping well at each time node from each work diagram, use the work diagram features as input data of a pre-built neural network, and use the output data of the neural network as the prediction result of the matching liquid production of each pumping well at each time node.
[0055] S260, according to the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node, the neural network is iteratively trained at least once to obtain a work diagram oil measurement model.
[0056] It is easy to understand that the electronic device can calculate the model loss based on the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node calculated based on the mechanism model. According to the model loss, the neural network is iteratively trained until the neural network meets the preset oil measurement evaluation conditions and outputs the power diagram oil measurement model. In a specific example, the neural network can be a semantic segmentation network, which can be used to perform multi-level and multi-scale feature extraction on the power diagram features to improve the reliability of the liquid production prediction of the power diagram oil measurement model.
[0057] In a feasible solution, the neural network is iteratively trained at least once according to the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node to obtain a work diagram oil measurement model, including:
[0058] The model loss is calculated based on the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node;
[0059] According to the model loss, the neural network is iteratively trained for at least one time, and a candidate work diagram oil measurement model matched by each iterative training is output;
[0060] If it is detected that the number of iterative trainings reaches the preset number of iterations, the power diagram oil measurement model is determined according to the candidate power diagram oil measurement models matched by each iterative training.
[0061] The electronic device may set the number of iterations, such as 100 generations, before starting training. If it is detected that the number of iterative training reaches the preset number of iterations, the electronic device may evaluate the candidate power diagram oil measurement models output from each iterative training according to the preset oil measurement evaluation conditions, and determine the power diagram oil measurement model from each candidate power diagram oil measurement model. The oil measurement evaluation conditions may include a test accuracy greater than a preset accuracy threshold, a model loss less than a preset loss threshold, etc. The electronic device may select the candidate power diagram oil measurement model with the highest test accuracy from each candidate power diagram oil measurement model as the power diagram oil measurement model.
[0062] In another feasible solution, the neural network is iteratively trained at least once according to the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node to obtain a work diagram oil measurement model, including:
[0063] The model loss is calculated based on the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node;
[0064] Iteratively training the neural network according to the model loss, and performing model testing on the candidate power diagram oil measurement model obtained by the current iterative training;
[0065] The power diagram oil measurement model is determined according to the test results of the candidate power diagram oil measurement model obtained by the current iterative training.
[0066] The electronic device may also perform model testing on the candidate power diagram oil measurement model outputted from each iterative training, and determine the power diagram oil measurement model according to the test result of the candidate power diagram oil measurement model obtained from the current iterative training.
[0067] On the basis of the above solution, optionally, determining the power diagram oil measurement model according to the test result of the candidate power diagram oil measurement model obtained by the current iterative training includes:
[0068] If the test result of the candidate power diagram oil measurement model obtained by the current iterative training meets the preset evaluation condition, the iterative training is stopped, and the candidate power diagram oil measurement model obtained by the current iterative training is used as the power diagram oil measurement model;
[0069] If the test result of the candidate power diagram oil measurement model obtained by the current iterative training does not meet the preset evaluation conditions, the model loss is updated, and the execution returns to iteratively train the neural network according to the model loss until the test result of the candidate power diagram oil measurement model obtained by the current iterative training meets the preset evaluation conditions.
[0070] Specifically, if the test result of the candidate power map oil measurement model obtained by the current iterative training meets the preset oil measurement evaluation condition, the iterative training is stopped, and the candidate power map oil measurement model obtained by the current iterative training is used as the power map oil measurement model. If the test result of the candidate power map oil measurement model obtained by the current iterative training does not meet the preset oil measurement evaluation condition, the model loss is updated, and the iterative training is continued until the test result of the candidate power map oil measurement model obtained by the current iterative training meets the preset evaluation condition, and the power map oil measurement model is output.
[0071] S270, obtaining a work diagram of the target pumping well, and determining work diagram characteristics of the work diagram.
[0072] S280: Determine the liquid production measurement result of the target pumping well according to the performance diagram characteristics and based on a pre-trained performance diagram oil measurement model.
[0073] The technical solution of the embodiment of the present invention obtains the work diagram of the target pumping well and determines the work diagram characteristics of the work diagram. According to the work diagram characteristics, based on the pre-trained work diagram oil measurement model, the liquid production measurement result of the target pumping well is determined. This technical solution solves the problem of low efficiency in liquid production measurement, and can reduce the workload of manual calibration through the combination of machine learning models and mechanism models, save labor costs, and improve the measurement efficiency of liquid production in pumping wells.
[0074] Embodiment 3
[0075] Figure 3 This is a schematic diagram of the structure of a device for measuring the amount of liquid produced in a pumping well provided in the third embodiment of the present invention. The device is configured on a parameter management platform, such as Figure 3 As shown, the device comprises:
[0076] A power diagram feature determination module 310 is used to obtain a power diagram of a target pumping well and determine a power diagram feature of the power diagram;
[0077] The metering result determination module 320 is used to determine the liquid production metering result of the target pumping well according to the power diagram characteristics and based on the pre-trained power diagram oil measurement model;
[0078] The performance chart oil measurement model is obtained by training based on the historical performance chart of the pumping well and the liquid production matched with the historical performance chart; the liquid production is calculated based on the mechanism model determined by the working condition diagnosis result.
[0079] In this solution, optionally, the device further includes a model training module, and the model training module includes:
[0080] An information acquisition unit, used to acquire the pumping well information within a preset time range; wherein the pumping well information includes well location geographic information, reservoir physical property information, production information and pumping equipment information;
[0081] A power diagram determination unit is used to determine the power diagram and working condition diagnosis results matching each pumping well at each preset time node according to the pumping well information;
[0082] The mechanism model determination unit is used to determine the mechanism model matched by each pumping well at each time node according to the working condition diagnosis result;
[0083] The liquid production determination unit is used to determine the liquid production of each pumping well at each time node according to the work diagram and mechanism model matched by each pumping well at each time node;
[0084] A prediction result determination unit is used to use the predetermined work diagram features matched by each pumping well at each time node as the input of the pre-built neural network to determine the prediction results of the liquid production matched by each pumping well at each time node;
[0085] The oil measurement model determination unit is used to perform at least one iterative training on the neural network according to the matched liquid production prediction results of each pumping well at each time node and the liquid production of each pumping well at each time node to obtain the work diagram oil measurement model.
[0086] In a feasible solution, the oil measurement model determination unit is specifically used to:
[0087] The model loss is calculated based on the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node;
[0088] According to the model loss, the neural network is iteratively trained for at least one time, and a candidate work diagram oil measurement model matched by each iterative training is output;
[0089] If it is detected that the number of iterative trainings reaches the preset number of iterations, the power diagram oil measurement model is determined according to the candidate power diagram oil measurement models matched by each iterative training.
[0090] In another feasible solution, the oil measurement model determination unit is specifically used to:
[0091] The model loss is calculated based on the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node;
[0092] Iteratively training the neural network according to the model loss, and performing model testing on the candidate power diagram oil measurement model obtained by the current iterative training;
[0093] The power diagram oil measurement model is determined according to the test results of the candidate power diagram oil measurement model obtained by the current iterative training.
[0094] Based on the above solution, optionally, the oil measurement model determination unit is specifically used to:
[0095] If the test result of the candidate power diagram oil measurement model obtained by the current iterative training meets the preset evaluation condition, the iterative training is stopped, and the candidate power diagram oil measurement model obtained by the current iterative training is used as the power diagram oil measurement model;
[0096] If the test result of the candidate power diagram oil measurement model obtained by the current iterative training does not meet the preset evaluation conditions, the model loss is updated, and the execution returns to iteratively train the neural network according to the model loss until the test result of the candidate power diagram oil measurement model obtained by the current iterative training meets the preset evaluation conditions.
[0097] In a preferred solution, the information acquisition unit is further used to:
[0098] After obtaining the pumping well information within a preset time range, the pumping well information is preprocessed and updated; wherein the preprocessing operation includes at least one of missing value processing, duplicate value processing, abnormal value processing, standardization processing and normalization processing.
[0099] In this embodiment, optionally, the power diagram characteristics include graphic characteristics and data characteristics of the power diagram; wherein, the data characteristics include maximum load, minimum load and stroke; the operating condition diagnosis results include at least one of sand production, gas influence, insufficient liquid supply, normal, wax deposition, heavy oil, suction and spraying, disconnection, oil pipe leakage, floating valve leakage, fixed valve leakage and double valve leakage.
[0100] The device for measuring the production of liquid in a pumping well provided in an embodiment of the present invention can execute the method for measuring the production of liquid in a pumping well provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0101] Embodiment 4
[0102] Figure 4 A schematic diagram of an electronic device 410 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0103] like Figure 4 As shown, the electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.
[0104] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0105] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 411 executes the various methods and processes described above, such as a method for measuring the production of a pumping well.
[0106] In some embodiments, the method for measuring the amount of liquid produced in a pumping well may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the method for measuring the amount of liquid produced in a pumping well described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to perform the method for measuring the amount of liquid produced in a pumping well by any other appropriate means (e.g., by means of firmware).
[0107] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0108] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable pumping well production metering device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0109] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. 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.
[0110] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0111] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by 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), a blockchain network, and the Internet.
[0112] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0113] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0114] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for measuring the liquid production of a pumping well, characterized in that: The method comprises: Obtaining a work diagram of a target pumping well and determining work diagram characteristics of the work diagram; According to the performance diagram characteristics, based on a pre-trained performance diagram oil measurement model, a liquid production measurement result of a target pumping well is determined; The performance chart oil measurement model is obtained by training based on the historical performance chart of the pumping well and the liquid production matched with the historical performance chart; the liquid production is calculated based on the mechanism model determined by the working condition diagnosis result.
2. The method according to claim 1, characterized in that The training process of the power diagram oil measurement model includes: Acquire the pumping well information within a preset time range; wherein the pumping well information includes well location geographic information, reservoir physical property information, production information and pumping equipment information; According to the pumping well information, determine the matching power diagram and working condition diagnosis results of each pumping well at each preset time node; According to the working condition diagnosis results, determine the matching mechanism model of each pumping well at each time node; According to the matching work diagram and mechanism model of each pumping well at each time node, the liquid production of each pumping well at each time node is determined; The predetermined work diagram features matched by each pumping well at each time node are used as inputs of the pre-built neural network to determine the prediction results of the liquid production matched by each pumping well at each time node; According to the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node, the neural network is iteratively trained at least once to obtain a power diagram oil measurement model.
3. The method according to claim 2, characterized in that According to the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node, the neural network is iteratively trained at least once to obtain a work diagram oil measurement model, including: The model loss is calculated based on the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node; According to the model loss, the neural network is iteratively trained for at least one time, and a candidate work diagram oil measurement model matched by each iterative training is output; If it is detected that the number of iterative trainings reaches the preset number of iterations, the power diagram oil measurement model is determined according to the candidate power diagram oil measurement models matched by each iterative training.
4. The method according to claim 3, characterized in that According to the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node, the neural network is iteratively trained at least once to obtain a work diagram oil measurement model, including: The model loss is calculated based on the prediction results of the liquid production of each pumping well at each time node and the liquid production of each pumping well at each time node; Iteratively training the neural network according to the model loss, and performing model testing on the candidate power diagram oil measurement model obtained by the current iterative training; The power diagram oil measurement model is determined according to the test results of the candidate power diagram oil measurement model obtained by the current iterative training.
5. The method according to claim 4, characterized in that The step of determining the power diagram oil measurement model according to the test result of the candidate power diagram oil measurement model obtained by the current iterative training includes: If the test result of the candidate power diagram oil measurement model obtained by the current iterative training meets the preset evaluation condition, the iterative training is stopped, and the candidate power diagram oil measurement model obtained by the current iterative training is used as the power diagram oil measurement model; If the test result of the candidate power diagram oil measurement model obtained by the current iterative training does not meet the preset evaluation conditions, the model loss is updated, and the execution returns to iteratively train the neural network according to the model loss until the test result of the candidate power diagram oil measurement model obtained by the current iterative training meets the preset evaluation conditions.
6. The method according to claim 2, characterized in that After obtaining the pumping well information within a preset time range, the method further includes: The pumping well information is preprocessed and updated; wherein the preprocessing operation includes at least one of missing value processing, duplicate value processing, abnormal value processing, standardization processing and normalization processing.
7. The method according to claim 2, characterized in that The power diagram features include graphic features and data features of the power diagram; wherein the data features include maximum load, minimum load and stroke; the operating condition diagnosis results include at least one of sand production, gas influence, insufficient liquid supply, normal, wax deposition, heavy oil, suction and spraying, disconnection, oil pipe leakage, floating valve leakage, fixed valve leakage and double valve leakage.
8. A device for measuring the amount of liquid produced in a pumping well, characterized in that: include: A power diagram feature determination module, used to obtain a power diagram of a target pumping well and determine a power diagram feature of the power diagram; A metering result determination module, used to determine the liquid production metering result of the target pumping well according to the power diagram characteristics and based on a pre-trained power diagram oil measurement model; The performance chart oil measurement model is obtained by training based on the historical performance chart of the pumping well and the liquid production matched with the historical performance chart; the liquid production is calculated based on the mechanism model determined by the working condition diagnosis result.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for measuring the liquid production of a pumping well according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for measuring the liquid production of a pumping well according to any one of claims 1 to 7 when executed.
