A method and system for measuring vibration displacement of rotating body based on lightweight neural network

Through the visual vibration measurement method based on lightweight neural network, using lightweight convolutional neural network model and depth separable convolution technology, the problem of difficult identification and tracking under high sampling rate in traditional method of rotating body vibration displacement measurement is solved, achieving It achieves efficient and accurate vibration displacement measurement of rotating bodies, and has a high degree of fit with eddy current sensor data.

CN114549589BActive Publication Date: 2024-09-27KUNMING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210193439.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-01
Publication Date
2024-09-27
Estimated Expiration
2042-03-01

AI Technical Summary

Technical Problem

Traditional visual vibration measurement methods cannot achieve efficient vibration identification and correlation tracking of rotating objects under the premise of high sampling rate. Especially in the state of rotational motion, they cannot effectively measure the vibration displacement of rotating objects.

Method used

Adopting a method based on lightweight neural networks, by constructing a lightweight convolutional neural network model, using high-speed industrial cameras and eddy current sensors to simultaneously collect data, perform anchor-free target detection and tracking, combined with depth-separable convolution and deconvolution Layers are used to optimize the backbone network to improve computational efficiency and accuracy.

Benefits of technology

It achieves a balance between target detection accuracy and displacement tracking speed in rotating body vibration displacement measurement, avoids the "short-term amnesia" phenomenon of the detection algorithm, strengthens the displacement correlation between frames, and lightweight convolutional neural network The regression vibration displacement curve has a high degree of fit with the displacement signal obtained by the eddy current sensor, which verifies the reliability of the method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114549589B
    Figure CN114549589B
Patent Text Reader

Abstract

The present invention discloses a method and system for measuring the vibration displacement of a rotating body based on a lightweight neural network. The method comprises: collecting rotating body image data and eddy current data; annotating the rotating body image data to obtain a training data set and a test data set; building a lightweight convolutional neural network model; training the model using the training data set to obtain a series of weight files to be selected; testing the weight files to be selected using the test data set and comparing the eddy current data to screen and obtain the optimal weight parameters; loading the optimal weight parameters into the lightweight convolutional neural network model to obtain a frozen model; inputting the video data to be detected into the frozen model for detection to obtain multi-frame target detection results; associating the multi-frame detection results through a target tracking branch to obtain the rotating body displacement data; normalizing the obtained rotating body displacement data to obtain the rotating body vibration displacement curve. The present invention can be used for measuring the vibration displacement of a rotating body in a video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a rotating body vibration displacement measurement method and system based on a lightweight neural network, belonging to the field of artificial intelligence vibration detection and computer vision tracking. Background Art

[0002] As a necessary means of early health monitoring, vibration displacement field measurement of precision parts such as rotating bodies can effectively diagnose the service life, fault type and dynamic balance characteristics of mechanical structures such as shafts, bearings and rotors. At present, the displacement measurement of structures mainly includes contact measurement and non-contact measurement, but the contact displacement measurement method of acceleration sensors cannot be installed on the body because it is limited by the state characteristics of rotational motion.

[0003] As a long-distance, non-contact, and non-destructive displacement measurement method, visual measurement has gradually been recognized by experts and scholars in recent years. However, in traditional visual vibration measurement methods, due to the inherent sampling constraints of ordinary image sensors, it is impossible to achieve efficient vibration target recognition and correlation tracking for rotating body targets in low-resolution videos under the premise of high sampling rate. Summary of the invention

[0004] The present invention provides a rotating body vibration displacement measurement method and system based on a lightweight neural network, which is used to realize anchor-free frame-based acquisition of rotating body vibration displacement by constructing a lightweight convolutional neural network model.

[0005] The technical solution of the present invention is: a rotating body vibration displacement measurement method based on a lightweight neural network, comprising:

[0006] Step 1, collecting rotating body image data and eddy current data;

[0007] Step 2: annotate the rotating body image data to obtain a training data set and a test data set;

[0008] Step 3: Build a lightweight convolutional neural network model;

[0009] Step 4: Use the training data set to train the model and obtain a series of weight files to be selected;

[0010] Step 5: Use the test data set to test the candidate weight file and compare it with the eddy current data to screen and obtain the optimal weight parameters;

[0011] Step 6: Load the optimal weight parameters into the lightweight convolutional neural network model to obtain a frozen model;

[0012] Step 7: Input the video data to be detected into the frozen model for detection to obtain multi-frame target detection results;

[0013] Step 8: Correlate the multi-frame detection results through the target tracking branch to obtain the rotation body displacement data;

[0014] Step 9: normalize the obtained rotating body displacement data to obtain the rotating body vibration displacement curve.

[0015] The step 1 comprises: synchronously collecting image signals and voltage signals of a rotating body at different rotation speeds through a high-speed industrial camera and an eddy current sensor; wherein the image signals collected by the high-speed industrial camera are used as rotating body image data, and the voltage signals collected by the eddy current sensor are used as eddy current data.

[0016] The step 2 comprises:

[0017] Step 2.1, manually annotate the image data of the rotating body obtained in step 1 using an annotation tool, and the annotation boxes are all of uniform size;

[0018] Step 2.2: Divide the labeled data set into training data set and test data set.

[0019] The step 3 includes: replacing the DLA-34 backbone network in the CenterNet detection algorithm with an improved MobileNetV2 lightweight backbone network, and attaching three parallel heads for estimating heat maps, object center offsets, and bounding box sizes to the backbone network after learning the features of each head through 3×3 convolutions and 1×1 convolution layers, and finally mapping out the coordinate information of the center point of the rotating target.

[0020] The improved MobileNetV2 lightweight backbone network is specifically as follows: taking MobileNetV2 as the basic framework, firstly, the bottleneck layer in which the standard convolution is replaced with the depthwise separable convolution for filtering operation is retained; secondly, the last three convolution pooling layers in the MobileNetV2 network are replaced with three deconvolution layers.

[0021] The step 4 comprises:

[0022] Step 4.1. Before formal training, configure the training hyperparameters in the train.py file of the lightweight convolutional neural network model. The hyperparameters of the configuration file mainly include learning rate, number of extracted images, number of iterations, weight decay coefficient, and the rest of the hyperparameters are default values.

[0023] Step 4.2, train the lightweight convolutional neural network model; the training objects include: the center point coordinates of each annotation box and the rectangular box; the training results are expressed in the form of a weight file obtained after each training iteration;

[0024] Step 4.3: Call the train.py file in the lightweight convolutional neural network model to start training. After reaching the set number of training times, all the obtained weight files are screened through the performance evaluation indicators of the network model to obtain multiple weight files to be selected.

[0025] The step 5 comprises:

[0026] Step 5.1, input the test data set and the selected weight files one by one into the lightweight convolutional neural network model;

[0027] Step 5.2, the lightweight convolutional neural network generates a bounding box of the target and extracts the center point coordinates of the target bounding box as the multi-frame target detection result;

[0028] Step 5.3, the tracking branch associates the multi-frame target detection results;

[0029] Step 5.4, using the position information of the target image in the first frame of the video as the reference frame for calculating the offset, regressing the vibration displacement offset of the target center point in the pixel coordinate system in all subsequent frames to obtain the rotation body displacement data;

[0030] Step 5.5, normalize the rotating body displacement data and the synchronously collected eddy current data to obtain the time domain diagram of the rotating body displacement data, perform fast Fourier transform on the time domain diagram to obtain the frequency domain diagram, compare the time and frequency domain diagrams respectively, and calculate the variance of the displacement data of the two. If the data of the two fit, the selected weight file at this time is the optimal weight parameter.

[0031] The fitting is as follows: the variance of the displacement data of the two is less than a threshold value, wherein the threshold value is 0.05; if there are multiple data that meet the condition, the one with the smallest variance is selected.

[0032] The step 5.3 comprises:

[0033] Step 5.3.1, use the multi-frame target detection results output by the lightweight convolutional neural network as the input of the tracking branch;

[0034] Step 5.3.2: Use confidence to preliminarily screen the bounding boxes generated by the lightweight convolutional neural network;

[0035] Step 5.3.3, generate a trajectory predictor using Kalman filtering, and perform cascade matching between the trajectory generated by the predictor and the multi-frame target detection results by Mahalanobis distance matching, cosine distance matching, and intersection-over-union matching;

[0036] Step 5.3.4: Update the predictor parameters and repeat the process frame by frame to achieve the purpose of associating the target detection results of multiple frames.

[0037] A rotating body vibration displacement measurement system based on a lightweight neural network, comprising:

[0038] A collection module, used for collecting rotating body image data and eddy current data;

[0039] The first acquisition module is used to annotate the rotating body image data to obtain a training data set and a test data set;

[0040] Model building module, used to build a lightweight convolutional neural network model;

[0041] The second acquisition module is used to train the model using the training data set to obtain a series of weight files to be selected;

[0042] A screening module is used to test the candidate weight files using the test data set and compare the eddy current data to screen and obtain the optimal weight parameters;

[0043] The third acquisition module is used to load the optimal weight parameters into the lightweight convolutional neural network model to obtain a frozen model;

[0044] A fourth acquisition module is used to input the video data to be detected into the frozen model for detection to obtain multi-frame target detection results;

[0045] A fifth acquisition module is used to associate the detection results of multiple frames through the target tracking branch to obtain the displacement data of the rotating body;

[0046] The sixth acquisition module is used to normalize the obtained rotation body displacement data to obtain a rotation body vibration displacement curve.

[0047] The beneficial effects of the present invention are as follows: the present invention uses a high-speed industrial camera as the acquisition medium, and takes rotating bodies such as rotors in high-speed videos as the objects of vibration displacement measurement, introduces deep convolutional neural networks into the field of visual vibration measurement, and on this basis weighs the target detection accuracy and displacement tracking speed, and uses the designed lightweight convolutional neural network model to measure the vibration displacement of rotating bodies in the video. The present invention uses an anchor-free frame detection algorithm to enhance the shape, structure and position features of the target, performs lightweight processing on the backbone network under the premise that the accuracy meets the expected requirements, and uses depthwise separable convolution and point-by-point convolution instead of conventional convolution for convolution filtering. The entire model can solve the problems of computational efficiency and parameter quantity of the convolution network with similar loss of accuracy, and can meet the requirements of industrial implementation; further, the "short-term amnesia" phenomenon existing in the detection algorithm is avoided by tracking branches, and the displacement correlation of the rotating body between frames is strengthened, so as to more accurately measure the displacement offset of the vibrating body; further, when screening the optimal weight parameters, the present invention uses the synchronously collected eddy current displacement signal as the standard displacement offset, and compares the visual displacement measurement results at different rotation speeds. It can be seen from the time domain and frequency domain diagrams that the vibration displacement curve regressed by the lightweight convolutional neural network has a high degree of fit with the displacement signal obtained by the eddy current sensor, which further verifies the reliability of the method of the present invention in measuring the vibration displacement of rotating bodies. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a structural block diagram of the present invention;

[0049] Figure 2 This is the effect diagram of the YOLO-mark tool marking the rotating body;

[0050] Figure 3 This is a lightweight convolutional neural network framework diagram;

[0051] Figure 4 Schematic diagram of filtering principles for depthwise separable convolution and conventional convolution;

[0052] Figure 5 Gaussian heat map of the rotor image;

[0053] Figure 6 Flowchart for model training and generation of training weights;

[0054] Figure 7 Flowchart for selecting the optimal weight parameters by comparing eddy current data;

[0055] Figure 8 It is a schematic diagram for extracting vibration displacement offset;

[0056] Fig. 9It is a time domain diagram comparison between the present invention and the eddy current measurement method in a unified coordinate system (abscissa-time, ordinate-amplitude, the solid line represents the eddy current measurement method, and the dotted line represents the measurement method of the present invention);

[0057] Fig.10 It is a frequency domain diagram pair of the present invention and the eddy current measurement method under a unified coordinate system (abscissa-frequency, ordinate-amplitude, the solid line represents the eddy current measurement method, and the dotted line represents the measurement method of the present invention);

[0058] Fig.11 To trace the branch flow chart. DETAILED DESCRIPTION

[0059] The invention is further described below in conjunction with the accompanying drawings and embodiments, but the content of the invention is not limited to the scope of the embodiments.

[0060] Example 1: Figure 1-11 As shown, a method for measuring the vibration displacement of a rotating body based on a lightweight neural network includes: step 1, collecting rotating body image data and eddy current data; step 2, annotating the rotating body image data to obtain a training data set and a test data set; step 3, building a lightweight convolutional neural network model; step 4, training the model using the training data set to obtain a series of weight files to be selected; step 5, testing the weight files to be selected using the test data set and comparing the eddy current data to screen and obtain the optimal weight parameters; step 6, loading the optimal weight parameters into the lightweight convolutional neural network model to obtain a frozen model; step 7, inputting the video data to be detected into the frozen model for detection to obtain multi-frame target detection results; step 8, associating the multi-frame detection results through the target tracking branch to obtain the rotating body displacement data; step 9, normalizing the obtained rotating body displacement data to obtain the rotating body vibration displacement curve.

[0061] Optionally, step 1 includes: synchronously collecting image signals and voltage signals of the rotating body at different speeds through a high-speed industrial camera and an eddy current sensor; wherein the image signal collected by the high-speed industrial camera is used as the rotating body image data, and the voltage signal collected by the eddy current sensor is used as the eddy current data.

[0062] Optionally, the step 2 includes:

[0063] Step 2.1, manually annotate the image data obtained in step 1 using an annotation tool, and the annotation boxes are all of uniform size to minimize manual annotation errors; the annotation tool uses YOLO-mark;

[0064] Step 2.2: Divide the labeled data set into a training data set and a test data set according to 80% and 20% of its quantity.

[0065] Optionally, the step 3 includes: replacing the DLA-34 backbone network in the CenterNet detection algorithm with an improved MobileNetV2 lightweight backbone network, and attaching three parallel heads for estimating heat maps, object center offsets, and bounding box sizes to the backbone network after learning the features of each head through 3×3 convolution and 1×1 convolution layers, and finally mapping out the coordinate information of the center point of the rotating target;

[0066] Optionally, the improved MobileNetV2 lightweight backbone network is specifically as follows: taking MobileNetV2 as the basic framework, firstly continuing to use the bottleneck layer in which the standard convolution is replaced with the depthwise separable convolution for filtering operation, which can improve the computational efficiency by reducing the number of parameters while losing similar accuracy; secondly, replacing the last three convolutional pooling layers in the MobileNetV2 network with three deconvolution layers, and utilizing the upsampling effect of deconvolution to obtain an output feature map with a larger resolution, which is beneficial to reducing the target loss rate and improving the target correlation between frames.

[0067] Optionally, the step 4 includes:

[0068] Step 4.1. Before formal training, configure the training hyperparameters in the train.py file of the lightweight convolutional neural network model. The hyperparameters of the configuration file mainly include learning rate, number of extracted images, number of iterations, weight decay coefficient, and the rest of the hyperparameters are default values.

[0069] Step 4.2, train the lightweight convolutional neural network model; the training objects include: the center point coordinates of each annotation box and the rectangular box; the training results are expressed in the form of a weight file obtained after each training iteration;

[0070] Step 4.3: Call the train.py file in the lightweight convolutional neural network model to start training. After reaching the set number of training times, all the obtained weight files are screened through the performance evaluation indicators of the network model to obtain multiple weight files to be selected.

[0071] Optionally, the specific process of the training in step 4.3 is as follows:

[0072] Step 4.3.1, call the train.py file to train the lightweight convolutional network model;

[0073] Step 4.3.2: Randomly extract a batch_size of images from the training set as the current training sample; batch_size represents the number of images extracted from the training set at a time;

[0074] Step 4.3.3, placing each image in the training sample described in step 4.3.2 into the network model in turn to update the weight parameters; the weight parameter update is specifically: randomly initializing the weight parameters or loading the pre-trained weight parameters, performing forward propagation calculation of the convolutional neural network and obtaining a set of intermediate parameters, and then using the intermediate parameters to perform back propagation to update the weight parameters; the new weight parameters will replace the old weight parameters previously used to calculate the forward propagation;

[0075] Step 4.3.4: Perform a forward and backward propagation process on all images of the training data set described in step 4.3.2 as one training of the network model, and save a weight file for each training; repeat steps 4.3.2 to 4.3.3 until the number of network model training times reaches the set number of iterations;

[0076] Step 4.3.5: After reaching the set number of training times, all the obtained weight files are screened through the performance evaluation indicators of the network model to obtain multiple weight files to be selected.

[0077] Optionally, the step 5 includes:

[0078] Step 5.1, input the rotating body test data set and the selected weight files one by one into the lightweight convolutional neural network model;

[0079] Step 5.2, the lightweight convolutional neural network generates a bounding box of the target and extracts the center point coordinates of the target bounding box as the multi-frame target detection result;

[0080] Step 5.3, the tracking branch associates the multi-frame target detection results;

[0081] Step 5.4, using the position information of the target image in the first frame of the video as the reference frame for calculating the offset, regressing the vibration displacement offset of the target center point in the pixel coordinate system in all subsequent frames to obtain the rotation body displacement data;

[0082] Step 5.5, normalize the rotating body displacement data and the synchronously collected eddy current data to obtain the time domain diagram of the rotating body displacement data, perform fast Fourier transform on the time domain diagram to obtain the frequency domain diagram, compare the time and frequency domain diagrams respectively, and calculate the variance of the displacement data of the two. If the data of the two fit, the selected weight file at this time is the optimal weight parameter.

[0083] Optionally, the fitting is as follows: if the variance of the displacement data of the two is less than a threshold value, it indicates fitting, wherein the threshold value is 0.05; if there are multiple data that meet the fitting condition, the one with the smallest variance is selected.

[0084] Optionally, the step 5.3 includes:

[0085] Step 5.3.1, use the multi-frame target detection results output by the lightweight convolutional neural network as the input of the tracking branch;

[0086] Step 5.3.2: Use confidence to preliminarily screen the bounding boxes generated by the lightweight convolutional neural network;

[0087] Step 5.3.3, generate a trajectory predictor using Kalman filtering, and perform cascade matching between the trajectory generated by the predictor and the multi-frame target detection results by Mahalanobis distance matching, cosine distance matching, and intersection-over-union matching;

[0088] Step 5.3.4: Update the predictor parameters and repeat the process frame by frame to achieve the purpose of associating the target detection results of multiple frames.

[0089] The tracking branch can avoid the "short-term amnesia" phenomenon existing in lightweight convolutional neural networks, because lightweight convolutional neural networks aim to predict the location and category of the target object but ignore the spatiotemporal correlation between adjacent frames. The tracking branch can strengthen the displacement correlation of the rotating body between frames and more accurately measure the displacement offset of the vibrating body.

[0090] Example 2: Figure 1-11 As shown, an optional specific method of the present invention is described in detail below. A rotating body vibration displacement measurement method based on a lightweight neural network includes: step 1, synchronously collecting rotating body image data and eddy current data; step 2, annotating the collected rotating body image data to obtain a training data set and a test data set; step 3, building a lightweight convolutional neural network model; step 4, using the training data set to train the model to obtain a series of weight files to be selected; step 5, using the test data set to test the weight files to be selected and compare the eddy current data, and screen to obtain the optimal weight parameters; step 6, loading the optimal weight parameters into the lightweight convolutional neural network model, and using PyTorch to obtain a frozen model; step 7, inputting the video data to be detected into the frozen model for detection, and obtaining multi-frame target detection results; step 8, correlating the multi-frame detection results through the target tracking branch to obtain the rotating body displacement data; step 9, normalizing the obtained rotating body displacement data to obtain a rotating body vibration displacement curve.

[0091] The rotating body image data and eddy current data of step 1 are collected on a high-speed rotor vibration test bench (Nanjing Dongda Z-03). We use high-speed industrial cameras (Qianyanlang 5F01, set the resolution to 512×512, frame rate to 2000fps) and eddy current sensors (Shanghai Oduo-9000, set the signal sampling rate to 2000Hz) with two different acquisition principles as the measuring instruments for the rotation body displacement acquisition, and synchronously collect the image data and voltage displacement signal of the rotor, wherein the image data consists of 10,000 sequence frames of images at three rotation speeds (6r / s, 13r / s and 35r / s) and 1000 images collected separately at a rotation speed of 6r / s.

[0092] The specific contents of step 2 include:

[0093] Step 2.1: The image data obtained in step 1 is manually annotated using the annotation tool YOLO-mark. The annotation boxes are all of uniform size to conform to the target size characteristics of the rotor target in the image sequence, thereby reducing the error caused by human factors. The effect of using YOLO-mark for annotation is as follows: Figure 2 As shown;

[0094] Step 2.2: Divide the labeled data set into a training data set and a test data set according to 80% and 20% of its quantity.

[0095] The lightweight convolutional neural network model structure built in step 3 is as follows Figure 3 As shown: Step 3 includes: replacing the DLA-34 backbone network in the CenterNet detection algorithm with the improved MobileNetV2 lightweight backbone network, and attaching three parallel heads for estimating heat maps, object center offsets, and bounding box sizes to the backbone network after learning the features of each head through 3×3 convolutions and 1×1 convolution layers, and finally mapping out the coordinate information of the center point of the rotating rotor target.

[0096] The CenterNet detection algorithm is an anchor-free detection algorithm. When detecting targets, it abandons the traditional multi-type target box selection method and converts the target detection problem into a target center point prediction problem, that is, the target is represented by the center point of the target, and the rectangular box of the target is obtained by predicting the offset and width and height of the center point of the target; the vibration displacement tracking based on the rotating body is actually the characteristic of tracking the position of the center point of the rotating body. Obviously, the model constructed based on the improved CenterNet detection algorithm of the present invention does not need to enumerate a large number of prediction boxes at the position of the suspected target, saving a lot of reasoning time. It has absolute advantages in accuracy, speed and matching in the field of rotating body target tracking, which also shows that the model of the present invention is more in line with actual needs.

[0097] The improved MobileNetV2 lightweight backbone network framework is shown in Table 1: Input represents the size of the network input feature map; Operator represents the convolution operation; t represents the dilation multiple in the convolution operation; c represents the number of channels of the next convolution operation; n represents the number of convolution operations; s represents the convolution operation step size. Based on the MobileNetV2 framework, we first use the bottleneck layer in which the standard convolution is replaced by the depthwise separable convolution for filtering operations. The filtering principles of conventional convolution and depthwise separable convolution are as follows: Figure 4 As shown in (a) and (b) in the figure, taking a 5×5 RGB three-channel image as an example, the input image can generate four feature maps after passing through four conventional convolution kernels of size 3×3×3. Depthwise separable convolution first uses a single convolution kernel of size 3×3×1 to generate three single-channel feature maps. Then all feature maps are convolved point by point, that is, four feature maps are generated through four convolution kernels of size 1×1×3, thus ensuring that the size of the generated feature map is the same as that of conventional convolution. By comparison, we can find that the amount of parameter calculation in the convolution filter of depthwise separable convolution (O(n)=3×3×3+1×1×3×4=29) is only 1 / 3 of that of conventional convolution (O(n)=3×3×3×4=108), which can improve the computational efficiency by reducing the amount of parameters under the condition of similar loss accuracy.

[0098] Secondly, the last three convolutional pooling layers are replaced with three deconvolutional layers. The upsampling effect of deconvolution can be used to obtain an output feature map with a larger resolution, which is beneficial to reduce the target loss rate and improve the target correlation between frames.

[0099] Table 1. Backbone network framework structure

[0100]

[0101] The heat map parallel head represents the classification information of the target in the image and is responsible for estimating the location of the target center. Each category will generate a separate heat map. k ,y k ) of GT box b k , the target center point c in the box k and c k The center point c of the heat map after downsampling kl Can be expressed as:

[0102]

[0103]

[0104]

[0105] in,

[0106]

[0107] If a coordinate in the heat map contains the center point of the rotor, a key point represented by a Gaussian circle will be mapped to the target. If the predicted center point is exactly (c i ,c i ), the predicted thermal map response of the point is 1. Otherwise, the thermal map response value will show a penalized exponential decay as the predicted position gradually deviates from the center of the predicted object. Taking the experimental object rotor of this application as an example, the center point position predicted by the thermal map is as follows Figure 5 As shown, (a) represents the target center point mapped by the Gaussian function; (b) represents the two-dimensional mapping of the center point; (c) represents the three-dimensional mapping of the center point; and the circle represents the target center point.

[0108] The sampling stride between the input image and the output feature map will cause the mapping terminal to produce a rotor target offset. To mitigate the quantization error caused by upsampling and downsampling operations, we define the object center offset parallel head to estimate the continuous offset of each pixel relative to the object center, and the bounding box size parallel head to infer the height and width of the target box at each position. The size of the bounding box S k and center offset O k Respectively expressed as:

[0109]

[0110]

[0111] The specific contents of step 4 are as follows:

[0112] Step 4.1, see attached Figure 6 Before formal training, configure the training hyperparameters in the train.py file of the lightweight convolutional neural network model. The hyperparameters of the configuration file mainly include the learning rate, the number of extracted pictures, the number of iterations, and the weight decay coefficient. The remaining hyperparameters are the default values. In this embodiment, the learning rate is 0.0001, the number of extracted pictures is 8, the number of iterations is 20000, the weight decay coefficient is 0.0005, and the remaining hyperparameters are the default values. The experimental equipment is a desktop GPU NVIDIAGeForce GTX 2080s, the memory is 16g, and the CPU is Intel Core i5-10600KF;

[0113] Step 4.2: Train the lightweight convolutional neural network model; the training objects include: the coordinates of the center point of each annotation box and rectangular frame (i.e. the coordinates of the upper left corner and lower right corner of the rectangular box); the training results are presented in the form of the weight file obtained after each training iteration;

[0114] Step 4.3: Call the train.py file in the lightweight convolutional neural network model to start training. The specific training process is as follows:

[0115] Step 4.3.1, call the train.py file to train the lightweight convolutional network model;

[0116] Step 4.3.2: Randomly extract a batch_size of images from the training set as the current training sample; batch_size represents the number of images extracted from the training set at a time;

[0117] Step 4.3.3, placing each image in the training sample described in step 4.3.2 into the network model in turn to update the weight parameters; the weight parameter update is specifically: randomly initializing the weight parameters or loading the pre-trained weight parameters, performing forward propagation calculation of the convolutional neural network and obtaining a set of intermediate parameters, and then using the intermediate parameters to perform back propagation to update the weight parameters; the new weight parameters will replace the old weight parameters previously used to calculate the forward propagation;

[0118] Step 4.3.4: Perform a forward and backward propagation process on all images of the training data set described in step 4.3.2 as one training of the network model, and save a weight file for each training; repeat steps 4.3.2 to 4.3.3 until the number of network model training times reaches the set number of iterations;

[0119] Step 4.3.5: After reaching the set number of training times, all the obtained weight files are screened through the performance evaluation indicators of the network model to obtain multiple weight files to be selected.

[0120] The specific content of step 5 is as follows: Figure 7 As shown:

[0121] Step 5.1, input the rotating body test data set and the selected weight files one by one into the lightweight convolutional neural network model;

[0122] Step 5.2, the lightweight convolutional neural network generates the bounding box of the target and extracts the center point coordinates of the target bounding box to obtain multi-frame target detection results;

[0123] Step 5.3, the tracking branch associates the detection results of multiple frames;

[0124] Step 5.4, see attached Figure 8, using the position information of the target image in the first frame of the video as the reference frame for calculating the offset, regressing the vibration displacement offset of the target center point in the pixel coordinate system in all subsequent frames to obtain the rotation body displacement data;

[0125] Step 5.5, normalize the displacement data of the rotating body and the synchronously collected eddy current data to obtain the time domain diagram of the displacement data of the rotating body, perform fast Fourier transform on the time domain diagram to obtain the frequency domain diagram, compare the time and frequency domain diagrams respectively, and calculate the variance of the displacement data of the two. If the data of the two fit, the weight file to be selected at this time is the optimal weight parameter; the fitting is: the variance of the displacement data of the two is less than the threshold, where the threshold is 0.05; if there are multiple conditions that meet the conditions, select the one with the smallest variance. Fig. 9 and Fig.10 As shown in the figure, if the data of the two are basically matched, the weight file to be selected at this time is the optimal weight parameter;

[0126] Step 6: Load the optimal weight parameters into the lightweight convolutional neural network model and use PyTorch to generate a frozen model.

[0127] The tracking branch can avoid the "short-term amnesia" phenomenon existing in lightweight convolutional neural networks, because lightweight convolutional neural networks aim to predict the location and category of the target object but ignore the spatiotemporal correlation between adjacent frames. The tracking branch can strengthen the displacement correlation of the rotating body between frames, thereby more accurately measuring the displacement offset of the vibrating body.

[0128] The overall process of step 5.3 is as follows: Fig.11 As shown in the figure, we use the detection result of the t-th frame image output by the lightweight convolutional neural network as the input of the tracking branch. First, we use the confidence to preliminarily screen the generated target box. The confidence is used to eliminate the target boundary box outside the setting (the confidence threshold is generally set to 0.6); secondly, we use the Kalman filter to generate a trajectory predictor, and perform cascade matching and update the predictor parameters, which are repeated frame by frame to achieve the purpose of associating multi-frame detection results.

[0129] The Kalman filter trajectory predictor predicts the state of the target center point in the next frame based on the current state, and then updates the prediction result and the detection result to achieve the purpose of target tracking. This corresponds exactly to the anchor-free frame detection algorithm that uses the center point to regress the position of the target to be detected.

[0130] In the cascade matching process, we use Mahalanobis distance and cosine distance to compare the similarity between the target detection result and the predicted trajectory based on the calculation characteristics of the rotational body's motion information and appearance information, and use the intersection and union ratio of the target detection result and the predicted trajectory as the confidence level to achieve better matching by optimizing the metric method.

[0131] In the process of updating the predictor parameters, for the matched targets, we continue to match them in the current frame and update them using the Kalman filter tracker; for the unmatched detection targets, we will generate new tracks and match them with the new track predictor in the next round; for the track predictor that does not match the detection target, we will delete this predictor after 30 consecutive matching failures.

[0132] Since the rotor is highly versatile and interchangeable, and has a regular shape and distinct features, the lightweight tracking network is particularly suitable for visual vibration displacement measurement of rotating bodies.

[0133] Embodiment 3: A rotating body vibration displacement measurement system based on a lightweight neural network, comprising: a collection module for collecting rotating body image data and eddy current data; a first acquisition module for annotating the rotating body image data to obtain a training data set and a test data set; a model building module for building a lightweight convolutional neural network model; a second acquisition module for training the model using the training data set to obtain a series of weight files to be selected; a screening module for testing the weight files to be selected using the test data set and comparing the eddy current data to screen and obtain the optimal weight parameters; a third acquisition module for loading the optimal weight parameters into the lightweight convolutional neural network model to obtain a frozen model; a fourth acquisition module for inputting the video data to be detected into the frozen model for detection to obtain multi-frame target detection results; a fifth acquisition module for associating the multi-frame detection results through a target tracking branch to obtain the rotating body displacement data; a sixth acquisition module for normalizing the obtained rotating body displacement data to obtain a rotating body vibration displacement curve. It should be noted that the above-mentioned modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above-mentioned modules can be located in the same processor; and / or the above-mentioned modules are located in different processors in any combination. The terms "first", "second", etc. in the specification and claims of the present invention 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 invention described herein can be implemented in an order other than those illustrated or described herein.

[0134] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.

Claims

1. A method for measuring the vibration displacement of a rotating body based on a lightweight neural network, characterized in that: include: Step 1, collecting rotating body image data and eddy current data; Step 2: annotate the rotating body image data to obtain a training data set and a test data set; Step 3: Build a lightweight convolutional neural network model; Step 4: Use the training data set to train the model and obtain a series of weight files to be selected; Step 5: Use the test data set to test the candidate weight file and compare it with the eddy current data to screen and obtain the optimal weight parameters; Step 6: Load the optimal weight parameters into the lightweight convolutional neural network model to obtain a frozen model; Step 7: Input the video data to be detected into the frozen model for detection to obtain multi-frame target detection results; Step 8: Correlate the multi-frame detection results through the target tracking branch to obtain the rotation body displacement data; Step 9, normalizing the obtained rotating body displacement data to obtain a rotating body vibration displacement curve; The step 5 comprises: Step 5.1, input the test data set and the selected weight files one by one into the lightweight convolutional neural network model; Step 5.2, the lightweight convolutional neural network generates a bounding box of the target and extracts the center point coordinates of the target bounding box as the multi-frame target detection result; Step 5.3, the tracking branch associates the multi-frame target detection results; Step 5.4, using the position information of the target image in the first frame of the video as the reference frame for calculating the offset, regressing the vibration displacement offset of the target center point in the pixel coordinate system in all subsequent frames to obtain the rotation body displacement data; Step 5.5, normalize the displacement data of the rotating body and the synchronously collected eddy current data to obtain a time domain diagram of the displacement data of the rotating body, perform fast Fourier transform on the time domain diagram to obtain a frequency domain diagram, compare the time and frequency domain diagrams respectively, and calculate the variance of the displacement data of the two. If the data of the two fit, the weight file to be selected at this time is the optimal weight parameter; The step 5.3 comprises: Step 5.3.1, use the multi-frame target detection results output by the lightweight convolutional neural network as the input of the tracking branch; Step 5.3.2: Use confidence to preliminarily screen the bounding boxes generated by the lightweight convolutional neural network; Step 5.3.3, generate a trajectory predictor using Kalman filtering, and perform cascade matching between the trajectory generated by the predictor and the multi-frame target detection results by Mahalanobis distance matching, cosine distance matching, and intersection-over-union matching; Step 5.3.4: Update the predictor parameters and repeat the process frame by frame to achieve the purpose of associating the target detection results of multiple frames.

2. The rotating body vibration displacement measurement method based on lightweight neural network according to claim 1 is characterized in that: The step 1 comprises: synchronously collecting image signals and voltage signals of a rotating body at different rotation speeds through a high-speed industrial camera and an eddy current sensor; wherein the image signals collected by the high-speed industrial camera are used as rotating body image data, and the voltage signals collected by the eddy current sensor are used as eddy current data.

3. The rotating body vibration displacement measurement method based on lightweight neural network according to claim 1 is characterized in that: The step 2 comprises: Step 2.1, manually annotate the image data of the rotating body obtained in step 1 using an annotation tool, and the annotation boxes are all of uniform size; Step 2.2: Divide the labeled data set into training data set and test data set.

4. The rotating body vibration displacement measurement method based on lightweight neural network according to claim 1 is characterized in that: The step 3 includes: replacing the DLA-34 backbone network in the CenterNet detection algorithm with an improved MobileNetV2 lightweight backbone network, and attaching three parallel heads for estimating heat maps, object center offsets, and bounding box sizes to the backbone network after learning the features of each head through 3×3 convolutions and 1×1 convolution layers, and finally mapping out the coordinate information of the center point of the rotating target.

5. The rotating body vibration displacement measurement method based on lightweight neural network according to claim 4 is characterized in that: The improved MobileNetV2 lightweight backbone network is specifically as follows: taking MobileNetV2 as the basic framework, firstly, the bottleneck layer in which the standard convolution is replaced with the depthwise separable convolution for filtering operation is retained; secondly, the last three convolution pooling layers in the MobileNetV2 network are replaced with three deconvolution layers.

6. The rotating body vibration displacement measurement method based on lightweight neural network according to claim 1 is characterized in that: The step 4 comprises: Step 4.

1. Before formal training, configure the training hyperparameters in the train.py file of the lightweight convolutional neural network model. The hyperparameters of the configuration file mainly include learning rate, number of extracted images, number of iterations, weight decay coefficient, and the rest of the hyperparameters are default values. Step 4.2, train the lightweight convolutional neural network model; the training objects include: the center point coordinates of each annotation box and the rectangular box; the training results are expressed in the form of a weight file obtained after each training iteration; Step 4.3: Call the train.py file in the lightweight convolutional neural network model to start training. After reaching the set number of training times, all the obtained weight files are screened through the performance evaluation indicators of the network model to obtain multiple weight files to be selected.

7. The rotating body vibration displacement measurement method based on lightweight neural network according to claim 1 is characterized in that: The fitting is as follows: the variance of the displacement data of the two is less than a threshold value, wherein the threshold value is 0.05; if there are multiple data that meet the condition, the one with the smallest variance is selected.

8. A rotating body vibration displacement measurement system based on a lightweight neural network according to the method of claim 1, characterized in that: include: A collection module, used for collecting rotating body image data and eddy current data; The first acquisition module is used to annotate the rotating body image data to obtain a training data set and a test data set; Model building module, used to build a lightweight convolutional neural network model; The second acquisition module is used to train the model using the training data set to obtain a series of weight files to be selected; A screening module is used to test the candidate weight files using the test data set and compare the eddy current data to screen and obtain the optimal weight parameters; The third acquisition module is used to load the optimal weight parameters into the lightweight convolutional neural network model to obtain a frozen model; A fourth acquisition module is used to input the video data to be detected into the frozen model for detection to obtain multi-frame target detection results; A fifth acquisition module is used to associate the detection results of multiple frames through the target tracking branch to obtain the displacement data of the rotating body; The sixth acquisition module is used to normalize the obtained rotation body displacement data to obtain a rotation body vibration displacement curve.