A method for identifying internal and external defects in magnetic flux leakage detection of oil and gas pipelines
By selecting the magnetic powder type and coating method for oil and gas pipelines and testing the coating uniformity, the problem of insufficient magnetic powder adhesion and uniformity in the existing technology is solved, and the accuracy of magnetic flux leakage internal detection and repair efficiency are improved. , providing effective defect classification and repair solutions to ensure the normal operation of oil and gas pipelines.
Patent Information
- Application Number
- CN202410918511.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-10
AI Technical Summary
Existing magnetic flux leakage internal inspection methods for oil and gas pipelines lack the appropriate selection of magnetic powder and coating methods for different types and shapes of pipelines, resulting in insufficient adhesion and uniformity of the magnetic powder, affecting the authenticity and accuracy of the inspection data, and lack of detection of defects. Type classification and repair plan analysis reduce repair efficiency and reliability.
By obtaining the basic information of oil and gas pipelines, selecting the appropriate magnetic powder type and coating method, testing the coating uniformity and repeating the coating until it is uniform, using magnetic particle testing instruments to obtain defect data, identifying defects and generating defect reports and repair reports. Visual display.
It improves the adhesion and coating uniformity of magnetic powder, reduces detection errors, improves the accuracy of defect identification and the reference of repair plans, improves repair efficiency, reduces manual work burden and time costs, and ensures the safety of oil and gas pipelines. of normal operation.
Smart Images

Figure CN118483316B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oil and gas pipeline detection, and in particular to a method for identifying internal and external defects of oil and gas pipelines through magnetic leakage internal detection. Background Art
[0002] Oil and gas pipelines refer to pipelines used to transport liquid petroleum, natural gas and their derivatives. In order to ensure the safety of oil and gas pipeline transportation, it is necessary to detect internal and external defects of the oil and gas pipelines. Magnetic leakage internal detection of oil and gas pipelines is a commonly used method. The magnetic leakage internal detection method is suitable for various types of oil and gas pipelines. It can accurately detect various defects without dismantling the pipeline, thereby improving the safety and reliability of the pipeline.
[0003] Prior art, such as a method, system and related components for magnetic flux leakage internal detection of pipelines disclosed in application No. CN115457391A, relates to the field of pipeline detection, the method comprising: obtaining a magnetic flux leakage internal detection signal obtained after the magnetic flux leakage internal detector passes through the target pipeline; generating a magnetic flux leakage curve image according to all magnetic flux leakage internal detection signals; inputting the magnetic flux leakage curve image into an image recognition model to obtain a position analysis result; adding corresponding position marks to the magnetic flux leakage curve image according to the position parameters of the target pipeline; comparing the position marks of the target pipeline with the position analysis result to obtain the final detection result; the image recognition model comprises a YOLO model and an attention model. This application generates a magnetic flux leakage curve image according to the magnetic flux leakage internal detection signal, and uses an image recognition model combined with a YOLO model and an attention model to analyze the magnetic flux leakage curve image, which can more accurately identify fine defects, obtain a position analysis result with high accuracy, and then obtain an in-depth and accurate final detection result.
[0004] For the above scheme, there are at least the following deficiencies: 1. The magnetic powder and coating method suitable for pipelines of different types and shapes are also different. The appropriate magnetic powder type and coating method can increase the adhesion and coating uniformity of the magnetic powder, reduce the risk of magnetic powder falling off, and improve the accuracy of detection and identification. However, the above scheme does not select a targeted magnetic powder type and coating method for the pipeline, so that the good adhesion and uniformity of the magnetic powder cannot be guaranteed, and the authenticity of the detection data cannot be guaranteed, and the accuracy of the defect identification results cannot be improved. In addition, the prior art lacks the detection of the coating uniformity of the magnetic powder before the detection in the pipeline after the magnetic powder coating is completed, which cannot ensure the uniformity of the magnetic powder, cannot ensure the reliability of the detection data, and reduces the reference of the defect identification results. 2. Defect identification requires the classification of the defect type and the selection of the repair method according to the defect type. However, in the above scheme, after the defect is identified, there is a lack of classification of the defect, and there is no analysis of the defect repair plan, which cannot provide an effective reference for the repair personnel during the repair, thereby failing to improve the repair efficiency of the repair personnel, and cannot reduce the manual workload and time cost, and also affects the normal operation of the oil and gas pipeline. Summary of the invention
[0005] In view of the above-mentioned technical deficiencies, the object of the present invention is to provide a method for identifying internal and external defects in oil and gas pipeline magnetic leakage detection.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions: The present invention provides a method for identifying internal and external defects of oil and gas pipelines by magnetic leakage internal detection, comprising the following steps: S1, obtaining basic information of the oil and gas pipeline to be detected, and selecting the type and coating method of magnetic powder of the oil and gas pipeline to be detected;
[0007] S2, coating the oil and gas pipeline to be inspected with magnetic powder according to the type and coating method of the magnetic powder of the oil and gas pipeline to be inspected. After the coating is completed, the powder coating data of the oil and gas pipeline to be inspected is detected, and whether the magnetic powder coating of the oil and gas pipeline to be inspected is uniform is analyzed. If it is not uniform, the magnetic powder coating is repeated until the magnetic powder coating is uniform;
[0008] S3. Use a magnetic particle testing instrument to obtain a magnetic particle image of the oil and gas pipeline to be tested, and identify defect data of the oil and gas pipeline to be tested;
[0009] S4. Generate a defect report and a repair report of the oil and gas pipeline to be inspected based on the defect data of the oil and gas pipeline to be inspected, and display them visually.
[0010] The beneficial effects of the present invention are as follows: the present invention provides a method for identifying internal and external defects in magnetic leakage detection of oil and gas pipelines. First, according to the basic information of the oil and gas pipelines, the type and coating method of the magnetic powder of the oil and gas pipelines are selected, and after the coating is completed, the uniformity of the coating is detected. If it is uneven, the coating is repeated until the coating is uniform. After the coating is completed, the magnetic powder image in the oil and gas pipeline is detected, and then the defect data in the pipeline is identified from the image, and a defect report and a repair report are generated for each defect type, which solves the problems of defect detection before defect detection, identification of defect types and analysis of repair solutions after identification in the prior art, improves the adhesion of magnetic powder on the pipeline during detection and the uniformity of coating, reduces the risk of magnetic powder falling off, improves the accuracy and authenticity of detection and identification, and also improves the accuracy and reference of defect identification results, classifies defects and analyzes defect repair solutions, and provides effective reference for repair personnel during repair, thereby improving the repair efficiency of repair personnel, reducing manual workload and time costs, reducing the repair time of oil and gas pipelines, and ensuring the normal operation of oil and gas pipelines. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0012] Figure 1 The present invention is a schematic flow chart of the steps for implementing the method. DETAILED DESCRIPTION
[0013] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0014] See also Figure 1 As shown, a method for identifying internal and external defects of oil and gas pipelines by magnetic leakage internal detection includes the following steps: S1, obtaining basic information of the oil and gas pipeline to be detected, and selecting the type and coating method of magnetic powder of the oil and gas pipeline to be detected.
[0015] Among them, the basic information includes material, size, roughness and shape. By querying the basic information of the oil and gas pipeline stored in the oil and gas pipeline management system, the basic information of the oil and gas pipeline to be inspected can be obtained.
[0016] The materials of oil and gas pipelines include but are not limited to steel pipelines and steel-plastic composite pipelines.
[0017] Magnetic powder types include ferrite powder, NdFeB powder and ferrite powder etc.
[0018] Coating methods include dry powder method, wet powder method, dipping method and rubber powder method; Dry powder method: Use coating equipment to evenly spray or apply dry magnetic powder on the pipe surface. Wet powder method: Magnetic powder is mixed with liquid to form magnetic liquid, and then the magnetic liquid is evenly coated on the pipe surface using coating equipment. Dipping method: Dissolve magnetic powder in a suitable solvent, and then use coating equipment to coat the solution on the pipe surface. Rubber powder method: Mix magnetic powder with adhesive or resin to form a viscous magnetic coating, and then use coating equipment to coat it on the pipe surface.
[0019] In a specific embodiment, the process of selecting the magnetic powder type and coating method of the oil and gas pipeline to be inspected is as follows: obtaining the basic information of the pipeline corresponding to each historical defect identification, the magnetic powder type, coating method, coating times and coating uniformity assessment coefficient from the defect identification record.
[0020] It should be noted that the coating uniformity assessment coefficient is the coating uniformity assessment coefficient after the first coating is completed.
[0021] The material, size, roughness and shape are obtained from the basic information of the pipeline corresponding to each historical defect identification, and the material, size, roughness and shape are obtained from the basic information of the oil and gas pipeline to be inspected; the material of the pipeline corresponding to each historical defect identification is compared with the material of the oil and gas pipeline to be inspected. If the material of the pipeline corresponding to a historical defect identification is the same as the material of the oil and gas pipeline to be inspected, the pipeline corresponding to the historical defect identification is used as a reference pipeline, thereby obtaining each reference pipeline.
[0022] According to the size and roughness of each reference pipeline and the size and roughness of the oil and gas pipeline to be tested, the first similarity between each reference pipeline and the oil and gas pipeline to be tested is calculated, and according to the number of coating times and the coating uniformity evaluation coefficient of each reference pipeline, the second similarity between each reference pipeline and the oil and gas pipeline to be tested is analyzed. According to the first similarity between each reference pipeline and the oil and gas pipeline to be tested and the coating effect value of each reference pipeline, the type of magnetic powder of the oil and gas pipeline to be tested is confirmed.
[0023] In the above, the first similarity between each reference pipeline and the oil and gas pipeline to be detected is calculated in the following specific process: the size and roughness corresponding to each reference pipeline are recorded as , , f represents the number of each reference pipeline, f=1,2,......,r, r represents the total number of reference pipelines, and both f and r are positive integers.
[0024] By analyzing the formula and , and obtain the pipeline size fluctuation rate and roughness fluctuation rate , where , They represent the size and roughness corresponding to the f-th reference pipe respectively.
[0025] By analyzing the formula and , get the size weight coefficient , Roughness weight coefficient .
[0026] According to the calculation formula , get the first similarity between the fth reference pipeline and the oil and gas pipeline to be detected , where C and Z represent the size and roughness of the oil and gas pipeline to be inspected, respectively. , They are the set size weight coefficient and roughness weight coefficient respectively.
[0027] In the above, the coating effect value of each reference pipeline is analyzed, and the specific process is as follows: the minimum coating number and the maximum coating uniformity evaluation coefficient are selected from the coating number and the coating uniformity evaluation coefficient of each reference pipeline as the reference coating number and the reference coating uniformity evaluation coefficient, which are recorded as TF and JY respectively;
[0028] By analyzing the formula and , and obtain the coating frequency fluctuation rate and coating uniformity assessment coefficient fluctuation , where , They respectively represent the number of coating times and coating uniformity evaluation coefficient corresponding to the f-th reference pipe.
[0029] According to the calculation formula and , get the coating times weight coefficient , coating uniformity assessment coefficient weight coefficient .
[0030] Based on analytical formula , get the coating effect value of the fth reference pipe , where e represents a natural constant.
[0031] In a specific embodiment, the specific process of confirming the type of magnetic powder of the oil and gas pipeline to be inspected is as follows: comparing the first similarity between each reference pipeline and the oil and gas pipeline to be inspected with a preset first similarity threshold, and taking each reference pipeline whose first similarity is greater than or equal to the first similarity threshold as each preliminary screening pipeline.
[0032] It should be noted that the first similarity threshold is set by the pipeline engineer.
[0033] The coating effect value of each pre-screened pipeline is extracted, and the pre-screened pipeline with the maximum coating effect value is selected as the target pipeline. The magnetic powder type of the target pipeline is extracted and used as the magnetic powder type of the oil and gas pipeline to be tested.
[0034] According to the shape of each reference pipeline and the shape of the oil and gas pipeline to be detected, the second similarity of each reference pipeline is analyzed, and according to the first similarity, the second similarity and the coating effect value of each reference pipeline and the oil and gas pipeline to be detected, the coating method of the oil and gas pipeline to be detected is confirmed.
[0035] In the above, the specific process of confirming the coating method of the oil and gas pipeline to be tested is as follows: extract the shape of each reference pipeline and compare it with the shape of the oil and gas pipeline to be tested, and count the area of each reference pipeline with the corresponding shape of the oil and gas pipeline to be tested, which is recorded as , according to the analytical formula , and obtain the second similarity between the fth reference pipeline and the oil and gas pipeline to be detected , where S represents the area corresponding to the oil and gas pipeline to be inspected.
[0036] It should be noted that a camera can be used to capture the apparent image of each reference pipeline and the apparent image of the oil and gas pipeline to be detected, and the shape of each reference pipeline and the shape of the oil and gas pipeline to be detected can be respectively identified from the apparent image of each reference pipeline and the apparent image of the oil and gas pipeline to be detected through computer image recognition technology. Then, the shape of each reference pipeline is compared with the shape of the oil and gas pipeline to be detected through image processing technology to obtain the area where the shape of each reference pipeline is the same as the shape of the oil and gas pipeline to be detected, and the area where the shape of each reference pipeline is the same as the shape of the oil and gas pipeline to be detected is extracted as the area where the corresponding shape of each reference pipeline is the same as the shape of the oil and gas pipeline to be detected.
[0037] The second similarity between each primary screening pipeline and the oil and gas pipeline to be detected is extracted and compared with a preset second similarity threshold, and each primary screening pipeline whose second similarity is greater than or equal to the second similarity threshold is used as each secondary screening pipeline.
[0038] It should be noted that the second similarity threshold is set by the pipeline engineer.
[0039] The coating effect value of each medium screen pipeline is extracted, the medium screen pipeline corresponding to the maximum coating effect value is selected as the reference pipeline, and the coating method corresponding to the reference pipeline is extracted as the coating method of the oil and gas pipeline to be tested.
[0040] S2. Coating the oil and gas pipeline to be inspected with magnetic powder according to the type and coating method of the magnetic powder of the oil and gas pipeline to be inspected. After the coating is completed, the powder coating data of the oil and gas pipeline to be inspected is detected, and it is analyzed whether the magnetic powder coating of the oil and gas pipeline to be inspected is uniform. If it is not uniform, the magnetic powder coating is repeated until the magnetic powder coating is uniform.
[0041] In a specific embodiment, the powder coating data of the oil and gas pipeline to be inspected is detected, and the specific detection process is as follows: the oil and gas pipeline to be inspected is divided into detection areas according to a preset area, the surface image of each detection area is obtained, and whether the appearance of each detection area is flat is analyzed. If the appearance of a certain detection area is flat, the detection points are evenly arranged according to the preset spacing. If the appearance of a certain detection area is uneven, a number of target points are evenly arranged in the detection area, and the curvature of each target point is obtained. The target points with a curvature greater than the preset curvature are selected as the detection points. At the same time, each detection point is used as the starting point, and a number of detection points are arranged according to the preset spacing, thereby arranging the detection points in each detection area.
[0042] It should be noted that the apparent image of each detection area is collected by a camera.
[0043] In the above, the specific process of analyzing whether the appearance of each detection area is flat is as follows: from the highest point height and the lowest point height of each detection area in the apparent image of each detection area, the highest point height is subtracted from the lowest point height to obtain the height difference of each detection area, and the height difference of each detection area is compared with a preset height difference threshold. When the height difference of a detection area is less than the preset height difference threshold, it indicates that the appearance of the detection area is flat, otherwise it indicates that the appearance of the detection area is uneven.
[0044] It should also be added that when the surface of a certain detection area is uneven, the surface image of the detection area is uploaded to a computer, a shape image of the detection area is constructed, and the curvature of each target point is obtained from the shape image.
[0045] It should be noted that the preset curvature and the preset height difference threshold are both set by pipeline engineers.
[0046] The powder coating data of each detection point in each detection area is collected by a magnetic particle detection instrument as the powder coating data of the oil and gas pipeline to be detected.
[0047] It should be noted that the powder coating data includes signal strength and signal type, etc. The magnetic particle testing instrument collects signals at each detection point in each detection area through digital processing to obtain the signal strength and signal type at each detection point in each detection area.
[0048] In another specific embodiment, the analysis of whether the magnetic powder coating of the oil and gas pipeline to be inspected is uniform is performed by the following specific calculation process: the powder coating data of each inspection point in each inspection area is recorded as , where i represents the number of each detection area, i=1,2,......,m, m represents the number of detection areas, q represents the number of detection points, q=1,2,......,p, i, m, q and p are all positive integers.
[0049] The powder coating data between each detection point in each detection area are calculated by difference, and the maximum difference is selected as the maximum powder coating data difference of each detection area, which is recorded as , and obtain the standard powder coating data, permitted powder coating data difference and standard uniformity evaluation coefficient of the oil and gas pipeline to be tested, which are recorded as , and .
[0050] It should be noted that the powder coating data, powder coating data difference and standard uniform assessment coefficient of the pipeline corresponding to each historical repair are obtained from the repair records, and the powder coating data, powder coating data difference and standard uniform assessment coefficient of the pipeline corresponding to each historical repair are calculated by the mean respectively, to obtain the standard powder coating data, permitted powder coating data difference and standard uniform assessment coefficient of the oil and gas pipeline to be inspected.
[0051] Among them, the standard uniformity assessment coefficient is the standard quantitative value corresponding to the quantified value of the analysis result when analyzing whether the powder coating is uniform. It represents the standard value or critical value of the powder coating uniformity and is used to judge whether the pipeline powder coating is uniform. The standard uniformity assessment coefficient takes an integer value. For example, when analyzing whether the powder coating is uniform, the quantified value of the analysis result is 100, and the standard quantitative value corresponding to the quantified value of the result is 120. If 100 is less than 120, it indicates that the powder coating is uneven.
[0052] Expression for the model by uniform evaluation: , and obtain the uniform coating result of magnetic powder on the oil and gas pipeline to be tested , where , They are respectively the weight coefficient of the set powder coating data and the weight coefficient of the maximum powder coating data difference.
[0053] The uniformity result of the magnetic powder coating of the oil and gas pipeline to be inspected includes the values of 1 and -1. When the uniformity result of the magnetic powder coating of the oil and gas pipeline to be inspected is 1, it indicates that the magnetic powder coating of the oil and gas pipeline to be inspected is uniform; when the uniformity result of the magnetic powder coating of the oil and gas pipeline to be inspected is -1, it indicates that the magnetic powder coating of the oil and gas pipeline to be inspected is uneven.
[0054] S3. Use a magnetic particle inspection instrument to obtain a magnetic particle image of the oil and gas pipeline to be inspected, and identify defect data of the oil and gas pipeline to be inspected.
[0055] In a specific embodiment, the specific process of identifying the defect data of the oil and gas pipeline to be inspected is as follows: the magnetic particle image of the oil and gas pipeline to be inspected is used through computer image recognition technology to obtain images of each abnormal magnetic particle deposition area, and the images of each abnormal magnetic particle deposition area are compared with the characteristic images of each type of defects. If the image of a certain abnormal magnetic particle deposition area is the same as the characteristic image of a certain type of defect, then this type of defect is used as the defect type of the abnormal magnetic particle deposition area, and the defect shape, position and area of the abnormal magnetic particle deposition area are recorded, thereby obtaining the defect type, defect shape, position and area of each abnormal magnetic particle deposition area in the oil and gas pipeline to be inspected, and using them as the defect data of the oil and gas pipeline to be inspected.
[0056] It should be noted that defect types include cracks and corrosion.
[0057] S4. Generate a defect report and a repair report of the oil and gas pipeline to be inspected based on the defect data of the oil and gas pipeline to be inspected, and display them visually.
[0058] In a specific embodiment, the defect report and repair report of the oil and gas pipeline to be inspected are generated, and the specific process is as follows: the defect data of the oil and gas pipeline to be inspected is imported into a preset defect report template to obtain the defect report of the oil and gas pipeline to be inspected.
[0059] The basic information of the pipeline corresponding to each historical repair, the type of each defect, the shape of each defect, the area of each defect and the repair plan are obtained from the repair record, and then the repair plan of each abnormal magnetic powder deposition area in the oil and gas pipeline to be inspected is obtained. Then, the repair plan and position of each abnormal magnetic powder deposition area in the oil and gas pipeline to be inspected are imported into a preset repair report template to obtain a repair report for the oil and gas pipeline to be inspected.
[0060] In the above, the repair scheme for each abnormal magnetic powder deposition area in the oil and gas pipeline to be detected is obtained, and the specific process is as follows: the basic information of the pipeline corresponding to each historical repair is compared with the basic information of the oil and gas pipeline to be detected. If the basic information of the pipeline corresponding to a certain historical repair is the same as the basic information of the oil and gas pipeline to be detected, then the historical repair is used as a reference repair to obtain each reference repair; the type, shape and area of each defect of each reference repair are compared with the defect type, defect shape and area of each abnormal magnetic powder deposition area. If the defect type, shape and area of a certain reference repair are the same as the defect type, defect shape and area of a certain magnetic powder deposition area, then the reference repair is used as the target repair of the abnormal magnetic powder deposition area, thereby obtaining each target repair of each abnormal magnetic powder deposition area, extracting the repair scheme of each target repair corresponding to each abnormal magnetic powder deposition area, comparing the repair schemes of each abnormal magnetic powder deposition area corresponding to each target repair, and selecting the overlapping part between the repair schemes of each abnormal magnetic powder deposition area corresponding to each target repair as the repair scheme corresponding to each abnormal magnetic powder deposition area.
[0061] The embodiment of the present invention first selects the type and coating method of the magnetic powder of the oil and gas pipeline according to the basic information of the oil and gas pipeline, and after the coating is completed, detects the uniformity of the coating. If it is uneven, repeats the coating until the coating is uniform. After the coating is completed, detects the magnetic powder image in the oil and gas pipeline, and then identifies the defect data in the pipeline from the image, and generates a defect report and a repair report for each defect type, thereby solving the problems of defect detection before defect detection, identification of defect types and analysis of repair solutions after identification in the prior art, improving the adhesion of magnetic powder on the pipeline during detection and the uniformity of coating, reducing the risk of magnetic powder falling off, improving the accuracy and authenticity of detection and identification, and also improving the accuracy and reference of defect identification results, classifying defects and analyzing defect repair solutions, providing effective reference for repair personnel during repair, thereby improving the repair efficiency of repair personnel, reducing manual workload and time cost, reducing the repair time of oil and gas pipelines, and ensuring the normal operation of oil and gas pipelines.
[0062] The above contents are merely examples and explanations of the concept of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined in this specification, they shall all fall within the protection scope of the present invention.
Claims
1. A method for identifying internal and external defects in oil and gas pipeline magnetic leakage detection, characterized in that: The steps include: S1. Obtain basic information of the oil and gas pipeline to be inspected, and select the type and coating method of magnetic powder of the oil and gas pipeline to be inspected; The specific process of selecting the type of magnetic powder and coating method for the oil and gas pipeline to be inspected is as follows: Obtain basic information of the pipeline corresponding to each historical defect identification, magnetic powder type, coating method, coating times and coating uniformity evaluation coefficient from the defect identification record; The material, size, roughness and shape are obtained from the basic information of the pipeline corresponding to each historical defect identification, and the material, size, roughness and shape are obtained from the basic information of the oil and gas pipeline to be inspected; the material of the pipeline corresponding to each historical defect identification is compared with the material of the oil and gas pipeline to be inspected. If the material of the pipeline corresponding to a historical defect identification is the same as the material of the oil and gas pipeline to be inspected, the pipeline corresponding to the historical defect identification is used as a reference pipeline, thereby obtaining each reference pipeline; According to the size and roughness of each reference pipeline and the size and roughness of the oil and gas pipeline to be detected, the first similarity between each reference pipeline and the oil and gas pipeline to be detected is calculated, and according to the number of coating times and the coating uniformity evaluation coefficient of each reference pipeline, the coating effect value of each reference pipeline is analyzed, and according to the first similarity between each reference pipeline and the oil and gas pipeline to be detected and the coating effect value of each reference pipeline, the type of magnetic powder of the oil and gas pipeline to be detected is confirmed; Analyzing the second similarity of each reference pipeline according to the shape of each reference pipeline and the shape of the oil and gas pipeline to be detected, and confirming the coating method of the oil and gas pipeline to be detected according to the first similarity, the second similarity and the coating effect value of each reference pipeline; The specific process of calculating the first similarity between each reference pipeline and the oil and gas pipeline to be detected is as follows: The size and roughness of each reference pipe are recorded as , , f represents the number of each reference pipeline, f=1,2,......,r, r represents the total number of reference pipelines, and both f and r are positive integers; By analyzing the formula and , and obtain the pipeline size fluctuation rate and roughness fluctuation rate , where , They represent the size and roughness corresponding to the f-1th reference pipe respectively; By analyzing the formula and , get the size weight coefficient , Roughness weight coefficient ; According to the calculation formula , get the first similarity between the fth reference pipeline and the oil and gas pipeline to be detected , where C and Z represent the size and roughness of the oil and gas pipeline to be inspected, respectively. , They are the set size weight coefficient and roughness weight coefficient respectively; Analyze the coating effect values of each reference pipeline. The specific process is as follows: Select the minimum coating times and the maximum coating uniformity evaluation coefficient from the coating times and coating uniformity evaluation coefficients of each reference pipeline as the reference coating times and the reference coating uniformity evaluation coefficient, which are denoted as TF and JY respectively; By analyzing the formula and , and obtain the coating frequency fluctuation rate and coating uniformity assessment coefficient fluctuation , where , They represent the coating times and coating uniformity evaluation coefficient corresponding to the f-1th reference pipe respectively; According to the calculation formula and , get the coating times weight coefficient , coating uniformity assessment coefficient weight coefficient ; Based on analytical formula , get the coating effect value of the fth reference pipe , where e represents a natural constant; The specific process of confirming the type of magnetic powder of the oil and gas pipeline to be inspected is as follows: Compare the first similarity between each reference pipeline and the oil and gas pipeline to be detected with a preset first similarity threshold, and use each reference pipeline whose first similarity is greater than or equal to the first similarity threshold as each preliminary screening pipeline; Extract the coating effect value of each pre-screened pipeline, select the pre-screened pipeline with the maximum coating effect value as the target pipeline, extract the magnetic powder type of the target pipeline, and use it as the magnetic powder type of the oil and gas pipeline to be tested; The specific process of confirming the coating method of the oil and gas pipeline to be inspected is as follows: The shape of each reference pipeline is extracted and compared with the shape of the oil and gas pipeline to be detected. The area of the reference pipeline with the same shape as the oil and gas pipeline to be detected is counted and recorded as , according to the analytical formula , and obtain the second similarity between the fth reference pipeline and the oil and gas pipeline to be detected , where S represents the area corresponding to the oil and gas pipeline to be inspected; Extracting the second similarity between each primary screening pipeline and the oil and gas pipeline to be detected, and comparing it with a preset second similarity threshold, and taking each primary screening pipeline whose second similarity is greater than or equal to the second similarity threshold as each secondary screening pipeline; Extract the coating effect value of each medium screen pipeline, select the medium screen pipeline corresponding to the maximum coating effect value as the reference pipeline, and extract the coating method corresponding to the reference pipeline as the coating method of the oil and gas pipeline to be tested; S2, coating the oil and gas pipeline to be inspected with magnetic powder according to the type and coating method of the magnetic powder of the oil and gas pipeline to be inspected. After the coating is completed, the powder coating data of the oil and gas pipeline to be inspected is detected, and whether the magnetic powder coating of the oil and gas pipeline to be inspected is uniform is analyzed. If it is not uniform, the magnetic powder coating is repeated until the magnetic powder coating is uniform; S3. Use a magnetic particle testing instrument to obtain a magnetic particle image of the oil and gas pipeline to be tested, and identify defect data of the oil and gas pipeline to be tested; S4. Generate a defect report and a repair report of the oil and gas pipeline to be inspected based on the defect data of the oil and gas pipeline to be inspected, and display them visually.
2. The method for identifying internal and external defects of oil and gas pipelines by magnetic flux leakage detection according to claim 1 is characterized in that: The specific detection process of detecting the powder coating data of the oil and gas pipeline to be detected is as follows: Divide the oil and gas pipeline to be inspected into various inspection areas according to the preset area, obtain the apparent image of each inspection area, analyze whether the appearance of each inspection area is flat, if the appearance of a certain inspection area is flat, evenly arrange the inspection points according to the preset spacing, if the appearance of a certain inspection area is uneven, evenly arrange a number of target points in the inspection area, obtain the curvature of each target point, select each target point with a curvature greater than the preset curvature as each inspection point, and at the same time, take each inspection point as the starting point, and arrange a number of inspection points according to the preset spacing, thereby arranging each inspection point in each inspection area; The powder coating data of each detection point in each detection area is collected by a magnetic particle detection instrument as the powder coating data of the oil and gas pipeline to be detected.
3. The method for identifying internal and external defects of oil and gas pipelines by magnetic flux leakage detection according to claim 2 is characterized in that: The analysis of whether the magnetic powder coating of the oil and gas pipeline to be tested is uniform is carried out by the following specific calculation process: The powder coating data of each test point in each test area is recorded as , where i represents the number of each detection area, i=1,2,......,m, m represents the number of detection areas, q represents the number of detection points, q=1,2,......,p, i, m, q and p are all positive integers; The powder coating data between each detection point in each detection area are calculated by difference, and the maximum difference is selected as the maximum powder coating data difference of each detection area, which is recorded as , and obtain the standard powder coating data, permitted powder coating data difference and standard uniformity evaluation coefficient of the oil and gas pipeline to be tested, which are recorded as , and ; Expression for the model by uniform evaluation: , and obtain the uniform coating result of magnetic powder on the oil and gas pipeline to be tested , where , They are respectively the weight coefficient of the set powder coating data and the weight coefficient of the maximum powder coating data difference; The uniformity result of the magnetic powder coating of the oil and gas pipeline to be inspected includes the values of 1 and -1. When the uniformity result of the magnetic powder coating of the oil and gas pipeline to be inspected is 1, it indicates that the magnetic powder coating of the oil and gas pipeline to be inspected is uniform; when the uniformity result of the magnetic powder coating of the oil and gas pipeline to be inspected is -1, it indicates that the magnetic powder coating of the oil and gas pipeline to be inspected is uneven.
4. The method for identifying internal and external defects of oil and gas pipelines by magnetic flux leakage detection according to claim 1 is characterized in that: The specific process of identifying the defect data of the oil and gas pipeline to be inspected is as follows: The magnetic particle image of the oil and gas pipeline to be inspected is used through computer image recognition technology to obtain images of various magnetic particle abnormal deposition areas, and the images of various magnetic particle abnormal deposition areas are compared with the characteristic images of various defects. If the image of a certain magnetic particle abnormal deposition area is the same as the characteristic image of a certain type of defect, then this type of defect is used as the defect type of the magnetic particle abnormal deposition area, and the defect shape, position and area of the magnetic particle abnormal deposition area are recorded. Thus, the defect type, defect shape, position and area of each magnetic particle abnormal deposition area in the oil and gas pipeline to be inspected are obtained and used as the defect data of the oil and gas pipeline to be inspected.
5. The method for identifying internal and external defects of oil and gas pipelines by magnetic flux leakage detection according to claim 1 is characterized in that: The specific process of generating the defect report and repair report of the oil and gas pipeline to be inspected is as follows: Importing the defect data of the oil and gas pipeline to be inspected into a preset defect report template to obtain a defect report of the oil and gas pipeline to be inspected; The basic information of the pipeline corresponding to each historical repair, the type of each defect, the shape of each defect, the area of each defect and the repair plan are obtained from the repair record, and then the repair plan of each abnormal magnetic powder deposition area in the oil and gas pipeline to be inspected is obtained. Then, the repair plan and position of each abnormal magnetic powder deposition area in the oil and gas pipeline to be inspected are imported into a preset repair report template to obtain a repair report for the oil and gas pipeline to be inspected.
