A method and experimental device for measuring numerical information of dynamic granular materials

Through video instance segmentation technology and end-to-end multi-task learning method, the problems of complex equipment, high cost and low precision in the measurement of numerical information of dynamic granular materials are solved, and accurate measurement and robust tracking of the motion information of dynamic granular materials are achieved.

CN114973073BInactive Publication Date: 2024-10-18CENT SOUTH UNIV +3
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210520200.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology has the problems of complex equipment, high cost, low accuracy, and inability to effectively obtain multi-particle motion information when measuring numerical information of dynamic granular materials. Especially when there are too many particles, aliasing is prone to occur, resulting in some particles being unable to be measured.

Method used

Using video instance segmentation technology combined with an end-to-end multi-task learning method, by collecting video data of granular materials, video instance segmentation, centroid extraction, proportional calibration, equivalent ellipse fitting and long axis angle extraction are performed to achieve translation of granular materials. Accurate measurement of quantities, rotations, speeds and accelerations.

Benefits of technology

Provides a computer vision solution that can accurately measure the numerical information of dynamic granular materials, reduce tracking errors, improve measurement robustness, and effectively deal with the problems of high appearance similarity between granular materials and uneven light in the video environment .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114973073B_ABST
    Figure CN114973073B_ABST
Patent Text Reader

Abstract

The present invention provides a method for measuring numerical information of dynamic granular materials, comprising the steps of collecting dynamic granular material videos, creating a data set, end-to-end multi-task learning, video instance segmentation and post-processing; collecting dynamic granular material videos is to record the dynamic granular materials into videos; creating a data set is to convert the dynamic granular material videos into pictures frame by frame, extract a part of the converted pictures by using a labeling tool to mark them, and then divide the labeled data into a training set and a verification set; end-to-end multi-task learning is to use the labeled data to train a video instance segmentation algorithm model; video instance segmentation is to use the trained video instance segmentation algorithm model to perform video instance segmentation on the collected dynamic granular material videos; the post-processing steps include: S1, centroid extraction and proportional calibration; S2, equivalent ellipse fitting and major axis angle extraction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of dynamic granular material measurement, and in particular relates to a method and an experimental device for measuring numerical information of dynamic granular material. Background Art

[0002] Nowadays, as the main body of rapid transportation network construction: high-speed railways and highways are developing rapidly, and the construction requirements for roads and railway projects are getting higher and higher. Traditional road and railway subgrade compaction technology has been difficult to meet the needs of current development. The emergence of intelligent subgrade compaction technology has played an important role in improving the construction quality and durability of roads and railway subgrades.

[0003] The soil in the process of roadbed compaction is essentially a granular material. The granular material changes from a loose state to a dense state, which is the result of the change of the internal microstructure caused by the movement of particles. At the same time, translation and rotation, as the two main forms of particle movement, have a significant impact on the macroscopic mechanical behavior of granular materials, especially deformation.

[0004] At present, the main method for obtaining and analyzing numerical information of dynamic granular materials is the discrete element method (DEM), which was first proposed by Cundall and Strack in the 1970s and has been the focus of many scholars. However, the numerical model itself and its statistical results lack effective data verification and are difficult to be widely accepted. With the development of technology, the motion information of a single particle can be obtained by using the smart sensor SmartRock in real physical experiments, but there are disadvantages such as expensive sensors and the inability to obtain motion information of multiple particles. Particles can be tracked and measured using technologies such as particle tracking velocimeter (PTV), particle imaging velocimeter (PIV), and laser speckle velocimeter (LSV). Among them, PTV technology is widely used in particle flow experiments. However, the above methods are complex and costly, which is not conducive to the numerical measurement of a large number of particles. At the same time, the above methods are prone to aliasing when there are too many particles, resulting in low accuracy and some particles cannot be measured.

[0005] Therefore, in order to simplify the experimental equipment, save costs, improve recognition accuracy, measure more particles, and thus measure the numerical information of dynamic granular materials, and further statistically analyze the movement laws of particles under different external or internal factors during vibration compaction, it is necessary to design a new method for measuring the numerical information of dynamic granular materials. Summary of the invention

[0006] The purpose of the present invention is to provide a method and an experimental device for measuring numerical information of dynamic granular materials, so as to solve the problem mentioned in the background technology that the current method for measuring numerical information of dynamic granular materials still has many defects.

[0007] To achieve the above-mentioned object, the present invention provides a method for measuring numerical information of dynamic granular materials, comprising the following steps: collecting dynamic granular material videos, creating a data set, end-to-end multi-task learning, video instance segmentation and post-processing steps;

[0008] Collect dynamic granular material video: Apply vibration load or rotation load to the granular material to make the granular material vibrate or rotate, and record the dynamic granular material into video;

[0009] Create a data set: Convert the collected dynamic granular material video into images frame by frame, then use the annotation tool to evenly extract a part of the converted images to mark them to obtain the labeled data, and then divide the labeled data into a training set and a validation set;

[0010] End-to-end multi-task learning: Use labeled data to train the video instance segmentation algorithm model;

[0011] Video instance segmentation (VIS): Use the trained video instance segmentation algorithm model to perform video instance segmentation on the collected dynamic granular material video;

[0012] Post-processing steps include:

[0013] S1. Centroid extraction and proportional calibration: In the process of video instance segmentation, the two-dimensional plane where the video frame is located is independently divided into the x direction and the y direction, and then the mask pixels on the left and right sides of the x direction are equally divided, and the mask pixels on the upper and lower sides of the y direction are also equally divided to extract the centroid of the granular material; the centroid displacement is used to represent the translation amount of the granular material, and the translation amount of the granular material is detected, and then the first-order derivative and second-order derivative of the translation amount are calculated to detect the speed and acceleration of the granular material;

[0014] S2. Equivalent ellipse fitting and major axis angle extraction: Use processing tools to convert the mask of the granular material into an ellipse; then for the fitted ellipse, use the change angle of the major axis of the ellipse to represent the rotation amount of the granular material, so as to extract the rotation amount of the granular material.

[0015] In a specific embodiment, the video instance segmentation algorithm model includes a two-stage paradigm, the first stage includes a residual network (ResNet) module, a temporal feature fusion module, a feature pyramid network (FPN) module, and a region proposal network (RPN) module; the second stage includes a region of interest (RoI) alignment module, a classification branch module, a box regression branch module, a mask branch module, and a tracking branch module.

[0016] In a specific implementation, the temporal feature fusion module is:

[0017] The feature A of the current frame from the residual network module is convolved and activated by 1*1 to obtain the feature q that encodes the key information; then, the feature B of the support frame from the residual network module is mapped to k and v through two parallel 1*1 convolutions and activations; then, the dot product of q and k is calculated to obtain the attention matrix S, and the v attention matrix S is weighted to obtain the enhanced feature, which aggregates the contextual information from the support frame; finally, the enhanced feature is converted to feature W through 1*1 convolution and activation, and W is added to the original feature to obtain the final feature Z;

[0018] The expression of enhanced features of the temporal feature fusion module is as follows:

[0019] S = k⊙q;

[0020]

[0021]

[0022] In the formula, ⊙ represents the inner product calculation symbol,

[0023] i, j are the indices of the positions in the attention matrix and feature, respectively.

[0024] N all represents the total number of positions,

[0025] F represents the transformation function corresponding to 1*1 convolution and nonlinear activation,

[0026] Indicates pixel-by-pixel addition.

[0027] The key information encoded includes target category, location, mask, etc. The feature Z not only contains the visual information of the current frame, but also the contextual information of the supporting frames.

[0028] In a specific implementation, the tracking branch module is:

[0029] It includes two fully connected layers and a long sequence external memory. The fully connected layer is used to map the features of the candidate targets, and the long sequence external memory is used to store the previous instances of L sequences. The tracking branch module first calculates the inner products of the candidate target features and all previous instance features respectively, and then compares the inner products, and uses the instance ID with the highest inner product similarity as the instance ID of the candidate target. The value of L is greater than or equal to 2.

[0030] In a specific implementation, the residual network module is used to realize feature extraction of video frames, including multi-level convolutional layers and residual blocks; the residual blocks are constructed by a short-circuit connection mechanism, and the internal residual connection of each residual block is used to deepen the number of network layers and avoid network performance degradation; finally, the feature vector of the video frame is obtained through pooling, fully connected layer and softmax activation function, and output to the temporal feature fusion module.

[0031] In a specific implementation, the feature pyramid network module is used to perform multi-level propagation on the feature map output by the temporal feature fusion module to obtain a multi-scale feature map; the region proposal network module first generates multiple anchor frames for the multi-scale feature map output by the feature pyramid network module, and then performs a first classification and position regression on each anchor frame through convolution, thereby generating a series of region proposals.

[0032] In a specific implementation, the region of interest (RoI) alignment module uses a bilinear interpolation operation to unify the sizes of a series of region proposals generated by the region proposal network module to avoid spatial position misalignment; for the aligned region of interest, it is first processed through a fully connected layer, and then a second classification and regression is performed through a classification branch module and a box regression branch module.

[0033] In a specific implementation, the mask branch module uses a fully convolutional network to perform semantic segmentation on the region of interest and extracts the mask of each instance in the region of interest.

[0034] In a specific implementation, when creating a data set, the converted images are labeled every 5 to 120 frames; the labeled data are divided into a training set and a validation set at a ratio of 4 to 10:1.

[0035] The present invention also provides an experimental device for numerical information of dynamic granular materials, which is used for collecting dynamic granular material videos according to the aforementioned method for measuring numerical information of dynamic granular materials. The device includes granular materials, a laboratory bench, a motor, a visual sensor bracket and a visual sensor. When collecting dynamic granular material videos, the granular materials are randomly placed on the laboratory bench according to particle size. The motor is located below the laboratory bench. The motor is provided with a structure for loading a vibration load and a rotation load on the laboratory bench so that the laboratory bench and the granular materials vibrate or rotate. The visual sensor bracket is arranged next to the laboratory bench. A visual sensor is fixedly provided on the visual sensor bracket for recording videos of dynamic granular materials.

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] The present invention can provide a computer vision solution for measuring the numerical information of dynamic granular materials (mainly the motion information such as the translational momentum, rotational momentum, velocity and acceleration of granular materials). Firstly, the video instance segmentation (VIS) task in machine vision is introduced into the numerical measurement of dynamic granular materials, and end-to-end multi-task learning is implemented on the basis of marked video frames to detect, segment and track granular materials simultaneously; then, a series of post-processing steps such as centroid extraction, equivalent ellipse fitting, major axis angle extraction and proportional calibration are adopted to measure the numerical information of granular materials in the instance dimension.

[0038] The video instance segmentation algorithm based on temporal feature fusion and multi-sequence information tracking in the present invention effectively handles adverse effects such as high appearance similarity between granular materials and uneven video environment light. The technical solution adopted by the present invention can accurately measure the numerical information of granular materials.

[0039] The solution adopted by the present invention can also reduce the phenomenon of tracking errors, so that the tracking of dynamic granular materials can be more robust.

[0040] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0042] Figure 1 It is a flow chart of a method for measuring numerical information of dynamic granular materials of the present invention;

[0043] Figure 2 is a schematic diagram of a temporal feature fusion module of the present invention;

[0044] Figure 3 is a schematic diagram of a tracing branch module of the present invention;

[0045] Figure 4 It is a structural diagram of an experimental device for dynamic granular material numerical information of the present invention;

[0046] Among them, 1. granular material; 2. experimental table; 3. motor; 4. visual sensor bracket; 5. visual sensor. DETAILED DESCRIPTION

[0047] The embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. The specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0048] like Figure 1 As shown, the present invention includes the following steps: collecting dynamic granular material videos, creating a data set, end-to-end multi-task learning, video instance segmentation and post-processing steps;

[0049] Collect dynamic particle video: through Figure 4 The experimental device shown collects videos of dynamic particles. The granular material 1 is placed on the experimental table 2 according to different mixing degrees, the motor 3 is turned on and the vibration load or rotation load is selected to make the experimental table 2 and the granular material 1 vibrate or rotate, and the visual sensor 5 fixed by the visual sensor bracket 4 records the video of the dynamic granular material for subsequent VIS tasks.

[0050] Create a dataset: First, convert the collected dynamic granular material videos into images frame by frame. Then, use the labelme annotation tool to label them and obtain label information, where particles in vibration and rotation states are labeled every 5 to 120 frames. Finally, divide the labeled data into training and validation sets in a ratio of 4 to 10:1.

[0051] End-to-end multi-task learning: The VIS algorithm in the present invention is used to train the labeled data for more than 10 rounds. The VIS algorithm combines instance segmentation and target tracking, that is, to detect, segment and track each instance in the video at the same time, and is used to obtain the mask trajectory of each instance. It is preferred that the video memory frequency of the graphics card used during training is greater than or equal to 14000MHz, the video memory capacity is greater than or equal to 8GB, and it is a graphics card with a graphics processor acceleration function. In the training stage, for each input frame, multiple frames are randomly extracted from the same video, preferably 2 to 10 frames as support frames for the temporal feature fusion module, and L frames are used as reference frames for the tracking branch; in the test stage, for each input frame, the number of support frames is more than the training stage, because using more support frames in the test stage helps to improve performance. The value of L is greater than 2. Generally speaking, the more video frames there are, the larger the L selection; the larger the annotation of the video frame, the larger the L selection; in addition, the selection of L is usually different during training and testing. Generally, the selection of L is larger during testing, because using more sequences during testing can obtain better VIS effects.

[0052] Video instance segmentation: Use the trained model to perform VIS on the dynamic granular material video collected in the first part, and perform post-processing steps after VIS is completed to achieve the measurement of granular material values.

[0053] Post-processing steps include:

[0054] S1. Centroid extraction and proportional calibration: In the process of video instance segmentation, the two-dimensional plane where the video frame is located is independently divided into the x direction and the y direction, and then the mask pixels on the left and right sides of the x direction are equally divided, and the mask pixels on the upper and lower sides of the y direction are also equally divided to extract the centroid of the granular material; the centroid displacement is used to represent the translation amount of the granular material, and the translation amount of the granular material is detected, and then the first-order derivative and second-order derivative of the translation amount are calculated to detect the speed and acceleration of the granular material;

[0055] S2. Equivalent ellipse fitting and major axis angle extraction: Use processing tools to convert the mask of the granular material into an ellipse; then for the fitted ellipse, use the change angle of the major axis of the ellipse to represent the rotation amount of the granular material, so as to extract the rotation amount of the granular material.

[0056] The video instance segmentation algorithm model includes a two-stage paradigm. The first stage includes a residual network (ResNet) module, a temporal feature fusion module, a feature pyramid network (FPN) module, and a region proposal network (RPN) module; the second stage includes a region of interest (RoI) alignment module, a classification branch module, a box regression branch module, a mask branch module, and a tracking branch module.

[0057] The Feature Pyramid Network (FPN) performs multi-level propagation on the feature maps output by the temporal feature fusion module to obtain multi-scale feature maps; feature maps of different scales contain different types of semantic information, among which large-scale feature maps contain more underlying features, and small-scale feature maps contain more abstract semantics.

[0058] Classification branch and box regression branch: For the aligned RoI, it is first processed by the fully connected layer, and then the classification branch and box regression branch are used for the second classification and regression; the classification branch in the present invention is used to distinguish between granular materials and background. The main function of the box regression branch is the detection frame regression, which is mainly the regression of the center point coordinates and the width and height of the detection frame.

[0059] Mask branch: The mask branch uses a fully convolutional network to perform semantic segmentation on the RoI and extract the mask of each instance in the RoI. Because each RoI corresponds to only one instance, simply performing semantic segmentation on it is equivalent to completing instance segmentation.

[0060] Tracking branch: This branch mainly consists of two fully connected layers and a long sequence external memory. The fully connected layer can map the features of the candidate target, and the long sequence external memory can store the previous instances of L sequences. The value of L is greater than 2. Generally speaking, the more video frames there are, the larger the L selection is; the larger the annotation of the video frame, the larger the L selection is; in addition, during training and testing, the selection of L is usually different. Generally, the selection of L during testing is larger, because using more sequences during testing can obtain better VIS effects. In the training stage, the previous instance is directly replaced by the labeled label; in the testing stage, the previous instance is the instance mask segmented from the previous video frame in the video.

[0061] The tracking branch first calculates the inner product between the candidate target and the previous instance, then compares the inner products and uses the instance ID with the highest inner product similarity as the instance ID of the candidate target. In the training phase, the inner product is calculated by weighting the L sequences on average; in the testing phase, the inner product is calculated by weighting the number of frames corresponding to the instance, that is, the closer the selected instance is to the current frame, the higher the weight. Ordinary external memory can only store the previous instances of one sequence, while long sequence external memory can store the previous instances of L sequences. The long sequence external memory in this branch can comprehensively consider the information of multiple frames during the tracking process and is more adaptable to granular materials with high similarity. The long sequence external memory is used to store previous instances. The inner product similarity is calculated for each previous instance and each target in the current frame respectively. The probability of each instance ID being assigned to the target in the current frame is calculated based on the inner product similarity, thereby realizing the assignment of instance IDs to the targets in the current frame; the current frame is the video frame being processed by the algorithm.

[0062] Sequence weighted inner product: Specifically, for a candidate object i, its inner product with the instance j that already exists in the long sequence external memory can be expressed as a sequence weighted inner product:

[0063]

[0064] Where: l represents the sequence index,

[0065] γ l represents the sequence discount factor at l,

[0066] φ i represents candidate target i,

[0067] φ jl represents the instance j at the l sequence,

[0068] Represents φ i With φ jl The inner product of .

[0069] In addition, the robustness of the granular material tracking effect is also increased during the test process through indicators such as detection confidence. The tracking branch calculates the probability of assigning the instance ID to the target in the current frame based on the inner product similarity, but other information, such as semantic consistency, spatial correlation, and detection confidence, can also be used to determine the instance label; combining these three information with the weighted inner product similarity during the test phase can improve the tracking accuracy of the VIS network.

[0070] The input frame and current frame are the video frames being processed by the model, the support frame is the video frame used for fusion by the temporal feature fusion module, and the reference frame is the video frame used for comparison by the tracking head.

[0071] Example 1

[0072] The present invention includes the steps of collecting dynamic particle videos, creating a data set, end-to-end multi-task learning, video instance segmentation and post-processing, and the above steps are implemented in order:

[0073] Collect dynamic particle video: Collect dynamic particle video through the experimental device. Place the granular material 1 on the experimental table 2 according to the random particle size, turn on the motor 3 and select the vibration load or rotation load to make the experimental table 2 and the granular material 1 vibrate or rotate. The visual sensor 5 fixed by the visual sensor bracket 4 records the video of the dynamic granular material 1 for subsequent VIS tasks. In the experimental device used, the experimental table 2 is a circle with a diameter of 32cm, and the rotation speed is 0~1.71rad / min. The granular material 1 used is divided into coarse particles and fine particles. The diameter of the coarse particles is 20mm~30mm, and the diameter of the fine particles is 2.5mm~7.5mm. The visual sensor 5 is located 50cm above the experimental table 2.

[0074] Create a dataset: First, convert the collected dynamic granular material video into pictures frame by frame. Then, use the Labelme annotation tool to label and obtain label information, where particles in the vibrating state are labeled every 60 frames, and particles in the rotating state are labeled every 30 frames. Finally, divide the labeled data into a training set and a validation set at a ratio of about 6:1. Collect about 990s of video data and label a total of 706 frames.

[0075] End-to-end multi-task learning: The video instance segmentation algorithm in the present invention is used to train the labeled data for a total of 12 rounds. The graphics card used during training is NVIDIA GeForce RTX3070. The backbone network used is ResNet101 and FPN, which are pre-trained on the MSCOCO dataset to speed up convergence. In the training phase, for each input frame, 5 frames are randomly extracted from the same video, 2 frames are used as support frames for the temporal feature fusion module, and 3 frames are used as reference frames for the tracking branch; in the testing phase, the sequence L of the tracking branch is set to 4, because using more support frames in the testing phase helps improve performance. The initial learning rate is set to 0.02, and gradually decays during the 8th to 11th rounds of training, with a decay factor of 10.

[0076] Video instance segmentation: Use the trained video instance segmentation algorithm model to perform video instance segmentation on the collected dynamic granular material video.

[0077] Post-processing steps: S1, centroid extraction and proportional calibration: In the process of video instance segmentation, the two-dimensional plane where the video frame is located is independently divided into the x direction and the y direction, and then the mask pixels on the left and right sides of the x direction are equally divided, and the mask pixels on the upper and lower sides of the y direction are also equally divided to extract the centroid of the granular material; the centroid displacement is used to represent the translation amount of the granular material, and the translation amount of the granular material is detected, and then the first-order derivative and second-order derivative of the translation amount are calculated to detect the speed and acceleration of the granular material;

[0078] S2. Equivalent ellipse fitting and major axis angle extraction: Use the fitEllipse function in Python to convert the mask of the granular material into an ellipse. Then, for the fitted ellipse, the change angle of the major axis of the ellipse is used to represent the rotation amount of the granular material, thereby realizing the extraction of the rotation amount of the granular material.

[0079] The measurement of the particle material value is achieved through a post-processing step.

[0080] To solve the problem of difficulty in tracking caused by high similarity in appearance of granular materials, the present invention adopts a long sequence external memory, fully considers multi-frame information, and achieves better tracking effect.

[0081] The VIS algorithm in the present invention adds a temporal feature fusion module, which can fuse the information of video frames in the feature extraction stage, enhance the feature representation of granular materials, and improve the detection effect of granular materials, especially granular materials in videos with uneven lighting or blurred motion.

[0082] In the case of poor segmentation effect, the segmented mask may be under-segmented or over-segmented. Under-segmentation means that the segmentation mask is too small to completely cover the particles, and over-segmentation means that the segmentation mask is too large to contain too many particles. The VIS algorithm in the present invention improves the particle segmentation performance. The present invention can also significantly improve the situation of particle ID switching, that is, the situation where the particles have association errors during the tracking process, resulting in errors in the allocation of ID numbers.

[0083] The VIS algorithm adopted in the present invention uses a long sequence external memory, which can aggregate instance information of multiple sequences during the tracking process. It has good adaptability to objects such as particles that are dense and have high appearance similarity between individuals, can improve tracking performance, and is less likely to cause tracking errors.

[0084] The video instance segmentation algorithm adopted in the present invention can achieve good video instance segmentation effect. Experiments using the algorithm on a self-built data set show that the AP value can reach 76.6, which is 2.1 higher than the AP value of the MaskTrack R-CNN algorithm and higher than non-end-to-end algorithms such as MaskR-CNN+Deep SORT.

[0085] The technical solution adopted by the present invention has low measurement error. For vibrating granular materials, the error of translation is only 8.95%, and the error of rotation is only 16.43%; for rotating granular materials, the error of translation is only 5.67%, and the error of rotation is only 9.51%.

[0086] The standard deviation of the error of the numerical value measured by the present invention is low, indicating that the stability of the method of the present invention is relatively strong. For vibrating granular materials, the standard deviation of the angle error is only 3.41°, and the standard deviation of the translation error is only 0.47 cm; for rotating particles, the standard deviation of the angle error is only 1.92°, and the standard deviation of the translation error is only 0.26 cm.

[0087] The present invention can be widely applied to numerical measurement of moving particles in the field of rock, soil or materials, and can also be applied to video instance segmentation of objects in the field of computer vision.

[0088] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions and substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.

Claims

1. A method for measuring numerical information of dynamic granular materials, characterized in that: The following steps are included: collecting dynamic granular material videos, creating a dataset, end-to-end multi-task learning, video instance segmentation, and post-processing steps; Collect dynamic granular material video: Apply vibration load or rotation load to the granular material to make the granular material vibrate or rotate, and record the dynamic granular material into video; Create a data set: Convert the collected dynamic granular material video into images frame by frame, then use the annotation tool to evenly extract a part of the converted images to mark them to obtain the labeled data, and then divide the labeled data into a training set and a validation set; End-to-end multi-task learning: Use labeled data to train the video instance segmentation algorithm model; Video instance segmentation: Use the trained video instance segmentation algorithm model to perform video instance segmentation on the collected dynamic granular material video; Post-processing steps include: S1. Centroid extraction and proportional calibration: In the process of video instance segmentation, the two-dimensional plane where the video frame is located is independently divided into the x direction and the y direction, and then the mask pixels on the left and right sides of the x direction are equally divided, and the mask pixels on the upper and lower sides of the y direction are also equally divided to extract the centroid of the granular material; The displacement of the center of mass is used to represent the translation of the granular material, and the translation of the granular material is detected, and then the first-order derivative and the second-order derivative of the translation are calculated to detect the velocity and acceleration of the granular material; S2. Equivalent ellipse fitting and major axis angle extraction: Use processing tools to convert the mask of the granular material into an ellipse; then for the fitted ellipse, use the change angle of the major axis of the ellipse to represent the rotation amount of the granular material, so as to extract the rotation amount of the granular material.

2. The method for measuring dynamic granular material numerical information according to claim 1, characterized in that: The video instance segmentation algorithm model includes a two-stage paradigm. The first stage includes a residual network module, a temporal feature fusion module, a feature pyramid network module, and a region proposal network module; the second stage includes a region of interest alignment module, a classification branch module, a box regression branch module, a mask branch module, and a tracking branch module.

3. The method for measuring dynamic granular material numerical information according to claim 2, characterized in that: The temporal feature fusion module is: The feature A of the current frame from the residual network module is convolved and activated with 1*1 to obtain the feature q that encodes the key information; then, the feature B of the support frame from the residual network module is mapped to k and v through two parallel 1*1 convolutions and activations; then, the dot product of q and k is calculated to obtain the attention matrix S, and v is weighted with the attention matrix S to obtain the enhanced feature, which aggregates the contextual information from the support frame; finally, the enhanced feature is converted to feature W through 1*1 convolution and activation, and W is added to the original feature to obtain the final feature Z; The expression of enhanced features of the temporal feature fusion module is as follows: S = k⊙q; In the formula, ⊙ represents the inner product calculation symbol, i, j are the indices of the positions in the attention matrix and feature, respectively. N all represents the total number of positions, F represents the transformation function corresponding to 1*1 convolution and nonlinear activation, Indicates pixel-by-pixel addition.

4. The method for measuring dynamic granular material numerical information according to claim 2, characterized in that: The tracking branch module is: It includes two fully connected layers and a long sequence external memory. The fully connected layer is used to map the features of the candidate targets, and the long sequence external memory is used to store previous instances of L sequences. The tracking branch module first calculates the inner products of the candidate target features and all previous instances respectively, and then compares the inner products, and uses the instance ID with the highest inner product similarity as the instance ID of the candidate target. The value of L is greater than or equal to 2.

5. The method for measuring dynamic granular material numerical information according to claim 2, characterized in that: The residual network module is used to realize feature extraction of video frames, including multi-level convolutional layers and residual blocks; the residual blocks are constructed by a short-circuit connection mechanism, and the internal residual connection of each residual block is used to deepen the number of network layers and avoid network performance degradation; finally, the feature vector of the video frame is obtained through pooling, fully connected layer and softmax activation function, and output to the temporal feature fusion module.

6. The method for measuring dynamic granular material numerical information according to claim 2, characterized in that: The feature pyramid network module is used to perform multi-level propagation on the feature map output by the temporal feature fusion module to obtain a multi-scale feature map; the region proposal network module first generates multiple anchor frames for the multi-scale feature map output by the feature pyramid network module, and then performs the first classification and position regression on each anchor frame through convolution, thereby generating a series of region proposals.

7. The method for measuring dynamic granular material numerical information according to claim 2, characterized in that: The region of interest alignment module uses a bilinear interpolation operation to unify the sizes of a series of region proposals generated by the region proposal network module to avoid spatial position misalignment; the aligned region of interest is first processed through a fully connected layer, and then a second classification and regression is performed through a classification branch module and a box regression branch module.

8. The method for measuring dynamic granular material numerical information according to claim 2, characterized in that: The mask branch module uses a fully convolutional network to perform semantic segmentation on the region of interest and extracts the mask of each instance in the region of interest.

9. The method for measuring dynamic granular material numerical information according to claim 1, characterized in that: When creating the dataset, the converted images are labeled every 5 to 120 frames; the labeled data are divided into a training set and a validation set in a ratio of 4 to 10:

1.

10. An experimental device for numerical information of dynamic granular materials, characterized in that: A method for measuring numerical information of dynamic granular materials as described in any one of claims 1 to 9 is used to collect dynamic granular material videos, comprising granular materials (1), a laboratory table (2), a motor (3), a visual sensor bracket (4) and a visual sensor (5). When collecting dynamic granular material videos, the granular materials (1) are randomly placed on the laboratory table (2) according to particle size, the motor (3) is located below the laboratory table (2), and the motor (3) is provided with a structure for loading a vibration load and a rotation load on the laboratory table (2) so that the laboratory table (2) and the granular materials (1) vibrate or rotate. The visual sensor bracket (4) is arranged next to the laboratory table (2), and a visual sensor (5) is fixedly provided on the visual sensor bracket (4) for recording videos of dynamic granular materials.

Citation Information

Patent Citations

  • Adhering and stacking particle image segmentation method based on deep learning

    CN114283147A

  • Rockfill dam material segmentation method based on instance segmentation algorithm

    CN114399516A

  • Method and system for automatic extraction of virtual on-body inertial measurement units

    US20220066544A1

  • Vision-based working area boundary detection system and method, and machine equipment

    WO2020107687A1

  • Target tracking method and device fusing optical flow information and siamese framework

    WO2021035807A1