Oil well paraffin removal method, device, equipment and readable storage medium

By analyzing oil well load data to identify the wax deposition status and using a crane to control the lifting of the polished rod, combined with the MLP mathematical model, efficient wax removal from oil well pipelines is achieved. This solves the problems of low thermal efficiency and easy sticking of wax scrapers in existing technologies, improves oil well production efficiency and reduces costs.

CN116291316BActive Publication Date: 2025-09-30PETROCHINA CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111568784.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2025-09-30
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

Existing oil well wax cleaning methods have problems such as low thermal efficiency, serious waste of hot water, easy contamination of the formation, and easy sticking of the wax scraper, resulting in low oil well production efficiency.

Method used

By analyzing the oil well load data, identifying the wax deposition warning state, and using a crane to control the lifting of the polished rod, combined with the MLP mathematical model, the wax adhesion area is identified, and the sucker rod coupling is used to scrape the wax on the inner wall of the pipeline to achieve efficient wax removal.

Benefits of technology

Effectively reduce wax adhesion, improve oil well production efficiency, reduce wax removal costs, and avoid hot water waste and formation pollution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116291316B_ABST
    Figure CN116291316B_ABST
Patent Text Reader

Abstract

The present invention provides an oil well wax cleaning method, device, equipment and readable storage medium, relating to the field of oil well production technology, including obtaining first information, the first information including the load data of the oil well and the stroke corresponding to the recording time of each load data; identifying the current working status of the oil well based on the first information, the working status including the wax deposition warning state; the wax deposition warning state is used to trigger the sending of a first wax cleaning control command, the first wax cleaning control command including a command to control a crane to lift the polished rod according to a preset number of lifting times and a preset lifting height, thereby identifying the wax deposition state in the load data and reducing the wax adhesion in the oil production wellbore by lifting the polished rod.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of oil well production, and in particular to an oil well paraffin removal method, device, equipment and a readable storage medium. Background Art

[0002] During the production process of an oil well, due to the high wax and colloid asphalt content in the crude oil, the temperature drops in the 0-800m well section, and the pressure in the wellbore decreases and dissolved gas precipitates. Under certain conditions, the paraffin in the crude oil will begin to precipitate and adhere to the oil pipe and sucker rod, reducing the oil flow channel and poor crude oil fluidity, resulting in increased production load and current of the oil well, and even hard sticking and production suspension.

[0003] At present, in order to remove the paraffin precipitated in the oil well, 1. The method of oil casing backwash is adopted, in which hot water is injected from the casing, and then enters the pump barrel and oil pipe through the screen pipe to form a reverse circulation. However, this wax removal method has two problems: first, the hot water has a long circulation path underground, which seriously wastes heat and leads to low thermal efficiency. Generally, the wax formation point of the oil well is above 900 meters, while the oil casing backwash enters the oil pipe through the screen pipe. The screen pipe is generally at a depth of 1500-2500 meters, which is much deeper than the wax formation point. The heat of the hot water for well washing is ineffectively wasted, resulting in a long time and a large amount of water for well washing, and unsatisfactory results. Second, the hot water for well washing can easily contaminate the formation, resulting in a decrease in oil well production capacity and a long drainage period. Generally, the drainage period after hot washing of oil well casing is about 3 days, and can be as long as 7-10 days, which seriously affects the oil well production. 2. Mechanical wax cleaning methods for oil wells, including the use of wax scrapers on the sucker rod, are prone to deformation and detachment of the wax scrapers, which can easily cause well jamming. In addition, the wax scrapers are expensive to manufacture, and the cost of widespread promotion and use is high. Summary of the Invention

[0004] The purpose of the present invention is to provide a method, device, equipment and readable storage medium for removing paraffin from oil wells to improve the above-mentioned problems. To achieve the above-mentioned purpose, the technical solution adopted by the present invention is as follows:

[0005] In the first aspect, the present application provides an oil well wax cleaning method, characterized in that: first information is obtained, the first information including the load data of the oil well and the stroke corresponding to the recording time of each load data; the current working status of the oil well is identified based on the first information, the working status including the wax deposition warning state; the wax deposition warning state is used to trigger the sending of a first wax cleaning control command, the first wax cleaning control command including a command to control the crane to lift the light rod according to a preset number of lifting times and a preset lifting height.

[0006] Furthermore, the current working status of the oil well is identified based on the first information, and the working status includes a wax deposition warning state, including: constructing a load-stroke relationship diagram according to the time relationship based on the load data of the oil well and the stroke corresponding to each load recording moment; identifying and extracting data of the wavy line segment area based on the load-stroke relationship diagram; extracting a maximum load value based on the data of the wavy line segment area; if the maximum load value is greater than or lower than a preset load threshold, the current working status of the oil well is recorded as a wax deposition warning state.

[0007] Furthermore, the identification and extraction of data of the wavy line segment area based on the load-stroke relationship diagram includes: segmenting the load-stroke relationship diagram to obtain second information, the second information including a curve relationship diagram of the load varying with the stroke at a preset stroke length for a number of minutes during the loading process and a curve relationship diagram of the load varying with the stroke at a preset stroke length for a number of minutes during the unloading process; obtaining a first training set, the first training set including at least three types of linear data, the linear types including a straight line, a parabola and a wavy line; each type of linear data including at least one data; establishing an MLP mathematical model, using the first training set to train the MLP mathematical model to obtain a linear shape classification model; using the second information as input information of the linear shape classification model, solving the linear shape classification model to obtain first sub-information and second sub-information, the first sub-information including that the curve relationship diagram of the load varying with the stroke at a preset stroke length is a wavy line shape. The second sub-information includes a set of curve relationship diagrams of load versus stroke under a preset stroke length, which are non-wavy line shapes; the extreme points of each curve relationship diagram in the first sub-information are extracted respectively and the third sub-information and the fourth sub-information are identified, the third sub-information includes that the curve relationship diagram is a valid wavy line curve, and the fourth sub-information includes that the curve relationship diagram is an invalid wavy line curve; the valid wavy line curve in the third sub-information is greater than a preset image value, and the third sub-information is recorded as data of a wavy line segment area; wherein, the extreme points of each curve relationship diagram in the first sub-information are extracted respectively and the third sub-information and the fourth sub-information are identified, including: extracting the extreme points of the curve relationship diagram, the extreme points including the maximum point and the minimum point; if the difference between the maximum point and the minimum point is greater than a first preset threshold value, then the curve relationship diagram is recorded as a valid wavy line curve.

[0008] Furthermore, the wax deposition warning state is used to trigger the sending of a first wax removal control command, which includes a command to control the crane to lift the polished rod according to a preset number of lifting times and a preset lifting height, including: obtaining third information, the third information including the length and stroke distance of the sucker rod during oil well production; calculating a difference based on the length of the sucker rod and the stroke distance, and obtaining a preset lifting height by adding the difference to a preset reserved value; sending a stop production command and a first crane control command, the first crane control command including a command to deploy a vehicle and lift the polished rod for a preset number of lifting times according to the lifting height; sending a production command including a command to put the polished rod back to its original position and start production; obtaining fourth information, the fourth information including load data of the oil well within a stroke; calculating a load reduction rate based on the maximum load value in the fourth information and the maximum load value in the first information; if the load reduction rate is less than a preset expected value, resending the stop production command and sending the first crane control command until the load reduction rate is greater than the preset expected value.

[0009] On the second aspect, the present application also provides an oil well wax cleaning device, including: a first acquisition unit, used to obtain first information, the first information including the load data of the oil well and the stroke corresponding to the recording time of each load data; a first identification unit, used to identify the current working status of the oil well based on the first information, the working status including the wax deposition warning state; a triggering unit, used for the wax deposition warning state to trigger the sending of a first wax cleaning control command, the first wax cleaning control command including a command to control the crane to lift the light rod according to a preset number of lifting times and a preset lifting height.

[0010] Furthermore, the first recognition unit includes: an image sketching unit, used to construct a load-stroke relationship diagram based on the load data of the oil well and the stroke corresponding to each load recording moment; a second recognition unit, used to identify based on the load-stroke relationship diagram and extract data from the wavy line segment area; a first extraction unit, used to extract the maximum load value based on the data in the wavy line segment area; and a first logic unit, used to record the current working status of the oil well as a wax deposition warning state if the maximum load value is greater than or lower than a preset load threshold.

[0011] Furthermore, the second recognition unit includes: a segmentation unit for segmenting the load-stroke relationship diagram to obtain second information, the second information including a curve relationship diagram of the load changing with the stroke at a preset stroke length for several minutes during the loading process and a curve relationship diagram of the load changing with the stroke at a preset stroke length for several minutes during the unloading process; a second acquisition unit for acquiring a first training set, the first training set including at least three types of linear data, the linear types including a straight line, a parabola and a wavy line; each type of linear data including at least one data; a model building unit for building an MLP mathematical model, using the first training set to train the MLP mathematical model to obtain a linear shape classification model; a classification unit for using the second information as input information of the linear shape classification model, solving the linear shape classification model to obtain first sub-information and second sub-information, the first sub-information including that the curve relationship diagram of the load changing with the stroke at a preset stroke length is a wavy line. A collection of curve relationship diagrams with wavy line shapes, the second sub-information includes a collection of curve relationship diagrams with non-wavy line shapes of load-versus-stroke curve relationship diagrams under a preset stroke length; a sub-identification unit for respectively extracting the extreme points of each curve relationship diagram in the first sub-information and identifying the third sub-information and the fourth sub-information, the third sub-information including that the curve relationship diagram is a valid wavy line curve, and the fourth sub-information including that the curve relationship diagram is an invalid wavy line curve; a second logic unit for recording the third sub-information as data of a wavy line segment area if the valid wavy line curve in the third sub-information is greater than a preset image value; wherein the sub-identification unit includes: a second extraction unit for extracting the extreme points of the curve relationship diagram, the extreme points including a maximum point and a minimum point; a third logic unit for recording the curve relationship diagram as a valid wavy line curve if the difference between the maximum point and the minimum point is greater than a first preset threshold value.

[0012] Furthermore, the trigger unit includes: a third acquisition unit for acquiring third information, wherein the third information includes the length and stroke distance of the sucker rod during oil well production; a first calculation unit for calculating a difference based on the length of the sucker rod and the stroke distance, and obtaining a preset lifting height by adding the difference to a preset reserved value; a first command unit for sending a command to stop production and a first crane control command, wherein the first crane control command includes a command to deploy a vehicle and lift the polished rod for a preset number of times according to the lifting height; a second command unit for sending a production command, wherein the production command includes a command to return the polished rod to its original position and start production; a fourth acquisition unit for acquiring fourth information, wherein the fourth information includes load data of the oil well within one stroke; a second calculation unit for calculating a load reduction rate based on the maximum load value in the fourth information and the maximum load value in the first information; and a fourth logic unit for resending the command to stop production and the first crane control command if the load reduction rate is less than a preset expected value, until the load reduction rate exceeds the preset expected value.

[0013] In a third aspect, the present application further provides an oil well wax removal device, comprising:

[0014] memory for storing computer programs;

[0015] A processor is used to implement the steps of the oil well paraffin removal method when executing the computer program.

[0016] In a fourth aspect, the present application further provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned oil well paraffin cleaning method are implemented.

[0017] The beneficial effects of the present invention are as follows: the present invention identifies the wax deposition state in the load data and reduces the wax adhesion in the oil production wellbore by lifting the polished rod. Specifically, the present invention scrapes off the wax adhered to the inner wall of the pipeline through the structural feature that the outer diameter of the sucker rod coupling is larger than the outer diameter of the sucker rod, thereby achieving the purpose of wax cleaning.

[0018] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or understood by practicing the embodiments of the present invention. The purposes and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 Schematic diagram of the process of the oil well paraffin removal method according to an embodiment of the present invention;

[0021] Figure 2 Schematic diagram of the structure of the oil well paraffin removal device according to an embodiment of the present invention;

[0022] Figure 3 Schematic diagram of the structure of the oil well wax removal equipment described in an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions 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 part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0024] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are used only to distinguish the description and should not be understood as indicating or implying relative importance.

[0025] The method achieves the purpose of wax removal by utilizing the phenomenon that the outer diameter of the sucker rod coupling is larger than that of the sucker rod, and the wax is thin on the tubing in the well section within the stroke range of the sucker rod coupling, while the wax is thick in other well sections.

[0026] Example 1:

[0027] This embodiment provides a method for removing paraffin from an oil well.

[0028] See also Figure 1 , the figure shows that the method includes step S100, step S200 and step S300.

[0029] S100: Acquire first information, where the first information includes load data of the oil well and a stroke corresponding to a recording time of each load data.

[0030] S200: Obtain the current working status of the oil well according to the first information, where the working status includes a wax deposition warning state.

[0031] S300: The wax deposition warning state is used to trigger the sending of a first wax removal control command, which includes a command to control the crane to lift the polished pole according to a preset number of times and a preset lifting height.

[0032] In this method, it is first determined whether the oil well is in a wax deposition warning state before it can be implemented. The specific method of achieving wax removal is to use a crane to lift the polished rod according to a preset number of lifting times and a preset lifting height to achieve the purpose of wax removal.

[0033] It should be noted that the preset number of lifting times in this step is 7 times.

[0034] Specifically, step S200 includes step S210 , step S220 , step S230 and step S240 .

[0035] S210 , constructing a load-stroke relationship diagram based on the time relationship according to the load data of the oil well and the stroke corresponding to each load recording moment.

[0036] S220, identifying and extracting data of the wavy line segment area according to the load-stroke relationship diagram;

[0037] S230, extracting the maximum load value based on the data of the wavy line segment area;

[0038] S240: If the maximum load value is greater than or lower than a preset load threshold, the current working state of the oil well is recorded as a wax deposition warning state.

[0039] It should be noted that the preset load threshold in this application is around 100 MPa.

[0040] Specifically, step S220 includes step S221 , step S222 , step S223 , step S224 , step S225 and step S226 .

[0041] S221. Segment the load-stroke relationship graph to obtain second information, the second information including a curve relationship graph of load versus stroke at a preset stroke length for a number of minutes during a loading process and a curve relationship graph of load versus stroke at a preset stroke length for a number of minutes during an unloading process;

[0042] It should be noted that the preset stroke length in this step is 0.2 m.

[0043] S222. Obtain a first training set, where the first training set includes at least three types of line type data, including a straight line, a parabola, and a wavy line; each type of line type data includes at least one data point;

[0044] S223, establishing an MLP mathematical model, and using the first training set to train the MLP mathematical model to obtain a linear shape classification model;

[0045] S224: Using the second information as input information of a linear shape classification model, solving the linear shape classification model to obtain first sub-information and second sub-information, wherein the first sub-information includes a set of curve relationship graphs of a load versus stroke variation curve at a preset stroke length that are wavy lines, and the second sub-information includes a set of curve relationship graphs of a load versus stroke variation curve at the preset stroke length that are non-wavy lines.

[0046] This method uses the MLP algorithm to efficiently process nonlinearly separable data. It uses the labeled first training set for artificial intelligence classification, effectively improving the accuracy of curve classification.

[0047] S225. Extract the extreme points of each curve relationship graph in the first sub-information and identify them to obtain third sub-information and fourth sub-information, wherein the third sub-information includes that the curve relationship graph is a valid wavy linear curve, and the fourth sub-information includes that the curve relationship graph is an invalid wavy linear curve;

[0048] S226: If the valid wavy line curve in the third sub-information is greater than a preset image value, the third sub-information is recorded as data of the wavy line segment area;

[0049] It should be noted that the preset number of images is 3.

[0050] Wherein, step S226 also includes step S2261 and step S2262:

[0051] S2261, extracting extreme points of the curve relationship diagram, where the extreme points include maximum points and minimum points;

[0052] S2262: If the difference between the maximum point and the minimum point is greater than a first preset threshold, the curve relationship diagram is recorded as a valid wave line curve.

[0053] It should be noted that in this step, the first preset threshold is 10 MPa, so as to achieve the linear purpose of dividing the drastic changes.

[0054] Specifically, step S300 includes step S310 , step S320 , step S330 , step S340 , step S350 , step S360 and step S370 .

[0055] S310, obtaining third information, the third information including the length and stroke distance of the pumping rod during oil well production;

[0056] S320, calculating a difference value based on the length and stroke distance of the sucker rod, and adding the difference value to a preset reserved value to obtain a preset lifting height;

[0057] S330: Send a command to stop mining and a first crane control command, wherein the first crane control command includes a command to deploy a vehicle and to hoist the polished pole and perform a preset number of lifts according to the lifting height;

[0058] In this application, the preset reserved value is preferably 1m.

[0059] S340: Sending a mining command, the mining command including a command to return the polished rod to its original position and start mining;

[0060] S350, obtaining fourth information, the fourth information including load data of the oil well within one stroke;

[0061] S360: Calculate a load reduction rate based on the maximum load value in the fourth information and the maximum load value in the first information;

[0062] S370: If the load reduction rate is less than the preset expected value, resend the mining stop command and send the first crane control command until the load reduction rate is greater than the preset expected value.

[0063] It should be noted that the preset expected value described in this application is 10%.

[0064] For ease of explanation, this step is explained with an example:

[0065] Assuming the maximum and minimum loads of Oil Well X are 104.05 MPa / 65.14 MPa, and that the well experiences severe fluctuations during both loading and unloading, this can be used in the wax removal method of this application. Assuming the basic data for Well X: the pumping depth is 2,600 meters, and the completion sucker rod is a two-stage sucker rod assembly, with a D22mm sucker rod running to a depth of 1,200 meters, encompassing the entire wax-encrusted section of the well. 1. The D22mm sucker rod coupling has an outer diameter of 46 mm, the 73mm tubing has an inner diameter of 62 mm, the gap between the sucker rod coupling and the tubing is 8 mm, the sucker rod length is approximately 9.14 m, and the stroke is 5 m. This difference is 4.14 m, meaning that the lifting distance required to achieve wax removal must be no less than 4.14 m. Based on the preset reserve value, the calculated on-site construction distance, i.e., the preset lifting height, is set at 5 m, and the number of liftings is 7. 2. Construction Phase: The well was shut down, and a crane was deployed to lift the polished rod 5 meters according to the wax removal plan. After seven repetitions, the rod was lowered to the original pump-hanging position at 2,600 meters. The anti-surge distance was adjusted, and production resumed immediately. 3. Results Evaluation: After the operation, the maximum and minimum loads at Well X were 83.88 MPa and 52.24 MPa, respectively, a 19.38% reduction in load, achieving the wax removal goal.

[0066] Example 2:

[0067] like Figure 2 As shown, this embodiment provides an oil well paraffin removal device, the device comprising:

[0068] The first acquiring unit 1 is used to acquire first information, where the first information includes load data of the oil well and the stroke corresponding to the recording time of each load data.

[0069] The first identification unit 2 is used to identify the current working state of the oil well according to the first information, where the working state includes a wax deposition warning state.

[0070] The trigger unit 3 is used for triggering the sending of the first wax removal control command in the wax deposition warning state. The first wax removal control command includes a command to control the crane to lift the polished pole according to a preset lifting number and a preset lifting height.

[0071] In some specific embodiments, the first recognition unit 2 includes:

[0072] The image delineation unit 21 is used to construct a load-stroke relationship diagram based on the load data of the oil well and the stroke corresponding to each load recording moment.

[0073] The second recognition unit 22 is used to recognize and extract data of the wavy line segment area according to the load-stroke relationship diagram.

[0074] The first extraction unit 23 is configured to extract a maximum load value based on the data of the wavy line segment area.

[0075] The first logic unit 24 is configured to record the current working state of the oil well as a wax deposition warning state if the maximum load value is greater than or lower than a preset load threshold.

[0076] In some specific embodiments, the second identification unit 22 includes:

[0077] The segmentation unit 221 is used to segment the load-stroke relationship diagram to obtain second information, wherein the second information includes a curve relationship diagram of the load changing with the stroke at a preset stroke length for several minutes during the loading process and a curve relationship diagram of the load changing with the stroke at a preset stroke length for several minutes during the unloading process.

[0078] The second acquisition unit 222 is configured to acquire a first training set, wherein the first training set includes at least three types of line data, including a straight line, a parabola, and a wavy line, and each type of line data includes at least one data.

[0079] The model building unit 223 is used to build an MLP mathematical model, and use the first training set to train the MLP mathematical model to obtain a linear shape classification model.

[0080] The classification unit 224 is used to use the second information as input information of the linear shape classification model, solve the linear shape classification model to obtain first sub-information and second sub-information, the first sub-information includes a set of curve relationship diagrams in which the load-stroke change curve relationship diagram at a preset stroke length is in a wavy line shape, and the second sub-information includes a set of curve relationship diagrams in which the load-stroke change curve relationship diagram at a preset stroke length is in a non-wavy line shape.

[0081] The sub-identification unit 225 is used to extract the extreme points of each curve relationship diagram in the first sub-information respectively and identify the third sub-information and the fourth sub-information, wherein the third sub-information includes that the curve relationship diagram is a valid wavy linear curve, and the fourth sub-information includes that the curve relationship diagram is an invalid wavy linear curve.

[0082] The second logic unit 226 is configured to record the third sub-information as data of a wavy line segment area if the valid wavy line curve in the third sub-information is greater than a preset image value.

[0083] Among them, sub-identification includes:

[0084] The second extraction unit 2251 is used to extract extreme points of the curve relationship diagram, where the extreme points include maximum points and minimum points.

[0085] The third logic unit 2252 is configured to record the curve relationship diagram as a valid wave line curve if the difference between the maximum point and the minimum point is greater than a first preset threshold.

[0086] In some specific embodiments, the trigger unit 3 includes:

[0087] The third acquiring unit 31 is configured to acquire third information, where the third information includes the length and stroke distance of the sucker rod during oil well production.

[0088] The first calculation unit 32 is configured to calculate a difference value according to the length and stroke distance of the sucker rod, and to obtain a preset lifting height by adding the difference value to a preset reserved value.

[0089] The first command unit 33 is used to send a command to stop mining and a first crane control command. The first crane control command includes a command to deploy a vehicle and to lift the polished pole at a preset lifting height and a preset number of times.

[0090] The second command unit 34 is used to send a mining command, which includes a command to return the polished rod to its original position and start mining.

[0091] The fourth acquiring unit 35 is configured to acquire fourth information, where the fourth information includes load data of the oil well within one stroke.

[0092] The second calculation unit 36 ​​is configured to calculate a load reduction rate according to the maximum load value in the fourth information and the maximum load value in the first information.

[0093] The fourth logic unit 37 is configured to resend the mining stop command and the first crane control command if the load reduction rate is less than the preset expected value, until the load reduction rate is greater than the preset expected value.

[0094] It should be noted that, regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated on here.

[0095] Example 3:

[0096] Corresponding to the above method embodiment, this embodiment further provides an oil well paraffin cleaning device. The oil well paraffin cleaning device described below and the oil well paraffin cleaning method described above can refer to each other.

[0097] Figure 3 FIG. 8 is a block diagram of an oil well paraffin removal device 800 according to an exemplary embodiment. Figure 3 As shown, the oil well paraffin cleaning device 800 may include: a processor 801 , a memory 802 , and may further include one or more of a multimedia component 803 , an input / output (I / O) interface 804 , and a communication component 805 .

[0098] The processor 801 is used to control the overall operation of the oil well paraffin cleaning device 800 to complete all or part of the steps in the above-mentioned oil well paraffin cleaning method. The memory 402 is used to store various types of data to support the operation of the oil well paraffin cleaning device 800. This data may include, for example, instructions for any application or method operating on the oil well paraffin cleaning device 800, as well as application-related data such as contact information, sent and received messages, images, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 802 or transmitted via the communication component 805. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, which may be a keyboard, a mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the oil well wax removal device 800 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more thereof, may include a Wi-Fi module, a Bluetooth module, or an NFC module.

[0099] In an exemplary embodiment, the oil well paraffin cleaning device 800 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned oil well paraffin cleaning method.

[0100] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided. When executed by a processor, the program instructions implement the steps of the above-described oil well paraffin removal method. For example, the computer-readable storage medium may be the aforementioned memory 802 including the program instructions. The program instructions may be executed by the processor 801 of the oil well paraffin removal device 800 to perform the above-described oil well paraffin removal method.

[0101] Example 4:

[0102] Corresponding to the above method embodiment, this embodiment further provides a readable storage medium. The readable storage medium described below and the oil well paraffin removal method described above can refer to each other.

[0103] A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the oil well paraffin removal method of the above method embodiment.

[0104] The readable storage medium may specifically be any readable storage medium that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0105] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.

[0106] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A method for removing paraffin from an oil well, characterized in that: Acquiring first information, the first information including load data of the oil well and a stroke corresponding to a recording time of each load data; Identifying the current working state of the oil well according to the first information, wherein the working state includes a wax deposition warning state; The wax deposition warning state is used to trigger the sending of a first wax removal control command, wherein the first wax removal control command includes a command to control a crane to lift the polished pole according to a preset number of lifting times and a preset lifting height; The current working state of the oil well is obtained according to the first information, and the working state includes a wax deposition warning state, including: Constructing a load-stroke relationship diagram according to the time relationship based on the load data of the oil well and the stroke corresponding to each load recording moment; Identifying and extracting data of a wavy line segment area according to the load-stroke relationship diagram; Extracting the maximum load value based on the data of the wavy line segment area; If the maximum load value is greater than or lower than a preset load threshold, the working state of the oil well is recorded as a wax deposition warning state; The wax deposition warning state is used to trigger the sending of a first wax removal control command, which includes a command to control a crane to lift the polished pole according to a preset lifting number and a preset lifting height, including: Acquiring third information, wherein the third information includes the length and stroke distance of a sucker rod during oil well production; A difference is calculated based on the length of the sucker rod and the stroke distance, and a preset lifting height is obtained by adding the difference to a preset reserved value; Sending a command to stop mining and a first crane control command, wherein the first crane control command includes a command to deploy a vehicle and to hoist the polished pole and perform a preset number of lifts according to the lifting height; Sending a mining command, wherein the mining command includes a command to return the polished rod to its original position and start mining; acquiring fourth information, the fourth information including load data of the oil well within one stroke; Calculating a load reduction rate according to the maximum load value in the fourth information and the maximum load value in the first information; If the load reduction rate is less than the preset expected value, the mining stop command is resent and the first crane control command is sent until the load reduction rate is greater than the preset expected value.

2. The oil well paraffin removal method according to claim 1, wherein: The step of identifying and extracting data of the wavy line segment area according to the load-stroke relationship diagram includes: Segmenting the load-stroke relationship graph to obtain second information, the second information including a curve relationship graph of load versus stroke at a preset stroke length for a number of minutes during a loading process and a curve relationship graph of load versus stroke at a preset stroke length for a number of minutes during an unloading process; Obtaining a first training set, wherein the first training set includes at least three types of line type data, the line types including a straight line, a parabola, and a wavy line; each type of the line type data includes at least one data; Establishing an MLP mathematical model, and training the MLP mathematical model using the first training set to obtain a linear shape classification model; Using the second information as input information of the linear shape classification model, solving the linear shape classification model to obtain first sub-information and second sub-information, wherein the first sub-information includes a set of curve relationship graphs of a load versus stroke variation curve at a preset stroke length that are wavy line shapes, and the second sub-information includes a set of curve relationship graphs of a load versus stroke variation curve at the preset stroke length that are non-wavy line shapes; extracting the extreme points of each curve relationship graph in the first sub-information and identifying them to obtain third sub-information and fourth sub-information, wherein the third sub-information includes that the curve relationship graph is a valid wavy linear curve, and the fourth sub-information includes that the curve relationship graph is an invalid wavy linear curve; If the effective wavy line curve in the third sub-information is greater than a preset image value, the third sub-information is recorded as data of the wavy line segment area; The step of respectively extracting the extreme points of each curve relationship graph in the first sub-information and identifying the third sub-information and the fourth sub-information includes: Extracting extreme points of a curve relationship graph, wherein the extreme points include maximum points and minimum points; If the difference between the maximum value point and the minimum value point is greater than a first preset threshold, the curve relationship diagram is recorded as a valid wave line curve.

3. An oil well paraffin removal device, characterized in that: include: a first acquiring unit, configured to acquire first information, the first information including load data of the oil well and a stroke corresponding to a recording time of each load data; a first identification unit, configured to identify and obtain a current working state of the oil well according to the first information, wherein the working state includes a wax deposition warning state; a trigger unit configured to trigger the wax deposition warning state to send a first wax removal control command, wherein the first wax removal control command includes a command to control a crane to lift the polished pole according to a preset number of lifts and a preset lifting height; The first identification unit includes: An image delineation unit, configured to construct a load-stroke relationship diagram based on the load data of the oil well and the stroke corresponding to each load recording moment; a second recognition unit, configured to recognize and extract data of a wavy line segment area according to the load-stroke relationship diagram; a first extraction unit, configured to extract a maximum load value based on data of the wavy line segment area; The first logic unit is configured to record the working state of the oil well as a wax deposition warning state if the maximum load value is greater than or lower than a preset load threshold; The trigger unit includes: a third acquiring unit, configured to acquire third information, wherein the third information includes the length and stroke distance of the sucker rod during oil well exploitation; a first calculation unit, configured to calculate a difference value according to the length of the sucker rod and the stroke distance, and to obtain a preset lifting height by adding the difference value to a preset reserved value; a first command unit, configured to send a command to stop mining and a first crane control command, wherein the first crane control command includes a command to deploy a vehicle and to hoist the polished pole and perform a preset number of lifts at the lifting height; a second command unit, configured to send a mining command, wherein the mining command includes a command to return the polished rod to its original position and start mining; a fourth acquiring unit, configured to acquire fourth information, wherein the fourth information includes load data of the oil well within one stroke; a second calculation unit, configured to calculate a load reduction rate according to the maximum load value in the fourth information and the maximum load value in the first information; The fourth logic unit is used to resend the mining stop command and the first crane control command if the load reduction rate is less than the preset expected value, until the load reduction rate is greater than the preset expected value.

4. The oil well paraffin removal device according to claim 3, characterized in that: The second identification unit includes: a segmentation unit, configured to segment the load-stroke relationship graph to obtain second information, the second information comprising a curve relationship graph of load versus stroke variation at a preset stroke length for a number of minutes during a loading process and a curve relationship graph of load versus stroke variation at a preset stroke length for a number of minutes during an unloading process; A second acquisition unit is configured to acquire a first training set, wherein the first training set includes at least three types of line type data, the line types including a straight line, a parabola, and a wavy line; each type of line type data includes at least one data; a model building unit, configured to build an MLP mathematical model, and train the MLP mathematical model using the first training set to obtain a linear shape classification model; a classification unit, configured to use the second information as input information of the linear shape classification model, solve the linear shape classification model to obtain first sub-information and second sub-information, wherein the first sub-information includes a set of curve relationship graphs of a load-versus-stroke curve relationship graph at a preset stroke length that is a wavy line shape, and the second sub-information includes a set of curve relationship graphs of a load-versus-stroke curve relationship graph at the preset stroke length that is a non-wavy line shape; a sub-identification unit, configured to extract the extreme points of each curve relationship graph in the first sub-information and identify the third sub-information and the fourth sub-information, wherein the third sub-information includes that the curve relationship graph is a valid wavy linear curve, and the fourth sub-information includes that the curve relationship graph is an invalid wavy linear curve; a second logic unit, configured to record the third sub-information as data of a wavy line segment area if the valid wavy line curve in the third sub-information is greater than a preset image value; Wherein, the sub-identification unit includes: A second extraction unit is used to extract extreme points of the curve relationship diagram, wherein the extreme points include maximum points and minimum points; The third logic unit is configured to record the curve relationship diagram as a valid wave line curve if the difference between the maximum point and the minimum point is greater than a first preset threshold.

5. An oil well wax removal device, characterized in that: include: memory for storing computer programs; A processor is configured to implement the steps of the oil well paraffin removal method according to any one of claims 1 to 2 when executing the computer program.

6. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the oil well paraffin removal method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Early warning method for rod-pumping-well rod string stress

    CN109538190A

  • Oil well pairing method and device for hydraulic pumping unit

    CN112145130A