A cable defect detection method and system based on large model
Through the combination of multi-task learning and spatio-temporal convolutional neural network, cross-modal sensor data is integrated, and the attention mechanism is embedded in the defect detection branch, which solves the accuracy and positioning problems of cable defect detection in the existing technology and improves detection. Performance and robustness.
Patent Information
- Application Number
- CN202410369008.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-03-28
AI Technical Summary
Existing cable defect detection technology has insufficient detection accuracy and stability when processing complex structures, low-contrast images or illumination changes, has low processing efficiency, does not fully utilize multi-task learning and spatio-temporal information, and lacks cross-modal sensor fusion and refinement. Positioning capabilities.
A large model-based cable defect detection method is adopted, which combines cable defect detection and classification tasks through multi-task learning, uses a spatiotemporal convolutional neural network to capture the spatiotemporal characteristics of defects, integrates cross-modal sensor data, and embeds it in the defect detection branch Attention mechanism performs refined positioning.
It improves the accuracy and refined positioning capabilities of cable defect detection, enhances the recognition performance in complex environments, improves the robustness and generalization performance of the model, and enables efficient processing and flexible response to new defect data.
Smart Images

Figure CN118115483B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a cable defect detection method and system based on a large model. Background Art
[0002] With the rapid development of computer image processing technology, machine vision detection technology and deep learning technology, cable defect detection has shifted from traditional manual detection to more advanced automated detection. Modern cable defect detection technology uses deep learning models, especially convolutional neural networks (CNNs), to extract and classify cable images to achieve automated target detection and classification. However, in the cable manufacturing industry, due to the diverse and complex cable structures, image quality is greatly affected by lighting and contrast, and there are many types of cable defects and large size differences, the existing deep learning-based target detection technology still has certain limitations and challenges.
[0003] Deficiencies of existing technologies:
[0004] 1. Insufficient detection accuracy and stability: Existing cable defect detection technology has unsatisfactory detection accuracy and stability when dealing with complex cable structures, low-contrast images or scenes with large lighting changes. In particular, when identifying small, detailed defects (such as pinhole defects), the accuracy is not high and the false alarm rate remains high.
[0005] 2. Low processing efficiency: The processing efficiency of large-scale cable image data is relatively low, and there are difficulties in identifying various complex defect types. It is unable to efficiently and accurately respond to diverse and complex detection needs, resulting in limited generalization ability of the model in practical applications.
[0006] 3. Single task processing: Most of the existing technologies focus on single task processing, such as cable defect detection or classification alone, but fail to fully utilize the advantages of multi-task learning and cannot improve the reciprocity of detection and classification tasks through joint learning, thereby improving the overall detection performance.
[0007] 4. Insufficient utilization of spatiotemporal information: Existing cable defect detection systems generally do not fully utilize the spatiotemporal information carried by continuously shot cable image sequences, and are unable to effectively capture and analyze the evolution characteristics of cable defects in time and space.
[0008] 5. Insufficient sensor fusion and refined positioning: There is a lack of fusion processing of multiple sensor data and efficient methods for refined positioning of defect locations. Existing technologies usually do not include cross-modal multi-sensor fusion mechanisms and self-attention mechanisms for potential defect areas, which to some extent limits the accuracy and effectiveness of defect positioning.
[0009] Therefore, the prior art has deficiencies and needs further improvement. Summary of the invention
[0010] In view of the problems existing in the prior art, the present invention provides a cable defect detection method and system based on a large model.
[0011] To achieve the above object, the specific scheme of the present invention is as follows:
[0012] The present invention provides a cable defect detection method based on a large model, the method comprising the following steps:
[0013] S1, obtain cable image data and preprocess it, including image denoising, image enhancement, and use cable edge linearization technology to achieve standardized splicing and continuity processing of images through interpolation and scaling methods to facilitate subsequent feature extraction;
[0014] S2, through the convolutional neural network component feature extraction network, multi-layer convolution and pooling operations are performed on the preprocessed image to extract the characteristic information of the cable including color, texture, shape, and perform feature mapping;
[0015] S3, through the multi-task learning mechanism, combines the cable defect detection task with the cable classification task, and jointly learns and optimizes based on the shared feature extraction network;
[0016] S4: After feature extraction, a defect detection branch is established, thresholds are set, and defects are located and classified through convolution and pooling operations;
[0017] S5: Using the classification branch, the features are mapped to cable categories through the fully connected layer to achieve automatic classification;
[0018] S6, data augmentation techniques are applied during training to perform random rotation, translation, and scaling to increase the diversity of training data, thereby improving the robustness and generalization performance of the model;
[0019] S7, implements an adaptive learning rate strategy to dynamically adjust the learning rate according to the model training status to accelerate network convergence and improve detection accuracy;
[0020] S8, for the continuously shot cable image sequence, a spatiotemporal convolutional neural network is used to capture the spatial and temporal evolution information of defects;
[0021] S9, integrates cross-modal multi-sensor data, fuses visual and non-visual sensor information, and forms a unified feature representation to fully understand the cable status and identify defects;
[0022] S10, embeds the attention mechanism in the defect detection branch to adaptively highlight the potential defect areas, thereby achieving refined defect localization.
[0023] Furthermore, in step S1, the cable edge linearization technology is used, which is an interpolation scaling technology under the average pixel point standard, including the nearest interpolation method or the bilinear interpolation method, to achieve cable image splicing and edge smooth transition.
[0024] Furthermore, in step S5, automatic classification is performed through comprehensive analysis of geometric features, grayscale features and texture features to effectively identify different types of cable defects, and a dedicated classifier is used to improve the recognition accuracy of small pinhole defects and reduce the false alarm rate.
[0025] The present invention also provides a cable defect detection system based on a large model, which is used to implement the above cable defect detection method. The system includes:
[0026] Image preprocessing module, which has image denoising and enhancement functions, and uses cable edge linearization technology and interpolation scaling method to perform image standardization splicing and continuity processing to facilitate feature extraction;
[0027] The feature extraction unit uses a convolutional neural network architecture to extract cable image features, including color, texture, and shape features, through multi-level convolution and pooling operations;
[0028] A multi-task learning component that integrates cable defect detection and cable classification tasks, and jointly learns and optimizes on a shared feature extraction network;
[0029] The defect detection module has a convolutional network branch that determines the specific location and type of defects through convolution and pooling layers;
[0030] Classification module, which contains a fully connected layer structure for automatic classification and identification of cables;
[0031] Data augmentation module, which implements random rotation, translation, and scaling operations on training data to enhance the robustness and generalization ability of the model;
[0032] Adaptive learning rate adjustment module, dynamically adjusts the learning rate according to the model training status, accelerates network convergence and improves detection accuracy;
[0033] Image preprocessing hardware facilities support the linearization of cable edges and smooth transition of image stitching, and use nearest neighbor interpolation or bilinear interpolation for interpolation and scaling;
[0034] The spatiotemporal convolutional neural network captures the spatial and temporal evolution characteristics of defects in a sequence of continuously shot cable images.
[0035] Furthermore, the system also includes:
[0036] The cross-modal multi-sensor fusion module is used to deeply fuse the data from visual sensors and non-visual sensors, generate a unified feature representation, and achieve a comprehensive understanding and accurate identification of cable status and its potential defects through the multi-modal fusion layer.
[0037] Furthermore, the system also includes:
[0038] The attention-driven refined positioning module has a built-in self-attention mechanism, which generates adaptive weights for potential defect areas through channel attention and spatial attention to achieve pixel-level defect positioning.
[0039] Furthermore, the system adopts a multi-level and multi-task collaborative learning architecture, setting loss functions for each task at different depths. By sharing early feature extraction layers and differentiating specific detection branches and classification branches in the later stages, it achieves full mining of global and local information as well as mutual learning and promotion between tasks.
[0040] Furthermore, the system also includes: a dynamic adaptive learning rate scheduling module, which dynamically adjusts the learning rate according to the performance of the model during training to achieve rapid convergence and suppress overfitting.
[0041] Furthermore, the system also includes: a deep supervision and incremental learning integration module, which inserts supervision layers at different depths of the feature extraction network, and uses transfer learning and fine-tuning strategies for incremental training when faced with new defect data.
[0042] The technical solution of the present invention has the following beneficial effects:
[0043] 1. Improved detection accuracy: By adopting a multi-task learning mechanism, the cable defect detection task is combined with the cable classification task, which can optimize learning based on a shared feature extraction network, helping to improve the recognition accuracy of various types of cable defects, especially the recognition ability of small pinhole defects is significantly enhanced.
[0044] 2. Fine-grained positioning capability: The attention mechanism is integrated into the defect detection branch, which can adaptively highlight potential defect areas and achieve fine-grained defect positioning at the pixel level, greatly improving positioning accuracy and precision.
[0045] 3. Capture of spatiotemporal features: The spatiotemporal convolutional neural network is used to process continuously shot cable image sequences, which can effectively capture and analyze the evolution information of defects in space and time, solving the problem that existing technologies cannot fully mine and utilize time series information.
[0046] 4. Multimodal fusion and comprehensive perception: Integrate cross-modal multi-sensor data, fuse visual and other non-visual sensor information to form a unified feature representation, enhance the comprehensive perception of cable status, and improve the recognition efficiency of cable defects in various complex environments and conditions.
[0047] 5. Enhanced robustness and generalization performance: Data enhancement technology is used during the training process to simulate a variety of real scene changes, so that the model has stronger anti-interference ability and generalization ability for new samples. At the same time, through the adaptive learning rate strategy, the learning rate is dynamically adjusted according to the model training status, which accelerates the network convergence speed and improves the detection accuracy of the model.
[0048] 6. Efficient processing and strong adaptability: Through the multi-level multi-task collaborative learning architecture, as well as the integration technology of deep supervision and incremental learning, the system can efficiently process large-scale data and flexibly respond to new defect data, which improves the flexibility and practicality of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 Schematic diagram of the bilinear interpolation method used in the present invention;
[0050] Figure 2 is a system block diagram of the present invention;
[0051] Figure 3 It is the overall flow chart of the present invention. DETAILED DESCRIPTION
[0052] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments; it can be understood that the specific embodiments described herein are only used to explain the present invention rather than to limit the present invention; it should also be noted that, for ease of description, only the parts related to the present invention rather than all are shown in the accompanying drawings.
[0053] Combination Figure 1-Figure 3 As shown, the present invention provides a cable defect detection method based on a large model, characterized in that it includes the following steps:
[0054] S1, obtain cable image data and preprocess it, including image denoising, image enhancement, and use cable edge linearization technology to achieve standardized splicing and continuity processing of images through interpolation and scaling methods to facilitate subsequent feature extraction;
[0055] S2, through the convolutional neural network component feature extraction network, multi-layer convolution and pooling operations are performed on the preprocessed image to extract the characteristic information of the cable including color, texture, shape, and perform feature mapping;
[0056] S3, through the multi-task learning mechanism, combines the cable defect detection task with the cable classification task, and jointly learns and optimizes based on the shared feature extraction network;
[0057] S4: After feature extraction, a defect detection branch is established, thresholds are set, and defects are located and classified through convolution and pooling operations;
[0058] S5: Using the classification branch, the features are mapped to cable categories through the fully connected layer to achieve automatic classification;
[0059] S6, data augmentation techniques are applied during training to perform random rotation, translation, and scaling to increase the diversity of training data, thereby improving the robustness and generalization performance of the model;
[0060] S7, implements an adaptive learning rate strategy to dynamically adjust the learning rate according to the model training status to accelerate network convergence and improve detection accuracy;
[0061] S8, for the continuously shot cable image sequence, a spatiotemporal convolutional neural network is used to capture the spatial and temporal evolution information of defects;
[0062] S9, integrates cross-modal multi-sensor data, fuses visual and non-visual sensor information, and forms a unified feature representation to fully understand the cable status and identify defects;
[0063] S10, embeds the attention mechanism in the defect detection branch to adaptively highlight the potential defect areas, thereby achieving refined defect localization.
[0064] In step S1, the cable edge linearization technology is used, which is an interpolation scaling technology under the average pixel point standard, including the nearest interpolation method or the bilinear interpolation method, to achieve cable image splicing and edge smooth transition.
[0065] Furthermore, in step S5, automatic classification is performed through comprehensive analysis of geometric features, grayscale features and texture features to effectively identify different types of cable defects, and a dedicated classifier is used to improve the recognition accuracy of small pinhole defects and reduce the false alarm rate.
[0066] The present invention also provides a cable defect detection system based on a large model, which is used to implement the above cable defect detection method. The system includes:
[0067] Image preprocessing module, which has image denoising and enhancement functions, and uses cable edge linearization technology and interpolation scaling method to perform image standardization splicing and continuity processing to facilitate feature extraction;
[0068] The feature extraction unit uses a convolutional neural network architecture to extract cable image features, including color, texture, and shape features, through multi-level convolution and pooling operations;
[0069] A multi-task learning component that integrates cable defect detection and cable classification tasks, and jointly learns and optimizes on a shared feature extraction network;
[0070] The defect detection module has a convolutional network branch that determines the specific location and type of defects through convolution and pooling layers;
[0071] Classification module, which contains a fully connected layer structure for automatic classification and identification of cables;
[0072] Data augmentation module, which implements random rotation, translation, and scaling operations on training data to enhance the robustness and generalization ability of the model;
[0073] Adaptive learning rate adjustment module, dynamically adjusts the learning rate according to the model training status, accelerates network convergence and improves detection accuracy;
[0074] Image preprocessing hardware facilities support the linearization of cable edges and smooth transition of image stitching, and use nearest neighbor interpolation or bilinear interpolation for interpolation and scaling;
[0075] The spatiotemporal convolutional neural network captures the spatial and temporal evolution characteristics of defects in a sequence of continuously shot cable images.
[0076] Furthermore, the system also includes:
[0077] The cross-modal multi-sensor fusion module is used to deeply fuse the data from visual sensors and non-visual sensors, generate a unified feature representation, and achieve a comprehensive understanding and accurate identification of cable status and its potential defects through the multi-modal fusion layer.
[0078] Furthermore, the system also includes:
[0079] The attention-driven refined positioning module has a built-in self-attention mechanism, which generates adaptive weights for potential defect areas through channel attention and spatial attention to achieve pixel-level defect positioning.
[0080] Furthermore, the system adopts a multi-level and multi-task collaborative learning architecture, setting loss functions for each task at different depths. By sharing early feature extraction layers and differentiating specific detection branches and classification branches in the later stages, it achieves full mining of global and local information as well as mutual learning and promotion between tasks.
[0081] Furthermore, the system also includes: a dynamic adaptive learning rate scheduling module, which dynamically adjusts the learning rate according to the performance of the model during training to achieve rapid convergence and suppress overfitting.
[0082] Furthermore, the system also includes: a deep supervision and incremental learning integration module, which inserts supervision layers at different depths of the feature extraction network, and uses transfer learning and fine-tuning strategies for incremental training when faced with new defect data. Specific embodiment:
[0084] At present, the existing technology has some shortcomings in cable defect detection, such as poor detection accuracy and stability in complex cable structures, low-contrast images, and lighting changes. In addition, there are certain difficulties in processing large-scale data and detecting multiple defect types.
[0085] Therefore, in order to further improve the accuracy and efficiency of cable defect detection, the present application proposes a novel cable defect detection method and system.
[0086] This method uses a multi-task learning approach to combine the cable defect detection task with the cable classification task, thereby improving the accuracy and efficiency of detection. At the same time, this application also uses a variety of data enhancement techniques and adaptive learning rate strategies to further improve the stability and robustness of detection.
[0087] In general, the problem to be solved by this application is how to use new machine vision technology to improve the accuracy and efficiency of cable defect detection and realize automated control and optimization of the cable production process.
[0088] The technical solution will be described in detail below.
[0089] 1. Data preprocessing: First, the image data obtained from the cable production process is preprocessed, including image denoising, image enhancement and other operations, to improve the accuracy and stability of subsequent processing.
[0090] 2. Feature extraction network: Convolutional neural network (CNN) is used as the feature extraction network to extract the feature information of cables from the preprocessed images through multi-layer convolution and pooling operations. These features include color, texture, shape, etc.
[0091] 3. Multi-task learning: The idea of multi-task learning is introduced to perform two tasks, cable defect detection and cable classification, at the same time. Through the shared feature extraction network, the feature representation of cable defect detection and cable classification is learned and optimized, thereby improving the accuracy of detection and classification.
[0092] 4. Defect detection branch: After the feature extraction network, add a defect detection branch. This branch maps the extracted features to the location and type of defects through a series of convolution and pooling operations. By setting appropriate thresholds, automatic detection and positioning of cable defects can be achieved.
[0093] 5. Classification branch: After the feature extraction network, add a classification branch. This branch maps the extracted features to the cable category through a fully connected layer. By training a classifier, automatic classification and identification of cables can be achieved.
[0094] 6. Data augmentation techniques: In order to improve the robustness and generalization ability of the model, a variety of data augmentation techniques are used, such as random rotation, translation, scaling, etc., to generate more diverse training data, so that the model has better adaptability to cable images of different angles and scales.
[0095] 7. Adaptive learning rate strategy: In order to speed up the convergence of the network and improve accuracy, an adaptive learning rate strategy is adopted to dynamically adjust the learning rate according to the current training status of the model. For example, when the model performs poorly, the learning rate is reduced to avoid overfitting; when the model performs well, the learning rate is appropriately increased to accelerate convergence.
[0096] Step 1: Data preprocessing (cable image stitching);
[0097] Step 2: Feature extraction network;
[0098] Step 3: Multi-task learning (defect detection branch + classification branch);
[0099] Step 4: Data augmentation techniques;
[0100] Step 5: Adaptive learning rate strategy;
[0101] The accuracy and efficiency of cable defect detection are improved through deep learning and multi-task learning methods, combined with data enhancement and adaptive learning rate strategies. By training an end-to-end model, automatic detection and classification of defects in cable images can be achieved.
[0102] More specifically,
[0103] Image preprocessing in step 1 includes:
[0104] After threshold segmentation, the area where the cable is located can be accurately extracted. Usually, cables have small areas.
[0105] At the same time, the cable areas captured by the three cameras will partially overlap.
[0106] In order to better and more intuitively display the cable diagram, more conveniently detect surface defects and meet customer needs, this section introduces the edge straightening of the cable and the splicing method of the three-phase cable diagram.
[0107] Considering that the moving direction of the cable is perpendicular to the arrangement direction of the camera's photosensitive elements, that is, for the original image, a row of pixel matrix in the image represents the exposure value of the camera at a certain moment in the direction perpendicular to the cable movement. The cable domain can be extracted from this row of pixel matrix and the cable outer diameter can be calculated. The number of pixels occupied by the cable outer diameter at different moments may be the same or different. Therefore, the average value uc can be used as the standard, and other rows different from uc can be scaled to uc pixels through interpolation to achieve the linearization of the cable edge, where uc is an integer, indicating the average number of pixels occupied by each row of the cable domain.
[0108] (1) Nearest neighbor interpolation method
[0109] Nearest neighbor interpolation is the simplest interpolation method. The output gray value is equal to the value closest to the corresponding position.
[0110] The nearest input grayscale value does not need to be calculated, so the nearest interpolation method is easy to implement and has the least amount of calculation. However, for images with high detail requirements, the nearest interpolation method may result in discontinuous grayscale values.
[0111] (2) Bilinear interpolation
[0112] For two-dimensional images, bilinear interpolation is to perform linear interpolation in both the row and column directions of the image matrix.
[0113] Use four pixels in the neighborhood as input grayscale values, such as Figure 1 As shown, there are four neighbors around point p.
[0114] The grayscale values of the points (g(0,0), g(1,0), g(0,1), g(1,1)) are linearly interpolated in both the x and y directions.
[0115] The internal implementation principle of feature extraction in step 2 is as follows:
[0116] The feature extraction network is usually implemented using a convolutional neural network (CNN); CNN can effectively extract features from images. Its basic principle is to extract feature information of different scales from the original image through a series of operations such as convolution and pooling. Among them, the convolution operation can be expressed as:
[0117]
[0118] Among them, x is the input image, y is the output feature map, w is the convolution kernel, and k is the convolution kernel size.
[0119] The pooling operation can be expressed as:
[0120]
[0121] Among them, x is the input feature map, y is the output feature map, s is the step size, and p is the pooling kernel size.
[0122] Through multiple convolution and pooling operations, the size of the feature map can be gradually reduced, and more abstract features can be extracted, and finally a high-dimensional feature vector is obtained. This feature vector can be used for subsequent classification or detection tasks.
[0123] (1) Geometric feature extraction
[0124] Geometric features are used to describe the shape or characteristics of an object, such as area, perimeter, circularity, rectangularity,
[0125] The ratio of long to short diameter, area duty cycle, area invariant moment, eccentricity, etc.
[0126] (2) Grayscale feature extraction
[0127] Grayscale features can be used to characterize the distribution characteristics of the target. The grayscale histogram can well show the grayscale distribution of the sample image. Grayscale features commonly used in the defect extraction process include: grayscale mean, grayscale variance, skewness, kurtosis, energy, and entropy.
[0128] (3) Texture feature extraction
[0129] Image texture features reflect the periodic change properties in the image. The cable surface sheath in the cable surface image captured by the camera has periodic ripple changes. These ripples show regular repetitions while the size remains unchanged. By extracting texture features, the characteristics of the object surface can be discovered, and then the object can be classified and judged.
[0130] According to the needs of this article, it is necessary to detect major defects such as scratches, stains, and broken skin, as well as pinholes. For defects with larger areas, these major defects can be identified by extracting their geometric and grayscale features. For pinholes with smaller areas, a classifier can be designed to identify pinholes and non-pinholes (mainly dust), mark the identified pinholes, eliminate the interference of dust, improve the pinhole recognition rate, and reduce the false alarm rate of the system.
[0131] To further supplement this method, the following techniques are also used:
[0132] 1. Spatiotemporal consistency constraint: We designed a spatiotemporal convolutional neural network structure that can accept a sequence of continuously shot cable images as input. In each convolution operation, in addition to feature extraction of a single frame image, the spatiotemporal correlation between adjacent frames is also considered. In specific implementation, the time dimension can be superimposed in the 3D convolution layer, so that the network can not only capture spatial features, but also learn the defect evolution trend in the time dimension. For example, for the expansion of cracks on the cable surface, this spatiotemporal consistency constraint can help the model to provide early warning and accurately locate the development trajectory of the crack.
[0133] 2. Cross-modal multi-sensor fusion: For the actual scenario of cable production, we deeply fuse the data of visual sensors and other non-visual sensors (such as vibration sensors, temperature sensors, etc.); in the specific implementation, we first convert the data of different modalities into a unified feature representation through independent preprocessing steps, and then design a multimodal fusion layer, which can combine visual features with non-visual features to generate a comprehensive feature vector through weighted summation or gating mechanism, so as to help the model fully understand the status of the cable and accurately identify hidden defects.
[0134] 3. Attention-driven refined defect localization: The self-attention mechanism is applied in the defect detection branch, such as through channel attention or spatial attention modules, to give the model the ability to focus on potential defect areas; specifically, the network will automatically generate attention weights on the feature map, highlighting the parts that may contain defects and weakening the influence of background or other irrelevant areas, thereby achieving accurate pixel-level defect localization.
[0135] 4. Multi-level multi-task collaborative learning system: A multi-level multi-task learning structure is constructed. High-level tasks focus on the overall classification of cables and the identification of larger defects, while low-level tasks focus on the detection of microscopic defect characteristics. In specific implementation, multiple loss functions are set at different depths of the network. Each task shares the early feature extraction layer and gradually differentiates into specialized detection branches and classification branches in the later stage. This not only ensures the full mining of global and local information, but also strengthens the mutual learning and promotion between different tasks.
[0136] 5. Dynamic adaptive learning rate scheduling algorithm: Use adaptive learning rate adjustment strategies provided by optimizers such as AdamW and Adadelta, or combine learning rate decay strategies such as cosine annealing and exponential decay to dynamically adjust the learning rate according to the performance of the model during training; for example, reduce the learning rate when the accuracy of the validation set stagnates or decreases, and appropriately increase the learning rate when the training process is stable or makes progress, so as to achieve rapid convergence while avoiding overfitting.
[0137] 6. Deep supervision and incremental learning integration technology: Insert supervision layers at different depths of the feature extraction network. The output of each layer will be calculated through the corresponding loss function, so as to promote the network to learn useful information about defects at the entire level; when faced with new defect data, use transfer learning and fine-tuning strategies to update only the layers corresponding to the new data instead of retraining the entire model; in specific implementation, the trained basic network parameters can be retained, and only the last layer or several layers can be incrementally trained, so as to achieve rapid adaptation and updating of the model.
[0138] In addition, we have also made innovative improvements to the cable image preprocessing process:
[0139] 1. In terms of image stitching and edge linearization, a standard based on the average number of pixels (uc) is used for interpolation scaling. The nearest neighbor interpolation method or a more advanced bilinear interpolation method is used to achieve smooth transition of cable edges and seamless stitching of multi-camera images, ensuring the quality and continuity of cable images, which is beneficial to subsequent defect detection and classification.
[0140] 2. The feature extraction network not only includes classic convolution and pooling operations, but also places special emphasis on the comprehensive extraction of geometric, grayscale and texture features; for example, geometric features are used to identify large-area defects, grayscale statistical features are used to distinguish defects from normal areas, and texture features are used to analyze subtle changes on the cable surface. In particular, for small pinhole defects that are difficult to identify through morphological features, we have designed a special classifier to effectively improve the pinhole recognition rate, while reducing the false alarm rate, ensuring the reliability and stability of the detection system.
[0141] The above description is only a preferred embodiment of the present invention, and does not limit the scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the protection scope of the present invention.
Claims
1. A cable defect detection method based on a large model, characterized in that: The following steps are involved: S1, obtain cable image data and preprocess it, including image denoising, image enhancement, and use cable edge linearization technology to achieve standardized splicing and continuity processing of images through interpolation and scaling methods to facilitate subsequent feature extraction; S2, through the convolutional neural network component feature extraction network, multi-layer convolution and pooling operations are performed on the preprocessed image to extract the characteristic information of the cable including color, texture, shape, and perform feature mapping; S3, through the multi-task learning mechanism, combines the cable defect detection task with the cable classification task, and jointly learns and optimizes based on the shared feature extraction network; S4: After feature extraction, a defect detection branch is established, thresholds are set, and defects are located and classified through convolution and pooling operations; S5: Using the classification branch, the features are mapped to cable categories through the fully connected layer to achieve automatic classification; S6, data augmentation techniques are applied during training to perform random rotation, translation, and scaling to increase the diversity of training data, thereby improving the robustness and generalization performance of the model; S7, implements an adaptive learning rate strategy to dynamically adjust the learning rate according to the model training status to accelerate network convergence and improve detection accuracy; S8, for the continuously shot cable image sequence, a spatiotemporal convolutional neural network is used to capture the spatial and temporal evolution information of defects; S9, integrates cross-modal multi-sensor data, fuses visual and non-visual sensor information, and forms a unified feature representation to fully understand the cable status and identify defects; S10, embeds the attention mechanism in the defect detection branch to adaptively highlight the potential defect areas, thereby achieving refined defect localization.
2. The cable defect detection method based on a large model according to claim 1, characterized in that: In step S1, the cable edge linearization technology is to achieve cable image splicing and edge smoothing transition through interpolation scaling technology under the average pixel point standard, including nearest interpolation method or bilinear interpolation method.
3. The cable defect detection method based on a large model according to claim 1, characterized in that: In step S5, automatic classification is to effectively identify different types of cable defects through comprehensive analysis of geometric features, grayscale features and texture features, and use a special classifier to improve the recognition accuracy of small pinhole defects and reduce the false alarm rate.
4. A cable defect detection system based on a large model, used to implement the cable defect detection method according to any one of claims 1 to 3, characterized in that: The system includes: Image preprocessing module, which has image denoising and enhancement functions, and uses cable edge linearization technology and interpolation scaling method to perform image standardization splicing and continuity processing to facilitate feature extraction; The feature extraction unit uses a convolutional neural network architecture to extract cable image features, including color, texture, and shape features, through multi-level convolution and pooling operations; A multi-task learning component that integrates cable defect detection and cable classification tasks, and jointly learns and optimizes on a shared feature extraction network; The defect detection module has a convolutional network branch that determines the specific location and type of defects through convolution and pooling layers; Classification module, which contains a fully connected layer structure for automatic classification and identification of cables; Data augmentation module, which implements random rotation, translation, and scaling operations on training data to enhance the robustness and generalization ability of the model; Adaptive learning rate adjustment module, dynamically adjusts the learning rate according to the model training status, accelerates network convergence and improves detection accuracy; Image preprocessing hardware facilities support the linearization of cable edges and smooth transition of image stitching, and use nearest neighbor interpolation or bilinear interpolation for interpolation and scaling; Spatiotemporal convolutional neural network, which captures the spatial and temporal evolution characteristics of defects in a sequence of continuously shot cable images; The cross-modal multi-sensor fusion module is used to deeply fuse the data from visual sensors and non-visual sensors to generate a unified feature representation, and to fully understand and accurately identify the cable status and its potential defects through the multi-modal fusion layer; The attention-driven refined positioning module has a built-in self-attention mechanism, which generates adaptive weights for potential defect areas through channel attention and spatial attention to achieve pixel-level defect positioning.
5. The cable defect detection system based on a large model according to claim 4 is characterized in that: The system adopts a multi-level and multi-task collaborative learning architecture. Each task sets a loss function at a different depth. By sharing the early feature extraction layer and differentiating specific detection branches and classification branches in the later stage, it realizes the full mining of global and local information and mutual learning and promotion between tasks.
6. The cable defect detection system based on a large model according to claim 4, characterized in that: The system also includes: a dynamic adaptive learning rate scheduling module, which dynamically adjusts the learning rate according to the performance of the model during training to achieve rapid convergence and suppress overfitting.
7. The cable defect detection system based on a large model according to claim 4, characterized in that: The system also includes: a deep supervision and incremental learning integration module, which inserts supervision layers at different depths of the feature extraction network and uses transfer learning and fine-tuning strategies for incremental training when faced with new defect data.
Citation Information
Patent Citations
Security defect report prediction method based on multi-task deep learning
CN112001484A
Weld defect recognition method based on cross-modal attention mechanism
CN113822178A
Concrete structure surface defect classification method and system based on hybrid neural network
CN117218434A
Cable head defect intelligent detection system
CN117455843A
Method for segmentation of underground drainage pipeline defects based on full convolutional neural network
US20210319265A1
