Power cable image identification and labeling method and system based on CNN model
By combining CNN model and SVM model, using images and three-dimensional data for power cable detection, the problem of difficult detection in complex backgrounds is solved, and the accuracy and reliability of cable defects are achieved is improved. sex.
Patent Information
- Application Number
- CN202411540185.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-10-31
AI Technical Summary
The existing power cable detection technology based on image recognition is difficult to accurately detect cable defects under complex background interference, and lacks effective texture feature extraction and classification algorithms, resulting in missed or mis-checking, which is difficult to meet the actual application needs.
Using the power cable image recognition and labeling method based on the CNN model, the basic image and three-dimensional point cloud data are collected for fusion, the target detection is used for CNN network, and the texture features are extracted through FFT transformation, and fault classification is combined with the SVM model to realize the alignment Accurate identification and classification of cable defects.
It improves the accuracy and reliability of power cable detection, reduces missed and missed detection, and can more accurately detect cable defects and fault types, and supports subsequent maintenance and management work.
Smart Images

Figure CN119169001A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system inspection, and in particular to a method and system for power cable image recognition and annotation based on a CNN model. Background Art
[0002] In the power system, power cables are important components for transmitting electric energy, and their operating status is directly related to the stability and safety of the power system. Therefore, regular inspection and maintenance of power cables and timely detection and treatment of cable defects are necessary measures to ensure the safe operation of the power system. Traditionally, the inspection of power cables mainly relies on manual inspections, which is not only inefficient, but also easily affected by human factors, resulting in missed inspections or misjudgments.
[0003] With the rapid development of computer vision and artificial intelligence technology, power cable detection technology based on image recognition has gradually become a research hotspot. Existing power cable detection technology based on image recognition mainly relies on deep learning algorithms, especially convolutional neural network (CNN) models, which perform well in image feature extraction and target detection.
[0004] However, the existing technology still has the following major problems: the existing power cable detection technology based on image recognition is large. Although the CNN model has advantages in image feature extraction and target detection, under complex background interference, especially when the cable defect is similar to the background color or the defect feature is not obvious, the target detection accuracy of the CNN model is easily affected, resulting in missed detection or false detection; in addition, the existing power cable detection technology often relies solely on raw image data when classifying cable defects, lacks effective texture feature extraction and classification algorithms, which leads to limited accuracy and generalization ability of the classification results. When it is necessary to adjust the subsequent line layout according to the cable damage type, it is difficult to meet the needs of actual applications. Summary of the invention
[0005] The present invention provides a method and system for power cable image recognition and labeling based on a CNN model, so as to solve the defects of the prior art.
[0006] The present invention provides a method for identifying and labeling power cable images based on a CNN model, comprising: S1: Collecting a basic image and three-dimensional point cloud data of a power line, and fusing the basic image and the three-dimensional point cloud data to obtain a fused image; S2: performing target detection on the fused image based on a CNN network to obtain a target area image including cable defects; S3: Performing FFT transformation on the target area image to obtain a texture enhanced image; S4: Establishing a SVM model, and performing cable fault classification based on cable defects through the target area image and the texture enhanced image to complete the recognition and labeling of the power cable image.
[0007] According to a method for power cable image recognition and labeling based on a CNN model provided by the present invention, step S1 further comprises: S11: Collect basic image and 3D point cloud data respectively; S12: Converting the time domain signal in the three-dimensional point cloud data into a pixel grayscale value to obtain a three-dimensional point cloud image; S13: Performing Gaussian filtering on the basic image to obtain a Gaussian image; S14: performing weighted averaging fusion of the three-dimensional point cloud image and the Gaussian image to obtain a fused image.
[0008] According to a method for power cable image recognition and labeling based on a CNN model provided by the present invention, the basic image in step S11 includes a high-definition image and a hyperspectral image.
[0009] According to a method for power cable image recognition and labeling based on a CNN model provided by the present invention, step S2 further comprises: S21: adding noise to the annotated image with cable defects to obtain a noise image; S22: using the densely connected network as a backbone network and training it with the noise image to obtain a target detection network; S23: Performing target detection on the fused image through the target detection network to obtain a target area image.
[0010] According to a method for power cable image recognition and labeling based on a CNN model provided by the present invention, step S21 further includes: S211: Acquire a reference annotation frame in the annotated image, and acquire corner points of the reference annotation frame; S212: performing Gaussian distribution sampling and uniform distribution sampling on the corner points to obtain a first random factor and a second random factor respectively; S213: expanding the reference annotation frame by using the first random factor to obtain a first noise annotation frame; S214: scaling the first noise annotation box by the second random factor to obtain a second noise annotation box; S215: Add the second noise annotation frame to the annotated image and retain the reference annotation frame to obtain a noise image.
[0011] According to a method for power cable image recognition and labeling based on a CNN model provided by the present invention, step S3 further comprises: S31: Mapping the target area image to the frequency domain through forward FFT transformation to obtain a frequency domain image; S32: filtering the low-frequency features of the frequency domain image to obtain a high-frequency image; S33: Convert the high-frequency image to the spatial domain through inverse FFT transformation to obtain a texture enhanced image.
[0012] According to a method for power cable image recognition and labeling based on a CNN model provided by the present invention, step S4 further comprises: S41: inputting the target region image and the texture enhanced image to obtain a target region feature vector and a texture enhanced feature vector respectively; S42: training and testing the target region feature vector and the texture enhancement feature vector to obtain a target region accuracy rate and a texture enhancement accuracy rate; S43: Calculating an average accuracy based on the target area accuracy and the texture enhancement accuracy; S44: performing weighted fusion on the target area feature vector and the texture enhancement feature vector based on the average accuracy to obtain a fused feature vector.
[0013] According to a method for power cable image recognition and labeling based on a CNN model provided by the present invention, the cable fault classification in step S4 includes aging, corrosion and damage.
[0014] The present invention also provides a power cable image recognition and labeling system based on a CNN model, which is used to execute a power cable image recognition and labeling method based on a CNN model as described in any one of the above items, comprising: Image acquisition module: used to acquire basic images and three-dimensional point cloud data of power lines, and also used to fuse the basic images and the three-dimensional point cloud data to obtain a fused image; Target detection module: used to perform target detection on the fused image based on the CNN network to obtain a target area image including cable defects; Texture enhancement module: used for performing FFT transformation on the target area image to obtain a texture enhanced image; Classification module: used to establish an SVM model, and classify cable faults based on cable defects through the target area image and the texture enhanced image to complete the identification and labeling of power fault images.
[0015] According to a power cable image recognition and annotation system based on a CNN model provided by the present invention, the image acquisition module specifically includes: Image unit: used to collect basic images of power lines; Point cloud unit: used to collect three-dimensional point cloud data of power lines; Fusion unit: used for fusing the basic image and the three-dimensional point cloud data to obtain a fused image.
[0016] The present invention provides a method and system for power cable image recognition and annotation based on a CNN model. The method collects basic images and three-dimensional point cloud data of power lines and performs fusion processing to comprehensively reflect the actual status of cables. Subsequently, the fused image is subjected to target detection by using a CNN network to obtain a target area image of cable defects. Next, the target area image is subjected to FFT transformation to extract texture features. Finally, a SVM model is established to classify cable faults in combination with the target area image and the texture enhanced image to complete the recognition and annotation of power cable images.
[0017] In the detection of power cables, the comprehensiveness and accuracy of data are crucial. The present invention realizes the comprehensive perception of power cables in a complex three-dimensional environment by collecting basic images and three-dimensional point cloud data. The basic image provides the appearance information of the cable, such as color, shape, etc., while the three-dimensional point cloud data provides three-dimensional information such as the spatial position and form of the cable. The fusion processing of these two types of data can not only more accurately reflect the actual status of the cable, but also effectively avoid the information loss or error that may be caused by a single data source. In addition, through the fusion algorithm, the present invention can further optimize the fusion effect of the data and improve the accuracy and reliability of the detection results.
[0018] The present invention uses CNN network to detect targets on fused images, giving full play to the advantages of CNN network in image feature extraction and target recognition. At the same time, the Fourier transform is combined to extract texture features, further enhancing the recognition ability of cable defects. FFT transform can reveal the texture information in the image. Based on this, the present invention can more accurately detect cable defects, such as cracks and breaks, and effectively reduce missed detection and false detection.
[0019] In addition, for defect classification in power cable detection, the present invention establishes an SVM model, which combines the target area image and texture enhanced image to classify cable faults. Through training and optimization, the SVM model can accurately identify the fault type of the cable, which not only helps to timely discover and handle cable faults, but also provides strong support for subsequent maintenance and replacement work.
[0020] Generally speaking, the method of the present invention can automatically complete the detection and classification of power cables, greatly improving the detection efficiency and accuracy, not only reducing labor costs, but also improving the accuracy and reliability of detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the present invention or 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 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.
[0022] Figure 1 A schematic diagram of a flow chart of a method for power cable image recognition and annotation based on a CNN model provided in an embodiment of the present invention; Figure 2 A schematic diagram of the structure of a power cable image recognition and annotation system based on a CNN model provided in an embodiment of the present invention.
[0023] Reference numerals: 100, image acquisition module; 200, target detection module; 300, texture enhancement module; 400, classification module. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments, and they should not be understood as limitations on the present invention. 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. In the description of the present invention, it should be understood that the terms used are only for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0025] Combine the following Figure 1 to Figure 2 Embodiments of the present invention are described.
[0026] like Figure 1 As shown, the present invention provides a method for identifying and labeling power cable images based on a CNN model, comprising: S1: Collecting a basic image and three-dimensional point cloud data of a power line, and fusing the basic image and the three-dimensional point cloud data to obtain a fused image.
[0027] Wherein, step S1 further comprises: S11: Collect basic image and 3D point cloud data respectively.
[0028] The basic image in step S11 includes a high-definition image and a hyperspectral image.
[0029] In step S11, firstly, high-definition images and hyperspectral images of the power lines are collected. The collected high-definition images provide the appearance details of the cables, including color, texture, and shape, while the hyperspectral images can capture richer spectral information, reflecting the subtle differences and potential defects of the cable materials. Secondly, point cloud technology (in this embodiment, laser radar (LiDAR)) is used to obtain three-dimensional point cloud data of the power lines and their surroundings, which specifically includes three-dimensional information such as the spatial position, shape, and surface structure of the cables.
[0030] S12: Convert the time domain signal in the three-dimensional point cloud data into a pixel grayscale value to obtain a three-dimensional point cloud image.
[0031] S13: Perform Gaussian filtering on the basic image to obtain a Gaussian image.
[0032] S14: performing weighted averaging fusion of the three-dimensional point cloud image and the Gaussian image to obtain a fused image.
[0033] In steps S12 to S14, each point in the three-dimensional point cloud data is first converted into a pixel point in the two-dimensional image, where the grayscale value of each pixel corresponds to a certain attribute of the point in the point cloud data. Subsequently, by applying a Gaussian filter to the base image, a smoother and less noisy image version can be generated, that is, the above-mentioned Gaussian image. Finally, the pixel values of the two images are weighted averaged to generate a fused image.
[0034] Furthermore, the combination of the image and the three-dimensional point cloud in step S1, or steps S11 to S14, achieves information complementarity, providing appearance details and spectral information of the cable based on the image, while the three-dimensional point cloud provides the spatial position and morphological information of the cable, and the two together constitute a comprehensive description of the cable status.
[0035] By fusing images, we can make full use of the respective advantages of images and 3D point clouds to improve the accuracy of cable defect detection. The color and texture information in the image helps to identify tiny defects on the cable surface, while the spatial information in the 3D point cloud helps to locate the specific locations of these defects, providing a basis for subsequent cable fault classification, fault location after classification, and corresponding repair processing decisions.
[0036] In addition, since the cable laying location is exposed to the outdoors for a long time, ordinary high-definition cameras may not be able to characterize the actual cable situation due to the influence of lighting conditions. The fused image of the present invention can cope with complex situations such as different lighting conditions, occlusion and noise, thereby improving the robustness of detection.
[0037] S2: Perform target detection on the fused image based on the CNN network to obtain a target area image including cable defects.
[0038] Wherein, step S2 further comprises: S21: Noising the labeled image with cable defects to obtain a noisy image.
[0039] In order to improve the robustness and generalization ability of the target detection network, this step adds noise to the labeled images with cable defects. Noising can increase the diversity of data and enable the network to learn more useful features during training. The purpose of adding noise is to enhance the robustness of the network, improve its performance in practical applications, and improve the generalization ability of the model.
[0040] In practical applications, images of power cables are often disturbed by various noises, such as changes in lighting, weather conditions, differences in equipment performance, and losses during transmission, which can cause image quality degradation and affect the accuracy of the target detection network. The present invention can simulate the noise in these real environments by adding noise to the annotated images, so that the network can learn how to accurately identify cable defects in such a noisy environment during training.
[0041] In addition, in step S1, since images need to be fused, the images are denoised. If the network relies on noise-free annotated images for training, overfitting will occur. Overfitting refers to the phenomenon that the network is too dependent on training data during training and cannot be generalized to new data well. When encountering noise interference in actual applications, network performance may drop significantly. Therefore, in this stage, by adding noise to the annotated images, the difficulty of network training can be increased so that it will not be too dependent on the detailed features of the training data, thereby reducing the risk of overfitting.
[0042] Wherein, step S21 further includes: S211: Acquire a reference annotation frame in the annotated image, and acquire corner points of the reference annotation frame.
[0043] First, the reference annotation boxes containing cable defects are identified and collected from the annotated image. The annotation boxes are usually drawn on the image by an automatic annotation tool to indicate the location and range of the cable defects. Then, the corner point information of these reference annotation boxes is collected. Since the annotation boxes are standard rectangles, the collected corner points are used to provide reference points for subsequent transformation operations.
[0044] S212: Perform Gaussian distribution sampling and uniform distribution sampling on the corner points to obtain a first random factor and a second random factor respectively.
[0045] In step S212, first, Gaussian distribution sampling is used to generate a first random factor, and the random factor of Gaussian sampling simulates the random distribution characteristics of noise in the image. Then, uniform distribution sampling is used to generate a second random factor, and uniform distribution sampling provides a more uniform noise variation range.
[0046] S213: Expand the reference annotation frame using the first random factor to obtain a first noise annotation frame.
[0047] S214: Scaling the first noise annotation box by using the second random factor to obtain a second noise annotation box.
[0048] S215: Add the second noise annotation frame to the annotated image and retain the reference annotation frame to obtain a noise image.
[0049] In steps S213 to S215, the reference annotation frame is first expanded according to the first random factor obtained by sampling from the Gaussian distribution, which can simulate the expansion or blurring phenomenon that may occur in the actual image of the cable defect, thereby increasing the diversity of the data; then, the first noise annotation frame is scaled using the second random factor obtained by sampling from the uniform distribution, which further increases the diversity of the data and simulates the performance of cable defects at different scales; finally, the second noise annotation frame is added to the original annotated image, while retaining the original reference annotation frame. This is done to utilize the information of the noise annotation frame and the real annotation frame simultaneously during the training process, so that the network can learn how to accurately identify cable defects in a noisy environment.
[0050] S22: Using the densely connected network as a backbone network and training it with the noise image to obtain a target detection network.
[0051] S23: Performing target detection on the fused image through the target detection network to obtain a target area image.
[0052] DenseNet (Densely Connected Network) uses dense connections so that each layer can receive feature maps from all previous layers as input, which not only promotes feature reuse, but also maximizes the flow of information between layers, helping the network learn deeper feature representations. In power cable fault detection, this feature reuse and efficient information transmission capabilities help the network accurately identify cable defects from complex image backgrounds and improve detection accuracy.
[0053] In addition, in power cable fault detection, since cables are usually laid in complex environments, they face various challenges of noise and interference. DenseNet (densely connected network) is used as the backbone network, combined with the training method of noisy images, so that the network can better adapt to these complex environments and improve the accuracy and stability of detection. DenseNet's efficient information transmission and feature reuse capabilities enable the network to identify cable defects more quickly during the detection process, which helps to improve detection efficiency and reduce the time cost of manual intervention.
[0054] S3: Perform FFT transformation on the target area image to obtain a texture enhanced image.
[0055] Wherein, step S3 further comprises: S31: Mapping the target area image to the frequency domain through forward FFT transformation to obtain a frequency domain image.
[0056] In step S31, each pixel value in the target area image is converted into its corresponding representation in the frequency domain through forward FFT transformation. In the frequency domain, the image is decomposed into components of different frequencies, which reflect the spatial variation characteristics in the image. For the power cable fault detection in this embodiment, the spatial variation characteristics include the texture, edge, and break point of the cable. Different spatial variation characteristics appear in the frequency domain image in the form of spectral lines or spots of different frequencies.
[0057] S32: Filter the low-frequency features of the frequency domain image to obtain a high-frequency image.
[0058] In power cable fault detection, low-frequency features usually correspond to smooth areas or large areas of color changes in the image, representing the background or normal parts of the cable, while high-frequency features correspond to details and texture features in the image, such as the edges, breakpoints or damaged fault areas of the cable.
[0059] In order to highlight these high-frequency features, the present invention applies a high-pass filter to the frequency domain image in step S32 to block low-frequency components and allow high-frequency components to pass. After filtering, an image mainly composed of high-frequency components can be obtained, that is, the above-mentioned high-frequency image. The image highlights the details and texture features in the cable, making the fault area easier to identify.
[0060] S33: Convert the high-frequency image to the spatial domain through inverse FFT transformation to obtain a texture enhanced image.
[0061] After the filtering process in step S32, the obtained high-frequency image highlights the details and texture features in the cable, but the high-frequency image is still in the frequency domain. In order to convert it back to the spatial domain for further image analysis and processing, we need to apply an inverse FFT transform.
[0062] Through the inverse FFT transform, each frequency component in the high-frequency image is converted into its corresponding pixel value in the spatial domain, that is, a texture-enhanced image is obtained. This image retains the details and texture features in the high-frequency image in the spatial domain, while removing the smoothing effect brought by the low-frequency components, making the cable fault area in the image more prominent and clear, and can distinguish the subtle differences in cable damage areas caused by different damage types, thereby improving the accuracy and reliability of fault detection.
[0063] S4: Establishing a SVM model, and performing cable fault classification based on cable defects through the target area image and the texture enhanced image to complete the recognition and labeling of the power cable image.
[0064] The cable fault classification in step S4 includes aging, corrosion and damage.
[0065] Aging is manifested as changes in the physical and chemical properties of the cable insulation layer, resulting in a decrease in insulation performance. In terms of texture, the aged cable insulation layer may show uneven tones, rough surfaces or fine cracks. The cracks are formed due to long-term electrical, thermal and other factors and are distributed along the axial or circumferential direction of the cable. Corrosion is manifested as the cable sheath or insulation layer being corroded by chemicals, resulting in corrosion spots, depressions or perforations on the surface. The texture of the corroded area is relatively rough, with obvious signs of corrosion, and the color is different from the surrounding area. Damage is manifested as obvious scratches, cut marks or fractures on the cable surface. The texture of the damaged area is usually in sharp contrast with the surrounding area, and may show characteristics such as fractures, depressions or protrusions. The damage may be caused by external forces (such as construction damage, etc.) or mechanical stress (such as bending, stretching, etc.).
[0066] Furthermore, based on the texture features of the above-mentioned different cable fault manifestations and the texture features in the above-mentioned image, the cable fault type can be classified by SVM in step S4, including aging, corrosion and damage.
[0067] Wherein, step S4 further comprises: S41: Input the target region image and the texture enhanced image to obtain a target region feature vector and a texture enhanced feature vector respectively.
[0068] For the training of the SVM model, the target area image and texture enhanced image obtained after preliminary processing are first input. These two images represent the original information of the cable fault area and the information after texture enhancement processing, respectively. Then vector extraction is performed. For the target area image, the extracted feature vector is the target area feature vector. For the texture enhanced image, the extracted feature vector is the texture enhanced feature vector, which contains key information in the image such as edges, textures, colors, etc.
[0069] S42: training and testing the target region feature vector and the texture enhancement feature vector to obtain a target region accuracy rate and a texture enhancement accuracy rate.
[0070] S43: Calculate an average accuracy based on the target area accuracy and the texture enhancement accuracy.
[0071] S44: performing weighted fusion on the target area feature vector and the texture enhancement feature vector based on the average accuracy to obtain a fused feature vector.
[0072] In steps S42 to S43, firstly, the accuracy of the target region feature vector on the test data set is obtained through testing, that is, the target region accuracy. Similarly, we can also obtain the accuracy of the texture enhancement feature vector on the test data set, that is, the texture enhancement accuracy. In the subsequent step S44, the weight of each feature vector is determined according to the ratio of the average accuracy. Specifically, if the target region accuracy is higher than the texture enhancement accuracy, the weight of the target region feature vector should be greater. Conversely, if the texture enhancement accuracy is higher, the weight of the texture enhancement feature vector should be greater.
[0073] Through weighted fusion, a fused feature vector that combines the target area feature vector and the texture enhancement feature vector information can be obtained. This fused feature vector contains both the information of the original image and the information after texture enhancement processing, so it may have better performance in identifying cable fault types.
[0074] like Figure 2 As shown, the present invention also provides a power cable image recognition and annotation system based on a CNN model, comprising: Image acquisition module 100: used to acquire basic images and three-dimensional point cloud data of power lines, and also used to fuse the basic images and the three-dimensional point cloud data to obtain a fused image.
[0075] The image acquisition module 100 specifically includes: Image unit: used to collect basic images of power lines.
[0076] Point cloud unit: used to collect three-dimensional point cloud data of power lines.
[0077] Fusion unit: used for fusing the basic image and the three-dimensional point cloud data to obtain a fused image.
[0078] The target detection module 200 is used to perform target detection on the fused image based on the CNN network to obtain a target area image including cable defects.
[0079] In a specific embodiment, the image unit includes a common high-definition image device and a hyperspectral device, wherein the high-definition image device in this embodiment adopts LUMIX GH6, and the hyperspectral camera adopts FigSpec FS2X series imaging hyperspectral camera, and the point cloud unit adopts FARO Focus series. The above devices are all installed on a fixed bracket of a drone or inspection robot, and the scanning angle and distance are adjusted according to the scanning requirements for collection.
[0080] Texture enhancement module 300: used to perform FFT transformation on the target area image to obtain a texture enhanced image.
[0081] Classification module 400: used to establish an SVM model, and classify cable faults based on cable defects through the target area image and the texture enhanced image to complete the identification and labeling of power fault images.
[0082] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0084] The present invention provides a method and system for power cable image recognition and annotation based on a CNN model, which obtains a fused image containing richer information by fusing a basic image with three-dimensional point cloud data, improves the dimension and details of the image, and makes subsequent target detection more accurate, thereby helping to improve the accuracy of target detection.
[0085] Secondly, annotated images with cable defects are denoised and trained through a densely connected network to obtain a more robust target detection network that can better cope with image recognition tasks in complex environments, improve the accuracy and stability of target detection, and quickly and accurately identify the target area of cable defects from the fused image, providing strong support for subsequent processing.
[0086] In addition, by performing FFT transformation on the target area image, mapping it to the frequency domain, and filtering out low-frequency features to obtain a high-frequency image, the texture features in the image are highlighted, making subsequent feature extraction more effective. Then, the inverse FFT transformation is performed to convert the high-frequency image back to the spatial domain to obtain a texture-enhanced image. While retaining the original information, the texture features of the cable defects are further highlighted, which helps to improve the accuracy of classification.
[0087] Finally, by establishing the SVM model, the target area image and texture enhanced image are used to classify cable faults based on cable defects. The various features of the image are comprehensively considered to improve the accuracy and reliability of classification. The application of the SVM model enables cable faults to be accurately classified into types such as aging, corrosion and damage, providing strong support for the maintenance and management of power cables.
[0088] Generally speaking, the present invention can quickly and accurately identify the defects and fault types of power cables, thereby improving the maintenance efficiency of power cables, reducing power outages and safety hazards caused by cable failures, and ensuring the stable operation of the power system; secondly, through precise image recognition and classification, unnecessary repair and replacement work can be reduced, thereby reducing the maintenance cost of power cables. At the same time, the present invention also helps to timely discover potential safety hazards, avoid accidents, and further reduce economic losses.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for power cable image recognition and annotation based on CNN model, characterized in that: include: S1: Collecting a basic image and three-dimensional point cloud data of a power line, and fusing the basic image and the three-dimensional point cloud data to obtain a fused image; S2: performing target detection on the fused image based on a CNN network to obtain a target area image including cable defects; S3: Performing FFT transformation on the target area image to obtain a texture enhanced image; S4: Establishing a SVM model, and performing cable fault classification based on cable defects through the target area image and the texture enhanced image to complete the recognition and labeling of the power cable image.
2. According to the method for power cable image recognition and labeling based on CNN model in claim 1, it is characterized in that: Step S1 further comprises: S11: Collect basic image and 3D point cloud data respectively; S12: Converting the time domain signal in the three-dimensional point cloud data into a pixel grayscale value to obtain a three-dimensional point cloud image; S13: Performing Gaussian filtering on the basic image to obtain a Gaussian image; S14: performing weighted averaging fusion on the three-dimensional point cloud image and the Gaussian image to obtain a fused image.
3. The method for power cable image recognition and labeling based on CNN model according to claim 1, characterized in that: The basic image in step S11 includes a high-definition image and a hyperspectral image.
4. The method for power cable image recognition and labeling based on CNN model according to claim 1, characterized in that: Step S2 further comprises: S21: adding noise to the annotated image with cable defects to obtain a noise image; S22: using the densely connected network as a backbone network and training it with the noise image to obtain a target detection network; S23: Performing target detection on the fused image through the target detection network to obtain a target area image.
5. The method for power cable image recognition and labeling based on CNN model according to claim 4 is characterized in that: Step S21 further comprises: S211: Acquire a reference annotation frame in the annotated image, and acquire corner points of the reference annotation frame; S212: performing Gaussian distribution sampling and uniform distribution sampling on the corner points to obtain a first random factor and a second random factor respectively; S213: expanding the reference annotation frame by using the first random factor to obtain a first noise annotation frame; S214: scaling the first noise annotation box by the second random factor to obtain a second noise annotation box; S215: Add the second noise annotation frame to the annotated image and retain the reference annotation frame to obtain a noise image.
6. The method for power cable image recognition and labeling based on CNN model according to claim 1, characterized in that: Step S3 further comprises: S31: Mapping the target area image to the frequency domain through forward FFT transformation to obtain a frequency domain image; S32: filtering the low-frequency features of the frequency domain image to obtain a high-frequency image; S33: Convert the high-frequency image to the spatial domain through inverse FFT transformation to obtain a texture enhanced image.
7. The method for power cable image recognition and labeling based on CNN model according to claim 1, characterized in that: Step S4 further comprises: S41: inputting the target region image and the texture enhanced image to obtain a target region feature vector and a texture enhanced feature vector respectively; S42: training and testing the target region feature vector and the texture enhancement feature vector to obtain a target region accuracy rate and a texture enhancement accuracy rate; S43: Calculating an average accuracy based on the target area accuracy and the texture enhancement accuracy; S44: performing weighted fusion on the target area feature vector and the texture enhancement feature vector based on the average accuracy to obtain a fused feature vector.
8. The method for power cable image recognition and labeling based on CNN model according to claim 1, characterized in that: The cable fault classification in step S4 includes aging, corrosion and damage.
9. A power cable image recognition and labeling system based on a CNN model, used to execute a power cable image recognition and labeling method based on a CNN model as claimed in any one of claims 1 to 8, characterized in that: include: Image acquisition module: used to acquire basic images and three-dimensional point cloud data of power lines, and also used to fuse the basic images and the three-dimensional point cloud data to obtain a fused image; Target detection module: used to perform target detection on the fused image based on the CNN network to obtain a target area image including cable defects; Texture enhancement module: used for performing FFT transformation on the target area image to obtain a texture enhanced image; Classification module: used to establish an SVM model, and classify cable faults based on cable defects through the target area image and the texture enhanced image to complete the identification and labeling of power fault images.
10. The power cable image recognition and annotation system based on the CNN model according to claim 9, characterized in that: The image acquisition module specifically includes: Image unit: used to collect basic images of power lines; Point cloud unit: used to collect three-dimensional point cloud data of power lines; Fusion unit: used for fusing the basic image and the three-dimensional point cloud data to obtain a fused image.
Citation Information
Patent Citations
Electric power fault detection method based on visible light and infrared fusion image
CN112233074A
Steel wire rope surface defect identification method based on feature fusion
CN115565011A
Data enhancement method and system based on image fusion and storage medium
CN115908993A
Electronic component defect identification method and device based on convolutional neural network
CN116245802A
Equipment defect detection model training method, equipment defect detection method and device
CN118865022A
Cited By
Color-coated sheet defect detection method, device and system based on multi-modal information
CN119762929A
Electrical equipment defect detection method and system
CN120032193A
Real-time displacement monitoring method and system for tension test of horizontal acting force of ground wire
CN120125637A
Food conveying detection method and device based on image recognition
CN120375363A
Image Recognition-Based Food Conveying Detection Method and Device
CN120375363B
