Hydropower industry material pit identification method based on multi-scale feature fusion
Through the method of multi-scale feature fusion, the problem of automatic identification of pit detection in the hydropower industry is solved, efficient and accurate automatic identification of pits on the surface of hydropower equipment is achieved, and work efficiency is improved.
Patent Information
- Application Number
- CN202410621109.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, the detection of metal and concrete pits in the hydropower industry mainly relies on manual detection, which is labor-intensive and low-efficiency, and cannot realize automatic identification.
A method based on multi-scale feature fusion is used to generate a feature data set through image acquisition, geometric correction, preprocessing, image pyramid feature extraction and feature fusion, and algorithms such as support vector machines are used for pit recognition to achieve automated recognition.
It improves the efficiency and accuracy of identifying pits on metal and concrete surfaces of hydropower equipment, reduces the labor intensity of manual inspection, and realizes automated pit detection and evaluation.
Smart Images

Figure CN118736358A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition, and in particular to a method for identifying material pits in the hydropower industry based on multi-scale feature fusion. Background Art
[0002] In the hydropower industry, metal and concrete pits refer to local depressions formed on the surface of metal or concrete structures. These pits may be caused by a variety of factors, such as material aging, physical impact, construction defects, environmental erosion, etc. Their presence will affect the efficiency and safe operation of hydro-generators, because pits will change the flow characteristics of the fluid, causing water separation, increased resistance and reduced efficiency. At the same time, metal and concrete pits may also become concentrated areas of corrosion, accelerating the aging and damage of the structure. Therefore, the detection, evaluation and repair of metal and concrete pits in the hydropower industry are important links to ensure the safe and stable operation of hydropower stations.
[0003] Currently, the main method for detecting pits is still manual detection, which is labor-intensive and has low work efficiency. Summary of the invention
[0004] The purpose of the present invention is to provide a method for identifying pits in hydropower industry materials based on multi-scale feature fusion, aiming to automatically and accurately identify pits on the metal and concrete surfaces of hydropower equipment, thereby improving work efficiency.
[0005] To achieve the above-mentioned purpose, the present invention provides a method for identifying pits in hydropower industry materials based on multi-scale feature fusion, comprising collecting images of metal and concrete surfaces of hydropower equipment with pits to obtain a target image;
[0006] Perform geometric correction on the target image;
[0007] Preprocessing the corrected image to enhance the image;
[0008] Image pyramid is used to extract multi-scale features of the target image;
[0009] Fuse multi-scale features to obtain fused features and generate a feature data set;
[0010] The fused features are used to identify the pits in the current image.
[0011] The specific steps of collecting the metal and concrete surface images of the hydropower equipment with pits to obtain the target image include:
[0012] Take multiple images at different locations of pits on metal and concrete surfaces of hydroelectric equipment;
[0013] The image is stored in the host computer.
[0014] The specific steps of geometrically correcting the target image include:
[0015] Select the target image control point;
[0016] generating a quadratic polynomial geometric correction model based on a target image;
[0017] Resample the entire image based on a geometric correction model.
[0018] The specific steps of preprocessing the corrected image include:
[0019] The image is processed using median filtering;
[0020] Filter the image using a Gaussian function as a convolution kernel with weight distribution;
[0021] Adjust the brightness and contrast of the image.
[0022] The specific steps of extracting multi-scale features of metal concrete images using image pyramid include:
[0023] Select the original image as the starting point for the pyramid analysis;
[0024] Apply the image pyramid algorithm to scale the original image layer by layer. At each layer, the size of the image is halved and the pixel value is reduced proportionally.
[0025] Apply feature detection algorithms at each scale to identify feature points in the image;
[0026] Analyze the feature points detected at each scale and extract the attributes of the feature points;
[0027] The feature points at different scales are integrated to obtain multi-scale features.
[0028] The specific steps of fusing the multi-scale features to obtain the fused features and generate the feature data set include:
[0029] Normalize the extracted features;
[0030] Encode features into binary form;
[0031] Different feature maps are merged into one feature map by summing them.
[0032] The step of using the fused features to identify the pits in the current image includes:
[0033] Split the feature dataset into a training set and a validation set;
[0034] Use the fused features to train the support vector machine to obtain a recognition model;
[0035] Verify the performance of the model through the validation set and make model modifications;
[0036] Obtaining the concrete image that currently needs to be identified;
[0037] The recognition model is used to identify the concrete image and obtain the pit recognition result.
[0038] The specific step of merging different feature maps into one feature map by summing includes:
[0039] Convert the feature maps to be merged to the same spatial resolution;
[0040] For each pixel, add the channel values of the corresponding pixels in different feature maps;
[0041] The summed feature map is normalized.
[0042] The method for identifying pits in hydropower industry materials based on multi-scale feature fusion of the present invention comprises: collecting metal and concrete surface images of hydropower equipment with pits to obtain a target image; geometrically correcting the target image; preprocessing the corrected image to enhance the image; extracting multi-scale features of the target image using an image pyramid; fusing the multi-scale features to obtain fused features and generating a feature data set; and using the fused features to identify pits in the current image. The metal and concrete surface images of hydropower equipment with pits are collected by a high-definition camera. During the collection process, attention should be paid to factors such as illumination, angle and focal length to ensure that the image is clear and complete. The obtained target image provides basic data for subsequent processing. Since the collection process may be affected by factors such as the position and angle of the equipment, the image may be geometrically distorted. Therefore, it is necessary to geometrically correct the target image to eliminate the distortion so that the image more truly reflects the actual surface situation. The corrected image is preprocessed, including denoising, filtering, contrast enhancement and other operations to improve the image quality. The purpose of this step is to provide high-quality image data for subsequent feature extraction and recognition. The multi-scale features of the target image are extracted using an image pyramid method. Image pyramid can capture the feature information of pits at different scales by representing images at different scales. This method is very effective for identifying pits of different sizes and shapes. The extracted multi-scale features are fused to obtain fused features. The purpose of feature fusion is to integrate feature information at different scales to improve the accuracy and robustness of recognition. Through feature fusion, the morphology and characteristics of pits can be described more comprehensively. The fused features are used to generate feature data sets for subsequent training and recognition. The quality of the feature data set directly affects the recognition effect, so the data set needs to be screened and optimized to ensure the quality and diversity of the data. The fused features are used to identify pits in the current image. Machine learning, deep learning and other algorithms can be used to train the feature data set and establish a pit recognition model. The accuracy and efficiency of pit recognition can be improved by continuously optimizing and adjusting the model. In this way, the accurate recognition of pits on the metal and concrete surfaces of hydropower equipment can be realized automatically, thereby improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 It is a flow chart of a method for identifying pits in materials in the hydropower industry based on multi-scale feature fusion according to the first embodiment of the present invention.
[0045] Figure 2 It is a flow chart of acquiring metal and concrete surface images of hydropower equipment with pits to obtain a target image according to the first embodiment of the present invention.
[0046] Figure 3 It is a flowchart of geometrically correcting a target image according to the first embodiment of the present invention.
[0047] Figure 4 The flowchart of preprocessing a corrected image to enhance the image according to the first embodiment of the present invention.
[0048] Figure 5 This is a flow chart of extracting multi-scale features of a target image using an image pyramid according to the first embodiment of the present invention.
[0049] Figure 6 This is a flowchart of the first embodiment of the present invention for fusing multi-scale features to obtain fused features and generate a feature data set.
[0050] Figure 7 This is a flow chart of the first embodiment of the present invention for using fused features to perform pit recognition in the current image.
[0051] Figure 8 It is a flow chart of merging different feature maps into one feature map by summing according to the first embodiment of the present invention. DETAILED DESCRIPTION
[0052] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0053] First embodiment
[0054] See also Figures 1 to 8 The present invention provides a method for identifying pits in hydropower industry materials based on multi-scale feature fusion, comprising:
[0055] S101 collects images of metal and concrete surfaces of hydropower equipment with pits to obtain target images;
[0056] The specific steps include:
[0057] The S201 takes multiple images at different locations of pits on the metal and concrete surfaces of hydropower equipment;
[0058] In order to ensure that the pits on the surface of the hydropower equipment can be fully and accurately captured, we took multiple images at different locations. During the shooting process, we paid special attention to the following points:
[0059] 1. Shooting angle: In order to obtain richer details and more comprehensive information, we photographed the pits from multiple angles, including the front, side, and oblique angles.
[0060] 2. Light conditions: Light is a key factor affecting image quality. We selected the appropriate light source and light direction when shooting to ensure clear images with high contrast.
[0061] 3. Equipment cleaning: Before shooting, we cleaned the surface of the hydropower equipment to remove stains and debris that may affect the image quality.
[0062] S202 stores the image in the host computer.
[0063] After shooting, we store the image in the host computer. The host computer is a device specially used to store, process and analyze images. Through the host computer, we can easily perform subsequent processing and analysis on the image.
[0064] S102 performs geometric correction on the target image;
[0065] In image processing and analysis, geometric correction is a crucial step to ensure the accuracy and reliability of image data. The main purpose of geometric correction is to eliminate geometric distortions in images, such as distortion, rotation, scaling, etc., so as to restore the true position and shape of objects in the image. The specific steps include:
[0066] S301 selects a target image control point;
[0067] Before geometric correction, we first need to select a set of control points from the target image. These control points are specific locations in the image whose real-world coordinates are known, such as corner points, intersection points, etc.
[0068] S302 generates a quadratic polynomial geometric correction model based on the target image;
[0069] Once the control points are selected, it is necessary to build a geometric correction model based on these points. A quadratic polynomial model is a common choice because it fits the geometric deformation of the image well.
[0070] The model constructs a mapping relationship from image coordinates to actual coordinates by fitting the coordinate transformation relationship of the control points. This model can handle various geometric distortions including rotation, scaling, translation, and distortion.
[0071] S303 resamples the entire image based on the geometric correction model.
[0072] After the geometric correction model is established, the entire image can be resampled to eliminate geometric distortion.
[0073] During the resampling process, the coordinates of each pixel are transformed according to the correction model, and then the transformed pixel value is calculated. This usually involves interpolation algorithms such as bilinear interpolation or bicubic interpolation to ensure the continuity and smoothness of pixel values.
[0074] By selecting control points, building a geometric correction model and resampling the entire image, we are able to remove geometric distortions in the image and improve the image quality and reliability.
[0075] S103 performs preprocessing on the corrected image to enhance the image;
[0076] The specific steps include:
[0077] S401 processes the image using median filtering;
[0078] Median filtering is a nonlinear filtering technique that can effectively remove noise, especially salt and pepper noise, when processing images. The basic principle of median filtering is to replace the value of each pixel with the median value of the pixels in its neighborhood, thereby eliminating isolated noise points. This method is particularly effective in protecting image edges and detail information because it does not rely on the grayscale level of the pixel, but is based on the statistical distribution of pixel values.
[0079] S402 uses a Gaussian function as a convolution kernel for weight distribution to filter the image;
[0080] Next, we use the Gaussian function as the convolution kernel with weight distribution to filter the image (step S402). Gaussian filtering is a linear filtering method that smoothes the image through convolution operation, reduces noise and details, and makes the image more blurred. The core of the Gaussian filter is the Gaussian function, which assigns different weights according to the distance between the pixel and the center point to achieve the smoothing effect of the image. This method can reduce image noise while retaining the overall structure and characteristics of the image to a certain extent.
[0081] S403 adjusts the brightness and contrast of the image.
[0082] Brightness and contrast are two important parameters of image quality, which directly affect the visual effect of the image and the effect of subsequent processing. Brightness adjustment can change the brightness of the image so that the overall brightness of the image reaches a suitable level; while contrast adjustment can enhance the difference between different pixels in the image and make the details of the image clearer. By adjusting brightness and contrast, we can further improve the quality of the image and lay a good foundation for subsequent analysis and processing.
[0083] S104 uses image pyramid to extract multi-scale features of target images;
[0084] The specific steps include:
[0085] S501 selects the original image as the starting point of the pyramid analysis;
[0086] Start with the original image as the starting point of the pyramid analysis. The choice of the original image is crucial because it will determine the accuracy and reliability of subsequent feature extraction. Generally, the original image should have sufficient resolution and clarity so that meaningful features can be extracted at different scales.
[0087] S502 applies an image pyramid algorithm to scale the original image layer by layer, where the size of the image is halved and the pixel value is proportionally reduced at each layer;
[0088] The algorithm uses the image pyramid algorithm to scale the original image layer by layer. At each layer, the size of the image is halved and the pixel value is proportionally reduced. In this way, we can get a series of images of different scales, thereby realizing multi-scale analysis of the image. The advantage of the image pyramid algorithm is that it can effectively preserve the hierarchical structure and spatial information of the image, providing strong support for subsequent feature extraction.
[0089] At each scale, the algorithm applies a feature detection algorithm (S503) to identify feature points in the image. These feature points can be areas with significant features such as corners, edges, spots, etc. of the image. By applying feature detection algorithms at different scales, we can extract important information of the image at different scales.
[0090] S503 applies a feature detection algorithm at each scale to identify feature points in the image;
[0091] The algorithm applies feature detection algorithms to identify feature points in the image. These feature points can be corners, edges, spots, and other areas with significant features in the image. By applying feature detection algorithms at different scales, we can extract important information about the image at different scales.
[0092] S504 analyzes the feature points detected at each scale and extracts the attributes of the feature points;
[0093] The algorithm analyzes the detected feature points at each scale and extracts the feature point attributes. These attributes can include the location, direction, scale, etc. of the feature points. The extracted feature point attributes are of great significance for subsequent image matching, target recognition and other tasks.
[0094] S505 integrates feature points at different scales to obtain multi-scale features.
[0095] Finally, the algorithm integrates the feature points at different scales to obtain multi-scale features. In this way, we can obtain a feature set that contains important information about the image at different scales. The extraction of multi-scale features helps improve the robustness and accuracy of the algorithm, enabling it to achieve good performance in different scenarios.
[0096] S105 fuses the multi-scale features to obtain fused features and generates a feature data set;
[0097] The specific steps include:
[0098] S601 normalizes the extracted features;
[0099] Normalization is a commonly used data preprocessing technique that can convert feature values of different scales into the same range and eliminate the dimensional differences between features. Through normalization, the algorithm can better compare and fuse features of different scales, thereby improving the performance of the model.
[0100] S602 encodes the feature into binary form;
[0101] The purpose of this step is to convert continuous feature values into discrete binary codes for subsequent feature fusion operations. By encoding features into binary form, the algorithm can reduce computational complexity and storage space requirements while maintaining feature information.
[0102] S603 combines different feature maps into one feature map by summing.
[0103] The specific steps include:
[0104] S801 converts the feature maps to be merged into the same spatial resolution;
[0105] First, you need to ensure that all feature maps to be merged have the same size, that is, uniform spatial resolution. This is because different feature maps may come from different convolutional layers or pooling layers, and their output sizes may be different. If the sizes of feature maps are different, the pixels cannot correspond correctly, which will affect the subsequent summation operation. Therefore, the spatial resolution of all feature maps is adjusted to be consistent through interpolation, cropping or other spatial transformation methods.
[0106] S802: for each pixel, add the channel values of the corresponding pixel points in different feature maps;
[0107] Once the spatial resolution of all feature maps is unified, the pixels can be merged. For each pixel, the corresponding channel values from different feature maps are added together. For example, if there are three feature maps, each with a channel value at a certain pixel, then these three values will be added together. The result of the addition will form the channel value of the new feature map at that pixel. This process is equivalent to integrating the information of different feature maps in the channel dimension.
[0108] S803 performs normalization processing on the summed feature map.
[0109] After completing the addition of channel values, the newly generated feature map needs to be normalized. Normalization is to keep the value range of the feature map within a certain standard to avoid numerical stability problems during model training due to excessively large or small values. In addition, normalization can also accelerate the convergence of the model and improve training efficiency. Common normalization methods include batch normalization and layer normalization.
[0110] S106 uses the fused features to identify pits in the current image.
[0111] The specific steps include:
[0112] S701 divides the feature data set into a training set and a validation set;
[0113] Before we can identify the pits, we first need to build a feature dataset. This dataset should contain a variety of different types of concrete images, with the location and size of the pits in each image marked. In order to train an effective recognition model, we need to divide these images into two subsets: training set and validation set. The training set is used to train the model, while the validation set is used to evaluate the performance of the model and make adjustments.
[0114] S702 uses the fused features to train a support vector machine to obtain a recognition model;
[0115] After constructing the feature dataset, the next step is to use these features to train a recognition model. Support vector machine (SVM) is a commonly used classification algorithm that is suitable for handling this binary classification problem. During the training process, we use the fused features as input and use the SVM algorithm to learn a classifier to distinguish between pits and non-pit areas in the image.
[0116] S703 verifies the performance of the model through the validation set and performs model correction;
[0117] After obtaining the recognition model, we need to evaluate its performance through the validation set. The role of the validation set is to independently test the model to check whether it can accurately identify the pits in the image. If the performance of the model is found to be poor, we need to correct and adjust it to improve its recognition accuracy.
[0118] S704 obtains the concrete image currently required to be identified;
[0119] Once the model is trained and validated, we can apply it to actual image recognition tasks. At this stage, we need to obtain the concrete images that need to be recognized. These images can come from different scenes and conditions, but they all need to go through steps such as preprocessing and feature extraction to keep them consistent with the training set.
[0120] S705 uses the recognition model to recognize the concrete image and obtains the pit recognition result.
[0121] Finally, the trained recognition model is applied to the current concrete image. By inputting the fused features, the model will automatically identify and locate the pit defects in the image. This process is automated, can quickly process large amounts of image data, and provide accurate recognition results. These results can be used for subsequent defect analysis and processing, helping engineers and maintenance personnel to find problems and repair them in a timely manner.
[0122] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.
Claims
1. A method for identifying pits in hydropower industry materials based on multi-scale feature fusion. It is characterized in that It includes: collecting images of metal and concrete surfaces of hydropower equipment with pits to obtain target images; Perform geometric correction on the target image; Preprocessing the corrected image to enhance the image; Image pyramid is used to extract multi-scale features of the target image; Fuse multi-scale features to obtain fused features and generate a feature data set; The fused features are used to identify the pits in the current image.
2. The method for identifying pits in hydropower industry materials based on multi-scale feature fusion according to claim 1, characterized in that: The specific steps of collecting the metal and concrete surface images of the hydropower equipment with pits to obtain the target image include: Take multiple images at different locations of pits on metal and concrete surfaces of hydroelectric equipment; The image is stored in the host computer.
3. The method for identifying pits in hydropower industry materials based on multi-scale feature fusion according to claim 2, characterized in that: The specific steps of geometrically correcting the target image include: Select the target image control point; generating a quadratic polynomial geometric correction model based on a target image; Resample the entire image based on a geometric correction model.
4. The method for identifying pits in hydropower industry materials based on multi-scale feature fusion according to claim 3 is characterized in that: The specific steps of preprocessing the corrected image to enhance the image include: The image is processed using median filtering; Filter the image using a Gaussian function as a convolution kernel with weight distribution; Adjust the brightness and contrast of the image.
5. The method for identifying pits in hydropower industry materials based on multi-scale feature fusion according to claim 4, characterized in that: The specific steps of extracting multi-scale features of metal concrete images using image pyramid include: Select the original image as the starting point for the pyramid analysis; Apply the image pyramid algorithm to scale the original image layer by layer. At each layer, the size of the image is halved and the pixel value is reduced proportionally. Apply feature detection algorithms at each scale to identify feature points in the image; Analyze the feature points detected at each scale and extract the attributes of the feature points; The feature points at different scales are integrated to obtain multi-scale features.
6. The method for identifying pits in hydropower industry materials based on multi-scale feature fusion according to claim 5, characterized in that: The specific steps of fusing the multi-scale features to obtain the fused features and generate the feature data set include: Normalize the extracted features; Encode features into binary form; Different feature maps are merged into one feature map by summing them.
7. The method for identifying pits in hydropower industry materials based on multi-scale feature fusion according to claim 6, characterized in that: The specific steps of using the fused features to identify the pits in the current image include: Split the feature dataset into a training set and a validation set; Use the fused features to train the support vector machine to obtain a recognition model; Verify the performance of the model through the validation set and make model modifications; Obtaining the concrete image that currently needs to be identified; The recognition model is used to identify the concrete image and obtain the pit recognition result.
8. The method for identifying pits in hydropower industry materials based on multi-scale feature fusion according to claim 7, characterized in that: The specific steps of merging different feature maps into one feature map by summing include: Convert the feature maps to be merged to the same spatial resolution; For each pixel, add the channel values of the corresponding pixels in different feature maps; The summed feature map is normalized.
Citation Information
Patent Citations
Remote sensing image change detection method based on saliency detection and deep twin neural network
CN110969088A
Pedestrian attribute identification method based on multi-scale space correction
CN112560831A
Power transmission line inspection method based on AI identification
CN118038297A
