Pipeline anomaly identification method and system based on improved FasterX
By introducing technologies such as AFPN and MPDIoU in the FasterX model, the problems of semantic gap in dimensional feature and inaccurate IOU calculations in pipeline exception recognition are solved, the recognition accuracy and robustness are improved, and efficient real-time monitoring of pipeline exceptions is achieved and Early warning.
Patent Information
- Application Number
- CN202410710731.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-06-04
AI Technical Summary
The existing FasterX model has a semantic gap between dimensional features in pipeline exception recognition, resulting in low recognition accuracy and inaccurate IOU calculation method when dealing with special circumstances.
The FPN network using AFPN network to replace the FasterX model, the IOU function is replaced by MPDIoU function, and combined with EfficientNet as the basic backbone network, the feature pyramid structure and multi-scale prediction IoU mechanism are introduced, and data enhancement is carried out through the NAdam algorithm and the custom loss function optimization model. and real-time identification.
It improves the accuracy and robustness of pipeline abnormality identification, enhances the detection ability of targets at different scales, realizes real-time monitoring and early warning, and reduces accident risks and production interruptions.
Smart Images

Figure CN118279313B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent metallurgical engineering, and in particular to a pipeline anomaly recognition method and system based on improved FasterX. Background Art
[0002] In the process of mineral processing, there are some specific working conditions, such as high-altitude areas, long-distance pipelines, and high-temperature areas, which are challenging for inspection work. Traditional inspection methods often require manual work, which is not only inefficient, but may also pose a threat to personnel safety in some dangerous environments. In order to solve these problems, we conducted field investigations and surveys and found that drones can effectively meet these challenges. Drones are flexible and fast, which can greatly improve the accuracy and efficiency of inspections. Through wireless positioning cruise and binocular visual positioning assistance, drones can effectively solve the problem of inspection trajectories. In addition, drone equipment can also be equipped with key detectors such as zoom high-definition visible light gimbals and aerial infrared thermal imagers to further improve the accuracy of inspections.
[0003] However, despite the great potential of drones in inspection work, there are still some problems in practical applications. For example, there are some limitations in the FPN and IOU calculation methods in FasterX. FPN is very effective in extracting multi-scale information, but most FPN-based methods have semantic gaps between various size features before feature fusion, which may lead to feature maps with significant aliasing. In addition, the IOU calculation method in FasterX may not get accurate results when dealing with some special cases. Summary of the invention
[0004] The present invention provides a pipeline anomaly recognition method and system based on improved FasterX, which is used to solve the technical problem of low recognition accuracy caused by semantic gaps between dimensional features in the existing drone inspection method based on the FasterX model.
[0005] In order to solve the above technical problems, the technical solution proposed by the present invention is:
[0006] A pipeline anomaly identification method based on improved FasterX includes the following steps:
[0007] Taking the FasterX model as the basic framework, the FPN network of the FasterX model is replaced by the AFPN network, and the IoU function of the FasterX model is replaced by the MPDIoU function to build a pipeline anomaly recognition model.
[0008] The pipeline anomaly recognition model is trained, and pipeline anomalies are recognized using the trained pipeline anomaly recognition model.
[0009] Preferably, the pipeline anomaly recognition model uses the convolutional neural network EfficientNet as the basic backbone network, the feature pyramid structure as the multi-scale feature extraction network, and the AFPN network as the feature fusion network.
[0010] Preferably, the pipeline anomaly recognition model uses the MPDIoU mechanism to predict the target bounding box at multiple scales and calculate the IoU.
[0011] Preferably, the pipeline anomaly recognition model is trained using the NAdam algorithm.
[0012] Preferably, in the process of training the pipeline anomaly recognition model using the NAdam algorithm, back propagation is performed using a custom loss function and the NAdam optimization algorithm, and the cosine annealing learning rate adjustment method is combined to continuously correct the network parameters during the training process and gradually reduce the loss function.
[0013] Preferably, the loss function during training is specifically: classification loss;
[0014] The classification loss is used to measure the model's recognition of the target category, and the cross entropy loss function is used to measure the model's classification accuracy for each category.
[0015] Preferably, training the pipeline anomaly recognition model comprises the following steps:
[0016] Constructing an initial set, wherein the initial set includes pipeline images of different abnormal categories in different scenarios;
[0017] Divide the initial set into training set and test set according to the preset ratio;
[0018] Perform data augmentation operations on single-sample pipeline images in the training set, as well as CutMix mixed data augmentation operations on multiple samples, and perform data preprocessing on the enhanced training set;
[0019] The pipeline anomaly recognition model is trained using the preprocessed training set, and the trained pipeline anomaly recognition model is tested using the test set. When the test accuracy of the pipeline anomaly recognition model reaches a preset value, the currently trained pipeline anomaly recognition model is used as the trained pipeline anomaly recognition model.
[0020] Preferably, the abnormal category includes one or any combination of the following:
[0021] Pipeline corrosion, leakage, deformation, foreign matter;
[0022] The data enhancement operation includes one or any combination of the following:
[0023] Random cropping, rotation, scaling, horizontal flipping, vertical flipping, and random adjustment of brightness, contrast, and color.
[0024] Preferably, identifying pipeline anomalies using a trained pipeline anomaly recognition model includes:
[0025] The trained pipeline anomaly recognition model is installed in the drone inspection system to monitor and identify pipeline anomalies in real time.
[0026] A computer system comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the computer program.
[0027] The present invention has the following beneficial effects:
[0028] 1. The present invention introduces AFPN and MPDIoU to optimize the structure of FasterX, and identifies pipeline corrosion, pipeline leakage, and pipeline deformation. These improvements can not only improve the inspection efficiency of drones, but also improve the accuracy of inspections.
[0029] 2. In the preferred embodiment, the present invention introduces a multi-scale prediction IoU mechanism to enhance the detection capability of pipeline abnormal targets at different scales. This means that even at different distances and scales, the detection of pipeline abnormalities is more robust and reliable.
[0030] 3. In the preferred embodiment, the data enhancement strategy of the present invention improves the diversity of the training data set, enables the model to be better generalized to different scenarios, reduces the need for a large amount of labeled data, and improves data utilization.
[0031] 4. In the preferred embodiment, the present invention is combined with a real-time identification and monitoring system to promptly detect abnormal conditions in the pipeline, achieve real-time monitoring and early warning, and help reduce potential accident risks and production interruptions.
[0032] 5. In the preferred embodiment, the present invention improves the model training through optimization algorithms such as NAdam, thereby increasing the convergence speed and stability of the model, speeding up the training process, and improving the efficiency of the model.
[0033] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0035] Figure 1 A structural diagram of a pipeline anomaly recognition model provided by an embodiment of the present invention;
[0036] Figure 2 A pipeline leakage detection diagram provided in an embodiment of the present invention, wherein the box indicates the leakage location. DETAILED DESCRIPTION
[0037] The embodiments of the present invention are described in detail below with reference to the accompanying drawings, but the present invention can be implemented in many different ways as defined and covered by the claims.
[0038] Embodiment 1:
[0039] We proposed a pipeline drone inspection method based on improved FasterX, introduced AFPN, MPDIoU and other methods to optimize the structure of FasterX, and identified pipeline corrosion, pipeline leakage, and pipeline deformation. The structure of the pipeline anomaly recognition model of the present invention is shown in Figure 1 .
[0040] AFPN is a method for extracting multi-scale features of objects with scale variations, which avoids the loss of feature information and semantic gaps between non-adjacent layers through a fusion process. AFPN first starts by fusing two adjacent low-level features, and then gradually incorporates high-level features into the fusion process. Multi-target information conflicts may arise during the feature fusion process at each spatial location, and AFPN further utilizes adaptive spatial fusion operations to alleviate these inconsistencies. MPDIoU is a loss function for bounding box regression, which compares the aspect ratio of the predicted box with the true box and penalizes the deviation of width and height.
[0041] The specific steps of the present invention are as follows:
[0042] Step 1: Data Collection
[0043] Before conducting a pipeline drone inspection, the data collection process is first performed. Image data of the pipeline system is obtained through drones, ground sensors, or other devices. Abnormal categories can include but are not limited to: pipeline corrosion, leakage, deformation, foreign matter, etc. The collected data should contain samples of multiple scenarios and various abnormal situations.
[0044] Step 2: Dataset Division
[0045] The initial set is divided into training set and test set according to a specific ratio. Ensure that the training set and test set can fully represent various abnormal situations and pipeline scenarios to ensure the generalization ability and accuracy of the model.
[0046] Step 3: Perform data enhancement operations such as random cropping, rotation, scaling, horizontal flipping, vertical flipping, and random adjustment of brightness, contrast, and color on the single-sample visual images and infrared images in the training set in step 2, as well as CutMix mixed data enhancement operations on multiple samples, and perform data preprocessing on the enhanced training set; normalize the sound and vibration signals.
[0047] In this implementation, the image is randomly cropped at a ratio of 30%, with a rotation angle range of -60 to 60, and a brightness and contrast of 50% to 150%; this is used as data enhancement for the training image dataset to expand the diversity of the data.
[0048] In this implementation, the image data is uniformly scaled to 224*224 size as the input of the model, and the image data is normalized. The value of makes the pixel values distributed in the range [-1, 1].
[0049] In this implementation, CutMix hybrid data enhancement is used. and are two different training samples. and is the corresponding tag value. CutMix needs to generate new training samples and corresponding tags: and , as shown below:
[0050]
[0051] In the formula, The binary mask for discarding some areas and filling, ⊙ is pixel-by-pixel multiplication, Belongs to Beta distribution: of uniform distribution.
[0052] Step 3: Improve FasterX network construction
[0053] Improved structures are introduced in the FasterX network, such as AFPN (Attention Mechanism Pyramid Network) and MPDIoU (Multi-Scale Prediction IoU) and other methods. These improvements are designed to optimize the network structure and improve the detection accuracy and robustness of pipeline abnormal targets.
[0054] AFPN (Attention Pyramid Network)
[0055] AFPN (Attention Pyramid Network) combines the attention mechanism and the pyramid network structure to optimize the target detection network. The mathematical model describes the calculation of attention weights and the feature fusion process in the network structure. The following is a simplified version of the mathematical model description:
[0056] Attention weight calculation:
[0057] 1. Feature map generation:
[0058] Suppose we have feature maps of multiple scales, represented as , each feature map has different resolution and semantic meaning.
[0059] 2. Feature vector representation of feature map:
[0060] Each feature map Expand to feature vector (such as through Global Average Pooling or other methods), expressed as .
[0061] 3. Attention weight calculation:
[0062] For each feature vector Calculate its attention weight .
[0063] A fully connected layer or a convolutional layer can be used in combination with an activation function, and the attention weight can be used to adjust the importance of features in each scale feature map, so that the network pays more attention to features that are meaningful for target detection.
[0064] 4. Fusion feature map:
[0065] Using attention weights For the feature vector Perform weighted fusion to obtain the final fusion feature vector .
[0066] The fused feature vector can be re-integrated into the form of a feature map as the input of the subsequent layers of the network. Assume that the dimension of the feature vector is , the mathematical model of the attention mechanism pyramid network can be described as follows:
[0067] a. For The feature vector of the scale , the calculation of attention weight can be expressed as:
[0068]
[0069] in, is a fully connected layer, is the activation function.
[0070] b. Fusion feature vector The calculation can be expressed as:
[0071]
[0072] Here represents the number of scales, Represents element-wise multiplication.
[0073] The above is a simplified description of the mathematical model. The attention mechanism pyramid network may involve more complex parameterization and structural design, calculation of attention weights and feature fusion process.
[0074] MPDIoU (Multi-scale Prediction IoU)
[0075] Multi-scale predicted IoU (MPDIoU) is an improved method used in target detection tasks, which aims to improve the accuracy of target detection results. This method involves IoU calculation and bounding box prediction at multiple scales. The following is a simplified version of the mathematical model description:
[0076] Multi-scale bounding box prediction:
[0077] 1. Bounding Box Prediction:
[0078] For each object, bounding box predictions are made at different scales, e.g. Represents the predicted bounding boxes at different scales.
[0079] 2. IoU calculation:
[0080] For each scale, the predicted bounding box , calculate its difference with the real bounding box IoU value.
[0081] Based on the IoU at multiple scales, integration or adjustment is performed to improve the final target detection results.
[0082] Assumptions Indicates The IoU calculation results at each scale can describe the mathematical model of multi-scale prediction IoU as follows:
[0083] a. For Bounding boxes at different scales With the true bounding box The IoU calculation can be expressed as:
[0084]
[0085] Here Indicates the area of the calculated bounding box. represents the intersection, Represents a union.
[0086] b. The IoU calculation results under comprehensive multi-scale can be calculated by weighted average or other methods:
[0087]
[0088] Here represents the number of scales, It can be a function of comprehensive calculations such as weighted average and maximum value.
[0089] The above mathematical model describes the basic idea of multi-scale prediction of IoU, which involves bounding box prediction and IoU calculation at different scales. The final target detection result is obtained by integrating the IoU values at multiple scales.
[0090] Step 4: Model training
[0091] Using the improved FasterX network structure, the training set that has undergone data enhancement is input into the network for training. Through forward propagation, the prediction detection results of abnormal conditions in the pipeline image are generated.
[0092] Improved FasterX network structure:
[0093] 1. Basic Backbone Network:
[0094] Some common convolutional neural networks EfficientNet are usually used as the basic backbone network to extract image features.
[0095] 2. Feature Pyramid Structure (Feature Pyramid):
[0096] The feature pyramid structure is introduced for multi-scale feature extraction, which helps to process objects in pipeline images of different sizes.
[0097] 3.AFPN (Attention Pyramid Network) module:
[0098] In the feature pyramid structure, the AFPN module is added to introduce the attention mechanism to enhance the focus on important features.
[0099] AFPN can fuse feature maps of different scales and adjust the weights of feature maps to optimize feature expression and target detection.
[0100] 4.MPDIoU (Multi-scale Prediction IoU) mechanism:
[0101] During the object detection process, the MPDIoU mechanism is used to predict the object bounding box and calculate the IoU at multiple scales.
[0102] MPDIoU can optimize the object bounding box at multiple scales to improve the accuracy and robustness of detection.
[0103] 5. Classification and regression subnetwork:
[0104] Finally, the generated candidate regions are classified and regressed using a classifier and a regressor to determine the target location and category.
[0105] The improved FasterX network structure integrates modules such as AFPN and MPDIoU, which can improve the network's attention to features and its ability to accurately predict multi-scale targets. This network structure is designed to optimize the performance of abnormal target detection tasks in pipeline images.
[0106] Step 5: Adaptive Optimization
[0107] After each forward propagation, a custom loss function is used to calculate the loss error between the predicted value and the true value. The NAdam algorithm is used to continuously correct the network parameters to reduce the loss function. At the same time, the cosine annealing learning rate is adjusted to improve training stability and avoid local convergence.
[0108] NAdam is an optimization algorithm that is an improvement on the Adam optimization algorithm. It uses adaptive learning rate and momentum in gradient descent. The following is a mathematical formula description of the NAdam algorithm:
[0109] The parameter update rule of NAdam can be described as:
[0110] 1. Initialization parameters:
[0111] Represents the parameters of the model. is the initial learning rate. is the exponential decay rate used to compute the first and second moment estimates of the gradient. is a very small number to prevent the denominator from being zero.
[0112] 2. Initialize variables:
[0113] Represents the first-order moment estimate of the gradient, initially 0. Represents the second-order moment estimate of the gradient, initially 0.
[0114] 3. Update formula:
[0115] At each time step , calculate the gradient .
[0116] Update the first moment estimate and the second moment estimate :
[0117]
[0118]
[0119] Perform bias correction on the corrected first-order moment and second-order moment:
[0120]
[0121]
[0122] Calculating adaptive learning rate :
[0123]
[0124] Update Parameters :
[0125]
[0126] The NAdam optimization algorithm combines the characteristics of the Adam optimization algorithm and the Nesterov momentum, and takes advantage of the adaptive learning rate and momentum to optimize the model training process. The above formula describes the update rule of the parameters in the NAdam algorithm.
[0127] The training steps are as follows:
[0128] 1. Define the learning rate adjustment strategy: Use cosine annealing to adjust the learning rate, and control the change of the learning rate by setting the initial learning rate and the number of cycles.
[0129] 2. Define the learning rate decay function: Use the cosine function to adjust the learning rate. In each cycle, the learning rate gradually decreases in the form of the cosine function.
[0130] 3. Define the cycles: Determine the total number of training cycles based on the size of the training dataset and the batch size.
[0131] 4. Training within each cycle: Within each cycle, perform steps 5-8 below.
[0132] 5. Forward propagation: Input the training data set into the network model to obtain the predicted semantic segmentation results.
[0133] 6. Calculate loss: Use a custom loss function to calculate the loss error between the predicted value and the true value.
[0134] 7. Back propagation: Update the network parameters according to the gradient of the loss function and use the NAdam algorithm to correct the network parameters.
[0135] 8. Learning rate adjustment: According to the cosine annealing learning rate adjustment method, the learning rate is updated in each cycle.
[0136] By using a custom loss function and NAdam optimization algorithm for back propagation, combined with the cosine annealing learning rate adjustment method, the network parameters can be continuously corrected during the training process, and the loss function can be gradually reduced. This can improve the training stability and convergence speed of the model, overcome local convergence problems, and further improve the accuracy and performance of the recognition system.
[0137] Among them, the loss function during training is specifically:
[0138] ClassificationLoss:
[0139] The classification loss is used to measure the model's recognition of the target category. The cross-entropy loss function is preferably used to measure the model's classification accuracy for each category. For each detection box, it calculates the loss between the predicted category and the true category. If There are For the category Detection boxes:
[0140]
[0141] in: is the classification loss function. is the class probability distribution predicted by the model. is the corresponding true category. is the probability of the predicted class.
[0142] The final classification loss is the average or sum of the classification losses of all detection boxes.
[0143] Bounding Box Regression Loss:
[0144] The bounding box regression loss is used to measure the difference between the bounding box predicted by the model and the true bounding box. Commonly used regression loss functions include smooth L1 loss or squared L2 loss, which are used to measure the coordinate deviation of the predicted bounding box.
[0145]
[0146] in, is the bounding box regression loss function. are the bounding box parameters predicted by the model. are the corresponding ground-truth bounding box parameters. is the smooth L1 loss function.
[0147] The final bounding box regression loss is the average or sum of the regression losses of all detection boxes.
[0148] These loss functions are used to measure the model's classification of target categories and prediction of bounding boxes, and are key optimization targets during training. In actual training, classification loss and bounding box regression loss are usually combined to form the overall loss function, and are minimized through optimization algorithms such as NAdam descent. The NAdam algorithm is used to continuously correct and modify network weight parameters to reduce the loss function value, and the learning rate is adjusted through the cosine annealing learning rate adaptive cycle to improve training speed and training stability.
[0149] Step 6: Iterate training
[0150] Repeat steps 5 and 6 until the number of training iterations reaches the maximum number of iterations. During the iteration process, the model with the highest accuracy in the training set is saved as the optimal model.
[0151] Step 7: Real-time recognition
[0152] The optimal model obtained in step 7 is used to perform real-time identification in actual pipeline inspections. The optimal model is applied to the drone inspection system to achieve real-time monitoring and identification of pipeline abnormalities.
[0153] Step 8: Real-time monitoring and early warning
[0154] By identifying the output results of the model, the pipeline status is monitored in real time and early warning is issued. Once abnormal conditions such as corrosion, leakage, deformation, etc. are detected, corresponding measures are taken in time for repair and prevention.
[0155] The pipeline leakage detection results of the present invention are shown in Figure 2 , where the box is the leakage location.
[0156] The present invention uses the improved FasterX network structure and the introduced AFPN, MPDIoU and other methods to achieve high-precision detection of pipeline anomalies. This means that pipeline corrosion, leakage, deformation and other problems can be identified more accurately, reducing the risk of missed detection. In addition, the present invention uses multi-scale predicted IoU and feature pyramid structure to enable the detection model to adapt to pipelines of different scales, thereby enhancing the model's robustness in detecting various pipeline anomaly targets.
[0157] In addition, the system can not only identify pipeline abnormalities in real time, but also respond quickly and issue early warnings, helping to take necessary maintenance or safety measures in a timely manner when problems occur in the pipeline.
[0158] In addition, the data augmentation strategy improves the diversity of the training dataset, allowing the model to better generalize to different scenarios, reducing the need for large amounts of labeled data and improving the robustness and accuracy of the model.
[0159] In addition, optimization algorithms such as NAdam were introduced to accelerate the convergence speed of the model, optimize the training process of the model, and improve the training efficiency.
[0160] In summary, the invention has broad application prospects in the field of pipeline inspection, and can be used for pipeline safety monitoring and maintenance in the oil, natural gas, chemical and other industries, which helps to improve the safety and efficiency of industrial production. These characteristics and effects make the invention have important application value in the field of industrial safety monitoring, and have significant significance for improving pipeline safety and reducing accident risks.
[0161] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A pipeline anomaly identification method based on improved FasterX, characterized in that: The following steps are involved: Based on the FasterX model, the FPN network of the FasterX model is replaced by the AFPN network, and the IoU function of the FasterX model is replaced by the multi-scale prediction IoU function to build a pipeline anomaly recognition model; the multi-scale prediction IoU function is used to predict the bounding box at each scale. , calculate its difference with the real bounding box The IoU value of the composite scale is calculated based on the IoU value of the composite scale. Training the pipeline anomaly recognition model, and using the trained pipeline anomaly recognition model to recognize pipeline anomalies; The pipeline anomaly recognition model uses the convolutional neural network EfficientNet as the basic backbone network, the feature pyramid structure as the multi-scale feature extraction network, and the AFPN network as the feature fusion network; The feature pyramid includes a first feature extraction module, a second feature extraction module, a third feature extraction module and a fourth feature extraction module with convolution step sizes from small to large, and the AFPN network includes a first Ghost module, a second Ghost module, a third Ghost module, a first feature fusion layer P1, a second feature fusion layer P2, a third feature fusion layer P3 and a fourth feature fusion layer P4; The first feature extraction module is connected to the first feature fusion layer P1, the second feature extraction module is connected to the first feature fusion layer P1, the second feature fusion layer P2, the third feature fusion layer P3 and the fourth feature fusion layer P4 through the first Ghost module, the third feature extraction module is connected to the first feature fusion layer P1, the second feature fusion layer P2, the third feature fusion layer P3 and the fourth feature fusion layer P4 through the second Ghost module, and the fourth feature extraction module is connected to the first feature fusion layer P1, the second feature fusion layer P2, the third feature fusion layer P3 and the fourth feature fusion layer P4 through the third Ghost module.
2. The pipeline anomaly identification method based on improved FasterX according to claim 1, characterized in that: The pipeline anomaly recognition model adopts a multi-scale prediction IoU mechanism to predict the target bounding box at multiple scales and calculate the IoU.
3. The pipeline anomaly identification method based on improved FasterX according to claim 1 or 2, characterized in that: The pipeline anomaly recognition model is trained using the NAdam algorithm.
4. The pipeline anomaly identification method based on improved FasterX according to claim 3 is characterized in that: In the process of training the pipeline anomaly recognition model using the NAdam algorithm, a custom loss function and the NAdam optimization algorithm are used for back propagation. At the same time, the cosine annealing learning rate adjustment method is combined to continuously correct the network parameters during the training process and gradually reduce the loss function.
5. The pipeline anomaly identification method based on improved FasterX according to claim 4 is characterized in that: The loss function during training is specifically: classification loss; The classification loss is used to measure the model's recognition of the target category, and the cross entropy loss function is used to measure the model's classification accuracy for each category.
6. The pipeline anomaly identification method based on improved FasterX according to claim 1 or 2, characterized in that: Training the pipeline anomaly recognition model includes the following steps: Constructing an initial set, wherein the initial set includes pipeline images of different abnormal categories in different scenarios; Divide the initial set into training set and test set according to the preset ratio; Perform data augmentation operations on single-sample pipeline images in the training set, as well as CutMix mixed data augmentation operations on multiple samples, and perform data preprocessing on the enhanced training set; The pipeline anomaly recognition model is trained using the preprocessed training set, and the trained pipeline anomaly recognition model is tested using the test set. When the test accuracy of the pipeline anomaly recognition model reaches a preset value, the currently trained pipeline anomaly recognition model is used as the trained pipeline anomaly recognition model.
7. The pipeline anomaly identification method based on improved FasterX according to claim 6, characterized in that: The exception categories include one or any combination of the following: Pipeline corrosion, leakage, deformation, foreign matter; The data enhancement operation includes one or any combination of the following: Random cropping, rotation, scaling, horizontal flipping, vertical flipping, and random adjustment of brightness, contrast, and color.
8. The pipeline anomaly identification method based on improved FasterX according to claim 7, characterized in that: Using the trained pipeline anomaly recognition model to identify pipeline anomalies includes: The trained pipeline anomaly recognition model is installed in the drone inspection system to monitor and identify pipeline anomalies in real time.
9. A computer system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
