Inhaul cable vibration identification method, device and equipment and storage medium
By introducing the feature extraction mechanism in the encoding and decoding stages into the target detection model, combined with pyramid pooling and effective channel attention mechanisms, the accuracy problem of cable vibration identification in bad weather and complex backgrounds is solved, and the accuracy of cable force testing is improved. properties and applicability.
Patent Information
- Application Number
- CN202410670271.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-28
AI Technical Summary
In bad weather and complex backgrounds, it is difficult for traditional computer vision technology to accurately identify cable vibrations, affecting the accuracy and applicability of cable force testing.
It adopts a target detection model that includes encoding stage and decoding stage, uses MobileNetv2 to extract high and low semantic features, and enhances feature extraction capabilities through pyramid pooling and effective channel attention mechanisms. It combines transfer learning and data enhancement to improve the segmentation accuracy of complex image backgrounds. and generalization ability.
It significantly improves the segmentation accuracy and generalization ability of the target detection model for complex image backgrounds, enhances the ability to identify cable vibrations under harsh conditions, and improves the accuracy of cable force testing.
Smart Images

Figure CN118628908A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer vision technology, and in particular to a cable vibration recognition method, device, equipment and storage medium. Background Art
[0002] During the construction of cable-supported bridges, it is necessary to accurately measure the cable force to ensure structural stability and smooth construction. During the later operation, due to the influence of external factors such as corrosion, wind load, and vehicle load, the cables are prone to rust, stress relaxation, prestress loss, and other defects, which cause various changes in cable force. The aging and functional degradation of the cables lead to a decrease in their bearing capacity, causing the redistribution of the internal forces of the structure. Therefore, it is necessary to timely evaluate the intrinsic tension of the cables and take corresponding maintenance and reinforcement measures. The traditional contact sensor measurement method has the disadvantages of being time-consuming, high-cost, and difficult to install sensors, which limits its applicability. Compared with the cable vibration measurement that relies on contact sensing, the non-contact measurement method based on computer vision has the advantages of low cost, time saving, and convenience. This method usually relies on the recognition of cable movement in vibration videos.
[0003] As the most advantageous test method in cable force testing at present, the frequency method has been most widely used in cable force testing of cable-supported bridges at home and abroad. One of the key issues that need to be solved in cable force identification based on the frequency method is to accurately identify the natural frequency of the cable structure. In the actual cable measurement process, severe weather such as fog will affect the quality of cable vibration captured by the video acquisition equipment, and the visibility of the cable target will be poor; and the movement of objects in complex background images will also affect the accuracy of the cable vibration identification method. In the field of computer vision, due to the movement of the background image, there is no static background in the captured video, and the existence of complex environment seriously hinders the application of computer vision technology in cable-supported bridges. Accurately identifying cable vibration is a challenge when dealing with complex image backgrounds and severe weather cable vibration. Summary of the invention
[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0005] The main purpose of the embodiments of the present application is to propose a cable vibration recognition method, device, equipment and storage medium, which can improve the feature extraction capability of the target detection model and improve the target detection model's accuracy and generalization capability for complex image background segmentation.
[0006] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides a cable vibration identification method, the method comprising:
[0007] Acquire the image to be detected;
[0008] Extracting a target image from the image to be detected according to a preset target detection model, wherein the target image is an image of a cable detected in the image to be detected; wherein extracting the target image from the image to be detected according to the preset target detection model comprises:
[0009] Extracting a first feature and a second feature of the image to be detected according to MobileNetv2, wherein the first feature is a high semantic feature compared to the second feature, and the second feature is a low semantic feature compared to the first feature;
[0010] Extracting a first intermediate feature from the second feature according to an effective channel attention mechanism, inputting the first intermediate feature into two parallel 1×1 convolutional layers to obtain second intermediate features respectively output by the two 1×1 convolutional layers, and fusing the two second intermediate features to obtain a third feature;
[0011] Extracting a fourth feature from the first feature according to pyramid pooling;
[0012] fusing the third feature and the fourth feature to obtain a fused feature, and calculating a target image according to the fused feature;
[0013] The cable vibration is identified based on the target image.
[0014] The embodiment of the present application provides a cable vibration recognition method. The method presets a target detection model, which is mainly divided into an encoding stage and a decoding stage. MobileNetv2 first extracts high semantic features and low semantic features of the image to be detected. In the encoding stage, multi-scale features are extracted from the high semantic features according to pyramid pooling to capture the deep semantic information of the image to be detected. In the decoding stage, an effective channel attention mechanism is used to extract intermediate features from the low semantic features, and then the intermediate features are input in parallel to the convolution layer, and finally the output features are fused. Finally, the features output in the encoding stage are fused with the features output in the decoding stage to calculate the final features of the target image. Compared with the current technical solutions, the present method designs a target detection model including an encoding stage and a decoding stage. In the decoding stage, an effective channel attention mechanism and two parallel 1×1 convolution layers are added. In the encoding stage, the deep semantic information of the image to be detected is captured by pyramid pooling, which can improve the target detection model's representation ability of the deep features of the image, and improve the target detection model's accuracy and generalization ability for complex image background segmentation.
[0015] In some embodiments of the present application, extracting the fourth feature from the first feature according to pyramid pooling includes:
[0016] Performing atrous pyramid pooling on the first feature to obtain a multi-scale feature, and inputting the multi-scale feature into a 1×1 convolutional layer to obtain a third intermediate feature;
[0017] Input the first feature into a 1×1 convolutional layer to obtain a fourth intermediate feature, and extract a fifth intermediate feature from the fourth intermediate feature according to an effective channel attention mechanism;
[0018] The third intermediate feature and the fifth intermediate feature are combined to obtain the fourth feature.
[0019] In some embodiments of the present application, the fusing the third feature and the fourth feature to obtain a fused feature, and calculating a target image according to the fused feature, includes:
[0020] Performing bilinear interpolation upsampling on the fourth feature so that the size of the fourth feature is consistent with the image to be detected;
[0021] Merging the fourth feature having the same size as the image to be detected with the third feature to obtain a fused feature;
[0022] The fused features are input into a 3×3 convolution layer, and the output features of the 3×3 convolution layer are up-sampled by bilinear interpolation to obtain the target image of the same size as the image to be detected.
[0023] In some embodiments of the present application, the target detection model is trained using transfer learning, and the training process of the transfer learning includes:
[0024] Constructing a first model, wherein the first model is a DeepLabV3+ model;
[0025] Construct a second model according to the first model, wherein the second model is a model formed after replacing the backbone network Xception model in the first model with MobileNetv2;
[0026] Pre-training the second model on a PASCAL VOC dataset, so that the second model has prior knowledge of the PASCAL VOC dataset; the PASCAL VOC dataset is a dataset formed after annotating all initial images, and the initial image is a cable image acquired by an acquisition device;
[0027] A branch is added in parallel to the dilated pyramid pooling in the encoding stage of the second model, and an ECM module is added to the decoding stage of the second model to obtain a third model; the branch includes a cascaded 1×1 convolution layer and an effective channel attention mechanism, and the ECM module includes an effective channel attention mechanism and two parallel 1×1 convolution layers;
[0028] The third model is trained on an enhanced data set to obtain a trained target detection model; the enhanced data set is a data set formed after feature enhancement is performed on the PASCAL VOC data set.
[0029] In some embodiments of the present application, the feature enhancement means include:
[0030] At least one of horizontal flipping, up-down flipping, Gaussian noise, Gaussian blurring, and occlusion enhancement transformation is performed on the PASCAL VOC dataset.
[0031] In some embodiments of the present application, the identifying the cable vibration according to the target image includes:
[0032] forming a cable vibration continuous image sequence according to the target image;
[0033] Amplifying the motion of the cable vibration in the continuous image sequence of the cable vibration, creating a time series based on the amplified cable vibration, performing Hilbert transform to obtain real time and imaginary time series, and performing dimensionality reduction processing on the real time and imaginary time series by principal component analysis;
[0034] BSS blind source separation is used to analyze the unobserved original signals from multiple mixed signals and visualize the signals, create modal coordinates and visualize the modal coordinates, and obtain the power spectral density diagram of the cable vibration through Fourier transform.
[0035] In some embodiments of the present application, before extracting the target image from the image to be detected according to the preset target detection model, the method further includes:
[0036] The input image is dehazed according to RefineDNet.
[0037] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides a cable vibration identification device, the device comprising:
[0038] An image acquisition unit, used for acquiring an image to be detected;
[0039] A target detection unit, configured to extract a target image from the image to be detected according to a preset target detection model, wherein the target image is an image of a cable detected in the image to be detected; wherein the extracting the target image from the image to be detected according to the preset target detection model comprises: extracting a first feature and a second feature of the image to be detected according to MobileNetv2, wherein the first feature is a high semantic feature compared to the second feature, and the second feature is a low semantic feature compared to the first feature; extracting a first intermediate feature from the second feature according to an effective channel attention mechanism, inputting the first intermediate feature into two parallel 1×1 convolutional layers to obtain second intermediate features respectively output by the two 1×1 convolutional layers, and fusing the two second intermediate features to obtain a third feature; extracting a fourth feature from the first feature according to pyramid pooling; fusing the third feature with the fourth feature to obtain a fused feature, and calculating the target image according to the fused feature;
[0040] A vibration recognition unit is used to recognize the cable vibration according to the target image.
[0041] To achieve the above-mentioned purpose, the electronic device provided in the third aspect of an embodiment of the present application includes: at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute a cable vibration identification method of the above-mentioned first aspect.
[0042] To achieve the above-mentioned purpose, a fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute a cable vibration identification method of the above-mentioned first aspect.
[0043] It can be understood that the beneficial effects of the second to fourth aspects compared with the related art are the same as the beneficial effects of the first aspect compared with the related art. Please refer to the relevant description in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0045] Figure 1It is a flow chart of a cable vibration identification method provided by an embodiment of the present application;
[0046] Figure 2 It is a schematic diagram of a process of extracting a fourth feature from a first feature according to pyramid pooling provided by an embodiment of the present application;
[0047] Figure 3 It is a flowchart of fusing the third feature and the fourth feature to obtain a fused feature, and calculating a target image according to the fused feature, provided by an embodiment of the present application;
[0048] Figure 4 It is a schematic diagram of a process of identifying cable vibration according to a target image provided by an embodiment of the present application;
[0049] Figure 5 is a flow chart of a cable vibration identification method provided by another embodiment of the present application;
[0050] Figure 6 It is a flow chart of an image defogging model and a target detection model provided by an embodiment of the present application;
[0051] Figure 7 It is a schematic diagram of a flow chart of calculating cable vibration identification provided by an embodiment of the present application;
[0052] Figure 8 is a schematic diagram of a cable model provided by an embodiment of the present application;
[0053] Fig. 9 is a schematic diagram of the data type of an unpaired training sample set provided by an embodiment of the present application;
[0054] Fig.10 It is a type of complex image background segmentation data provided by an embodiment of the present application;
[0055] Fig.11 It is a schematic diagram of the process of image amplification provided by one embodiment of the present application;
[0056] Fig.12 This is a schematic diagram of a Lasso image defogging model framework provided by an embodiment of the present application;
[0057] Fig.13 It is a schematic diagram of the process of defogging model transfer learning provided by an embodiment of the present application;
[0058] Fig.14 This is an image defogging result provided by an embodiment of the present application;
[0059] Fig.15 It is a skeleton network of a target detection model provided by an embodiment of the present application;
[0060] Fig.16 It is a schematic diagram of the process of target detection model transfer learning provided by an embodiment of the present application;
[0061] Fig.17 is a schematic diagram of a Loss-Epoch curve of a target detection model provided in one embodiment of the present application;
[0062] Fig.18 is a schematic diagram of detection results of a target detection model provided by an embodiment of the present application;
[0063] FIG. 19( a ) is a diagram of a cable vibration spectrum sampled by an accelerometer provided in one embodiment of the present application;
[0064] FIG. 19( b ) is a diagram showing vibration modal coordinates and power spectrum density identification results obtained by using a cable vibration identification method according to an embodiment of the present application;
[0065] Fig. 20 is a result schematic diagram of a cable vibration identification device provided by an embodiment of the present application;
[0066] Fig.21 This is a structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0068] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0069] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0070] Reference Figure 1 In one embodiment of the present application, a cable vibration identification method is provided, the method comprising:
[0071] Step S100: Acquire an image to be detected.
[0072] Step S200, extracting a target image from the image to be detected according to a preset target detection model, where the target image is an image of a cable in the image to be detected; wherein extracting the target image from the image to be detected according to the preset target detection model includes:
[0073] Extracting a first feature and a second feature of the image to be detected according to MobileNetv2, wherein the first feature is a high semantic feature compared to the second feature, and the second feature is a low semantic feature compared to the first feature;
[0074] Extract the first intermediate feature from the second feature according to the effective channel attention mechanism, input the first intermediate feature into two parallel 1×1 convolutional layers to obtain the second intermediate features output by the two 1×1 convolutional layers respectively, and fuse the two second intermediate features to obtain the third feature;
[0075] Extract the fourth feature from the first feature according to pyramid pooling;
[0076] The third feature and the fourth feature are fused to obtain a fused feature, and the target image is calculated based on the fused feature.
[0077] Step S300: Identify cable vibration according to the target image.
[0078] In step S100, the image to be detected refers to an image that needs to be subjected to target detection, where the target is the cable.
[0079] In step S200, a target detection model is preset to extract a target image from the image to be detected through the target detection model, and the target image is the image of the cable detected by the model in the image to be detected. The target detection model is mainly divided into an encoding stage (Encoder) and a decoding stage (Decoder), wherein MobileNetv2 (the main idea of MobileNet-v2 is to introduce linear bottlenecks and inverse residuals on the basis of v1 to improve the representation ability of the network, and it is also a lightweight convolutional neural network) extracts high semantic features and low semantic features of the image to be detected. In the encoding stage, multi-scale features are extracted from high semantic features according to pyramid pooling to capture the deep semantic information of the image to be detected; compared with the prior art, in the decoding stage, the effective channel attention mechanism is used to extract intermediate features from low semantic features, and then the intermediate features are input in parallel to the convolution layer, and finally the output features are fused. Finally, the features output in the encoding stage are fused with the features output in the decoding stage to calculate the final features of the target image.
[0080] Compared with the current technical solutions, this method is designed to include encoding and decoding stages. In the decoding stage, an effective channel attention mechanism and two parallel 1×1 convolutional layers are added. In the encoding stage, pyramid pooling is used to capture the deep semantic information of the image to be detected, which can improve the feature extraction ability of the target detection model and improve the target detection model's accuracy and generalization ability for complex image background segmentation.
[0081] Reference Figure 2 In one embodiment of the present application, extracting the fourth feature from the first feature according to pyramid pooling in step S200 includes:
[0082] Step S210: Perform dilute pyramid pooling on the first feature to obtain a multi-scale feature, and input the multi-scale feature into a 1×1 convolution layer to obtain a third intermediate feature.
[0083] Step S220: input the first feature into a 1×1 convolutional layer to obtain a fourth intermediate feature, and extract a fifth intermediate feature from the fourth intermediate feature according to an effective channel attention mechanism.
[0084] Step S230: fuse the third intermediate feature and the fifth intermediate feature to obtain the fourth feature.
[0085] In step S210, the multi-scale feature can be extracted from the first feature by using the dilated pyramid pooling, and then the feature is compressed by using the 1×1 convolution layer to make the feature size consistent with the image to be detected. In steps S220 and S230, a parallel feature extraction module is added to the dilated pyramid pooling, and the module includes a 1×1 convolution layer and an effective channel attention mechanism. Through this feature extraction model, the shortcomings of the target detection model in missing and over-detecting on the image to be detected can be improved, the accuracy of the model extraction feature can be improved, and the cable feature in the target image can be more discriminative.
[0086] Reference Figure 3 , the step S200 of fusing the third feature with the fourth feature to obtain a fused feature, and calculating the target image according to the fused feature, comprises:
[0087] Step S240: Perform bilinear interpolation upsampling on the fourth feature to make the size of the fourth feature consistent with the image to be detected.
[0088] Step S250: Fusing the fourth feature having the same size as the image to be detected with the third feature to obtain a fused feature.
[0089] Step S260: input the fused features into a 3×3 convolution layer, and perform bilinear interpolation upsampling on the output features of the 3×3 convolution layer to obtain a target image of the same size as the image to be detected.
[0090] In step S240, this embodiment performs bilinear interpolation upsampling on the multi-scale feature (fourth feature) to make the size of the fourth feature consistent with the image to be detected. In step S250, the fourth feature is fused with the third feature to obtain a fused feature. In step S260, the fused feature is input to a 3×3 convolution layer, and the output feature of the 3×3 convolution layer is bilinearly interpolated upsampled to obtain a target image of the same size as the image to be detected, so as to capture the detail information contained in the shallow features and obtain the deep features of the cable image.
[0091] In some embodiments of the present application, the target detection model is trained using transfer learning, and the training process of transfer learning includes:
[0092] Step S510: construct a first model, which is a DeepLabV3+ model.
[0093] Step S520: construct a second model based on the first model, wherein the second model is a model formed by replacing the backbone network Xception model in the first model with MobileNetv2.
[0094] Step S530 , pre-training the second model on the PASCAL VOC dataset so that the second model has prior knowledge of the PASCAL VOC dataset; the PASCAL VOC dataset is a dataset formed after annotating all initial images, and the initial image is a cable image collected by an acquisition device.
[0095] Step S540, adding a branch in parallel to the dilute pyramid pooling in the encoding stage of the second model, adding an ECM module to the decoding stage of the second model, to obtain a third model; the branch includes a cascaded 1×1 convolutional layer and an effective channel attention mechanism, and the ECM module includes an effective channel attention mechanism and two parallel 1×1 convolutional layers.
[0096] Step S550: Train the third model on the enhanced data set to obtain a trained object detection model; the enhanced data set is a data set formed after feature enhancement is performed on the basis of the PASCAL VOC data set.
[0097] In the training process of the target detection model, this embodiment adopts a transfer learning method so that the target detection model has sufficient generalization ability. Among them, the data set collection and enhancement will be introduced in the subsequent embodiments.
[0098] In some embodiments, the feature enhancement means include:
[0099] Step S610: performing at least one of horizontal flipping, up-down flipping, Gaussian noise, Gaussian blurring, and occlusion enhancement transformation operations on the PASCAL VOC dataset.
[0100] Reference Figure 4 In some embodiments, identifying cable vibration according to the target image includes:
[0101] Step S310, forming a cable vibration continuous image sequence according to the target image.
[0102] Step S320, motion amplify the cable vibration in the cable vibration continuous image sequence, create a time series based on the amplified cable vibration, perform Hilbert transform to obtain real time and imaginary time series, and use principal component analysis to perform dimensionality reduction processing on the real time and imaginary time series.
[0103] Step S330: Use BSS blind source separation to analyze the unobserved original signal from multiple mixed signals and visualize the signal, create modal coordinates and visualize the modal coordinates, and obtain the power spectrum density diagram of the cable vibration through Fourier transform.
[0104] Reference Figure 5 to Figure 1 9. This embodiment provides a cable vibration identification method, which includes:
[0105] Step S710: Establish a cable image data set.
[0106] Considering different appearances, perspectives, lighting, backgrounds, and the situation where the cable is captured in the same image with other objects of similar shapes, the cable model ( Figure 8 The collected cable image samples take into account the changes in cable appearance, shooting angle, lighting, distance and background, as shown in Fig. 9 shown.
[0107] The collected image samples were labeled using the "Labelme" data labeling tool to create a database that can be used for model training. During the labeling process, the cables in the image samples were labeled and saved in the format of the Pascal VOC dataset to obtain a dataset of cable images.
[0108] Step S720: perform feature enhancement on image samples in the data set.
[0109] Image samples are usually difficult to collect. Here, this embodiment uses the "Imgaug" data enhancement toolkit to simulate image samples in complex environments such as fog, rain, snow, motion blur, color change, and occlusion, and to amplify the original database of cable images. The image amplification process is as follows: Fig.11 shown.
[0110] One enhancement transformation is randomly selected from horizontal flip, upside down flip, Gaussian noise, Gaussian blur, and occlusion enhancement transformation, and two enhancement transformations are randomly selected from fog / frost, snow, and rain enhancement transformations. Then, an appropriate enhancement multiple is set to enhance the database. After amplification, the foggy cable image dataset and the enhanced dataset are obtained respectively. The number and quality of training samples of the enhanced dataset meet the basic requirements of model training, and the dataset is divided into training set, validation set, and test set at a ratio of 8:1:1; the foggy cable image dataset is used as the foggy image of the unpaired training sample set.
[0111] Step S730: construct a defogging model and train the defogging model.
[0112] RefineDNet is used as the framework of the defogging model. The unpaired training sample set (foggy cable image dataset) is sent to the defogging model, and the ambient light A and the preliminary defogging image J are generated through the dark channel prior (DCP). DCP , transmission diagram T DCP .
[0113] The preliminary dehazed image and transmission map are input into the refinement network R T and R J , get T ref and j ref .
[0114] By blurring the input image T rec Refine and restructure into I rec , and then by minimizing I rec and I real The gap between the two is used to update the refinement R T .
[0115] Through adversarial learning between the predicted image and the clear image, a discriminator D of the clean image and the foggy image is generated, and the defogging model is obtained, as shown in Fig.12 shown.
[0116] In order to ensure that the defogging model has sufficient generalization ability, the transfer learning method is used in the model training process, including using RefineDNet as the basic model framework, using fefined_DCP as the backbone network of the model and pre-training on the RESIDE dataset. Finally, RefineDNet is pre-trained on the unpaired training sample set, and finally the defogging of the cable image in foggy weather is obtained, which enhances the visibility of the cable target. The transfer learning process is as follows: Fig.13 shown.
[0117] In this embodiment, Fig.14 This is the dehazing result of the dehazing model for Lasso images.
[0118] Step S740: construct a target detection model and train the target detection model.
[0119] The images in the enhanced dataset are used as images to be detected.
[0120] The DeepLabV3+ model is used as the framework of the target detection model. The backbone network Xception of DeepLabV3+ is replaced with MobileNetv2. At the same time, the hollow pyramid pooling ASPP module in the encoding stage is replaced with ASPP-Ⅰ, and the ECM module is added in the decoding stage. Fig.15 The target detection model training process includes:
[0121] Step S741: Send the image to be detected to MobileNetv2 to obtain high semantic features and low semantic features of the image to be detected.
[0122] Step S742: In the encoding stage of the target detection model, the hollow pyramid pooling module ASPP is connected in parallel with a feature extraction module to construct ASPP-I, and ASPP-I is used as a multi-scale feature extraction network of the target detection model to capture the deep semantic information of the image to be detected. In the decoding stage of the target detection model, an effective channel attention module is added, and the output features of the attention module are respectively input into two Conv1×1 layers, and then the Conv results are feature fused to construct a new feature module. Here, the feature extraction module is named ECM.
[0123] The high semantic features are input into the ASPP-I module in the encoding stage to obtain the multi-scale features of the image to be detected, and then the number of feature channels is compressed by 1×1 convolution. The results of 4 times upsampling (upsample) using the bilinear interpolation module to restore to the size of the image to be detected are fused to capture the detailed information contained in the shallow features and obtain the deep features of the image to be detected.
[0124] Step S743: input the low semantic features into the ECM module of the decoding stage of the target detection model, and concat them with the deep features of the image to be detected to obtain a fused feature map.
[0125] Step S744, use a 3×3 convolutional layer to extract the semantic information and detail information of the fused feature map, and gradually restore it to the size of the image to be detected through bilinear interpolation and 4-fold upsampling to generate the final semantic segmentation prediction result output layer (target image), and obtain a target detection model that can detect complex image backgrounds.
[0126] In order to ensure that the target detection model has sufficient generalization ability and detection accuracy, this embodiment proposes that the transfer learning method is also used in the model training process, including: using DeepLabV3+ as the basic model framework, replacing the skeleton network Xception of DeepLabV3+ with the lightweight convolutional neural network MobileNetv2 and pre-training it on the PASCAL VOC dataset, so that DeepLabV3+ has prior knowledge of the PASCAL VOC dataset. At the same time, the hollow pyramid pooling ASPP in the encoding stage of DeepLabV3+ is replaced with ASPP-Ⅰ, and the ECM module is added in the decoding stage to obtain DeepLabV3+ECM and pre-trained on the enhanced dataset. Finally, the target detection model is obtained. Its transfer learning process is as follows: Fig.16 shown.
[0127] In this embodiment, Fig.17 It is the Loss-Epoch curve of the target detection model.
[0128] In this embodiment, Fig.18 It is the detection result of the target detection model.
[0129] Step S750: performing cable vibration recognition on the target image.
[0130] A continuous image sequence of cable vibration is constructed based on the target image, and the cable vibration in the continuous image sequence is motion-amplified to create a vibration time series. The real time and imaginary time series are obtained by Hilbert transform and the principal component analysis is used to reduce the dimension. BSS blind source separation is used to analyze the unobserved original signal from multiple mixed signals and visualize the signal, create modal coordinates and visualize the modal coordinates, and then obtain the power spectrum density diagram of the cable vibration through Fourier transform.
[0131] In this embodiment, FIG. 19 is the recognition result of the cable vibration method under a complex environment, wherein (a) is the cable vibration spectrum diagram sampled by the accelerometer, and (b) is the cable vibration modal coordinates and its power spectrum density obtained by the method provided in this embodiment.
[0132] A set of control experiment examples are provided below:
[0133] In this embodiment, when the ASPP-I and ECM modules are added at the same time, the cable recognition accuracy is improved, and the results are shown below, and MIoU is improved by 1.71%. Among them, MIoU, MPA, and PA are semantic segmentation evaluation indicators.
[0134]
[0135] Table 1 Comparison results on the Lasso image validation set
[0136] Reference Fig. 20 , this embodiment provides a cable vibration recognition device, the device comprising: an image acquisition unit 1100, a target detection unit 1200 and a vibration recognition unit 1300;
[0137] The image acquisition unit 1100 is used to acquire an image to be detected.
[0138] The target detection unit 1200 is used to extract a target image from an image to be detected according to a preset target detection model, where the target image is an image of a cable detected in the image to be detected; wherein extracting the target image from the image to be detected according to the preset target detection model includes: extracting a first feature and a second feature of the image to be detected according to MobileNetv2, where the first feature is a high semantic feature compared to the second feature, and the second feature is a low semantic feature compared to the first feature; extracting a first intermediate feature from the second feature according to an effective channel attention mechanism, inputting the first intermediate feature into two parallel 1×1 convolutional layers to obtain second intermediate features output by the two 1×1 convolutional layers respectively, and fusing the two second intermediate features to obtain a third feature; extracting a fourth feature from the first feature according to pyramid pooling; fusing the third feature with the fourth feature to obtain a fused feature, and calculating the target image according to the fused feature.
[0139] The vibration recognition unit 1300 is used to recognize the vibration of the cable according to the target image.
[0140] The device provided in this embodiment and the above-mentioned method are based on the same inventive concept, so the content of the above-mentioned method embodiment is also applicable to the content of the device embodiment, which will not be repeated here.
[0141] like Fig.21 The embodiment of the present application further provides an electronic device, the electronic device comprising:
[0142] at least one memory;
[0143] at least one processor;
[0144] at least one program;
[0145] The programs are stored in the memory, and the processor executes at least one program to implement the cable vibration identification method described above in the present disclosure.
[0146] The electronic device may be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a vehicle-mounted computer, etc.
[0147] The electronic device according to the embodiment of the present application is described in detail below.
[0148] The processor 1600 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0149] The memory 1700 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1700 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the program code is stored in the memory 1700, and the processor 1600 calls and executes the cable vibration identification method of the embodiment of the present application.
[0150] Input / output interface 1800, used to implement information input and output;
[0151] The communication interface 1900 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0152] Bus 2000 , which transmits information between various components of the device (e.g., processor 1600 , memory 1700 , input / output interface 1800 , and communication interface 1900 );
[0153] The processor 1600 , the memory 1700 , the input / output interface 1800 , and the communication interface 1900 are connected to each other in communication within the device via the bus 2000 .
[0154] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned cable vibration identification method.
[0155] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0156] The embodiments described in this application are intended to more clearly illustrate the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0157] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0158] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0159] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0160] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0161] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0162] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0164] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0165] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable an electronic device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store programs.
[0166] The above is a specific description of the preferred implementation of the embodiments of the present application, but the embodiments of the present application are not limited to the above-mentioned implementation methods. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the embodiments of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the embodiments of the present application.
[0167] The above is a specific description of the preferred implementation of the embodiments of the present application, but the embodiments of the present application are not limited to the above-mentioned implementation methods. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the embodiments of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the embodiments of the present application.
Claims
1. A cable vibration identification method, characterized in that: The method comprises: Acquire the image to be detected; Extracting a target image from the image to be detected according to a preset target detection model, wherein the target image is an image of a cable detected in the image to be detected; wherein extracting the target image from the image to be detected according to the preset target detection model comprises: Extracting a first feature and a second feature of the image to be detected according to MobileNetv2, wherein the first feature is a high semantic feature compared to the second feature, and the second feature is a low semantic feature compared to the first feature; Extracting a first intermediate feature from the second feature according to an effective channel attention mechanism, inputting the first intermediate feature into two parallel 1×1 convolutional layers to obtain second intermediate features respectively output by the two 1×1 convolutional layers, and fusing the two second intermediate features to obtain a third feature; Extracting a fourth feature from the first feature according to pyramid pooling; fusing the third feature and the fourth feature to obtain a fused feature, and calculating a target image according to the fused feature; The cable vibration is identified based on the target image.
2. The cable vibration identification method according to claim 1, characterized in that: The extracting the fourth feature from the first feature according to pyramid pooling includes: Performing atrous pyramid pooling on the first feature to obtain a multi-scale feature, and inputting the multi-scale feature into a 1×1 convolutional layer to obtain a third intermediate feature; Input the first feature into a 1×1 convolutional layer to obtain a fourth intermediate feature, and extract a fifth intermediate feature from the fourth intermediate feature according to an effective channel attention mechanism; The third intermediate feature and the fifth intermediate feature are combined to obtain the fourth feature.
3. The cable vibration identification method according to claim 2, characterized in that: The fusing the third feature and the fourth feature to obtain a fused feature, and calculating a target image according to the fused feature, comprises: Performing bilinear interpolation upsampling on the fourth feature so that the size of the fourth feature is consistent with the image to be detected; Merging the fourth feature having the same size as the image to be detected with the third feature to obtain a fused feature; The fused features are input into a 3×3 convolution layer, and the output features of the 3×3 convolution layer are up-sampled by bilinear interpolation to obtain the target image of the same size as the image to be detected.
4. The cable vibration identification method according to claim 3, characterized in that: The target detection model is trained using transfer learning, and the training process of the transfer learning includes: Constructing a first model, wherein the first model is a DeepLabV3+ model; Construct a second model according to the first model, wherein the second model is a model formed after replacing the backbone network Xception model in the first model with MobileNetv2; Pre-training the second model on a PASCAL VOC dataset, so that the second model has prior knowledge of the PASCAL VOC dataset; the PASCAL VOC dataset is a dataset formed after annotating all initial images, and the initial image is a cable image acquired by an acquisition device; A branch is added in parallel to the dilated pyramid pooling in the encoding stage of the second model, and an ECM module is added to the decoding stage of the second model to obtain a third model; the branch includes a cascaded 1×1 convolution layer and an effective channel attention mechanism, and the ECM module includes an effective channel attention mechanism and two parallel 1×1 convolution layers; The third model is trained on an enhanced data set to obtain a trained target detection model; the enhanced data set is a data set formed after feature enhancement is performed on the PASCAL VOC data set.
5. The cable vibration identification method according to claim 4, characterized in that: The feature enhancement means include: At least one of horizontal flipping, up-down flipping, Gaussian noise, Gaussian blurring, and occlusion enhancement transformation is performed on the PASCAL VOC dataset.
6. The cable vibration identification method according to claim 1, characterized in that: The identifying the cable vibration according to the target image comprises: forming a cable vibration continuous image sequence according to the target image; Amplifying the motion of the cable vibration in the continuous image sequence of the cable vibration, creating a time series based on the amplified cable vibration, performing Hilbert transform to obtain real time and imaginary time series, and performing dimensionality reduction processing on the real time and imaginary time series by principal component analysis; BSS blind source separation is used to analyze the unobserved original signals from multiple mixed signals and visualize the signals, create modal coordinates and visualize the modal coordinates, and obtain the power spectral density diagram of the cable vibration through Fourier transform.
7. The cable vibration identification method according to claim 1, characterized in that: Before extracting the target image from the image to be detected according to the preset target detection model, the method further includes: The input image is dehazed according to RefineDNet.
8. A cable vibration identification device, characterized in that: The device comprises: An image acquisition unit, used for acquiring an image to be detected; A target detection unit, configured to extract a target image from the image to be detected according to a preset target detection model, wherein the target image is an image of a cable detected in the image to be detected; wherein the extracting the target image from the image to be detected according to the preset target detection model comprises: extracting a first feature and a second feature of the image to be detected according to MobileNetv2, wherein the first feature is a high semantic feature compared to the second feature, and the second feature is a low semantic feature compared to the first feature; extracting a first intermediate feature from the second feature according to an effective channel attention mechanism, inputting the first intermediate feature into two parallel 1×1 convolutional layers to obtain second intermediate features respectively output by the two 1×1 convolutional layers, and fusing the two second intermediate features to obtain a third feature; extracting a fourth feature from the first feature according to pyramid pooling; fusing the third feature with the fourth feature to obtain a fused feature, and calculating the target image according to the fused feature; A vibration recognition unit is used to recognize the vibration of the cable according to the target image.
9. An electronic device, characterized in that: include: at least one control processor and a memory for communicatively coupling with the at least one control processor; The memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the cable vibration identification method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the cable vibration identification method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Optimization method and system for Deeplab semantic segmentation algorithm
CN112329808A
Lightweight foggy street scene semantic segmentation algorithm based on multi-branch fusion
CN116051977A
Pasture sheep target automatic segmentation method and system based on deep learning
CN116993977A
Cited By
Vibration measurement method, device and equipment of cable structure and medium
CN120070458A
Cable force calculation method and system
CN120318812A
