Automatic coiled tubing arrangement control system
Through image recognition and tension detection technology, the winding direction and tension of the coiled tubing on the drum are adjusted in real time, which solves the problems of uneven winding of the tubing and excessive or too small tension in the existing system, and improves the stability and safety of the operation. .
Patent Information
- Application Number
- CN202410813904.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-01
AI Technical Summary
When the existing automatic coiled tubing pipe discharge system is lifting or lowering the coiled tubing, it is easy to cause the coiled tubing on the drum to be excessively deformed or loose, causing damage and abnormal operation, and the injection head may be deflected or overturned, causing problems. Safety hazard.
Using a feedback adjustment system based on image recognition technology and tension detection, the coiled tubing winding condition is obtained through the image acquisition mechanism, the tension acquisition mechanism obtains surface tension information, the control mechanism generates correction and tension adjustment instructions, and the actuator uses components such as electromagnetic clutches and hydraulic motors Real-time adjustment of the winding direction and tension of the oil pipe.
It effectively solves the problems of uneven winding of the oil pipe and excessive or too small tension, ensuring that the oil pipe is neatly wound on the drum, avoiding the risk of winding deformation and injection head deviation, and improving the stability and safety of the operation.
Smart Images

Figure CN118728293A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of coiled tubing control, and in particular to an automatic coiled tubing arrangement control system. Background Art
[0002] The coiled tubing technology has the advantages of continuous operation without the need for detaching or undocking, pressure-operated operation, and high production efficiency. It is currently widely used in the development of deep oil and gas and deep shale gas operations. During actual operation, the coiled tubing operation machine needs to remove the coiled tubing from the recovery tubing, and the coiled tubing needs to be neatly wound on the drum after use. The drum is an important part of the coiled tubing operation equipment. Its function is to store and transport the coiled tubing. During operation, the drum is required to arrange the coiled tubing neatly and orderly on it.
[0003] At present, in order to realize the automatic arrangement of coiled tubing, the existing implementation schemes are: one is a coiled tubing automatic arrangement system disclosed in Chinese patent CN201420856151.2, and the other is a coiled tubing drum automatic arrangement control system disclosed in Chinese patent CN201921287149.7.
[0004] However, in the actual application of the above two solutions, when lifting or lowering the coiled tubing, the driving torque of the drum is controlled, and the coiled tubing between the drum and the injection head is in a tensile tension state, that is, the coiled tubing tension is generated. If the coiled tubing tension is too large, the coiled tubing on the drum will be entangled and deformed too much, and the mutual squeezing force will increase, causing damage to the coiled tubing. At the same time, if the injection head is subjected to too much tension, it is easy to deflect, and in severe cases, it may even flip over and cause an accident; if the tension is too small, the coiled tubing on the drum will become loose, the winding will be disordered, and normal operation will be seriously affected. Summary of the invention
[0005] In view of the deficiencies in the prior art, the purpose of the present invention is to provide an automatic coiled tubing arrangement control system, which can ensure that the coiled tubing is neatly wound on the drum and not too loose or too tight through feedback adjustment based on image recognition technology and feedback adjustment of tension detection values.
[0006] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] A coiled tubing automatic pipe arrangement control system, the key of which is to include a roller mechanism and a pipe arrangement mechanism, as well as:
[0008] An image acquisition mechanism is arranged near the tubing drum in the drum mechanism and is used to acquire image information of the continuous tubing wound on the tubing drum over time;
[0009] The tension collection mechanism is provided between the roller mechanism and the injection head and is used to obtain the tension information of the coiled tubing surface over time;
[0010] A control mechanism, used to generate a deviation correction control instruction according to the acquired image information, and used to generate a tension adjustment instruction according to the acquired tension information;
[0011] The actuator is used to control the working state of the pipe laying mechanism according to the correction control instruction, so as to adjust the winding direction of the continuous oil pipe on the oil pipe drum, and / or to control the winding speed of the drum mechanism according to the tension adjustment instruction, so as to adjust the surface tension of the continuous oil pipe between the drum mechanism and the injection head.
[0012] Further, the actuator includes a first electromagnetic clutch, a second electromagnetic clutch, a third electromagnetic clutch, a fourth electromagnetic clutch and a fifth electromagnetic clutch, and the control ends of the first electromagnetic clutch, the second electromagnetic clutch, the third electromagnetic clutch, the fourth electromagnetic clutch and the fifth electromagnetic clutch are all electrically connected to the control mechanism, wherein:
[0013] The active part of the first electromagnetic clutch is connected to the output shaft of the power device of the drum mechanism, and the driven part of the first electromagnetic clutch is drivingly connected to one end of the rotating shaft of the oil pipe drum;
[0014] The active part of the second electromagnetic clutch is connected to the other end of the oil tube drum rotating shaft, and the driven part of the second electromagnetic clutch is in transmission connection with the driving shaft, and the driving shaft is configured to drive the lead screw in the pipe arrangement mechanism to rotate so as to arrange the continuous oil tube;
[0015] The active part of the third electromagnetic clutch and the active part of the fourth electromagnetic clutch are respectively connected to the two ends of the drive shaft, and the driven part of the third electromagnetic clutch and the driven part of the fourth electromagnetic clutch are respectively connected to the two ends of the lead screw in a transmission manner;
[0016] The active part of the fifth electromagnetic clutch is connected to the output shaft of the driving device, and the driving device is configured to drive the tubing drum or the lead screw to rotate to achieve tension adjustment of the continuous tubing on the tubing drum or arrangement gap adjustment of the continuous tubing, and the driven part of the fifth electromagnetic clutch is connected to the driving shaft in a transmission manner.
[0017] Furthermore, the power device includes a hydraulic motor and a proportional relief valve, the hydraulic motor and the proportional relief valve are connected to form a closed-loop pipeline, and the control end of the proportional relief valve is electrically connected to the output end of the control mechanism.
[0018] Furthermore, the driving device adopts a stepping motor.
[0019] Furthermore, the driven member and the lead screw of the third electromagnetic clutch, and the driven member and the lead screw of the fourth electromagnetic clutch are connected by a chain transmission structure, and the driven member and the oil pipe drum rotating shaft of the first electromagnetic clutch, the driven member and the drive shaft of the second electromagnetic clutch, and the driven member and the drive shaft of the fifth electromagnetic clutch are connected by a gear transmission structure.
[0020] Furthermore, the control mechanism generates the correction control instruction according to the image information in the following steps:
[0021] Step A1, performing AD conversion on the image information;
[0022] Step A2, performing grayscale processing, binarization processing, and noise reduction processing on the image data after AD conversion in sequence;
[0023] Step A3, performing edge processing on the image data after noise reduction using the Sobel operator to obtain the first-order gradient of the digital image;
[0024] Step A4, using Laplace operator to enhance the contrast of grayscale mutations in the image data;
[0025] Step A5: using the Canny operator to suppress pseudo edges caused by noise, achieve edge refinement, and obtain a coiled tubing recognition image after edge processing;
[0026] Step A6: compress the obtained coiled tubing identification map into a matrix, compare the weight change in the matrix with the standard data, and calculate and generate a deviation correction control instruction if the requirements are not met.
[0027] Furthermore, the step of compressing the obtained coiled tubing identification map into a matrix in step A6 is as follows:
[0028] Convert the coiled tubing identification image into a grayscale image and scale it to the required size;
[0029] Use Python's OpenCV image processing library to load the scaled grayscale image;
[0030] Extract the gray value of each pixel in the grayscale image;
[0031] Create a matrix whose number of rows and columns corresponds to the height and width of the grayscale image, and assign the extracted grayscale values to the matrix elements at the corresponding positions.
[0032] Furthermore, the calculation method of the change in the weight in the matrix in step A6 is:
[0033] D(i)=|I(i)-S(i)|,
[0034] Where D(i) is the change in the weight in the matrix, I(i) is the pixel value in the image matrix, S(i) is the value in the standard data at the corresponding position, and i is the number of the element in the matrix;
[0035] The method of comparing the change in weights in the matrix with the standard data in step A6 is:
[0036] The change is compared with the preset threshold, and if it is greater than the preset threshold, it is considered that the requirement is not met;
[0037] Alternatively, the mean and standard deviation of a set of standard data are calculated, and the change is compared with the calculated mean and standard deviation to determine whether it exceeds a preset range.
[0038] Furthermore, the control mechanism generates the correction control instruction according to the image information in the following steps:
[0039] Step B1, performing AD conversion on the image information;
[0040] Step B2, performing noise reduction processing on the image data after AD conversion;
[0041] Step B3: using the trained standard model based on the yolov5 algorithm to identify the image data after noise reduction and extract position parameters;
[0042] Step B4, according to the extracted position parameters, use geometric knowledge to calculate the interval distance;
[0043] Step B5: Compare the calculated interval distance with the standard data. If the interval distance is not within a preset reasonable interval, calculate and generate a deviation correction control instruction.
[0044] Furthermore, the step of comparing the interval distance with the standard data in step B5 is as follows:
[0045] The difference between the spacing distance between coiled tubings and the standard data;
[0046] Compare the difference with the preset tolerance range to determine whether it is within the acceptable range.
[0047] The remarkable effects of the present invention are:
[0048] 1. The present invention detects the arrangement spacing of the coiled tubing based on image recognition technology, and can make real-time and timely adjustments to the arrangement of the tubing through image feedback control, so as to adjust the winding direction of the coiled tubing on the tubing drum, effectively solving the problem of uneven arrangement of the tubing on the drum.
[0049] 2. The present invention effectively senses the tension on the oil pipe and timely controls the winding speed of the drum mechanism through feedback control, thereby adjusting the surface tension of the continuous oil pipe between the drum mechanism and the injection head, so that the oil pipe can be wound on the drum according to a preset tension standard value, and there will be no phenomenon of loose arrangement due to being too loose, or damage to the oil pipe due to being too tight, which will cause the tension of the continuous oil pipe to increase and the injection head to be subjected to excessive tension, resulting in deviation. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a schematic diagram of the arrangement position of the present invention;
[0051] Figure 2 It is a principle block diagram of the present invention;
[0052] Figure 3 It is a schematic diagram of the transmission structure of the present invention;
[0053] Figure 4 is a flow chart of a method 1 for generating a deviation correction control instruction in the present invention;
[0054] Figure 5 Is a flowchart of the method 2 of generating the correction control instruction in the present invention. DETAILED DESCRIPTION
[0055] The specific implementation manner and working principle of the present invention are further described in detail below with reference to the accompanying drawings.
[0056] like Figure 1 and Figure 2 As shown, a coiled tubing automatic pipe arrangement control system includes a roller mechanism 10, a pipe arrangement mechanism 20, an image acquisition mechanism 40, a tension acquisition mechanism 50, a control mechanism 60, and an actuator 70, wherein:
[0057] The roller mechanism 10 and the pipe arrangement mechanism 20 are both roller devices and pipe arrangement devices for winding coiled tubing in the prior art. The present invention does not improve the structures of the two, and will not be described in detail here.
[0058] The image acquisition mechanism 40 is disposed near the tubing drum 11 in the drum mechanism 10 and is used to acquire image information of the coiled tubing 90 wound on the tubing drum 11 over time;
[0059] The tension collection mechanism 50 is disposed between the roller mechanism 10 and the injection head 30 and is used to obtain tension information on the surface of the coiled tubing 90 over time;
[0060] The control mechanism 60 can be arranged between the roller mechanism 10 and the pipe arrangement mechanism 20, or can be arranged in a control room for remote control, and is used to generate a deviation correction control instruction according to the acquired image information, and is used to generate a tension adjustment instruction according to the acquired tension information;
[0061] The actuator 70 is used to control the working state of the pipe laying mechanism 20 according to the correction control instruction, so as to adjust the winding direction of the continuous oil pipe 90 on the oil pipe drum 11, and / or to control the winding speed of the drum mechanism 10 according to the tension adjustment instruction, so as to adjust the surface tension of the continuous oil pipe 90 between the drum mechanism 10 and the injection head 30.
[0062] During the implementation process, the image acquisition mechanism 40 and the tension acquisition mechanism 50 respectively collect in real time the image information of the coiled tubing 90 wound on the tubing drum 11 and the surface tension information of the coiled tubing 90 between the drum mechanism 10 and the injection head 30. When at least one of the two parameters, the arrangement spacing distance between the coiled tubings 90 calculated according to the image information and the surface tension of the coiled tubing 90 calculated according to the tension information, is abnormal, a deviation correction control instruction and / or a tension adjustment instruction are generated accordingly, so as to adjust the pipe arrangement position and / or the tension adjustment position of the pipe arrangement mechanism 20 respectively. The winding speed of the drum mechanism 10 is controlled to adjust the winding direction of the coiled tubing 90 on the tubing drum 11 and / or adjust the surface tension of the coiled tubing 90 between the drum mechanism 10 and the injection head 30, so that the coiled tubing 90 is neatly wound on the tubing drum 11 according to a preset tension standard value, thereby effectively solving the problem of uneven arrangement of the tubing on the drum, the problem of loose arrangement due to too loose arrangement, the problem of increased tension of the coiled tubing due to too tight arrangement, and the problem of excessive tension on the injection head causing deviation and other damage to the tubing.
[0063] like Figure 3 As shown, the actuator 70 includes a first electromagnetic clutch 71, a second electromagnetic clutch 72, a third electromagnetic clutch 73, a fourth electromagnetic clutch 74 and a fifth electromagnetic clutch 75, and the control ends of the first electromagnetic clutch 71, the second electromagnetic clutch 72, the third electromagnetic clutch 73, the fourth electromagnetic clutch 74 and the fifth electromagnetic clutch 75 are all electrically connected to the control mechanism 60, wherein:
[0064] The active part of the first electromagnetic clutch 71 is connected to the output shaft of the power device 12 of the roller mechanism 10, and the driven part of the first electromagnetic clutch 71 is drivingly connected to one end of the rotating shaft of the oil tube roller 11;
[0065] The active part of the second electromagnetic clutch 72 is connected to the other end of the rotating shaft of the tubing drum 11, and the driven part of the second electromagnetic clutch 72 is in transmission connection with the driving shaft 21, and the driving shaft 21 is configured to drive the screw 22 in the tubing discharging mechanism 20 to rotate so as to realize the tubing discharging of the coiled tubing 90;
[0066] The active member of the third electromagnetic clutch 73 and the active member of the fourth electromagnetic clutch 74 are connected to the two ends of the drive shaft 21 respectively, and the driven member of the third electromagnetic clutch 73 and the driven member of the fourth electromagnetic clutch 74 are connected to the two ends of the lead screw 22 respectively.
[0067] The active part of the fifth electromagnetic clutch 75 is connected to the output shaft of the driving device 80, and the driving device 80 is configured to drive the tubing drum 11 or the lead screw 22 to rotate to achieve tension adjustment of the continuous tubing 90 on the tubing drum 11 or arrangement gap adjustment of the continuous tubing 90, and the driven part of the fifth electromagnetic clutch 75 is connected to the driving shaft 21 in transmission.
[0068] from Figure 3 It can also be seen that the power device 12 includes a hydraulic motor 121 and a proportional relief valve 122. The hydraulic motor 121 and the proportional relief valve 122 are connected to form a closed-loop pipeline. The control end of the proportional relief valve 122 is electrically connected to the output end of the control mechanism 60. The hydraulic motor 121 is used to provide power for the rotation of the oil tube drum 11. The speed of the hydraulic motor 121 can be controlled by adjusting the opening of the proportional relief valve 122.
[0069] In this example, in order to achieve precise control, thereby accurately controlling the pipe laying position of the pipe laying mechanism 20 and the winding speed of the roller mechanism 10, the driving device 80 adopts a stepping motor.
[0070] In this example, the driven member and the lead screw 22 of the third electromagnetic clutch 73, and the driven member and the lead screw 22 of the fourth electromagnetic clutch 74 are connected by a chain transmission structure, and the driven member and the rotating shaft of the oil pipe drum 11 of the first electromagnetic clutch 71, the driven member and the driving shaft 21 of the second electromagnetic clutch 72, and the driven member and the driving shaft 21 of the fifth electromagnetic clutch 75 are connected by a gear transmission structure.
[0071] It should be noted that the control mechanism 60 may be a PLC controller; it may also be a control network formed by a data processing platform and a plurality of single-chip microcomputers, each single-chip microcomputer correspondingly controlling one electromagnetic clutch; it may also be a cloud server arranged in the cloud.
[0072] Based on the above transmission structure, this system will have four working conditions, as follows:
[0073] Working condition 1. Normal operation status:
[0074] In this working condition, the first electromagnetic clutch 71, the second electromagnetic clutch 72, and the third electromagnetic clutch 73 are energized, and the fourth electromagnetic clutch 74 and the fifth electromagnetic clutch 75 are not energized. The output shaft of the hydraulic motor 121 transmits the torque to the tubing drum 11 through the first electromagnetic clutch 71 and the gear transmission structure to make it rotate; the rotating shaft of the tubing drum 11 transmits the torque to the drive shaft 21 through the second electromagnetic clutch 72 and the gear transmission structure to make it rotate; the drive shaft 21 transmits the torque to the lead screw 22 through the third electromagnetic clutch 73 and the chain transmission structure, driving the lead screw 22 to rotate;
[0075] When a layer of continuous oil tubing 90 is wound, the first electromagnetic clutch 71 and the second electromagnetic clutch 72 remain energized, the third electromagnetic clutch 73 is disconnected, and the fourth electromagnetic clutch 74 is energized. At this time, the drive shaft 21 transmits the torque to the screw 22 through the fourth electromagnetic clutch 74 and the chain transmission structure, driving the screw 22 to rotate.
[0076] During this process, the image acquisition mechanism 40 and the tension acquisition mechanism 50 both work simultaneously and continuously to respectively acquire the image information of the coiled tubing 90 wound on the tubing drum 11 and the tension information on the surface of the coiled tubing 90 in real time.
[0077] Working condition 2: abnormal arrangement interval distance:
[0078] Under this working condition, the image information collected by the image acquisition mechanism 40 shows that the arrangement spacing distance between the continuous oil pipes 90 is too large or overlapped, and at the same time, there is no tension abnormality in the tension information of the tension acquisition mechanism 50. Therefore, it is only necessary to adjust the pipe arrangement position of the pipe arrangement mechanism 20 to achieve the correction of the continuous oil pipe 90. At this time, the control mechanism 60 generates a correction control instruction to control the second electromagnetic clutch 72 to be powered off, so that the rotating shaft of the oil pipe drum 11 and the drive shaft 21 are decoupled, and at the same time, the fifth electromagnetic clutch 75 is powered on and one of the third electromagnetic clutch 73 or the fourth electromagnetic clutch 74 is powered on (specifically, whether the third electromagnetic clutch 73 is powered on or the fourth electromagnetic clutch 74 is powered on is determined by the control mechanism 60 according to the current winding direction of the continuous oil pipe 90), so that one end of the drive shaft 21 transmits the torque to the screw 22 through the fourth electromagnetic clutch 74 and the chain transmission structure, drives the screw 22 to rotate, and then starts the driving device 80, thereby controlling the movement of the screw 22, thereby adjusting the pipe arrangement position of the pipe arrangement mechanism 20, until the control mechanism 60 determines that the winding state of the continuous oil pipe 90 is normal based on the image information collected by the image acquisition mechanism 40.
[0079] Working condition 3: Abnormal tension state:
[0080] Under this working condition, in the image information collected by the image acquisition mechanism 40, there is no phenomenon of excessive spacing or overlap between the continuous oil pipes 90, but the tension information of the tension acquisition mechanism 50 has abnormalities such as excessive tension or too little tension. Therefore, it is only necessary to adjust the winding speed of the roller mechanism 10 to achieve the adjustment of the surface tension of the continuous oil pipe 90. At this time, the control mechanism 60 generates a tension adjustment instruction, the first electromagnetic clutch 71, the second electromagnetic clutch 72, and the third electromagnetic clutch 73 are energized, and the fourth electromagnetic clutch 74 and the fifth electromagnetic clutch 75 are not energized. The transmission state of the entire system is consistent with the normal operating state under working condition 1. At this time, according to the actual situation of whether the tension is too large or too small, the opening of the proportional relief valve 122 is adjusted, so as to adjust the speed of the hydraulic motor 121 to achieve the adjustment of the speed of the oil tube drum 11. If the tension is too large, the opening of the proportional relief valve 122 is reduced to reduce the hydraulic oil flow rate. Otherwise, the opening of the proportional relief valve 122 is increased to increase the hydraulic oil flow rate, until the control mechanism 60 determines that the surface tension of the continuous oil tube 90 is adjusted to the standard value according to the tension information of the tension acquisition mechanism 50.
[0081] Working condition 4: Both the spacing distance and the tension are abnormal:
[0082] Under this working condition, the image information collected by the image acquisition mechanism 40 shows that the arrangement spacing distance between the continuous oil pipes 90 is too large or overlapped. At the same time, the tension information of the tension acquisition mechanism 50 shows abnormal tension. Therefore, it is necessary to adjust the pipe arrangement position of the pipe arrangement mechanism 20 and the surface tension of the continuous oil pipe 90.
[0083] At this time, the control mechanism 60 first generates a tension adjustment instruction, controls the first electromagnetic clutch 71, the second electromagnetic clutch 72, and the third electromagnetic clutch 73 to be energized, and controls the fourth electromagnetic clutch 74 and the fifth electromagnetic clutch 75 to be de-energized. The transmission state of the entire system is consistent with the normal operating state under working condition 1. At this time, according to the actual situation that the tension is too large or too small, the opening of the proportional relief valve 122 is adjusted, thereby adjusting the speed of the hydraulic motor 121 to achieve the adjustment of the speed of the tubing drum 11, until the control mechanism 60 determines that the surface tension of the coiled tubing 90 is adjusted to the standard value according to the tension information of the tension collection mechanism 50;
[0084] Then, the control mechanism 60 generates a correction control instruction to control the second electromagnetic clutch 72 to be powered off, so that the rotating shaft of the oil pipe drum 11 and the drive shaft 21 are decoupled, and at the same time, the fifth electromagnetic clutch 75 is powered on and one of the third electromagnetic clutch 73 or the fourth electromagnetic clutch 74 is powered on (specifically, whether the third electromagnetic clutch 73 is powered on or the fourth electromagnetic clutch 74 is powered on is determined by the control mechanism 60 according to the current winding direction of the continuous oil pipe 90), so that one end of the drive shaft 21 transmits the torque to the screw 22 through the fourth electromagnetic clutch 74 and the chain transmission structure, drives the screw 22 to rotate, and then starts the drive device 80, thereby controlling the movement of the screw 22, thereby adjusting the pipe arrangement position of the pipe arrangement mechanism 20, until the control mechanism 60 determines that the winding state of the continuous oil pipe 90 is normal based on the image information collected by the image acquisition mechanism 40.
[0085] In the embodiment of the present invention, two methods for generating correction instructions based on image recognition algorithms are proposed, wherein the correction control instruction generated in method 1 is as follows: Figure 4 As shown, the specific steps are as follows:
[0086] Step A1, performing AD conversion on the image information;
[0087] Step A2, performing grayscale processing, binarization processing, and noise reduction processing on the image data after AD conversion in sequence;
[0088] Step A3, performing edge processing on the image data after noise reduction using the Sobel operator to obtain the first-order gradient of the digital image;
[0089] Step A4, using Laplace operator to enhance the contrast of grayscale mutations in the image data;
[0090] Step A5: using the Canny operator to suppress pseudo edges caused by noise, achieve edge refinement, and obtain an identification image of the coiled tubing 90 after edge processing;
[0091] Step A6: compress the obtained coiled tubing 90 identification map into a matrix, compare the weight change in the matrix with the standard data, and calculate and generate a deviation correction control instruction if the requirements are not met.
[0092] When the coiled tubing 90 identification map is compressed into a matrix in this step, first, the grayscale image converted from the image needs to be scaled to the required size to reduce the amount of calculation. Then, the grayscale image is converted into a matrix form. This can be achieved by arranging the grayscale values of the pixels in the image into a matrix. For example, if the image size is M×N, the corresponding grayscale matrix is an M×N matrix. The specific steps are as follows:
[0093] Step S1, image conversion: converting the coiled tubing 90 identification image into a grayscale image and scaling it to a desired size;
[0094] Step S2, loading the image: using Python's OpenCV image processing library to load the scaled grayscale image;
[0095] Step S3, obtaining pixel values: for each pixel, obtaining its grayscale value. In common image processing libraries, grayscale images are usually represented as a two-dimensional array, where each element represents the grayscale value of a pixel;
[0096] Step S4, generating a matrix: arranging the grayscale values into a matrix, that is, creating a matrix whose number of rows and columns respectively correspond to the height and width of the grayscale image, and assigning the extracted grayscale values to the matrix elements at the corresponding positions.
[0097] In this step, the change in weight in the matrix is calculated as follows:
[0098] The grayscale matrix I is converted into a set of standard data S, which contains weight information related to image features. For each pixel value i, its change relative to the standard data can be calculated as the corresponding change in weight. This can be calculated using the following formula:
[0099] D(i)=|I(i)-S(i)|,
[0100] Where D(i) is the change in the weight in the matrix, I(i) is the pixel value in the image matrix, S(i) is the value in the standard data at the corresponding position, and i is the number of the element in the matrix;
[0101] The method of comparing the change in weights in the matrix with the standard data in step A6 is:
[0102] First, input the standard value, that is, the weight information of the image matrix under normal circumstances. You can choose the following two methods for comparison:
[0103] 1) Compare the change with the preset threshold. If it is greater than the preset threshold, it is considered that the requirement is not met;
[0104] or:
[0105] 2) Statistical analysis: For a set of standard data, its mean and standard deviation can be calculated, and the variation can be compared with these statistical data. If it exceeds a certain range, it is considered to be abnormal.
[0106] Assume that there are K sets of data S1, S2, .., SK, where Sk is a matrix of the same size as the variation matrix. D is the standard matrix, and the difference moment k between each set of standard data and the variation matrix can be calculated, expressed as: k = |D-Sk|.
[0107] See attached Figure 5 ,In method 2, the steps of generating the correction control instruction are as follows:
[0108] Step B1, performing AD conversion on the image information;
[0109] Step B2, performing noise reduction processing on the image data after AD conversion;
[0110] Step B3: using the trained standard model based on the yolov5 algorithm, the image data after noise reduction is identified and the target position parameters are extracted, such as the upper left corner coordinates, the lower right corner coordinates, etc., and the center position of the oil pipe or other required parameters are calculated based on these parameters;
[0111] Then, determine the actual size of the camera imaging area, for example, how many centimeters in the horizontal direction correspond to how many pixels in the image, and use the ratio of the actual size of the camera imaging area and the image size to convert the oil pipe position information detected by yolov5 into the actual distance, which can be done through a simple proportional relationship. For example, assuming that the actual size is 10 centimeters corresponding to 100 pixels of the image size, then the actual distance corresponding to each pixel is 0.1 centimeters;
[0112] Step B4: Based on the extracted position parameters, the interval distance is calculated using geometric knowledge, as follows:
[0113] When we calculate the spacing between oil pipes, we need to consider two aspects: the horizontal distance and the vertical distance between the oil pipes. Suppose we have two oil pipes A and B, and their center coordinates are (x 1 ,y 1 ) and (x 2 ,y 2 ).
[0114] 1. Find the direction vector:
[0115] The vector between the oil pipes A and B can be calculated using the coordinates of the two end points of the oil pipe. Assume that the direction vectors of the oil pipes A and B are and It can be expressed as:
[0116]
[0117] Among them, (x' 1 ,y' 1 ) and (x' 2 ,y' 2 ) are the endpoint coordinates of the oil pipes A and B respectively.
[0118] 2. Find the horizontal distance and vertical distance:
[0119] The horizontal distance △x is calculated by the difference between their abscissas:
[0120] △x=(x 2 -x 1 )
[0121] The vertical distance △y is calculated by the difference between their ordinates:
[0122] △y=(y 2 -y 1 )
[0123] 3. Angle calculation:
[0124] That is, the angle θ between the oil pipes A and B is calculated using the dot product and modulus of the vector:
[0125]
[0126] 4. Calculation of interval distance:
[0127] According to the Pythagorean theorem, the distance d between the oil pipes A and B can be calculated using the horizontal distance △x, the vertical distance △y and the angle θ:
[0128]
[0129] Step B5: Compare the calculated interval distance with the standard data. If the interval distance is not within the preset reasonable range, calculate and generate a deviation correction control instruction. The steps of comparing the interval distance with the standard data are as follows:
[0130] Calculate the difference between the spacing distance between the coiled tubings 90 and the standard data;
[0131] Compare the difference with the preset reasonable interval range, that is, the tolerance range, to determine whether it is within the acceptable range.
[0132] For example:
[0133] Assume that the standard data is: 90 distances between adjacent coiled tubings: 10 cm;
[0134] The data monitored in real time are: 90 distances between adjacent coiled tubings: 10.2 cm;
[0135] Comparison process: The difference in distance between oil pipes is: 10.2 cm - 10 cm = 0.2 cm. Compare the difference with the tolerance range to determine whether it is within the acceptable range, for example, the tolerance range is plus or minus 0.5 cm.
[0136] Based on the comparison results, we adjusted the movement of the motor so that the distance and tension values between the 90 coiled tubings returned to near the standard values.
[0137] Based on the above content, the control principle of this control system is as follows:
[0138] 1. The control mechanism 60 issues a control instruction to control the first electromagnetic clutch 71, the second electromagnetic clutch 72, and the third electromagnetic clutch 73 to be energized, and the fourth electromagnetic clutch 74 and the fifth electromagnetic clutch 75 to be de-energized. The output shaft of the hydraulic motor 121 transmits the torque to the tubing drum 11 through the first electromagnetic clutch 71 and the gear transmission structure to make it rotate; the rotating shaft of the tubing drum 11 transmits the torque to the drive shaft 21 through the second electromagnetic clutch 72 and the gear transmission structure to make it rotate; at the same time, the drive shaft 21 transmits the torque to the lead screw 22 through the third electromagnetic clutch 73 and the chain transmission structure, driving the lead screw 22 to rotate, so that the coiled tubing 90 is wound on the tubing drum 11 of the drum mechanism 10 after passing through the pipe arrangement mechanism 20;
[0139] During this process, the image acquisition mechanism 40 and the tension acquisition mechanism 50 both work simultaneously and continuously to respectively acquire the image information of the coiled tubing 90 wound on the tubing drum 11 and the tension information on the surface of the coiled tubing 90 in real time;
[0140] 2. The control mechanism 60 calculates the arrangement spacing distance between the coiled tubings 90 according to the image information, and calculates the surface tension of the coiled tubing 90 according to the tension information. When any of the two parameters is abnormal, a correction control instruction and / or a tension adjustment instruction is generated and sent to the actuator 70 to adjust the winding direction of the coiled tubing 90 on the tubing drum 11, and / or to control the winding speed of the drum mechanism 10 according to the tension adjustment instruction, so as to adjust the surface tension of the coiled tubing 90 between the drum mechanism 10 and the injection head 30. The specific adjustment process is as follows:
[0141] a. When the arrangement interval is abnormal and the surface tension is normal, the control mechanism 60 generates a deviation correction control instruction to control the second electromagnetic clutch 72 to be powered off, and at the same time controls the fifth electromagnetic clutch 75 to be powered on and controls one of the third electromagnetic clutch 73 or the fourth electromagnetic clutch 74 to be powered on, so that one end of the drive shaft 21 transmits the torque to the lead screw 22 through the fourth electromagnetic clutch 74 and the chain transmission structure to drive the lead screw 22 to rotate, and then turns on the drive device 80 to control the movement of the lead screw 22, so as to adjust the pipe arrangement position of the pipe arrangement mechanism 20, until the control mechanism 60 determines that the winding state of the continuous oil pipe 90 is normal according to the image information collected by the image acquisition mechanism 40;
[0142] b. When the surface tension is abnormal and the arrangement interval is normal, the control mechanism 60 generates a tension adjustment instruction, the first electromagnetic clutch 71, the second electromagnetic clutch 72, and the third electromagnetic clutch 73 are energized, and the fourth electromagnetic clutch 74 and the fifth electromagnetic clutch 75 are not energized. According to the actual situation that the tension is too large or too small, the opening of the proportional relief valve 122 is adjusted to increase or decrease the flow of hydraulic oil flowing through the hydraulic motor 121, thereby adjusting the speed of the hydraulic motor 121 to achieve the adjustment of the speed of the tubing drum 11, until the control mechanism 60 determines that the surface tension of the coiled tubing 90 is adjusted to the standard value according to the tension information of the tension collection mechanism 50;
[0143] c. When both the arrangement interval and the surface tension are abnormal, the control mechanism 60 first generates a tension adjustment instruction to control the first electromagnetic clutch 71, the second electromagnetic clutch 72, and the third electromagnetic clutch 73 to be energized, and the fourth electromagnetic clutch 74 and the fifth electromagnetic clutch 75 to be de-energized. According to the actual situation that the tension is too large or too small, the opening of the proportional relief valve 122 is adjusted to adjust the speed of the hydraulic motor 121 to adjust the speed of the tubing drum 11, so as to adjust the speed of the tubing drum 11, until the control mechanism 60 determines that the surface tension of the coiled tubing 90 is adjusted to the standard value according to the tension information of the tension collection mechanism 50; then, the control mechanism 60 generates a deviation correction control instruction to control the first electromagnetic clutch 71, the second electromagnetic clutch 72, and the third electromagnetic clutch 73 to be energized, and the fourth electromagnetic clutch 74 and the fifth electromagnetic clutch 75 to be de-energized. The second electromagnetic clutch 72 is powered off, so that the rotating shaft of the oil pipe drum 11 and the driving shaft 21 are decoupled, and at the same time, the fifth electromagnetic clutch 75 is powered on and one of the third electromagnetic clutch 73 or the fourth electromagnetic clutch 74 is powered on, so that one end of the driving shaft 21 transmits the torque output by the driving device 80 to the screw 22 through the fourth electromagnetic clutch 74 and the chain transmission structure, driving the screw 22 to rotate, and then turning on the driving device 80 to control the movement of the screw 22, thereby adjusting the pipe arrangement position of the pipe arrangement mechanism 20 until the control mechanism 60 determines that the winding state of the continuous oil pipe 90 is normal based on the image information collected by the image acquisition mechanism 40.
[0144] In summary, the present invention detects the arrangement spacing distance of the continuous oil pipe based on the image recognition technology, and can make real-time and timely adjustments to the arrangement of the oil pipe through image feedback control, so as to adjust the winding direction of the continuous oil pipe on the oil pipe drum, and effectively solve the problem of uneven arrangement of the oil pipe on the drum; at the same time, by effectively sensing the tension on the oil pipe and timely controlling the winding speed of the drum mechanism through feedback control, the surface tension of the continuous oil pipe between the drum mechanism and the injection head is adjusted, so that the oil pipe can be wound on the drum according to the preset tension standard value, and the phenomenon of loose arrangement caused by too looseness and too tightness causing the tension of the continuous oil pipe to increase, thereby causing the injection head to be subjected to excessive tension and causing displacement and other damage to the oil pipe.
[0145] The technical solution provided by the present invention is described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A coiled tubing automatic pipe arrangement control system, comprising a roller mechanism (10) and a pipe arrangement mechanism (20), It is characterized in that Also includes: An image acquisition mechanism (40) is arranged near the tubing drum (11) in the drum mechanism (10) and is used to acquire image information of the continuous tubing wound on the tubing drum (11) over time; A tension collection mechanism (50) is provided between the roller mechanism (10) and the injection head (30) and is used to obtain tension information on the surface of the coiled tubing over time; A control mechanism (60) for generating a deviation correction control instruction based on the acquired image information, and for generating a tension adjustment instruction based on the acquired tension information; The actuator (70) is used to control the working state of the pipe arrangement mechanism (20) according to the deviation correction control instruction, so as to adjust the winding direction of the continuous oil pipe on the oil pipe drum (11), and / or to control the winding speed of the drum mechanism (10) according to the tension adjustment instruction, so as to adjust the surface tension of the continuous oil pipe between the drum mechanism (10) and the injection head (30).
2. The automatic coiled tubing arrangement control system according to claim 1, It is characterized in that The actuator (70) comprises a first electromagnetic clutch (71), a second electromagnetic clutch (72), a third electromagnetic clutch (73), a fourth electromagnetic clutch (74) and a fifth electromagnetic clutch (75), and control ends of the first electromagnetic clutch (71), the second electromagnetic clutch (72), the third electromagnetic clutch (73), the fourth electromagnetic clutch (74) and the fifth electromagnetic clutch (75) are all electrically connected to the control mechanism (60), wherein: The active part of the first electromagnetic clutch (71) is connected to the output shaft of the power device (12) of the roller mechanism (10), and the driven part of the first electromagnetic clutch (71) is transmission-connected to one end of the rotating shaft of the oil pipe roller (11); The active part of the second electromagnetic clutch (72) is connected to the other end of the rotating shaft of the tubing drum (11), and the driven part of the second electromagnetic clutch (72) is transmission-connected to the driving shaft (21), and the driving shaft (21) is configured to drive the lead screw (22) in the tubing arrangement mechanism (20) to rotate so as to arrange the continuous tubing; The active part of the third electromagnetic clutch (73) and the active part of the fourth electromagnetic clutch (74) are respectively connected to the two ends of the drive shaft (21), and the driven part of the third electromagnetic clutch (73) and the driven part of the fourth electromagnetic clutch (74) are respectively connected to the two ends of the lead screw (22) in a transmission manner; The active part of the fifth electromagnetic clutch (75) is connected to the output shaft of the driving device (80), and the driving device (80) is configured to drive the tubing drum (11) or the lead screw (22) to rotate so as to adjust the tension of the continuous tubing on the tubing drum (11) or the arrangement gap of the continuous tubing. The driven part of the fifth electromagnetic clutch (75) is connected to the driving shaft (21) in a transmission manner.
3. The automatic coiled tubing arrangement control system according to claim 2, It is characterized in that The power device (12) comprises a hydraulic motor (121) and a proportional relief valve (122), wherein the hydraulic motor (121) and the proportional relief valve (122) are connected to form a closed-loop pipeline, and a control end of the proportional relief valve (122) is electrically connected to an output end of the control mechanism (60).
4. The automatic coiled tubing arrangement control system according to claim 2, It is characterized in that The driving device (80) adopts a stepping motor.
5. The automatic coiled tubing arrangement control system according to claim 2, It is characterized in that The driven member of the third electromagnetic clutch (73) and the lead screw (22), as well as the driven member of the fourth electromagnetic clutch (74) and the lead screw (22) are connected by a chain transmission structure, and the driven member of the first electromagnetic clutch (71) and the output shaft of the rotating shaft of the oil pipe drum (11), the driven member of the second electromagnetic clutch (72) and the drive shaft (21), as well as the driven member of the fifth electromagnetic clutch (75) and the drive shaft (21) are connected by a gear transmission structure.
6. The automatic coiled tubing arrangement control system according to claim 1, It is characterized in that The control mechanism (60) generates the correction control instruction according to the image information in the following steps: Step A1, performing AD conversion on the image information; Step A2, performing grayscale processing, binarization processing, and noise reduction processing on the image data after AD conversion in sequence; Step A3, performing edge processing on the image data after noise reduction using the Sobel operator to obtain the first-order gradient of the digital image; Step A4, using Laplace operator to enhance the contrast of grayscale mutations in the image data; Step A5: using the Canny operator to suppress pseudo edges caused by noise, achieve edge refinement, and obtain a coiled tubing recognition image after edge processing; Step A6: compress the obtained coiled tubing identification map into a matrix, compare the weight change in the matrix with the standard data, and calculate and generate a deviation correction control instruction if the requirements are not met.
7. The automatic coiled tubing arrangement control system according to claim 6, It is characterized in that The steps of compressing the obtained coiled tubing identification map into a matrix in step A6 are as follows: Convert the coiled tubing identification image into a grayscale image and scale it to the required size; Use Python's OpenCV image processing library to load the scaled grayscale image; Extract the gray value of each pixel in the grayscale image; Create a matrix whose number of rows and columns corresponds to the height and width of the grayscale image, and assign the extracted grayscale values to the matrix elements at the corresponding positions.
8. The automatic coiled tubing arrangement control system according to claim 6, It is characterized in that The calculation method for the change in weight in the matrix in step A6 is: D(i)=[I(t)-S(t), Where D(i) is the change in the weight in the matrix, I(i) is the pixel value in the image matrix, S(i) is the value in the standard data at the corresponding position, and i is the number of the element in the matrix; The method of comparing the change in weights in the matrix with the standard data in step A6 is: Compare the change amount with the preset threshold, if it is greater than the preset threshold, it is considered that the requirement is not met; Alternatively, the mean and standard deviation of a set of standard data are calculated, and the change is compared with the calculated mean and standard deviation to determine whether it exceeds a preset range.
9. The automatic coiled tubing arrangement control system according to any one of claims 1 to 5, It is characterized in that The control mechanism (60) generates the correction control instruction according to the image information in the following steps: Step B1, performing AD conversion on the image information; Step B2, performing noise reduction processing on the image data after AD conversion; Step B3, using the trained standard model based on the yolov5 algorithm to identify the image data after noise reduction and extract position parameters; Step B4, according to the extracted position parameters, use geometric knowledge to calculate the interval distance; Step B5: Compare the calculated interval distance with the standard data. If the interval distance is not within a preset reasonable interval, calculate and generate a deviation correction control instruction.
10. The automatic coiled tubing arrangement control system according to claim 9, It is characterized in that The steps for comparing the spacing distance with the standard data in step B5 are as follows: The difference between the spacing distance between coiled tubings and the standard data; Compare the difference with the preset tolerance range to determine whether it is within the acceptable range.
Citation Information
Cited By
Coiled tubing wellhead automatic centering operation control method based on visual identification
CN121184065A
