Solid particle feature recognition method based on deep learning
Through the deep learning model and flexible vibration plate technology, the problem of low efficiency and insufficient accuracy of traditional solid particle identification is solved, the automatic and rapid identification of solid particles is realized, the identification efficiency and accuracy are improved, and it is suitable for a variety of application scenarios.
Patent Information
- Application Number
- CN202410181817.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-02-19
AI Technical Summary
Traditional solid particle identification methods are inefficient and error-prone. They rely on manual visual inspection and cannot quickly and accurately identify the appearance characteristics of particles.
Using a method based on deep learning, by collecting and processing pictures of solid particulate matter, a deep learning model is established to identify and classify features, and a convolutional neural network and instance segmentation model are used to identify imperfection, mildew and thermal damage features, and through The flexible vibrating plate takes photos from multiple angles to reduce identification errors.
It achieves automatic, rapid and accurate identification of solid particles, improves identification efficiency and accuracy, reduces labor costs, and is suitable for feature identification and screening in different application scenarios.
Smart Images

Figure CN118015365B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition technology, and specifically to a method for solid particle feature recognition based on deep learning. Background Art
[0002] Deep learning is to learn the inherent laws and representation levels of sample data and use neural network technology to automatically extract the features of the data. Deep learning can perform pattern recognition on data such as images and sounds that cannot be symbolized. Convolutional neural network is the prototype of deep learning. It can divide the input image into different sizes and extract features, and then perform tasks such as recognition and classification.
[0003] Solid particle feature recognition is mainly used to judge the quality of the particles. For example, if the solid particles are corn, soybeans, rice, wheat, etc., their appearance features need to be detected. Traditional solid particle recognition methods mainly rely on manual visual inspection, which is not only inefficient but also prone to errors. Summary of the Invention
[0004] The purpose of the present invention is to solve the problems of low efficiency and easy error in traditional solid particle identification methods, and to propose a solid particle feature recognition method based on deep learning.
[0005] The purpose of the present invention can be achieved through the following technical solution: a method for identifying solid particulate matter features based on deep learning, the method comprising:
[0006] Original image collection: take photos of solid particle features to obtain a feature image set;
[0007] Deep learning training: Build a trained deep learning model and use it to identify features in the feature image set. The model summarizes the features of all solid particles and then classifies them into categories; these features include imperfections, mildew, and heat damage.
[0008] Model parameter tuning: Automatically adjust the learning rate. If the accuracy of the training set does not improve after three iterations, reduce the learning rate and repeat the above process until the deep learning model's results meet expectations.
[0009] New image test: Input a new image into the trained deep learning model, and the deep learning model will directly output the feature category.
[0010] As a preferred embodiment of the present invention, when the solid particle is photographed as a single particle, the single particle is photographed from multiple angles, and the same solid particle is photographed from different angles using a camera to obtain a characteristic image of the single particle; all characteristic images of the same solid particle are collected and marked as a particle image set corresponding to the solid particle, and the particle image sets of all solid particles are collected to obtain a characteristic image set.
[0011] As a preferred embodiment of the present invention, when photographing multiple solid particles, the multiple solid particles are placed in a flexible vibration disk, vibrated once, and photographed one side each, multiple times, to obtain a multi-particle picture of the multiple solid particles; the multi-particle picture is cut into characteristic pictures of individual particles; and all the characteristic pictures are collected to obtain a characteristic picture set.
[0012] As a preferred embodiment of the present invention, the flexible vibration disk includes a vibration disk and a base plate, positioning columns are installed at the four corners of the bottom end surface of the vibration disk, one end of a spring is fixedly sleeved on the four positioning columns, the other end of the spring is fixed on the base plate, motor 1 is installed on the base plate, and a cam is installed at one end of the output shaft of motor 1; an axis base is installed at the midline of the bottom end surface of the vibration disk, a center shaft is installed on the axis base, a bearing is installed on the center shaft in the axis base, and the circular side of the bearing is in contact with the edge side wall of the cam.
[0013] As a preferred embodiment of the present invention, the deep learning model is a convolutional neural network VGG16 model or an instance segmentation model; when the feature is incomplete, the convolutional neural network VGG16 model is used; when the feature is mildew or heat damage, the instance segmentation model is used.
[0014] As a preferred embodiment of the present invention, the specific steps of performing feature recognition are:
[0015] Imperfect identification of particles: Identify the missing volume and total volume of the particle surface, divide the missing volume by the total volume to get the missing rate, and when the missing rate is greater than or equal to the preset percentage, the feature is classified as an imperfect particle;
[0016] Identify mold on particles: Identify bacterial plaque and shape on the particle surface. When bacterial plaque is identified, mark the particle as moldy.
[0017] Identify thermal damage to particles: Identify the color and texture of the particles, and determine whether the characteristics are thermal damage based on the color and texture.
[0018] As a preferred embodiment of the present invention, the color-based determination process is as follows: identifying the color of the particle and the area corresponding to the color, matching the identified color with a preset color, and if the match is successful, counting the area corresponding to the color. If the area exceeds a preset proportion of the total area of the particle, the particle is determined to be thermally damaged.
[0019] The process of texture judgment is as follows: after taking a picture with a color camera, the picture is recognized and distinguished, and the machine learning algorithm and convolutional neural network are used to first identify and classify the thermally damaged particles in the database; then, the convolutional neural network is used to determine the texture type of new photos. If the texture type belongs to the preset type, it is judged as a thermally damaged particle.
[0020] As a preferred embodiment of the present invention, a mounting groove 1 is provided on the bottom plate, a mounting plate is slidably mounted inside the mounting groove 1, a motor 1 is mounted on the mounting plate, and a control box is mounted on the upper end surface of the bottom plate; fixed brackets are symmetrically mounted on both sides of the bottom end surface of the mounting plate, ball screws are mounted on the two fixed brackets, a slider that cooperates with the ball screws is mounted on the ball screws, and the top surface of the slider is fixedly connected to the mounting plate; one end of the ball screw is transmission-connected to one end of the motor 2 via a coupling;
[0021] A second mounting groove is provided at the bottom of the vibration plate, and the shaft base is slidably fixed in the second mounting groove. A connecting plate is fixed on one side of the shaft base, and a limit hole is provided on the connecting plate. An electric push rod is installed on one side of the upper end surface of the motor 1, and the top end of the telescopic rod of the electric push rod cooperates with the limit hole.
[0022] The control box is used to receive images of multi-particle solid particles before and after vibration and perform analysis and control. The specific process is as follows:
[0023] The solid particles in the pictures before and after vibration are segmented to obtain the image of each solid particle, and the repeatability of the solid particle images before and after vibration is calculated; if the repeatability is greater than the set repeatability threshold, the fixed particle is marked as an undispersed particle; the vibration plate is divided into several areas, and the number of undispersed particles in each area is obtained. When the number of undispersed particles is greater than zero, the area is marked as a vibration area, and the vibration areas are sorted from large to small according to the number of undispersed particles, and the excitation position adjustment instructions of the vibration areas are generated in sequence; then the motor 2 is controlled to drive the ball screw to rotate, and the vibration is controlled by the motor 2. The ball screw drives the slider to move, thereby driving the motor 1 to move to the bottom of the vibration area, and at the same time controlling the operation of the electric push rod so that the top end of the telescopic rod of the electric push rod is inserted into the limit hole, and then while the motor 1 is moving, the shaft base slides accordingly in the installation groove 2, so that the shaft base and the motor 1 are always consistent; then, the vibration frequency and voltage of the corresponding motor 1 are matched according to the number of undispersed particles and the repetition of the undispersed particles; the vibration plate is vibrated again to facilitate the re-vibration of the undispersed particles and make them flip over, thereby realizing the control of the dispersion and transfer of materials on the vibration plate.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] 1. The present invention collects original images of solid particles, uses a deep learning model to perform feature recognition on the images, and then performs feature division to obtain the characteristics of the solid particles. It can automatically, quickly and accurately identify the appearance characteristics of solid particles, thereby improving the efficiency and accuracy of solid particle recognition while reducing labor costs. It can also identify and screen different solid particle appearance characteristics according to different needs to meet the needs of different application scenarios.
[0026] 2. The present invention utilizes a flexible vibration plate to vibrate multiple solid particles multiple times, so as to reduce recognition errors caused by the inability to take photos at multiple angles. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] To facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0028] Figure 1 is a flow chart of the method of the present invention;
[0029] Figure 2 The convolutional neural network feature extraction principle diagram of the present invention;
[0030] Figure 3 This is a schematic diagram of the overall structure of the flexible vibration disk of the present invention;
[0031] Figure 4 This is a schematic diagram of the cam installation position of the present invention;
[0032] Figure 5 This is an overall structural diagram of another embodiment of the flexible vibration plate of the present invention;
[0033] Figure 6 This is a schematic diagram of the bottom structure of the base plate of the present invention;
[0034] Figure 7 For the present invention Figure 6 A magnified view of the structure in the middle.
[0035] Reference numerals:
[0036] 1. Vibration plate; 2. Base plate; 3. Spring; 4. Positioning column; 5. Motor 1; 6. Cam; 7. Shaft base; 8. Center shaft; 9. Bearing; 10. Mounting slot 1; 11. Mounting plate; 12. Control box; 13. Ball screw; 14. Fixing bracket; 15. Motor 2; 16. Slider; 17. Electric push rod; 18. Mounting slot 2; 19. Connecting plate; 20. Limit hole. DETAILED DESCRIPTION
[0037] The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.
[0038] Example 1:
[0039] See also Figure 1 - Figure 2 As shown in the figure, the method for identifying solid particulate matter features based on deep learning includes, but is not limited to, corn, soybeans, rice, and wheat. When applied to a single solid particulate matter, it includes:
[0040] Original image collection: Single A1 solid particles are photographed from multiple angles. The same particle is photographed from different angles, including top, bottom, left, right, front, back, and special designated angles. These images from different angles are recorded in the A1 particle feature image set. The images are 400x400 pixels in size, as many as possible, and all are black and white.
[0041] Deep learning training: Using a deep learning model, identify features in the image set of the A1 particle (all features of the A1 particle are recorded on A1); identify the image set from A1 to An and summarize the features of all particles;
[0042] Feature classification: Features are categorized as perfect, moldy, and heat-damaged. Particles with a certain percentage of surface defects, such as 30% of the total volume, are considered imperfect. Particles with fungus or mold growing on their surfaces are called moldy particles (identified based on the size and shape of the plaque). Particles whose properties change due to heat are called heat-damaged particles (identified based on color and texture). The deep learning model used to identify imperfect and perfect particles is the pre-trained VGG16 convolutional neural network, while the deep learning model used to identify moldy and heat-damaged particles is the instance segmentation model.
[0043] Model parameter tuning: Automatically adjust the learning rate. If the accuracy of the training set does not improve after three iterations, reduce the learning rate and repeat the above process until the deep learning model's results meet expectations.
[0044] Input a new image into the trained deep learning model, and the deep learning model will directly output the feature category.
[0045] Example 2:
[0046] See also Figure 2 - Figure 4 As shown in FIG, the solid particle feature recognition method based on deep learning, when applied to multiple solid particles, includes:
[0047] Original picture collection: take pictures of B1 multi-particle solid particles, and use a flexible vibrating plate (such as Figure 3 - Figure 4 As shown), vibrate once, take a picture on the front and back sides respectively, can vibrate multiple times, take pictures multiple times, reduce the recognition error caused by not being able to take pictures at multiple angles; wherein, the flexible vibration plate includes a vibration plate 1 and a bottom plate 2, positioning posts 4 are installed at the four corners of the bottom end surface of the vibration plate 1, one end of a spring 3 is fixedly sleeved on the four positioning posts 4, the other end of the spring 3 is fixed on the bottom plate 2, a motor 5 is installed on the bottom plate 2, and a cam 6 is installed at one end of the output shaft of the motor 5; a shaft base 7 is installed at the midline of the bottom end surface of the vibration plate 1, a central shaft 8 is installed on the shaft base 7, and a bearing 9 is installed on the central shaft 8 in the shaft base 7, and the circular side of the bearing 9 is in contact with the edge side wall of the cam 6;
[0048] When in use, the solid particles are placed in the vibration plate 1, and the motor 5 is started to work. The cam 6 is driven to rotate by the motor 5. When the cam 6 rotates, its tip drives the bearing 9 to move upward. The elastic force of the spring 3 makes the cam and the bearing 9 closely contact. The structure of the cam 6 realizes the up and down reciprocating motion of the vibration plate 1, and then generates vibration, so that the solid particles in the vibration plate 1 are vibrated.
[0049] Cut the image of multi-particle solid particles in B1 into individual particles;
[0050] Deep learning training: Using a deep learning model, the feature images of the single particles cut by B1 are collected and feature recognition is performed on the images (all features of the single particle corresponding to B1 are recorded on B1); the image sets from B1 to Bn are identified, and the features of all particles are summarized;
[0051] Feature classification: Features are categorized as perfect, moldy, and heat-damaged. Particles with a certain percentage of surface defects, such as 30% of the total volume, are considered imperfect. Particles with fungus or mold growing on their surfaces are called moldy particles (identified based on the size and shape of the plaque). Particles whose properties change due to heat are called heat-damaged particles (identified based on color and texture). The deep learning model used to identify imperfect and perfect particles is the pre-trained VGG16 convolutional neural network, while the deep learning model used to identify moldy and heat-damaged particles is the instance segmentation model.
[0052] The specific process for identifying particles based on color and texture is as follows: particles with colors such as red, brown, orange, gray, or black exceeding one-third of their area are considered heat-damaged particles; particles with a water-wave pattern running through them are also considered heat-damaged particles. Images taken with a color camera are used for image recognition and classification. The specific identification principle utilizes a machine learning algorithm and a convolutional neural network to first identify and classify heat-damaged particles in the database. After taking new images, the convolutional neural network is then used for further identification.
[0053] Model parameter tuning: Automatically adjust the learning rate. If the accuracy of the training set does not improve after three iterations, reduce the learning rate and repeat the above process until the deep learning model's results meet expectations.
[0054] Input a new image into the trained deep learning model, and the deep learning model will directly output the feature category.
[0055] The present invention collects original images of solid particles, uses a deep learning model to perform feature recognition on the images, and then performs feature division to obtain the characteristics of the solid particles. It can automatically, quickly and accurately identify the appearance characteristics of solid particles, improve the efficiency and accuracy of solid particle recognition, and reduce labor costs. It can also identify and screen different solid particle appearance characteristics according to different needs to meet the needs of different application scenarios.
[0056] Example 3:
[0057] See also Figure 5 - Figure 7As shown, based on Example 2, a mounting groove 10 is provided on the base plate 2, a mounting plate 11 is slidably mounted inside the mounting groove 10, a motor 5 is mounted on the mounting plate 11, and a control box 12 is mounted on the upper end surface of the base plate 2; fixing brackets 14 are symmetrically mounted on both sides of the bottom end surface of the mounting plate 11, ball screws 13 are mounted on the two fixing brackets 14, and a slider 16 that cooperates with the ball screw 13 is mounted on the ball screw 13, and the top surface of the slider 16 is fixedly connected to the mounting plate 11; one end of the ball screw 13 is transmission-connected to one end of the motor 2 15 via a coupling;
[0058] A second mounting groove 18 is provided at the bottom of the vibration plate 1, and the shaft base 7 is slidably fixed in the second mounting groove 18. A connecting plate 19 is fixed to one side of the shaft base 7, and a limit hole 20 is provided on the connecting plate 19; an electric push rod 17 is installed on one side of the upper end surface of the motor 1 5, and the top end of the telescopic rod of the electric push rod 17 cooperates with the limit hole 20;
[0059] The control box 12 is used to receive images of multi-particle solid particles before and after vibration and perform analysis and control. The specific process is as follows:
[0060] The images before and after vibration are segmented to obtain the image of each solid particle, and the repeatability of the solid particle images before and after vibration is calculated; if the repeatability is greater than the set repeatability threshold, the fixed particle is marked as an undispersed particle; the vibration disk 1 is divided into several areas, and the number of undispersed particles in each area is obtained. When the number of undispersed particles is greater than zero, the area is marked as a vibration area, and the vibration areas are sorted from large to small according to the number of undispersed particles, and the excitation position adjustment instructions of the vibration areas are generated in sequence; then the motor 2 15 is controlled to drive the ball screw 13 to rotate, and the ball screw 13 is used to adjust the position of the vibration area. The slider 16 is driven to move, thereby driving the motor 15 to move to the bottom of the vibration area, and at the same time the electric push rod 17 is controlled to work, so that the top end of the telescopic rod of the electric push rod 17 is inserted into the limit hole 20, and then when the motor 15 moves, the shaft base 7 slides accordingly in the installation groove 2 18, so that the shaft base 7 and the motor 15 are always consistent; then, the vibration frequency and voltage of the corresponding motor 15 are matched according to the number of undispersed particles and the repetition of the undispersed particles; the vibration disk 1 is vibrated again to facilitate the re-vibration of the undispersed particles and make them flip over, so as to realize the control of the dispersion and transfer of materials on the vibration disk 1.
[0061] The preferred embodiments of the present invention disclosed above are intended only to help illustrate the present invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the present invention to specific embodiments. Obviously, many modifications and variations are possible based on the contents of this specification. These embodiments are selected and described in detail in this specification to better explain the principles and practical applications of the present invention, thereby enabling those skilled in the art to better understand and utilize the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A method for identifying solid particle features based on deep learning, characterized in that: Methods include: Original image collection: take photos of solid particle features to obtain a feature image set; Deep Learning Training: Establish a trained deep learning model, use the deep learning model to perform feature recognition on the images in the feature image set, summarize the features of all solid particles, and then divide the features; the features include imperfections, mildew, and heat damage; Model parameter adjustment: Automatically adjust the learning rate. If the accuracy of the training set does not improve after three iterations, reduce the learning rate and repeat the above process until the results of the deep learning model meet expectations. New image test: Input a new image into the trained deep learning model, and the deep learning model will directly output the feature category; When the solid particles are multiple particles, the multiple solid particles are placed in a flexible vibration plate, vibrated once, and a front and back side are photographed, and multiple vibrations and photographs are performed multiple times to obtain a multi-particle picture of the multiple solid particles; Cut the multi-particle images into feature images of individual particles; collect all the feature images to obtain a feature image set; The flexible vibration plate comprises a vibration plate (1) and a bottom plate (2). Positioning columns (4) are installed at four corners of the bottom end surface of the vibration plate (1). One end of a spring (3) is fixedly sleeved on the four positioning columns (4). The other end of the spring (3) is fixed on the bottom plate (2). A motor (5) is installed on the bottom plate (2). A cam (6) is installed at one end of the output shaft of the motor (5). A shaft base (7) is installed at the center line of the bottom end surface of the vibration plate (1). A center shaft (8) is installed on the shaft base (7). A bearing (9) is installed on the center shaft (8) and is located inside the shaft base (7). The circular side of the bearing (9) contacts the edge side wall of the cam (6). The bottom plate (2) is provided with a mounting groove (10), a mounting plate (11) is slidably mounted inside the mounting groove (10), a motor (5) is mounted on the mounting plate (11), and a control box (12) is mounted on the upper end surface of the bottom plate (2); fixed frames (14) are symmetrically mounted on both sides of the bottom end surface of the mounting plate (11), ball screws (13) are mounted on the two fixed frames (14), a slider (16) matched with the ball screw (13) is mounted on the ball screw (13), and the top end surface of the slider (16) is fixedly connected to the mounting plate (11); one end of the ball screw (13) is transmission-connected to one end of the motor (15) through a coupling; The bottom of the vibration plate (1) is provided with a second installation groove (18), the shaft base (7) is slidably fixed in the second installation groove (18), a connecting plate (19) is fixed on one side of the shaft base (7), and a limiting hole (20) is provided on the connecting plate (19); an electric push rod (17) is installed on one side of the upper end surface of the motor (5), and the top end of the telescopic rod of the electric push rod (17) cooperates with the limiting hole (20); The control box (12) is used to receive the images of the multi-particle solid particles before and after vibration and to analyze and control them. The specific process is as follows: The images before and after the vibration are segmented to obtain the image of each solid particle, and the repetition of the images of the solid particles before and after the vibration is calculated; if the repetition is greater than a set repetition threshold, the fixed particle is marked as an undispersed particle; the vibration disk (1) is divided into a plurality of areas, the number of undispersed particles in each area is obtained, and when the number of undispersed particles is greater than zero, the area is marked as a vibration area, and the vibration areas are sorted from large to small according to the number of undispersed particles, and vibration position adjustment instructions for the vibration areas are generated in sequence; then the motor 2 (15) is controlled to drive the ball screw (13) to rotate, and the ball screw (13) drives the slider (16) to move The motor (5) is moved to move to the bottom of the vibration area, and the electric push rod (17) is controlled to work, so that the top end of the telescopic rod of the electric push rod (17) is inserted into the limit hole (20), and then when the motor (5) moves, the shaft base (7) slides correspondingly in the installation groove (18), so that the shaft base (7) and the motor (5) are always consistent; then, the vibration frequency and voltage of the corresponding motor (5) are matched according to the number of undispersed particles and the repetition of the undispersed particles; the vibration plate (1) is vibrated again, so as to re-vibrate the undispersed particles and turn them over, so as to achieve the control of the dispersion and transfer of materials on the vibration plate (1).
2. The method for solid particle feature recognition based on deep learning according to claim 1, characterized in that: When photographing a single solid particle, the single particle is photographed at multiple angles, and the same solid particle is photographed from different angles using a camera to obtain a characteristic image of the single particle; all characteristic images of the same solid particle are collected and marked as a particle image set corresponding to the solid particle, and the particle image sets of all solid particles are collected to obtain a characteristic image set.
3. The method for solid particle feature recognition based on deep learning according to claim 1, characterized in that: The deep learning model is a convolutional neural network VGG16 model or an instance segmentation model; when the feature is imperfect, the convolutional neural network VGG16 model is used; when the feature is mildew or heat damage, the instance segmentation model is used.
4. The method for solid particle feature recognition based on deep learning according to claim 3 is characterized in that: The specific steps for feature recognition are: Identify imperfect particles: Identify the missing volume and total volume of the particle surface, divide the missing volume by the total volume to get the missing rate, and when the missing rate is greater than or equal to the preset percentage, the feature is classified as an imperfect particle; Identify the mold on the particles: Identify the bacterial plaque and shape on the particle surface. When the bacterial plaque is identified, mark the characteristics of the particle as moldy. Identify thermal damage to particles: Identify the color and texture of particles, and determine the characteristics as thermal damage based on color and texture.
5. The method for solid particle feature recognition based on deep learning according to claim 4, characterized in that: The process of color judgment is as follows: the color of the particle and the area corresponding to the color are identified, and the identified color is matched with the preset color. If the match is successful, the area corresponding to the color is counted. If the area exceeds the preset proportion of the total area of the particle, it is judged as a thermally damaged particle. The process of texture judgment is as follows: after taking pictures with a color camera, the pictures are recognized and distinguished, and the thermal damage particles in the database are first identified and classified using machine learning algorithms and convolutional neural networks; then new pictures are taken and the convolutional neural network is used to determine the texture type. If the texture type belongs to the preset type, it is determined to be a thermal damage particle.
Citation Information
Patent Citations
Quick non-destructive judging method for unsound grains of single kernel crop
CN109470648A
Grain particle surface regularity detection equipment
CN114088624A
Coke granularity online detection system and detection method
CN115372208A
Aggregate particle identification and grading automatic analysis method based on deep learning
CN116258689A
Method and system for identifying imperfect grains of cereals based on transmission polarized light image
CN116704247A
