Control method of ore separation plate of dry magnetic separator
By improving the UNet semantic segmentation network recognition model and automatically controlling the separation plate of the dry magnetic separator, the problems of large errors and low efficiency caused by the traditional manual visual inspection method are solved, and particle trajectory sorting with high accuracy and efficiency is achieved. .
Patent Information
- Application Number
- CN202410858849.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-12-15
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-11
AI Technical Summary
The particle trajectory identification and separation plate control of traditional dry magnetic separators mainly rely on manual visual inspection, which results in large errors, low accuracy, low efficiency and excessive manpower consumption, making it unable to meet real-time sorting requirements.
Using a magnetic separation identification model based on the improved UNet semantic segmentation network, the stable mineral zone is determined by counting the average value of the mineral zone distribution and setting a threshold, obtaining the contour and calculating the angle through straight line fitting, and automatically controlling the movement of the mineral separation plate to achieve precise mineralization separation.
It achieves accurate particle trajectory segmentation results, eliminates interference from human factors, improves work efficiency, meets the real-time requirements of high-speed magnetic separators, and improves the degree of automation.
Smart Images

Figure CN118761979A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of metallurgical engineering, and in particular to a control method for a dry magnetic separator. Background Art
[0002] With the continuous development of modern metallurgical engineering technology, the application of dry magnetic separation technology is becoming more and more extensive; for example, the country often uses dry magnetic separation technology for separation in the comprehensive recovery of important metal resources such as iron and manganese. In dry magnetic separation engineering, real-time and accurate control of the separation plate is important, and the adjustment of the separation plate is closely related to the identification of the particle trajectory of the dry magnetic separator.
[0003] At present, the particle trajectory identification and ore separation plate control of dry magnetic separators mainly rely on manual visual inspection for operation and adjustment; however, the manual visual inspection method needs to take into account the personal situation of the relevant staff, and the accuracy is easily affected by subjective factors and fatigue, resulting in misjudgment and inaccurate adjustment; the manual visual inspection method is highly dependent on the experience and skill level of the relevant staff, lacks unified standards and accurate quantitative analysis, and is difficult to guarantee accuracy. In addition, since the manual visual inspection method requires staff to be on duty, the overall efficiency is relatively low, which makes it difficult to meet the real-time requirements of dry magnetic separator sorting, and it is also a large consumption of human resources. Summary of the invention
[0004] The technical problem to be solved by the present invention is to overcome the shortcomings and defects mentioned in the above background technology and provide a control method for the separation plate of a dry magnetic separator to solve the technical problems that in the particle trajectory identification and separation plate control work of the traditional dry magnetic separator, manual visual inspection is mainly used for operation and adjustment, resulting in the system being limited by large errors caused by manual factors, low accuracy, low efficiency and excessive manpower consumption when working.
[0005] In order to solve the above technical problems, the technical solution proposed by the present invention is:
[0006] A control method for a ore separation plate of a dry magnetic separator, characterized in that it comprises the following steps:
[0007] (1) Determine the distribution of the ore zone using a magnetic separation recognition model, and obtain the probability statistical distribution P (zone) of the ore zone by calculating the average value of the ore zone distribution over a period of time; the magnetic separation recognition model is a model based on an improved UNet semantic segmentation network structure;
[0008] (2) Stabilizing the distribution of the mineral belt by setting a threshold. When P(zone) is greater than the threshold, a stable mineral belt area is obtained, the contour of the stable mineral belt area is obtained, and the angle of the inner side of the stable mineral belt area is calculated by linear fitting;
[0009] (3) The calculated angle is sent to the controller, which controls the separation plate to move to the corresponding position to achieve accurate mineral separation.
[0010] In the above control method, preferably, the probability statistical distribution P(zone) of the ore zone is obtained by statistically calculating the average value of the ore zone distribution over a period of time, and the calculation is based on the following method:
[0011] Let T be the observation time period, w(zone,t) be the mineral belt distribution zone segmented from the image at time t using the improved UNet semantic segmentation network structure model, and the probability statistical distribution P(zone) of the mineral belt is expressed as the average value of the mineral belt distribution within time T:
[0012]
[0013] In the above control method, preferably, the threshold value τ=0.95 is set so that the area where P(zone) satisfies P(zone)>τ is a stable ore zone area.
[0014] In the above control method, preferably, the contour of the stable ore zone is obtained, and the angle of the inner side of the stable ore zone is calculated by linear fitting, and the calculation is performed in the following manner:
[0015] Extract the contour of the stable ore zone, and set the contour point set as {(v i ,w i )}, and the linear fitting is performed by the least square method. The equation of the fitted line is:
[0016] y=mx+b;
[0017] Among them, m is the slope and b is the intercept;
[0018] The calculation formula of the inner angle θ of the ore belt is as follows:
[0019] θ = arctan(m).
[0020] In the above control method, preferably, determining the mineral distribution area using the magnetic separation identification model comprises the following steps:
[0021] S1, collecting particle track images and environmental background images of a dry magnetic separator; marking the magnetic separation tracks in the images to obtain a marked magnetic separation process image data set as an initial data set; dividing the initial data set into a training set and a validation set according to a preset ratio;
[0022] S2, performing data enhancement processing on the single sample image in the training set, and performing data preprocessing on the training set after the data enhancement processing to obtain a preprocessed data enhancement training set;
[0023] S3, inputting the preprocessed data enhancement training set into a model based on an improved UNet semantic segmentation network structure, a deep learning training model;
[0024] S4, repeatedly iteratively run the training model in step S3, when the training number reaches the maximum number of iterations, end the training, use the verification set to verify the accuracy of the iterative model, and save the model with the highest accuracy in the iteration of the training set as the optimal magnetic separation recognition model;
[0025] S5. The optimal magnetic separation identification model is used in actual particle trajectory identification, semantic segmentation is performed on the real-time collected dry magnetic separator image, particle trajectories are identified in real time, and ore belt distribution is obtained.
[0026] In the above control method, preferably, the model for improving the UNet semantic segmentation network structure includes:
[0027] The GMBConv module includes an MBConv module and a group convolution module. The MBConv module first increases the number of channels by dilation convolution, then performs a depth convolution operation, and finally restores the number of channels to the initial number through a linear bottleneck. The group convolution module divides the channels into several groups, and each group performs a convolution operation independently.
[0028] Hybrid Convolutional Block Attention Module (MCBAM) is used to enhance the ability to focus on key particle features and simplify the network structure.
[0029] The input module includes a first branch for receiving a first input image and a second branch for receiving a second input image, and also includes a feature fusion module for fusing feature maps of the first branch and the second branch at multiple levels, wherein the fusion includes feature map fusion processed by an AFPN module and direct feature map fusion.
[0030] In the above control method, preferably, in step S1, the particle trajectory image and environmental background image of the dry magnetic separator specifically include: particle trajectory images of different types, sizes, working conditions, screen frequencies, and magnetic strengths and corresponding environmental background images; the environmental background image contains ambient lighting and background color data.
[0031] In the above control method, preferably, in step S2, the data enhancement processing includes: CutMix mixing of multiple samples;
[0032] When CutMix of multiple samples is mixed for data enhancement, the process is as follows:
[0033] x A and x B are two different training samples, y A and Bis the corresponding tag value. CutMix needs to generate new training samples and corresponding tags. and
[0034]
[0035] Where M∈{0,1} W×H To discard some areas and fill in the binary mask, ⊙ is the pixel-by-pixel multiplication, λ belongs to the Beta distribution: λ~Beta(0,1) uniform distribution, W is the width, and H is the height.
[0036] In the above control method, preferably, the method for building a model based on an improved UNet semantic segmentation network structure comprises the following steps:
[0037] Initialize network parameters: initialize the weights and biases of the model based on the improved UNet semantic segmentation network structure;
[0038] Define loss function: customize the loss function as the loss function for training;
[0039] Define optimizer: Use AdamW algorithm as the optimizer to continuously modify the network weight parameters according to the gradient of the loss function;
[0040] Define the learning rate adjustment strategy: Use cosine annealing to adjust the learning rate, and control the change of the learning rate by setting the initial learning rate and the number of cycles;
[0041] Define the learning rate decay function: Use the cosine function to adjust the learning rate. In each cycle, the learning rate gradually decreases in the form of the cosine function.
[0042] Define cycles: Determine the total number of training cycles based on the size of the training dataset and the batch size;
[0043] Obtain a model based on the improved UNet semantic segmentation network structure;
[0044] When defining the loss function, the sum of the root mean square error function and the cross information entropy function is used as the custom loss function:
[0045] Loss = RMSE + HLoss;
[0046] The expression of RMSE is:
[0047]
[0048] Among them, RMSE is the root mean square error function, X is the label of the sample, x is the output after the activation function, i is the dimension number of the feature, and n is the total number of dimensions of the feature;
[0049] The expression of HLoss is:
[0050]
[0051] Among them, HLoss is the cross information entropy function, class is the category dimension, p is the predicted output, and q is the actual input.
[0052] In the above control method, preferably, in step S3, training the model specifically includes:
[0053] Inputting the preprocessed data enhancement training set into the model based on the improved UNet semantic segmentation network structure, and the model outputs a predicted semantic segmentation value;
[0054] A custom loss function is used to calculate the loss error between the predicted semantic segmentation value and the true value; the AdamW algorithm is used to continuously modify the network parameters to reduce the loss function; and the learning rate is adjusted through a cosine annealing learning rate adaptive cycle update.
[0055] In the above control method, preferably, in step S4, the accuracy is calculated by one of the following methods:
[0056] Method 1: Pixel accuracy PA, the calculation formula is as follows:
[0057]
[0058] Method 2: Average pixel accuracy MPA: First calculate the pixel accuracy PA for each category, and then average the pixel accuracy PA of all categories. The calculation formula is as follows:
[0059]
[0060] Method 3: Average intersection over union (MIoU). First, calculate the intersection over union (IoU) for each category, and then average the IoUs of all categories. The calculation formula is as follows:
[0061]
[0062] Among them, k represents the total number of categories, p ij Indicates the number of pixels whose true category is i that are predicted to be of category j, p ii It represents the number of pixels whose true category and predicted category are both i. IoU represents the ratio of the overlapping area and the union area between the true category and the predicted category, that is, the ratio of the intersection and union of the two sets.
[0063] In the above control method, preferably, in the improved UNet semantic segmentation network, the network depth, number of channels and convolution kernel size parameters of each layer are adjusted and optimized according to actual problems and data sets.
[0064] The present invention improves the model of the UNet semantic segmentation network structure, which is specially designed for the real-time sorting of dry magnetic separation particles, and aims to improve the efficiency and accuracy of the real-time sorting method of dry magnetic separation particles. The limitations of the traditional U-Net network in real-time processing affect its application efficiency in the sorting of dry magnetic separation particles. To overcome this problem, the present invention proposes an innovative network structure, that is, an improved UNet network structure, which integrates the MBConv module and the group convolution module to create a GMBConv (Group Convolution MBConv) module. The GMBConv module optimizes the network's calculation process and significantly reduces the demand for computing resources. The module significantly improves the network's calculation efficiency, enhances the processing speed and real-time performance, and this innovative design makes the network more efficient when processing complex images, especially in application scenarios that require fast and accurate sorting of particles, showing excellent performance. In addition, the present invention significantly enhances the network's ability to focus on key particle features by introducing a convolutional block attention module (CBAM), thereby improving the accuracy of sorting. Furthermore, in order to simplify the network structure, the present invention combines the GMBConv module with the hybrid convolution block attention module (MCBAM) to form a new Block, named ECBlock (Efficient Convolution with Attention Block), which combines the efficient computing characteristics of GMBConv with the attention mechanism of CBAM, and optimizes the network's ability to focus on important features. In response to the needs of multi-scale feature fusion, the present invention adopts an adaptive feature pyramid network (AFPN) to effectively realize the fusion of features of different scales, further improving the sorting accuracy. In summary, the improved UNet network structure of the present invention effectively improves the real-time, accuracy and robustness in the field of real-time sorting methods for dry magnetic separation particles, and has important practical application value and broad market prospects.
[0065] The control method of the separation plate of the dry magnetic separator of the present invention constructs a model based on the improved UNet semantic segmentation network, and through repeated iterative training of the model, the model with the highest accuracy is selected for actual use, so that the model of the present invention can accurately perform semantic segmentation, and then provide accurate dry magnetic separator particle trajectory segmentation results, and obtain accurate ore belt distribution; and the average value of the ore belt distribution over a period of time is statistically calculated, and a stable ore belt area can be obtained by setting a threshold, and the outline of the stable ore belt area is obtained, and the angle of the inner side of the stable ore belt area is calculated by straight line fitting, and then the angle of the separation plate can be obtained; by using the method of this scheme, the interference of human factors can be eliminated, and accurate particle trajectory segmentation results can be provided, and the method has the characteristics of real-time performance, which can meet the real-time requirements of high-speed dry magnetic separators and improve work efficiency; in addition, the method has a high degree of automation and no longer relies on manual experience and skills, laying the foundation for realizing automatic position adjustment and control of the separation plate.
[0066] Compared with the prior art, the advantages of the present invention are:
[0067] The control method of the ore separation plate of the dry magnetic separator of the present invention obtains accurate ore belt distribution by improving the model of the UNet semantic segmentation network structure, and counts the average value of the ore belt distribution for a period of time, and obtains a stable ore belt area by setting a threshold, obtains the outline of the stable ore belt area, and calculates the angle of the inner side of the stable ore belt area by straight line fitting, and then obtains the angle of the ore separation plate. This method does not require manual operation, has high ore separation accuracy and small error, and can solve the technical problems of particle trajectory recognition and ore separation plate control of traditional dry magnetic separators, which are mainly operated and adjusted by manual visual inspection, resulting in the system being limited by factors such as large errors, low accuracy, low efficiency and excessive manpower consumption caused by manual labor when working. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0069] Figure 1 Schematic diagram of the structure of the model for improving the UNet semantic segmentation network structure in the embodiment.
[0070] Figure 2 Flowchart of calculation of the GMBConv module in the embodiment.
[0071] Figure 3 It is a calculation flow chart of the mixed convolution block attention module MCBAM in the embodiment.
[0072] Figure 4 It is a particle trajectory image of a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0073] In order to facilitate the understanding of the present invention, the present invention will be described more comprehensively and meticulously below in conjunction with the accompanying drawings and preferred embodiments of the present invention, but the protection scope of the present invention is not limited to the following specific embodiments.
[0074] Unless otherwise defined, all the professional terms used below have the same meanings as those generally understood by those skilled in the art. The professional terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the scope of protection of the present invention.
[0075] The control method of the ore separation plate of the dry magnetic separator of this embodiment comprises the following steps:
[0076] (1) The distribution of mineral zones is determined by using a magnetic separation recognition model. The probability statistical distribution P (zone) of mineral zones is obtained by calculating the average value of mineral zone distribution over a period of time. The magnetic separation recognition model is a model based on an improved UNet semantic segmentation network structure.
[0077] (2) Stabilizing the distribution of the mineral belt by setting a threshold. When P(zone) is greater than the threshold, a stable mineral belt area is obtained, the contour of the stable mineral belt area is obtained, and the angle of the inner side of the stable mineral belt area is calculated by linear fitting;
[0078] (3) The calculated angle is sent to a controller (such as a PLC controller), which controls the separation plate to move to a corresponding position to achieve accurate mineral separation.
[0079] In this embodiment, the probability statistical distribution P(x) of the ore belt is obtained by counting the average value of the ore belt distribution over a period of time, and is calculated according to the following method:
[0080] Let T be the observation time period, w(zone,t) be the mineral belt distribution zone segmented from the image at time t using the improved UNet semantic segmentation network structure model, and the probability statistical distribution P(zone) of the mineral belt is expressed as the average value of the mineral belt distribution within time T:
[0081]
[0082] In this embodiment, the threshold τ=0.95 is set so that the area where P(zone) satisfies P(zone)>τ is a stable ore zone area.
[0083] In this embodiment, the contour of the stable ore zone is obtained, and the angle of the inner side of the stable ore zone is calculated by linear fitting, according to the following method:
[0084] Extract the contour of the stable ore zone, and set the contour point set as {(v i ,w i )}, and the linear fitting is performed by the least square method. The equation of the fitted line is:
[0085] y=mx+b;
[0086] Among them, m is the slope and b is the intercept;
[0087] The calculation formula of the inner angle θ of the ore belt is as follows:
[0088] θ = arctan(m).
[0089] An example is given as follows: by improving the model of the UNet semantic segmentation network structure, an image of the distribution of mineral belts over a period of time is obtained. In the image, pixels in the target mineral belt area are marked as 1, and pixels in other areas are marked as 0. Multiple mineral belt distribution images are overlapped, and the pixel average value of the overlapping area is calculated (that is, it corresponds to the probability statistical distribution P(zone) of the mineral belt). If the average value is greater than the set threshold τ=0.95, the overlapping area is a stable mineral belt area. The contour of the stable mineral belt area is obtained, and the angle of the inner side of the stable mineral belt area is calculated by straight line fitting to obtain the angle of the ore separation plate.
[0090] In order to optimize the control of the separation plate of the dry magnetic separator, this embodiment uses the improved Unet network to output the mineral distribution area, obtains the probability statistical distribution P (zone) of the mineral belt by counting the average value of the mineral belt distribution over a period of time, stabilizes the mineral belt distribution by setting a threshold, obtains its contour based on the distribution, and calculates the angle of the inner side of the mineral belt by linear fitting. Then, the calculated angle is sent to the PLC (programmable logic controller), which controls the separation plate to move to the corresponding position to achieve accurate mineral separation. Through the above model, accurate control of the separation plate is achieved, thereby improving the working efficiency of the magnetic separator.
[0091] In this embodiment, determining the mineral distribution area using the magnetic separation identification model includes the following steps:
[0092] S1, collecting particle track images and environmental background images of a dry magnetic separator; marking the magnetic separation tracks in the images to obtain a marked magnetic separation process image dataset as an initial dataset; dividing the initial dataset into a training set and a validation set according to a preset ratio;
[0093] S2, performing data enhancement processing on the single sample image in the training set, and performing data preprocessing on the training set after the data enhancement processing to obtain a preprocessed data enhancement training set;
[0094] S3, input the preprocessed data augmentation training set into the model based on the improved UNet semantic segmentation network structure, perform one forward propagation and one backward propagation, and deep learning training model;
[0095] S4, repeatedly iteratively run step S3 to train the model. When the training number reaches the maximum number of iterations, end the training, use the verification set to verify the accuracy of the iterative model, and save the model with the highest accuracy in the iteration of the training set as the optimal magnetic separation recognition model;
[0096] S5. The optimal magnetic separation identification model is used in actual particle trajectory identification, semantic segmentation is performed on the real-time collected dry magnetic separator image, particle trajectories are identified in real time, and ore belt distribution is obtained.
[0097] like Figure 1 As shown, in this embodiment, the model of improving the UNet semantic segmentation network structure includes:
[0098] The GMBConv module includes an MBConv (Mobile Inverted Bottleneck Convolution) module and a Group Convolution module. The MBConv module first increases the number of channels by dilation convolution, then performs a depthwise convolution operation, and finally restores the number of channels to the initial number through a linear bottleneck. The Group Convolution module divides the channels into several groups, and each group performs a convolution operation independently.
[0099] Hybrid Convolutional Block Attention Module (MCBAM) is used to enhance the ability to focus on key particle features and simplify the network structure.
[0100] The input module includes a first branch for receiving a first input image and a second branch for receiving a second input image, and also includes a feature fusion module for fusing feature maps of the first branch and the second branch at multiple levels, wherein the fusion includes feature map fusion processed by an AFPN module and direct feature map fusion.
[0101] In the dry magnetic separation process, feature extraction and processing of particulate materials are the key to improving sorting efficiency. Traditional convolutional neural networks (CNNs) are often limited by a single module when dealing with these problems. To solve this problem, this embodiment proposes a module called GMBConv, which combines the advantages of MBConv and group convolution to provide more efficient feature extraction capabilities for images of dry magnetic separators.
[0102] The GMBConv module specifically includes the MBConv module and the group convolution module, which is an innovative design that combines the MBConv module and the group convolution module. Specifically:
[0103] MBConv module: The MBConv module is introduced from MobileNetV2. It achieves efficient computing performance through an inverted bottleneck structure. The core of the MBConv module is to first increase the number of channels through dilated convolution, then perform deep convolution operations, and finally restore the number of channels to the initial number through a linear bottleneck. This can improve the effect of feature extraction while maintaining computing efficiency.
[0104] Group convolution module: The group convolution module divides the channels into several groups, and each group performs convolution operations independently, thereby reducing the number of parameters and the amount of calculation. The introduction of group convolution not only reduces the computational complexity, but also captures more detailed features.
[0105] By combining MBConv and group convolution, the GMBConv module can effectively overcome the limitations of a single module and provide more powerful feature extraction capabilities, which is of great significance for particle feature recognition and classification in dry magnetic separation.
[0106] The hybrid convolutional block attention module (MCBAM) is used to enhance the ability to focus on key particle features and simplify the network structure.
[0107] The hybrid convolutional block attention module (MCBAM) further simplifies the network structure based on CBAM. The MCBAM module combines hybrid convolution and attention mechanisms to simplify the complexity of the network while maintaining efficient feature extraction.
[0108] Hybrid convolution: Convolution operations of different scales are combined to capture feature information of different scales.
[0109] Attention Mechanism: Through a simplified attention mechanism, MCBAM is able to reduce the amount of computation while maintaining the ability to focus on important features.
[0110] The application of MCBAM module in dry magnetic separation can simplify the network structure, reduce the consumption of computing resources and improve the overall efficiency of the system while ensuring efficient feature extraction and processing.
[0111] The GMBConv module overcomes the limitations of a single module by combining the advantages of MBConv and group convolution, providing more efficient feature extraction capabilities; the CBAM module enhances the ability to focus on key particle features through the convolutional block attention mechanism; the MCBAM module improves the overall efficiency of the system by simplifying the network structure. The application of these modules in dry magnetic separation will significantly improve the ability to identify and classify mineral particle features, thereby improving the accuracy and efficiency of sorting.
[0112] The input module includes the first branch, the second branch and the feature fusion module. Specifically:
[0113] First branch:
[0114] receiving a first input image;
[0115] A 3×3 convolutional layer with a stride of 2 to downsample the input image;
[0116] Two encoding blocks (ECBlocks) are used to process the output features of the convolutional layer, and the output feature map size is 256×256×32;
[0117] A 3×3 convolutional layer with a stride of 2 for further downsampling;
[0118] Two encoding blocks (ECBlocks) are used to process the downsampled feature maps, and the output feature map size is 128×128×64;
[0119] A 3×3 convolutional layer with a stride of 2 for further downsampling;
[0120] Two encoding blocks (ECBlocks) are used to process the downsampled feature maps, and the output feature map size is 64×64×128;
[0121] A 3×3 convolutional layer with a stride of 2 for further downsampling;
[0122] Two encoding blocks (ECBlocks) are used to process the downsampled feature maps, and the output feature map size is 32×32×256.
[0123] Second branch:
[0124] receiving a second input image;
[0125] A 1×1 convolutional layer to process the input image;
[0126] A 2×2 upsampling convolutional layer to upsample the processed image;
[0127] Two encoding blocks (ECBlocks) are used to process the upsampled feature maps, and the output feature map size is 64×64×32;
[0128] An Adaptive Feature Pyramid Network (AFPN) module;
[0129] A 2×2 upsampling convolutional layer for further upsampling;
[0130] Two encoding blocks (ECBlocks) are used to process the upsampled feature maps, and the output feature map size is 64×64×64;
[0131] An Adaptive Feature Pyramid Network (AFPN) module;
[0132] A 2×2 upsampling convolutional layer for further upsampling;
[0133] Two encoding blocks (ECBlocks) are used to process the upsampled feature maps, and the output feature map size is 64×64×128;
[0134] An Adaptive Feature Pyramid Network (AFPN) module;
[0135] A 2×2 upsampling convolutional layer for further upsampling;
[0136] Two encoding blocks (ECBlocks) are used to process the upsampled feature maps, and the output feature map size is 32×32×256;
[0137] An Adaptive Feature Pyramid Network (AFPN) module.
[0138] The feature fusion module includes:
[0139] It is used to fuse the feature maps of the first branch and the second branch at multiple levels, where:
[0140] The 256×256×32 feature map of the first branch is fused with the feature map of the corresponding level of the second branch;
[0141] The 128×128×64 feature map of the first branch is fused with the feature map of the corresponding level of the second branch;
[0142] The 64×64×128 feature map of the first branch is fused with the feature map of the corresponding level of the second branch;
[0143] The 32×32×256 feature map of the first branch is fused with the feature map of the corresponding level of the second branch.
[0144] The fusion includes feature map fusion processed by the AFPN module and direct feature map fusion.
[0145] In this embodiment, the model of the UNet semantic segmentation network structure is improved, which is specially designed for the real-time sorting of dry magnetic separation particles, aiming to improve the efficiency and accuracy of the real-time sorting method of dry magnetic separation particles. The limitations of the traditional UNet network in real-time processing affect its application efficiency in the sorting of dry magnetic separation particles. To overcome this problem, the present invention proposes an innovative network structure, that is, an improved UNet network structure, which integrates the MBConv module and the group convolution module to create a GMBConv module. The GMBConv module optimizes the calculation process of the network and significantly reduces the demand for computing resources. The module significantly improves the computing efficiency of the network, enhances the processing speed and real-time performance, and this innovative design makes the network more efficient when processing complex images, especially in application scenarios that require fast and accurate sorting of particles, showing excellent performance. In addition, the present invention significantly enhances the network's ability to focus on key particle features by introducing the convolution block attention module CBAM, thereby improving the accuracy of sorting. Furthermore, in order to simplify the network structure, the present invention combines the GMBConv module with the hybrid convolutional block attention module MCBAM to form a new Block, named ECBlock, which combines the efficient computing characteristics of GMBConv with the attention mechanism of CBAM, and optimizes the network's ability to focus on important features. In response to the needs of multi-scale feature fusion, the present invention adopts an adaptive feature pyramid network (AFPN) to effectively realize the fusion of features of different scales and further improve the sorting accuracy. In summary, the improved UNet network structure of the present invention effectively improves the real-time, accuracy and robustness in the real-time sorting of dry magnetic separation particles, and has important practical application value and broad market prospects.
[0146] like Figure 2 As shown in the figure, the GMBConv module is a network module that combines the characteristics of group convolution and MBConv. Its calculation process can be described as follows:
[0147] Input feature map: The module receives the output of the previous layer as the input feature map.
[0148] Dilated convolution: First, expand the convolution kernel by 1×1 to increase the number of channels in order to capture richer feature information.
[0149] Group convolution: Divide the expanded feature map into several groups, and use an independent convolution kernel for convolution operation in each group, which can reduce the number of parameters and the amount of calculation, G = 2.
[0150] Depthwise separable convolution: After group convolution, depthwise convolution is performed on each channel to further improve computational efficiency, using kernel sizes of 3 and 5 for calculations respectively.
[0151] SE module: Optionally, a SE module (Squeeze-and-Excitation) can be added after the depthwise separable convolution to enhance the representation ability of the model by learning the dependencies between channels.
[0152] Compressed convolution: Finally, a 1×1 convolution kernel is used to reduce the number of channels to the same number of channels as the input feature map.
[0153] Output feature map: Output the feature map processed by the GMBConv module for use by the next layer of the network.
[0154] like Figure 3 As shown in the figure, the hybrid convolutional block attention module MCBAM is a sequential attention mechanism that mixes channel attention and spatial attention on a given feature map to enhance the feature expression ability of the network. The calculation process of MCBAM is as follows, as shown in the figure:
[0155] Channel Attention:
[0156] Global average pooling (GAP) and global maximum pooling (GMP) are performed on the input feature map to obtain two 1D channel descriptors respectively.
[0157] The two descriptors are processed separately through a multi-layer perceptron (MLP) with shared weights and then added.
[0158] The channel attention weight is obtained through the sigmoid activation function.
[0159] Spatial Attention:
[0160] Apply the channel attention weights to the input feature map to obtain a weighted feature map.
[0161] The weighted feature map is averaged and max-pooled in the channel dimension to obtain two 2D spatial descriptors.
[0162] The two descriptors are stacked in the channel dimension and then processed by a small convolution kernel (e.g. 7×7).
[0163] The spatial attention weight is obtained through the sigmoid activation function.
[0164] Feature Recalibration:
[0165] The spatial attention weights are applied to the weighted feature map to obtain the final output feature map.
[0166] In this embodiment, in step S1, the particle trajectory image and environmental background image of the dry magnetic separator specifically include: particle trajectory images of different types, sizes, working conditions, screen frequencies, and magnetic strengths and corresponding environmental background images; the environmental background image includes ambient lighting and background color data.
[0167] In a preferred embodiment of the present invention, the particle trajectory image is shown in Figure 4 .
[0168] In this embodiment, the particle trajectory image and the environmental background image of the dry magnetic separator are collected by an industrial camera.
[0169] In this embodiment, in step S2, the data enhancement processing includes: CutMix mixing of multiple samples; and may also include random cropping, rotation, scaling, horizontal flipping, vertical flipping, brightness, contrast, and color random adjustment.
[0170] CutMix is a data augmentation method that can make the model more robust to image location and content.
[0171] In this embodiment, the image is randomly cropped at a ratio of 30%; the rotation angle range is -60 to 60; the brightness and contrast are 50-150%; and the training image data set is used for data enhancement to expand the diversity of the data.
[0172] In this embodiment, the image data is uniformly scaled to 224×224 size as the input of the model, and the image data is normalized. The value of makes the pixel values distributed in the interval [-1,1].
[0173] When CutMix of multiple samples is mixed for data enhancement, the process is as follows:
[0174] x A and x B are two different training samples, y A and B is the corresponding tag value. CutMix needs to generate new training samples and corresponding tags. and
[0175]
[0176] Where M∈{0,1} W×H To discard some areas and fill in the binary mask, ⊙ is the pixel-by-pixel multiplication, λ belongs to the Beta distribution: λ~Beta(0,1) uniform distribution, W is the width, and H is the height.
[0177] This embodiment uses CutMix for the first time in a dry magnetic separator to solve the technical problems of this specific application scenario of a dry magnetic separator, so as to improve the model accuracy of the dry magnetic separator. The trajectories of dry magnetic separation particles can be divided into three categories: strong magnetic, weak magnetic and non-magnetic. The characteristics of these three types of trajectories on the image are different. For example, strong magnetic trajectories usually appear bright white or yellow, with clear edges, regular shapes, short lengths, narrow widths, and high densities. Weak magnetic trajectories usually appear dim gray or blue, with blurred edges, irregular shapes, long lengths, wide widths, and low densities. Non-magnetic trajectories usually appear black or dark blue, with difficult-to-identify edges, random shapes, different lengths and widths, and extremely low densities. In this specific application field, if the data is not enhanced, the effect of the subsequent UNet semantic segmentation network structure model will be poor, and the model accuracy will be affected.
[0178] This embodiment introduces the CutMix mixture of multiple samples to identify these three types of trajectories, and uses the CutMix mixture of multiple samples for data enhancement processing, which can be linked with the improved UNet to work synergistically. Specifically: First, CutMix can increase the diversity and complexity of the data, so that UNet can learn more features and details, thereby improving the quality of segmentation. Second, CutMix can reduce the impact of label noise, so that UNet can better adapt to different data distributions, thereby improving the robustness of segmentation. Finally, CutMix can reduce the redundancy of data, so that UNet can use computing resources more efficiently, thereby increasing the speed of segmentation.
[0179] In this embodiment, in step S3, the method for building a model based on the improved UNet semantic segmentation network structure includes the following steps:
[0180] Initialize network parameters: initialize the weights and biases of the model based on the improved UNet semantic segmentation network structure;
[0181] Define loss function: customize the loss function as the loss function for training;
[0182] Define optimizer: Use AdamW algorithm as the optimizer to continuously modify the network weight parameters according to the gradient of the loss function;
[0183] Define the learning rate adjustment strategy: Use cosine annealing to adjust the learning rate, and control the change of the learning rate by setting the initial learning rate and the number of cycles;
[0184] Define the learning rate decay function: Use the cosine function to adjust the learning rate. In each cycle, the learning rate gradually decreases in the form of the cosine function.
[0185] Define cycles: Determine the total number of training cycles based on the size of the training dataset and the batch size;
[0186] A model based on the improved UNet semantic segmentation network structure is obtained.
[0187] When defining the loss function, the sum of the root mean square error function and the cross information entropy function is used as the custom loss function:
[0188] Loss = RMSE + HLoss;
[0189] The expression of RMSE is:
[0190]
[0191] Among them, RMSE is the root mean square error function, X is the label of the sample, x is the output after the activation function, i is the dimension number of the feature, and n is the total number of dimensions of the feature;
[0192] The expression of HLoss is:
[0193]
[0194] Among them, HLoss is the cross information entropy function, class is the category dimension, p is the predicted output, and q is the actual input.
[0195] In this embodiment, training the model in step S3 specifically includes:
[0196] The preprocessed data augmentation training set is input into the model based on the improved UNet semantic segmentation network structure, and the model outputs the predicted semantic segmentation value;
[0197] A custom loss function is used to calculate the loss error between the predicted semantic segmentation value and the true value, where the true value is set manually. The AdamW algorithm is used to continuously modify the network parameters to reduce the loss function. The learning rate is adjusted through cosine annealing learning rate adaptive cycle updates.
[0198] In this embodiment, by using a custom loss function and the AdamW optimization algorithm for back propagation, combined with the cosine annealing learning rate adjustment method, the network parameters can be continuously corrected during the training process, and the loss function can be gradually reduced. This can improve the training stability and convergence speed of the model, overcome the local convergence problem, and further improve the accuracy and performance of the dry magnetic separator particle trajectory recognition system.
[0199] This embodiment does not simply apply the UNet semantic segmentation model to the dry magnetic separator, but needs to improve the semantic segmentation model so that it can be better applied to the dry magnetic separator. Specifically: When building a model of the improved UNet semantic segmentation network structure, this embodiment uses a custom loss function as the training loss function; when defining the loss function, the sum of the root mean square error function and the cross information entropy function is used as the loss function; compared with the basic loss function of UNet, the improved loss function can consider the tasks of regression and classification at the same time, and can better handle unbalanced data, because the improved loss function can amplify smaller errors, thereby increasing attention to minority classes, especially for the magnetic separation field where the dividing line between strong magnetism, weak magnetism, and no magnetism is not very obvious, and categories are introduced to improve the recognition accuracy of weak magnetism, which can be better applied to the specific application scenario of dry magnetic separators.
[0200] At the same time, it is also necessary to emphasize in this embodiment that there is an obvious synergy between the data enhancement processing of the CutMix mixture of multiple samples and the custom loss function, and the two constitute an overall, mutually synergistic technical solution. The improved loss function in UNet mainly uses a combination of the Dice loss function and the Focal loss function to solve the problems of category imbalance and unclear boundaries in segmentation. Using the CutMix mixture of multiple samples can enhance the effect of the loss function, so that UNet can better distinguish different categories and boundaries, thereby improving the accuracy of segmentation. At the same time, using the CutMix mixture of multiple samples can also reduce the sensitivity of the loss function, so that UNet can better adapt to different data scenarios, thereby improving the stability of segmentation.
[0201] In this embodiment, in step S4, the accuracy is calculated by one of the following methods:
[0202] Method 1: Pixel accuracy PA (pixel accuracy, PA): This is the simplest method, which is to divide the number of correctly predicted pixels by the total number of pixels. The calculation formula is as follows:
[0203]
[0204] Method 2: Mean pixel accuracy MPA (mean pixel accuracy, MPA): This is an improvement on PA. First, the pixel accuracy PA is calculated for each category, and then the pixel accuracy PA of all categories is averaged. The calculation formula is as follows:
[0205]
[0206] Method 3: Mean intersection over union (MIoU), which first calculates the intersection over union (IoU) for each category, and then averages the IoU of all categories. The calculation formula is as follows:
[0207]
[0208] Among them, k represents the total number of categories, p ij Indicates the number of pixels whose true category is i that are predicted to be of category j, p ii It represents the number of pixels whose true category and predicted category are both i. IoU represents the ratio of the overlapping area and the union area between the true category and the predicted category, that is, the ratio of the intersection and union of the two sets.
[0209] In the preferred embodiment of the present invention, after calculation, the model can achieve 95.36% semantic segmentation pixel accuracy, 95.13% average pixel accuracy, and 93.51% average intersection-over-union ratio.
[0210] In this embodiment, in the improved UNet semantic segmentation network, the network depth, number of channels and convolution kernel size parameters of each layer are adjusted and optimized according to the actual problem and data set.
[0211] In this embodiment, a trained network model is deployed on an embedded development board to perform semantic segmentation on dry magnetic separator images collected in real time to achieve real-time recognition of particle trajectories.
[0212] In summary, the control method of the separation plate of the dry magnetic separator of the present embodiment constructs a model based on the improved UNet semantic segmentation network, and through repeated iterative training of the model, the model with the highest accuracy is selected for actual use, so that the model of the present invention can accurately perform semantic segmentation, and then provide accurate dry magnetic separator particle trajectory segmentation results, and obtain accurate ore belt distribution; and the average value of the ore belt distribution over a period of time is statistically calculated, and a stable ore belt area can be obtained by setting a threshold, and the outline of the stable ore belt area is obtained, and the angle of the inner side of the stable ore belt area is calculated by straight line fitting, and then the angle of the separation plate can be obtained; by using the method of this scheme, the interference of human factors can be eliminated, and accurate particle trajectory segmentation results can be provided, and the method has the characteristics of real-time performance, which can meet the real-time requirements of high-speed dry magnetic separators and improve work efficiency; in addition, the method has a high degree of automation and no longer relies on manual experience and skills, laying the foundation for realizing automatic position adjustment and control of the separation plate.
[0213] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A control method for a separation plate of a dry magnetic separator, characterized in that: The following steps are involved: (1) Determine the distribution of the ore zone using a magnetic separation recognition model, and obtain the probability statistical distribution P (zone) of the ore zone by calculating the average value of the ore zone distribution over a period of time; the magnetic separation recognition model is a model based on an improved UNet semantic segmentation network structure; (2) Stabilizing the distribution of the mineral belt by setting a threshold. When P(zone) is greater than the threshold, a stable mineral belt area is obtained, the contour of the stable mineral belt area is obtained, and the angle of the inner side of the stable mineral belt area is calculated by linear fitting; (3) The calculated angle is sent to the controller, which controls the separation plate to move to the corresponding position to achieve accurate mineral separation.
2. The control method according to claim 1, characterized in that: By calculating the average value of the mineral belt distribution over a period of time, the probability statistical distribution P (zone) of the mineral belt is obtained, which is calculated according to the following method: Let T be the observation time period, w(zone,t) be the mineral belt distribution zone segmented from the image at time t using the improved UNet semantic segmentation network structure model, and the probability statistical distribution P(zone) of the mineral belt is expressed as the average value of the mineral belt distribution within time T:
3. The control method according to claim 1, characterized in that: The threshold τ=0.95 is set so that the area where P(zone) satisfies P(zone)>τ is a stable mineral zone area.
4. The control method according to claim 1, characterized in that: The contour of the stable ore zone is obtained, and the angle of the inner side of the stable ore zone is calculated by linear fitting, according to the following method: Extract the contour of the stable ore zone, and set the contour point set as {(v i ,w i )}, and the linear fitting is performed by the least square method. The equation of the fitted line is: y=mx+b; Among them, m is the slope and b is the intercept; The calculation formula of the inner angle θ of the ore belt is as follows: θ = arctan(m).
5. The control method according to any one of claims 1 to 4, characterized in that: Determining the mineral distribution area using the magnetic separation identification model includes the following steps: S1, collecting particle track images and environmental background images of a dry magnetic separator; marking the magnetic separation tracks in the images to obtain a marked magnetic separation process image data set as an initial data set; dividing the initial data set into a training set and a validation set according to a preset ratio; S2, performing data enhancement processing on the single sample image in the training set, and performing data preprocessing on the training set after the data enhancement processing to obtain a preprocessed data enhancement training set; S3, inputting the preprocessed data enhancement training set into a model based on an improved UNet semantic segmentation network structure, a deep learning training model; S4, repeatedly iteratively run the training model in step S3, when the training number reaches the maximum number of iterations, end the training, use the verification set to verify the accuracy of the iterative model, and save the model with the highest accuracy in the iteration of the training set as the optimal magnetic separation recognition model; S5. The optimal magnetic separation identification model is used in actual particle trajectory identification, semantic segmentation is performed on the real-time collected dry magnetic separator image, particle trajectories are identified in real time, and ore belt distribution is obtained.
6. The control method according to claim 5, characterized in that: Models that improve the UNet semantic segmentation network structure include: The GMBConv module includes an MBConv module and a group convolution module. The MBConv module first increases the number of channels by dilation convolution, then performs a depth convolution operation, and finally restores the number of channels to the initial number through a linear bottleneck. The group convolution module divides the channels into several groups, and each group performs a convolution operation independently. A hybrid convolutional block attention module MCBAM is used to enhance the ability to focus on key particle features and simplify the network structure input module, including a first branch for receiving a first input image and a second branch for receiving a second input image, and also includes a feature fusion module for fusing the feature maps of the first branch and the second branch at multiple levels, wherein the fusion includes feature map fusion processed by the AFPN module and direct feature map fusion.
7. The control method according to claim 5, characterized in that: In step S2, the data enhancement processing includes: CutMix mixing of multiple samples; When CutMix of multiple samples is mixed for data enhancement, the process is as follows: x A and x B are two different training samples, y A and B is the corresponding tag value. CutMix needs to generate new training samples and corresponding tags. and Where M∈{0,1} W×H To discard some areas and fill in the binary mask, ⊙ is the pixel-by-pixel multiplication, λ belongs to the Beta distribution: λ~Beta(0,1) uniform distribution, W is the width, and H is the height.
8. The control method according to claim 5, characterized in that: The method for building a model based on the improved UNet semantic segmentation network structure includes the following steps: Initialize network parameters: initialize the weights and biases of the model based on the improved UNet semantic segmentation network structure; Define loss function: customize the loss function as the loss function for training; Define optimizer: Use AdamW algorithm as the optimizer to continuously modify the network weight parameters according to the gradient of the loss function; Define the learning rate adjustment strategy: Use cosine annealing to adjust the learning rate, and control the change of the learning rate by setting the initial learning rate and the number of cycles; Define the learning rate decay function: Use the cosine function to adjust the learning rate. In each cycle, the learning rate gradually decreases in the form of the cosine function. Define cycles: Determine the total number of training cycles based on the size of the training dataset and the batch size; Obtain a model based on the improved UNet semantic segmentation network structure; When defining the loss function, the sum of the root mean square error function and the cross information entropy function is used as the custom loss function: Loss = RMSE + HLoss; The expression of RMSE is: Among them, RMSE is the root mean square error function, X is the label of the sample, x is the output after the activation function, i is the dimension number of the feature, and n is the total number of dimensions of the feature; The expression of HLoss is: Among them, HLoss is the cross information entropy function, class is the category dimension, p is the predicted output, and q is the actual input.
9. The control method according to claim 5, characterized in that: In step S3, training the model specifically includes: Inputting the preprocessed data enhancement training set into the model based on the improved UNet semantic segmentation network structure, and the model outputs a predicted semantic segmentation value; A custom loss function is used to calculate the loss error between the predicted semantic segmentation value and the true value; the AdamW algorithm is used to continuously modify the network parameters to reduce the loss function; and the learning rate is adjusted through a cosine annealing learning rate adaptive cycle update.
10. The control method according to claim 5, characterized in that: In step S4, the accuracy is calculated by one of the following methods: Method 1: Pixel accuracy PA, the calculation formula is as follows: Method 2: Average pixel accuracy MPA: First calculate the pixel accuracy PA for each category, and then average the pixel accuracy PA of all categories. The calculation formula is as follows: Method 3: Average intersection over union (MIoU). First, calculate the intersection over union (IoU) for each category, and then average the IoUs of all categories. The calculation formula is as follows: Among them, k represents the total number of categories, p ij represents the number of pixels whose true category is i that are predicted to be of category j, p ii It represents the number of pixels whose true category and predicted category are both i. IoU represents the ratio of the overlapping area and the union area between the true category and the predicted category, that is, the ratio of the intersection and union of the two sets.
Citation Information
Patent Citations
Intelligent control method of ore dressing shaking table
CN108519781A
Automatic separation adjusting system and method for dry magnetic separator
CN113751193A
Intelligent ore belt segmentation method based on target detection
CN115228595A
Partition plate position controller and partition plate position controlling method in table specific gravity concentrator and table specific gravity concentration system equipped with partition plate position controller
JP2017170413A
Cited By
Intelligent decision-making method and system for dry magnetic separator
CN119916683A
Dry magnetic separator grade closed-loop control method of NARX-MPC
CN120406160A
NARX-MPC dry magnetic separator grade closed loop control method
CN120406160B
Industrial grade ore belt boundary identification method based on multi-frame time sequence fusion
CN122115444A
