Material surface deformation displacement field measurement method based on deep learning

By building a feature extraction and matching module based on deep learning methods, we can directly establish the mapping relationship between images before and after deformation, solving the problem of inaccuracy of traditional methods in large displacement and large deformation measurement, and achieving efficient and accurate material surface deformation displacement. field measurement.

CN118640818APending Publication Date: 2024-09-13SHENYANG AEROSPACE UNIVERSITY +1
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410599989.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

The traditional digital image correlation method is inaccurate in large displacement and large deformation measurements, has low calculation efficiency, and is difficult to achieve accurate measurement of soft materials.

Method used

A material surface deformation displacement field measurement method based on deep learning is adopted. By building a model including feature extraction, feature enhancement, feature matching and displacement field refinement modules, weighted convolutional neural network and Transformer are used for feature extraction and matching, combined with L1 loss. function and the OneCycleLR learning rate scheduler to directly establish the mapping relationship between the pre- and post-deformation images and the corresponding deformation information to achieve end-to-end training and measurement.

Benefits of technology

It improves the measurement accuracy and efficiency, overcomes the calculation step size and accuracy problems of traditional methods, can quickly and accurately measure large deformation displacement fields, and expands the application scope of digital image correlation methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118640818A
    Figure CN118640818A
Patent Text Reader

Abstract

The invention discloses a material surface deformation displacement field measurement method based on deep learning. The method comprises the following steps: making a sample data set with labels; a material surface deformation displacement field measurement model based on deep learning is established, the model is trained and verified by using the sample data set, a trained material surface deformation displacement field measurement model is obtained, and the model comprises a feature extraction module, a feature enhancement module, a feature matching module and a displacement field refining module; speckle images before and after material surface deformation are collected and input into the trained material surface deformation displacement field measurement model, and a to-be-measured material surface deformation displacement field is obtained. According to the material surface deformation displacement field measurement method, the efficiency and precision of digital image deformation measurement can be improved, and the application range related to digital images is expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of material surface deformation measurement, and specifically relates to a material surface deformation displacement field measurement method based on deep learning. Background Art

[0002] With the continuous development of science and engineering technology, material measurement technology is also developing rapidly and is widely used in various complex stress environments, such as large special equipment such as aircraft engines, rocket vehicles, and cutting-edge defense fields. It plays a great role in production and manufacturing and plays a vital role in industrial development. Therefore, the study of the mechanical behavior of materials is of great significance.

[0003] The displacement distribution of the material surface under the action of external force is an important parameter to characterize the deformation of the material surface. It can usually directly reflect the mechanical properties of the material structure, thus providing theoretical support for the selection of materials. With the continuous development of experimental mechanics technology, more and more material surface deformation measurement methods have emerged, and these methods are widely used in the deformation characterization of material surfaces. There are many types of traditional strain measurement technologies, which can be roughly divided into two categories: contact measurement and non-contact measurement. The contact measurement methods mainly include strain gauges, extensometers, sensors, etc. This measurement method has high accuracy and good stability. However, due to the need to contact the object being measured, it will have a greater impact on the measurement results to a certain extent, and is not suitable for deformation measurement of microscopic objects and materials with small elastic modulus. The non-contact measurement methods include speckle interferometry, moiré interferometry, fringe projection and digital image correlation methods. Among them, the digital image correlation algorithm stands out from many methods because of its advantages such as simple operation equipment, full-field measurement, wide application range, high measurement accuracy, and low environmental requirements. It is currently the most active measurement method in the field of optical measurement mechanics research, and has attracted many scholars to conduct in-depth research in this related field.

[0004] Digital image correlation (DIC) is a non-contact optical measurement technology for full-field measurement. This technology only needs to collect the speckle deformation image of the measured object before and after deformation through the camera, match the pixel grayscale features between the images before and after deformation, and calculate the displacement field and strain field by matching the movement of the pixels in the area. In the past few decades, digital image correlation technology has been increasingly used in many non-contact measurement fields, such as experimental mechanics and cell mechanics.

[0005] The digital image correlation algorithm measures the surface displacement of the specimen through two steps: integer pixel search and sub-pixel displacement optimization. The integer pixel search locates the integer pixel displacement of the corresponding pixel point position coordinates before and after deformation through various matching methods, such as cross multiplication method, Fourier transform method, SIFT and swarm intelligence algorithm. In order to further improve the measurement accuracy of the digital image correlation method, a large number of scholars have proposed sub-pixel displacement optimization algorithms, such as the forward incremental Newton-Raphson (FA-AR) algorithm proposed in 1989 to calculate the displacement field, which greatly promoted the development of the DIC algorithm. However, this method requires the Hessian matrix to be recalculated when the deformed image is updated, which greatly limits the calculation efficiency. Baker et al. proposed the inverse combined Gauss-Newton iteration (IC-GN) algorithm for image sub-area registration, which effectively avoids the repeated calculation of the Hessian matrix and becomes the most efficient sub-pixel matching method. However, in the traditional digital image correlation algorithm, factors such as the setting of the calculation step size, the size of the sub-area, the displacement shape function, and the interpolation method, the selection of the fitting method, and the iterative initial value calculation method will affect the calculation accuracy and speed of the digital image correlation algorithm. Especially when conducting tensile tests on soft materials, the traditional DIC algorithm cannot accurately measure them due to their large deformation and large changes in speckle patterns.

[0006] With the rapid development of deep learning in the field of computer vision, deep learning has gradually begun to be applied to the field of DIC. Min et al. began to use deep learning to replace some steps in the traditional DIC method, but there are problems with low calculation accuracy and efficiency. Boukhtache et al. borrowed the optical flow method based on deep learning, used computer-simulated speckle image data sets to retrain and fine-tune multiple existing deep learning optical flow method frameworks and proposed StrainNet, which achieved displacement field measurement accuracy comparable to that of the traditional DIC method. Yang et al. proposed a deep learning-based DIC method DeepDIC, which includes two independent convolutional neural networks to perform end-to-end displacement field and strain field measurements respectively, but this method ignores the relationship between the displacement field and the strain field.

[0007] In view of the above background, how to combine deep learning with digital image correlation method and propose a material surface deformation displacement field measurement method based on deep learning that is fast, robust, and has high measurement accuracy and can overcome the shortcomings of traditional digital image correlation method to achieve accurate measurement of large deformation displacement field has become an urgent problem to be solved. Summary of the invention

[0008] In view of this, the purpose of the present invention is to provide a material surface deformation displacement field measurement method based on deep learning to solve the problem of inaccurate measurement of large displacement and large deformation by traditional digital image correlation method.

[0009] The technical solution provided by the present invention is: a method for measuring material surface deformation displacement field based on deep learning, comprising the following steps:

[0010] Creating a labeled sample data set, wherein each sample in the sample data set includes a reference image corresponding to the speckle image before material deformation and a deformed image corresponding to the speckle image after material deformation, the reference image and the deformed image are both obtained by processing the simulated speckle image, the label of the sample is a displacement field corresponding to the reference image and the deformed image, and the sample data set includes a training data set and a verification data set;

[0011] A material surface deformation displacement field measurement model based on deep learning is constructed and the model is trained and verified using the training data set and the verification data set to obtain a trained material surface deformation displacement field measurement model, wherein the model includes a feature extraction module, a feature enhancement module, a feature matching module and a displacement field refinement module; the feature extraction module is used to use a weighted convolutional neural network to extract downsampled dense features from the input reference image and the deformed image respectively; the feature enhancement module is used to add fixed 2D sine and cosine position codes to the extracted paired downsampled dense features, and send the downsampled dense features with the added position codes to the Transformer for feature enhancement; the feature matching module is used to perform feature matching on the enhanced paired downsampled dense features and use a softmax matching layer to obtain an initial displacement field; the displacement field refinement module is used to refine the initial displacement field through a self-attention layer to obtain a refined displacement field as the output of the material surface deformation displacement field measurement model;

[0012] The speckle images before and after the material surface is deformed are collected and input into the trained material surface deformation displacement field measurement model to obtain the material surface deformation displacement field to be measured.

[0013] Preferably, the speckle image is generated by using a Boolean simulation renderer, which obtains a synthetic speckle image similar to the actual speckle image by randomly rendering and superimposing small black disks on the image.

[0014] Further preferably, the size of the reference image is uniform and is obtained by trimming the speckle image.

[0015] Further preferably, the method for generating the deformed image is as follows: applying the generated random displacement field to the reference image to generate a deformed image corresponding to the reference image under the corresponding displacement field.

[0016] Further preferably, the method for generating the deformed image comprises the following specific steps:

[0017] (1) Select Hermite elements of different pixel sizes and generate multiple random displacement fields for each Hermite element;

[0018] (2) applying the generated random displacement field to the reference image to obtain a noise-free deformed image, and then adding Gaussian noise to the noise-free deformed image to obtain a final deformed image, wherein the Gaussian noise level is no more than 0.5%.

[0019] Further preferably, in the Transformer, the downsampled dense features after adding the position encoding are subjected to multiple self-superposition, cross-attention and feed-forward networks.

[0020] Further preferably, in the feature enhancement module, the local window attention transfer strategy of Swin-Transformer is adopted to split the features into a fixed number of local windows, the window size is adapted to the feature size, the window of size H×W is split into K×K windows, and self-attention and cross-attention are performed independently in each window.

[0021] Further preferably, in the process of training the material surface deformation displacement field measurement model, an L1 loss function is used to supervise the training of the model, and the L1 loss function is as follows:

[0022]

[0023] Where N is the number of displacement field predictions, including intermediate and final displacement field predictions, θ represents the weight, which increases exponentially, and f(x) and Y gt represent the predicted displacement field and the real displacement field respectively.

[0024] Further preferably, during the training of the material surface deformation displacement field measurement model, the OneCycleLR learning rate scheduler is used to dynamically adjust the learning rate, and the initial value of the learning rate is set to 4e-4; the batch size of the main-batch gradient descent is set to 1; Adam is selected as the optimization method; and the hyperparameters β1 and β2 are set to 0.9 and 0.999, respectively.

[0025] The material surface deformation displacement field measurement method based on deep learning provided by the present invention can realize statistical generalization and mapping from input to output through end-to-end training. Different from the template matching, optimization technology and interpolation optimization method for calculating deformation parameters of digital image correlation methods, the deep neural network does not need to consider various optimization algorithms and interpolation methods, but directly establishes a mapping relationship between the image before and after deformation and the corresponding deformation information. By training the model and learning the network weights, it can be quickly applied to image calculation without real-time optimization. The method based on convolutional neural network is of great significance for improving the efficiency and accuracy of digital image deformation measurement, expanding the application scope of digital image correlation, and expanding the engineering application means of digital image correlation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments:

[0027] Figure 1 This is a flow chart of the material surface deformation displacement field measurement method based on deep learning;

[0028] Figure 2 It is a diagram of the generation process of the deformed image;

[0029] Figure 3 This is the overall architecture diagram of the material surface deformation displacement field measurement model based on deep learning;

[0030] Figure 4 This is a framework diagram of a weighted convolutional neural network;

[0031] Figure 5 It is the residual block structure diagram. DETAILED DESCRIPTION

[0032] The present invention will be further explained below in conjunction with specific implementation schemes, but the present invention is not limited thereto.

[0033] In order to solve the problems existing in the prior art, such as Figure 1 As shown, the present invention provides a material surface deformation displacement field measurement method based on deep learning, comprising the following steps:

[0034] S1: preparing a labeled sample data set, wherein each sample in the sample data set includes a reference image corresponding to the speckle image before material deformation and a deformed image corresponding to the speckle image after material deformation, the reference image and the deformed image are both obtained by processing the simulated speckle image, the label of the sample is the displacement field corresponding to the reference image and the deformed image, and the sample data set includes a training data set and a verification data set;

[0035] Unlike traditional methods, deep learning methods require a large number of labeled data sets with real displacement fields. The displacement corresponding to pixels in real-world scenes is not easy to determine, and it is difficult to obtain real displacement field labels. Therefore, the present invention uses simulated speckle images to generate sample data sets to ensure that they have high robustness and strong generalization ability.

[0036] The speckle image is generated by a Boolean simulation renderer, which randomly renders and superimposes small black disks on the image to obtain a synthetic speckle image similar to the actual speckle image. In this embodiment, a reference frame with a size of 512×512 pixels is rendered using a Boolean simulation renderer, and reference frames with large spots and poor contrast are eliminated, and finally 363 speckle images are retained. The specific parameter settings for rendering the simulated speckle image are shown in Table 1:

[0037] Table 1 Parameters of Boolean renderer

[0038]

[0039] The size of the reference image is uniform and can be obtained by cropping the speckle image. In the present invention, the reference image is a 256×256 image cropped from a 512×512 pixel speckle image. The specific cropping process is as follows: randomly select two integers x and y in the range [1, 255] to generate a point (x, y), repeat 100 times, and create 100 different square areas with (x, y), (x, y+255), (x+255, y+255), (x+255, y) as corner points. In this way, each 512×512 speckle image can generate 100 different 256×256 speckle images, that is, a total of 36,300 reference images are obtained.

[0040] Among them, the method for generating the deformed image is as follows:

[0041] Applying the generated random displacement field to the reference image to generate a deformed image corresponding to the reference image under the corresponding displacement field; Figure 2 As shown, the specific steps of the method for generating the deformed image are as follows:

[0042] (1) Select Hermite elements of different pixel sizes and generate multiple random displacement fields for each Hermite element;

[0043] In order to generate a rich set of displacement fields covering as many types of displacement fields as possible, this embodiment selects Hermite elements of 8×8, 16×16, 32×32, 64×64, and 128×128 pixels, and generates a random displacement field of 256×256 pixels for each of the five size elements (8, 16, 32, 64, 128), wherein the displacement field values ​​generated by the Hermite element are all on integer pixels;

[0044] (2) applying the generated random displacement field to the reference image to obtain a noise-free deformed image, and then adding Gaussian noise to the noise-free deformed image to simulate the noise of a real situation to obtain a final deformed image, wherein the Gaussian noise level is no more than 0.5%.

[0045] Each sample in the sample data set consists of a reference image, a deformed image and a corresponding displacement field. In this embodiment, a total of 36,300 sample data are obtained, of which 36,000 samples are used as a training data set for training the network, and the remaining 300 samples are used as a validation set for measuring the generalization performance of the network.

[0046] S2: Building a material surface deformation displacement field measurement model based on deep learning and using the training data set and the verification data set to train and verify the model to obtain a trained material surface deformation displacement field measurement model, wherein, Figure 3 As shown, the model includes a feature extraction module, a feature enhancement module, a feature matching module and a displacement field refinement module;

[0047] The feature extraction module is used to use a weighted convolutional neural network (such as Figure 4 As shown in the figure, down-sampled dense features are extracted from the input reference image and the deformed image respectively; the feature enhancement module is used to add fixed 2D sine and cosine position codes to the extracted paired down-sampled dense features, and the down-sampled dense features with added position codes are sent to the Transformer for feature enhancement; the feature matching module is used to perform feature matching on the enhanced paired down-sampled dense features and use a softmax matching layer to obtain an initial displacement field, and the displacement field refinement module is used to refine the initial displacement field through a self-attention layer to obtain a refined displacement field as the output of the material surface deformation displacement field measurement model.

[0048] Among them, in the feature enhancement stage, adding position information to the extracted downsampled dense features can make the subsequent feature matching process consider not only the similarity of the features but also their spatial distance, which is helpful to eliminate ambiguity and improve performance; preferably, in the Transformer, the downsampled dense features after adding the position encoding are self-superimposed, cross-attention and feedforward network 6 times to improve the quality of the initialized features; in the feature matching stage, the correlation and softmax layers of the global feature matching are used for feature matching, and the softmax matching layer is used to obtain the displacement field; in the displacement field refinement stage, by considering the self-similarity of the features, an additional self-attention layer is introduced, and the feature self-similarity is used to propagate high-quality displacement field predictions from matching pixels to non-matching pixels, so that residual displacement field predictions can be performed at a higher feature resolution to obtain a more refined displacement field prediction.

[0049] Among them, the feature extraction module is mainly composed of a feature encoder, which is specifically implemented using a residual block structure (such as Figure 5 In the feature extraction stage, a weighted convolutional neural network is used to extract the downsampled dense features F1 and F2 of the reference image I1 and the deformed image I2.

[0050] Since the downsampled dense features F1 and F2 have no concept of spatial position, in the feature enhancement stage, fixed 2D sine and cosine position encodings are first added to the downsampled dense features to obtain new features containing position information, and then the new features are sent to the Transformer for 6 times of self-superposition and cross-attention to improve the quality of the initialized features.

[0051] Right now:

[0052] Among them, T is Transformer, P is position encoding, the first input of T is query, and the second input is key and value.

[0053] After obtaining the enhanced features, we enter the feature matching stage and calculate All pixels in the The feature similarity of all pixels in can be achieved through a simple matrix multiplication, namely

[0054]

[0055] Among them, each element in the correlation matrix C represents The median coordinate p1=(i,j) and The correlation value between the coordinates p2 = (k, l), To avoid large normalization factors after the dot product operation. To determine the correspondence, a differentiable matching layer is used, and the last two dimensions of C are normalized using a softmax operation, that is:

[0056] M=softmax(C)∈R H×W×H×W (3)

[0057] Each position in F1 is relative to all positions in F2 by mapping the pixel grid G∈R H×W×H×W The two-dimensional coordinates of and the matching distribution M are weighted averaged to obtain the corresponding Right now:

[0058]

[0059] Finally, the displacement field is obtained by calculating the difference between the corresponding pixel coordinates, that is:

[0060]

[0061] This softmax-based approach not only enables end-to-end training but also provides sub-pixel accuracy.

[0062] In order to improve computational efficiency, the present invention also adopts the local window attention transfer strategy of Swin-Transformer, splits the features into a fixed number of local windows with the window size adapted to the feature size, splits the H×W window into K×K windows, and independently performs self-attention and cross-attention in each window, so that it has good measurement accuracy and computational efficiency.

[0063] In the process of training the material surface deformation displacement field measurement model, in order to improve the convergence speed of the model and increase the accuracy of the model, the L1 loss function is defined to supervise the training of the model:

[0064]

[0065] Where N is the number of displacement field predictions, including intermediate and final displacement field predictions, θ represents the weight, preferably, θ is set to 0.9, and the weight increases exponentially, f(x) and Y gt represent the predicted displacement field and the real displacement field respectively.

[0066] During the training of the material surface deformation displacement field measurement model, the OneCycleLR learning rate scheduler is used to dynamically adjust the learning rate. The initial value of the learning rate is set to 4e-4. This scheduler can help the optimizer better explore the gradient space of the loss function, and learn to rise quickly first and then fall, which can improve the training effect and enable more effective training models. The batch size of the main-batch gradient descent is set to 1 to balance the GPU memory consumption and the fastest search path. Adam is selected as the optimization method because it can adaptively change the learning rate according to the current gradient to make the convergence faster. The hyperparameters β1 and β2 are set to 0.9 and 0.999, respectively.

[0067] S3: collecting speckle images before and after the material surface is deformed and inputting them into the trained material surface deformation displacement field measurement model to obtain the material surface deformation displacement field to be measured.

[0068] This material surface deformation displacement field measurement method based on deep learning can achieve statistical generalization and mapping from input to output through end-to-end training. Different from the template matching, optimization technology and interpolation optimization method of calculating deformation parameters of digital image correlation methods, deep neural networks do not need to consider various optimization algorithms and interpolation methods, and directly establish the mapping relationship between the image before and after deformation and the corresponding deformation information. By training the model and learning the network weights, it can be quickly applied to image calculation without real-time optimization. The method based on convolutional neural network is of great significance for improving the efficiency and accuracy of digital image deformation measurement, expanding the application scope of digital image correlation, and expanding the engineering application means of digital image correlation methods.

[0069] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, 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 material surface deformation displacement field based on deep learning, characterized in that: The steps include: Creating a labeled sample data set, wherein each sample in the sample data set includes a reference image corresponding to the speckle image before material deformation and a deformed image corresponding to the speckle image after material deformation, the reference image and the deformed image are both obtained by processing the simulated speckle image, the label of the sample is a displacement field corresponding to the reference image and the deformed image, and the sample data set includes a training data set and a verification data set; A material surface deformation displacement field measurement model based on deep learning is constructed and the model is trained and verified using the training data set and the verification data set to obtain a trained material surface deformation displacement field measurement model, wherein the model includes a feature extraction module, a feature enhancement module, a feature matching module and a displacement field refinement module; the feature extraction module is used to use a weighted convolutional neural network to extract downsampled dense features from the input reference image and the deformed image respectively; the feature enhancement module is used to add fixed 2D sine and cosine position codes to the extracted paired downsampled dense features, and send the downsampled dense features with the added position codes to the Transformer for feature enhancement; the feature matching module is used to perform feature matching on the enhanced paired downsampled dense features and use a softmax matching layer to obtain an initial displacement field; the displacement field refinement module is used to refine the initial displacement field through a self-attention layer to obtain a refined displacement field as the output of the material surface deformation displacement field measurement model; The speckle images before and after the material surface is deformed are collected and input into the trained material surface deformation displacement field measurement model to obtain the material surface deformation displacement field to be measured.

2. According to the method for measuring material surface deformation displacement field based on deep learning in claim 1, it is characterized by: The speckle image is generated by using a Boolean simulation renderer, which obtains a synthetic speckle image similar to the actual speckle image by randomly rendering and superimposing small black disks on the image.

3. The method for measuring material surface deformation displacement field based on deep learning according to claim 1, characterized in that: The size of the reference image is uniform and is obtained by cropping the speckle image.

4. According to claim 1, the material surface deformation displacement field measurement method based on deep learning is characterized in that: The method for generating the deformed image is as follows: applying the generated random displacement field to the reference image to generate a deformed image corresponding to the reference image under the corresponding displacement field.

5. The method for measuring material surface deformation displacement field based on deep learning according to claim 4, characterized in that: The specific steps of the method for generating a deformed image are as follows: (1) Select Hermite elements of different pixel sizes and generate multiple random displacement fields for each Hermite element; (2) applying the generated random displacement field to the reference image to obtain a noise-free deformed image, and then adding Gaussian noise to the noise-free deformed image to obtain a final deformed image, wherein the Gaussian noise level is no more than 0.5%.

6. The method for measuring material surface deformation displacement field based on deep learning according to claim 1, characterized in that: In Transformer, the downsampled dense features after adding position encoding are self-superimposed, cross-attention and feed-forward network multiple times.

7. The method for measuring material surface deformation displacement field based on deep learning according to claim 1, characterized in that: In the feature enhancement module, the local window attention transfer strategy of Swin-Transformer is adopted to split the features into a fixed number of local windows with the window size adapted to the feature size. The window of size H×W is split into K×K windows, and self-attention and cross-attention are performed independently in each window.

8. The method for measuring material surface deformation displacement field based on deep learning according to claim 1, characterized in that: In the process of training the material surface deformation displacement field measurement model, the L1 loss function is used to supervise the training of the model. The L1 loss function is as follows: Where N is the number of displacement field predictions, including intermediate and final displacement field predictions, θ represents the weight, which increases exponentially, and f(x) and Y gt represent the predicted displacement field and the real displacement field respectively.

9. The method for measuring material surface deformation displacement field based on deep learning according to claim 1, characterized in that: During the training of the material surface deformation displacement field measurement model, the OneCycleLR learning rate scheduler is used to dynamically adjust the learning rate, and the initial value of the learning rate is set to 4e-4; the batch size of the main-batch gradient descent is set to 1; Adam is selected as the optimization method; and the hyperparameters β1 and β2 are set to 0.9 and 0.999, respectively.

Citation Information

Cited By

  • X-ray digital imaging deep learning deformation monitoring method based on explicit correlation layer

    CN119206618A

  • Weight function phase shift method for deformation field measurement

    CN119784632A

  • Matching layer material parameter prediction method and device, electronic equipment and storage medium

    CN119884933A

  • Matching layer material parameter prediction method and device, electronic equipment and storage medium

    CN119884933B

  • Integrated design method for continuum structure and supporting assembly thereof

    CN120597430A