Particle image segmentation device, recognition method, storage medium and terminal equipment
Through the image segmentation model based on the neural network, the convolution module and the attention mechanism are used to extract multi-layer feature maps, which solves the problems of low efficiency and low accuracy in the image segmentation of ternary precursor particles, and realizes the detection in noisy environments. Efficient and accurate particle segmentation.
Patent Information
- Application Number
- CN202411002328.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-25
AI Technical Summary
The existing technology has problems of low efficiency and low accuracy in the ternary precursor particle image segmentation process. Especially when the image noise is large, the particle edges are blurred, and there are many bonded particles, it is difficult to accurately segment and identify the particles, which affects the Calculation accuracy of subsequent electrochemical performance.
An image segmentation model based on neural network is adopted, including input layer, feature extraction layer, feature fusion layer and output layer. Multi-layer feature maps are extracted through convolution module, attention module and upsampling module, and feature fusion and attention mechanisms are used. Improve segmentation accuracy and efficiency.
It significantly improves the accuracy and efficiency of image segmentation, can accurately extract particles in environments with large noise and blurred particle edges, reduces training and inference time, and is suitable for segmentation tasks of particles of multiple shapes and sizes.
Smart Images

Figure CN118552569B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to a particle image segmentation device, a recognition method, a storage medium and a terminal device. Background Art
[0002] Among the current lithium battery cathode materials, ternary precursors have the characteristics of high voltage platform, high energy density, safety and reliability, and are one of the preferred materials for power batteries. The particle size, distribution and micromorphology of ternary cathode materials inherit the relevant physical characteristics of ternary precursors, resulting in the microscopic characteristics of ternary precursors having a significant impact on the physical characteristics and electrochemical properties of ternary cathode materials, directly determining important electrochemical properties of power batteries such as energy density, discharge capacity and cycle life.
[0003] Therefore, in the industrial-scale large-scale synthesis of ternary precursors, precise control of reaction conditions and timely and effective intervention, feedback control and scientific guidance of the production process are crucial to the preparation of ternary precursors with excellent performance. Figure 1 As shown, nickel sulfate, cobalt sulfate and manganese sulfate are used as raw materials, and sodium hydroxide and ammonia water are used together. Under the specific process conditions and environment in the reactor, a ternary precursor is produced through a coprecipitation reaction. The synthesis process needs to pay close attention to the growth changes of the precursor particles, and timely feedback to the production center to adjust the production process technology and conditions to achieve the best effect. Therefore, the sample liquid will be extracted from the reactor in real time, diluted and dispersed, and sent to the microscope to collect images. Then, through image analysis, all particles are separated and the bonding particles are judged. Finally, the number, particle size, average particle size, circularity, ellipticity, particle size distribution and bonding particle ratio data are calculated. It can also draw a variety of distribution images, including histograms, statistical graphs, curves, etc., and output related images and test reports. Multiple thresholds can be set in the process to directly alarm the equipment and feedback to the production center, such as bonding particle ratio, average particle size, circularity, etc.
[0004] In this process, the current segmentation and detection of particle images mainly relies on manual microscope observation. This method relies on the experience of the inspectors, which is not only highly subjective and inefficient, but also unreliable in detection results. More importantly, since the particle size of the ternary precursor particles is micron-sized, the images are basically based on microscope imaging. In the imaging process, there are large noise, high concentration of detected particles, many bonded particles, similar particle pixels and background values, and large areas of blurring at the edges of particles. After sampling in the reactor and diluting and dispersing, the image is collected by the microscope. Figure 2As shown in the figure, each complete field of view image has at least thousands of particles. The problems that need to be solved in segmenting and extracting each individual particle include at least the following: (1) The data demand is huge. From extracting sample liquid from the reactor, diluting and dispersing, making glass slides, collecting microscope data, and finally making labels through labelme software, the whole process is time-consuming and labor-intensive, and requires a lot of time and effort; (2) The image noise is large, there are many bonded particles, the particle image is similar to the background, and the particle edges are blurred. However, the segmentation accuracy requirement is extremely high, otherwise it will seriously affect the accuracy of all subsequent particle description parameter calculations; (3) It is necessary to ensure that the segmentation time is appropriate. The camera currently used is 5 million pixels, the image resolution is 2432x2048, the image is very large, and the reasoning time must be appropriate, otherwise the actual product cannot be applied; (4) Particles may appear in different shapes and sizes, such as circles, ellipses, squares, etc., which increases the difficulty of segmentation. Traditional segmentation methods, such as edge detection, binarization, watershed, etc., are difficult to solve the problem of particle extraction in the above images and can hardly meet the requirements.
[0005] Therefore, how to provide a more accurate and efficient image segmentation method is a technical problem that needs to be solved urgently in this field. Summary of the invention
[0006] In order to solve at least one of the above technical problems, the present invention provides a particle image segmentation device, including an image segmentation model based on a neural network; the model includes:
[0007] Input layer, used to input the image to be segmented;
[0008] Several feature extraction layers are used to extract multi-layer feature maps; each feature extraction layer includes several convolution modules, attention modules and upsampling modules connected in sequence; the first feature extraction layer is connected to the input layer and takes the image to be segmented as input; other feature extraction layers are connected to the input and output of the previous feature extraction layer, and the input and output of the previous feature extraction layer are superimposed as input, and different feature maps of the same size in the previous layer are superimposed;
[0009] The feature fusion layer is connected to the output of each feature extraction layer and the input of the last feature extraction layer to fuse multiple layers of feature maps to obtain a superimposed total feature map;
[0010] The output layer is connected to the feature fusion layer and is used to output the image segmentation result of the image to be segmented.
[0011] Furthermore, the input layer includes: a first deep convolution module.
[0012] Further, the feature extraction layer, comprises two layers;
[0013] The first feature extraction layer includes a second deep convolution module, a third deep convolution module, and a fourth deep convolution module connected in sequence; a first attention module, and a first upsampling module;
[0014] The second feature extraction layer includes a fifth deep convolution module, a first superposition unit, a sixth deep convolution module, a second superposition unit, a seventh deep convolution module, a third superposition unit, and an eighth deep convolution module connected in sequence; as well as a second attention module and a second upsampling module; the input of the fifth deep convolution module is also connected to the second deep convolution module; the input of the first superposition unit is also connected to the first upsampling module; the input of the second superposition unit is also connected to the third deep convolution module; the input of the third superposition unit is also connected to the fourth deep convolution module.
[0015] Furthermore, the feature fusion layer includes a ninth deep convolution module, a fourth stacking unit, a first convolution unit, a second convolution unit, a fifth stacking unit and a first deconvolution connected in sequence; and a second deconvolution; and a sixth stacking unit; the input of the ninth deep convolution module is also connected to the sixth deep convolution module; the input of the fourth stacking unit is also connected to the second upsampling module; the input of the fifth stacking unit is also connected to the first attention module; the output of the first deconvolution is also connected to the sixth stacking unit; the output of the second deconvolution is also connected to the sixth stacking unit;
[0016] Furthermore, the output layer includes a third convolution unit, a third upsampling module, a fourth convolution unit, a fourth upsampling module and a fifth convolution unit which are connected in sequence.
[0017] Furthermore, each convolution module includes a two-dimensional depth-wise separable convolution layer, a batch normalization layer, an activation function, and a maximum pooling layer.
[0018] Furthermore, each attention module,adopts the attention mechanism and assigns different weights to each,channel.
[0019] On the other hand, the present invention also provides a particle image recognition method, comprising:
[0020] Obtain a number of powder particle images, use any of the above-mentioned image segmentation devices to obtain image segmentation results, and manually sort them to construct a training test set;
[0021] Use the sklearn framework to build or import the lgbm algorithm library, load the training and test sets, train and optimize the model, and then infer the bonding image recognition results.
[0022] On the other hand, the present invention further provides a computer storage medium storing executable program code; the executable program code is used to execute any of the above-mentioned image recognition methods.
[0023] On the other hand, the present invention also provides a terminal device, including a memory and a processor; the memory stores program codes that can be executed by the processor; the program codes are used to execute any of the above-mentioned image recognition methods.
[0024] The present invention provides a particle image segmentation device, a recognition method, a storage medium and a terminal device, including an image segmentation model based on a neural network. On the one hand, the model not only includes a plurality of feature extraction layers to extract multi-layer feature maps, but also superimposes the input and output of each feature extraction layer as the input of the next feature extraction layer, and at the same time superimposes different feature maps of the same size through an add operation to reuse the feature map extracted by each layer, so as to better utilize the feature information of high and low layers, retain more details of the image, and improve the accuracy of the image segmentation result; on the other hand, the attention module can improve the overall performance of the network, reduce the time of training and reasoning, and improve the efficiency of image segmentation; more importantly, the feature fusion module fuses the feature maps output by each layer and the feature map input by the last layer to obtain the total feature map after superposition, so as to further improve the accuracy of the image segmentation result. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 Schematic diagram of the ternary precursor production process;
[0026] Figure 2 Partial field of view of the image collected by microscope during the ternary precursor production process;
[0027] Figure 3 A schematic diagram of the structure of an embodiment of the image segmentation model of the present invention;
[0028] Figure 4 A schematic diagram of the structure of another embodiment of the image segmentation model of the present invention;
[0029] Figure 5 This is a schematic diagram of the change of the loss value of the loss function of the training set with the number of iterations;
[0030] Figure 6 This is a schematic diagram of the change in the loss value of the loss function of the test set with the number of iterations;
[0031] Figure 7 A segmentation effect diagram of an embodiment of a segmentation result;
[0032] Figure 8 Schematic diagram of bonding particles. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] It should be noted that if the embodiments of the present invention involve directional indications, such as up, down, left, right, front, back, etc., then the directional indication is only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly. In addition, if the embodiments of the present invention involve descriptions of "first, second", "S1, S2", "step one, step two", etc., then such descriptions are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features or indicating the execution order of the method, etc. Those skilled in the art can understand that anything that does not violate the gist of the invention under the technical concept of the invention should be included in the protection scope of the present invention.
[0035] like Figure 3 As shown, the present invention provides a powder particle image segmentation device, including an image segmentation model based on a neural network; the model includes:
[0036] Input layer, used to input the image to be segmented;
[0037] Several feature extraction layers are used to extract multi-layer feature maps; each feature extraction layer includes several convolution modules, attention modules (AT for short) and upsampling modules connected in sequence; the first feature extraction layer is connected to the input layer and takes the image to be segmented as input; other feature extraction layers are connected to the input and output of the previous feature extraction layer, and the input and output of the previous feature extraction layer are superimposed as input, and different feature maps of the same size in the previous layer are superimposed;
[0038] The feature fusion layer is connected to the output of each feature extraction layer and the input of the last feature extraction layer to fuse multiple layers of feature maps to obtain a superimposed total feature map;
[0039] The output layer is connected to the feature fusion layer and is used to output the image segmentation result of the image to be segmented.
[0040] In this embodiment, an image segmentation device for powder particles of the present invention is provided, including an image segmentation model based on a neural network. On the one hand, the model not only includes a plurality of feature extraction layers to extract multi-layer feature maps, but also superimposes the input and output of each feature extraction layer as the input of the next feature extraction layer, and at the same time superimposes different feature maps of the same size through an add operation to reuse the feature maps extracted from each layer, so as to better utilize the feature information of high and low layers and retain more details of the image to improve the accuracy of the image segmentation result; on the other hand, the attention module can improve the overall performance of the network, reduce the time of training and inference, and improve the efficiency of image segmentation; more importantly, the feature fusion module fuses the feature maps output by each layer and the feature map input by the last layer to obtain the total feature map after superposition, so as to further improve the accuracy of the image segmentation result.
[0041] Preferably, the specific structural form of the image segmentation model can adopt any structural form of a neural network, preferably based on the backbone network Backbone of the encoder structure Encoder, and built with reference to the lightweight convolutional neural network algorithm Mobilenet, preferably using depth-wise-separable convolution. Preferably, each convolution module DPconv can optionally include a two-dimensional depth-wise separable convolution layer, a batch normalization layer BN (Batch Normalization), an activation function Relu, and a maximum pooling layer 2x2Max pooling.
[0042] More preferably, Figure 4 As shown:
[0043] A: Input layer, including: the first deep convolution module DPconv1.
[0044] B: Several feature extraction layers, Figure 4 Taking the two feature extraction layers shown as an example, it includes:
[0045] The first feature extraction layer includes a second deep convolution module DPconv2, a third deep convolution module DPconv3, and a fourth deep convolution module DPconv4 connected in sequence; a first attention module AT1, and a first upsampling module;
[0046] The second feature extraction layer includes a fifth deep convolution module DPconv5, a first superposition unit, a sixth deep convolution module DPconv6, a second superposition unit, a seventh deep convolution module DPconv7, a third superposition unit, and an eighth deep convolution module DPconv8 which are connected in sequence; as well as a second attention module AT2 and a second upsampling module; the input of the fifth deep convolution module DPconv5 is also connected to the second deep convolution module DPconv2; the input of the first superposition unit is also connected to the first upsampling module; the input of the second superposition unit is also connected to the third deep convolution module DPconv3; the input of the third superposition unit is also connected to the fourth deep convolution module DPconv4; preferably, the sixth deep convolution module DPconv6 does not include a pooling layer.
[0047] C: Feature fusion layer, including the ninth deep convolution module DPconv9, the fourth stacking unit, the first convolution unit conv1, the second convolution unit conv2, the fifth stacking unit and the first deconvolution Conv×2 connected in sequence; and the second deconvolution Conv×4; and the sixth stacking unit; the input of the ninth deep convolution module DPconv9 is also connected to the sixth deep convolution module DPconv6; the input of the fourth stacking unit is also connected to the second upsampling module; the input of the fifth stacking unit is also connected to the first attention module AT1; the output of the first deconvolution Conv×2 is also connected to the sixth stacking unit; the output of the second deconvolution Conv×4 is also connected to the sixth stacking unit;
[0048] D: output layer, including the third convolution unit conv3, the third upsampling module, the fourth convolution unit conv4, the fourth upsampling module and the fifth convolution unit conv5 connected in sequence.
[0049] In this embodiment, various preferred embodiments of the image segmentation model are given, which can greatly reduce the training and reasoning time, especially for host CPU reasoning, which has a lot of benefits; it can also greatly reduce the number of corresponding feature channels in each module. At the same time, by superimposing different feature maps of the same size through the add(F1, F2) operation, the reuse of each feature layer can better utilize the feature information of high and low layers, retain more details, and facilitate more accurate segmentation of particles. By integrating the global data of the channel, the attention mechanism is used to carefully enhance and restrict various feature channels, and different weights are given to each channel, thereby enhancing the characteristic display ability of the network. The attention module AT uses the attention mechanism to improve the performance of the network. It can optionally use a channel attention module, a spatial attention module, etc. Through 2 AT operations, 2 different inverse convolution conv x2 and conv x4 modules are used for upsampling to obtain a feature map of the same shape as the DPconv6 module, and finally a global add operation is performed to obtain the total feature after superposition. Then use the conv unit (including convolution and activation) and bilinear interpolation to perform a convolution and upsampling operation on the total feature, repeat the previous two modules to obtain a feature map with the same size as the input image, and finally use the conv unit again to change the dimension of the feature map and obtain the output result, that is, the result map with the same size as the input image. Figure 2 As shown in the figure, the particle image collected by the microscope is input into the model through the DPconv1 module. After a series of feature OP calculations, the result image is output after the last conv unit to obtain the final effect after segmentation. It is worth noting that Figure 4 This is only an example of the adaptability of the model, and does not impose any limitation on its specific structure. Those skilled in the art can understand that the number of convolution modules, the number of convolution units, the number of positions of upsampling modules in each feature extraction layer, etc. can be arbitrarily set according to actual conditions and will not be elaborated here.
[0050] Preferably, the image segmentation model can optionally but not limited to use Tensorflow to build the algorithm structure, and the parameters and op settings required for training are shown in Table 1. In the tf framework, dice_loss needs to be customized, which can be achieved by using the corresponding op operation of tf. The learning rate can be optimized and adjusted, and cosine annealing can be restarted multiple times to improve the adam algorithm. Metrics can select IoU as the evaluation indicator, and BN layer, batchsize, and nb_epoch can also be adjusted appropriately.
[0051] During the training process, you can choose to use the tensorboard visualization tool to monitor the training process in real time, track and record the iterative parameters of the network. The loss function is used to evaluate the difference between the predicted value and the true value of the algorithm model. It is a non-negative real-valued function. The smaller the loss function value, the stronger the robustness and generalization of the model. Figure 5 and Figure 6 It shows how the loss value of the loss function of the training set and the test set changes with the number of iterations.
[0052] from Figure 5 It can be seen from , and 6 that the loss function loss values of the training set and the test set show a gradually and steadily decreasing trend in both the training and test sets with the increase in the number of iterations, without any drastic fluctuations or sharp increases, which further verifies that the network performance of the image segmentation model provided by the present invention is good and excellent.
[0053] After continuous parameter tuning, the final ckpt model file is obtained through training, which can be optionally converted to pb format. Since Opencv (a cross-platform computer vision library) is used to read the model file, no additional environment configuration is required, and the image preprocessing work is more convenient and efficient using this tool, so this reading method is adopted. The file is read through Opencv for inference, and the output result is processed by image post-processing to obtain the segmentation effect diagram as shown below: Figure 7 As shown in the figure, different colors represent different particle instances; the CPU time for this large image is about 160ms. It can be seen that the segmentation effect is very accurate and can better solve the problem of segmenting particles of multiple shapes and sizes. Regardless of the size and shape of the particles, the segmentation effect is still excellent in the case of severe adhesion, showing good generalization, which can meet the segmentation and subsequent detection tasks of various positive electrode material particles.
[0054] Table 1 Neural network training parameter settings
[0055]
[0056] On the other hand, the present invention also provides a method for image recognition of powder particles, comprising:
[0057] S1: Obtain a number of powder particle images, use any of the above image segmentation models to obtain image segmentation results, and manually sort them to construct a training test set;
[0058] Preferably, in the data preparation stage, the sample liquid can be extracted from the reactor, diluted and dispersed, and the slides can be made to collect data from the microscope to obtain a number of powder particle images. Then, any of the above-mentioned image segmentation models are used to extract all the particle images separately. The data volume is large, and the images of the bonding particles and the effective particles are selected through manual sorting, and they are placed in different folders 0 and 1 respectively as positive and negative samples and labels.
[0059] Furthermore, the Histogram of Oriented Gradients (HOG) is used to extract features. This method can well characterize the shape and appearance characteristics of particles through gradients. It is a very good feature description factor and is conducive to the identification of particles. The hog features of bonded particles and effective particles are extracted respectively and saved as npy files as training test sets.
[0060] S2: Use the sklearn framework to build or import the lgbm algorithm library, load the training data set, train and optimize the model, and infer the bonding image recognition results.
[0061] Preferably, the basic parameters of lgbm are set as shown in Table 2:
[0062] Table 2 Basic parameter settings
[0063]
[0064] The above parameters can be fine-tuned to ensure that the training model obtains the optimal solution. After training and testing, the final model is obtained, saved as a pkl format file, and then reasoned using the joblib library.
[0065] After continuous tuning and training, as well as cross-validation, the final training and validation results are: the accuracy of the training set is 0.9854, and the accuracy of the test set is 0.9668. The test set uses the recall rate as the basis for judgment, which can clearly judge the accuracy of new energy particle recognition. The recall rates of effective particles and bonded particles are 0.9781 and 0.9715 respectively. The above prediction results are excellent, and the inference time is 0.1ms, which is in the microsecond level, and the time required is very short. For example, bonded particles are Figure 8 After the above reasoning test, the Lgbm algorithm can well identify the bonding and effective particles, and the reasoning process takes microseconds, which is suitable for particle identification tasks and meets production needs.
[0066] In this embodiment, a method for identifying powder particles is given. Taking ternary precursor material particles as an example, the proportion of bonding particles in effective particles directly affects the density of the power battery, so another important part of image detection is to identify bonding particles for subsequent calculation of statistical quantity and distribution. At present, the most popular is the CNN recognition algorithm, which has good recognition accuracy, but the whole picture reasoning speed is slow because there are too many particles in the particle imaging. In order to improve the recognition time and maintain effective recognition accuracy, the present invention turns the target to the machine learning algorithm, including decision tree, random forest, support vector machine, logistic regression, K nearest neighbor, Kmean, Adaboost, xgboost, lightgbm, etc., preferably using LGBM algorithm Light Gradient Boosting Machine, which is an efficient gradient boosting tree algorithm. Based on the GBDT algorithm, prediction is made by gradually establishing a decision tree. The algorithm is an efficient, distributed, and scalable machine learning method, which is very suitable for regression and recognition tasks of medium and large data volumes and histogram features. LGBM has a fast calculation speed and can utilize the multi-core performance of the CPU to speed up training and reasoning time. It uses the "Exclusive Feature Bundling" method to reduce the relationship between each feature, which can effectively improve the recognition accuracy. In general, the algorithm has the characteristics of fast speed, high accuracy, small memory usage, and is not prone to overfitting during training.
[0067] In summary, the present invention takes the detection of positive electrode material particles of new energy power batteries as the background, and proposes an image segmentation device for powder particles, including an image segmentation model based on a neural network; and an image recognition method to identify bonded particles. In other words: a set of neural network structures for fine particle segmentation and a suitable particle recognition method are designed, and the following conclusions are drawn through test analysis:
[0068] (1) This neural network-based image segmentation model can achieve excellent segmentation results and effectively extract various types of particles by reasonably setting parameters and optimizing the training model in complex environments such as those where images collected from microscopes are noisy, particles are heavily adhered, particle edges are blurred, and particle pixels are similar to background values. This provides a direct basis for the subsequent calculation of descriptive parameters for particle size, shape, and morphology.
[0069] (2) Among a large number of image classification and recognition methods, the LGBM algorithm is preferred and combined with the image segmentation model of the present invention. Simulation tests have proved that this method is accurate and reliable and can accurately identify effective and bonded particles, providing a basis for calculating the proportion of bonded particles in the total number of particles;
[0070] (3) The segmentation, extraction and identification of powder particles are not limited to round and elliptical particles, but also include various shapes, such as square and triangle;
[0071] (4) The calculation time of each link is relatively low, which is conducive to improving the competitiveness of the product.
[0072] For its application, taking the reaction process of the positive electrode material of the new energy power battery as an example, its particle size, distribution and microscopic shape directly affect the battery energy density and cycle life, so the detection of powder particles and timely feedback of the description parameters to the production center is an extremely important link in the production process. The present invention uses a microscope to collect particle images in the production process of the positive electrode material of the power battery in real time. Through the image analysis method, a set of neural network structures for the segmentation of tiny particles and a suitable particle identification method are designed for the segmentation and extraction of particles and the identification of bonded particles, which provide a direct basis for the calculation of various descriptive parameters such as the number, particle size, and particle shape bonding of subsequent particles. After experiments and analysis, under complex environments such as large image noise, more bonded particles, and blurred particle edges, the designed neural network showed excellent segmentation capabilities and was able to accurately extract effective and bonded particles. The segmented particles can accurately identify bonded particles through the machine learning LGMB algorithm. At the same time, the reasoning time of the above two algorithms is relatively low, which is conducive to converting the analysis and test results into product productivity.
[0073] On the other hand, the present invention further provides a computer storage medium storing executable program code; the executable program code is used to execute any of the above-mentioned image recognition methods.
[0074] On the other hand, the present invention also provides a terminal device, including a memory and a processor; the memory stores a program code that can be executed by the processor; the program code is used to execute any of the above-mentioned image recognition methods.
[0075] Exemplarily, the program code may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the program code in the terminal device.
[0076] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the terminal device may also include an input / output device, a network access device, a bus, etc.
[0077] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0078] The memory may be an internal storage unit of the terminal device, such as a hard disk or a memory. The memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store the program code and other programs and data required by the terminal device. The memory may also be used to temporarily store data that has been output or is to be output.
[0079] The above-mentioned image recognition method, computer storage medium and terminal device are created based on the above-mentioned image segmentation device, and their technical functions and beneficial effects are no longer repeated here. The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the various technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0080] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A particle image segmentation device, characterized in that: The invention comprises an image segmentation model based on a neural network; the model comprises: Input layer, used to input the image to be segmented; Several feature extraction layers are used to extract multi-layer feature maps; each feature extraction layer includes several convolution modules, attention modules and upsampling modules connected in sequence; the first feature extraction layer includes a second depth convolution module, a third depth convolution module, and a fourth depth convolution module connected in sequence; as well as a first attention module and a first upsampling module; the second feature extraction layer includes a fifth depth convolution module, a first stacking unit, a sixth depth convolution module, a second stacking unit, a seventh depth convolution module, a third stacking unit, and an eighth depth convolution module connected in sequence; as well as a second attention module and a second upsampling module; the input of the fifth depth convolution module is also connected to the second depth convolution module; the input of the first stacking unit is also connected to the first upsampling module; the input of the second stacking unit is also connected to the third depth convolution module; the input of the third stacking unit is also connected to the fourth depth convolution module; The feature fusion layer is connected to the output of the attention module of each feature extraction layer and the input of the last feature extraction layer to fuse multiple layers of feature maps to obtain the total feature map after superposition; The output layer is connected to the feature fusion layer and is used to output the image segmentation result of the image to be segmented.
2. The image segmentation device according to claim 1, characterized in that: The input layer includes: a first depth convolution module.
3. The image segmentation device according to claim 2, characterized in that: The feature fusion layer includes a ninth deep convolution module, a fourth superposition unit, a first convolution unit, a second convolution unit, a fifth superposition unit and a first deconvolution connected in sequence; and a second deconvolution; and a sixth superposition unit; the input of the ninth deep convolution module is also connected to the sixth deep convolution module; the input of the fourth superposition unit is also connected to the second upsampling module; the input of the fifth superposition unit is also connected to the first attention module; the output of the first deconvolution is also connected to the sixth superposition unit; the output of the second deconvolution is also connected to the sixth superposition unit.
4. The image segmentation device according to claim 3, characterized in that: The output layer includes a third convolution unit, a third upsampling module, a fourth convolution unit, a fourth upsampling module and a fifth convolution unit which are connected in sequence.
5. The image segmentation device according to any one of claims 1 to 4, characterized in that: Each convolution module includes a two-dimensional depth-wise separable convolution layer, a batch normalization layer, an activation function, and a maximum pooling layer.
6. The image segmentation device according to claim 5, characterized in that: Each attention module,adopts the attention mechanism and assigns different weights to each channel.
7. A particle image recognition method, characterized in that: include: Acquire a number of powder particle images, use the image segmentation device described in any one of claims 1 to 6 to obtain image segmentation results, and manually sort them to construct a training test set; Use the sklearn framework to build or import the lgbm algorithm library, load the training and test sets, train and optimize the model, and then infer the bonding image recognition results.
8. A computer storage medium, characterized in that: An executable program code is stored; the executable program code is used to execute the image recognition method described in claim 7.
9. A terminal device, characterized in that: It comprises a memory and a processor; the memory stores a program code executable by the processor; the program code is used to execute the image recognition method described in claim 7.
Citation Information
Patent Citations
Adhering and stacking particle image segmentation method based on deep learning
CN114283147A
Particle detection method and system for sample image
CN117893478A
