Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

EfficientNet-based nut surface defect classification method

A technology of defect classification and nuts, which is applied in image analysis, image data processing, instruments, etc., can solve problems such as low accuracy, low efficiency, and poor generalization ability, and achieve the effect of avoiding time-consuming, avoiding impact, and enhancing adaptability

Active Publication Date: 2021-06-29
中科海拓(无锡)科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, most factories use manual inspection to detect surface defects of nuts, which is inefficient
However, the nut surface defect detection algorithm based on traditional vision is susceptible to interference from external environment and other factors, with low accuracy and poor generalization ability.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • EfficientNet-based nut surface defect classification method
  • EfficientNet-based nut surface defect classification method
  • EfficientNet-based nut surface defect classification method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] A kind of nut surface defect classification method based on EfficientNet, comprises the following steps:

[0034] Step 1: Collect training samples and make a data set; train the EfficientNet model through the data set, and classify the nut surface after the model training converges;

[0035] Step 2: collect the target image, and crop the target image;

[0036] Step 3: Modify the loss function to focal loss, adjust the positive and negative sample weights, and improve the model accuracy;

[0037] Step 4: Image preprocessing, making a template image, performing rotation correction on the input image, and making a difference to obtain a difference image, and merging the three into a three-channel image as the model input image;

[0038] Step 5: Model inference, use the EfficientNet model to infer the input image;

[0039] Step 6: Output the inference image in step 5 to the host computer for display.

[0040] Specifically, in step 1, training samples are collected, and a...

Embodiment 2

[0043] A kind of nut surface defect classification method based on EfficientNet, comprises the following steps:

[0044] Step 1: Collect training samples and make a data set; train the EfficientNet model through the data set, and classify the nut surface after the model training converges;

[0045] Step 2: collect the target image, and crop the target image;

[0046] Step 3: Modify the loss function to focal loss, adjust the positive and negative sample weights, and improve the model accuracy;

[0047] Step 4: Image preprocessing, making a template image, performing rotation correction on the input image, and making a difference to obtain a difference image, and merging the three into a three-channel image as the model input image;

[0048] Step 5: Model inference, use the EfficientNet model to infer the input image;

[0049] Step 6: Output the inference image in step 5 to the host computer for display.

[0050] Specifically, in step 2, adjust the size of the image by using...

Embodiment 3

[0052] A kind of nut surface defect classification method based on EfficientNet, comprises the following steps:

[0053] Step 1: Collect training samples and make a data set; train the EfficientNet model through the data set, and classify the nut surface after the model training converges;

[0054]Step 2: collect the target image, and crop the target image;

[0055] Step 3: Modify the loss function to focal loss, adjust the positive and negative sample weights, and improve the model accuracy;

[0056] Step 4: Image preprocessing, making a template image, performing rotation correction on the input image, and making a difference to obtain a difference image, and merging the three into a three-channel image as the model input image;

[0057] Step 5: Model inference, use the EfficientNet model to infer the input image;

[0058] Step 6: Output the inference image in step 5 to the host computer for display.

[0059] Specifically, in industrial production, the probability of defe...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a EfficientNet-based nut surface defect classification method, and the method comprises the steps: 1, collecting a training sample, and making a data set; training an EfficientNet model through the data set, and carrying out nut surface classification after model training convergence; self-adjusting the model scale by using the EfficientNet, so that the problems that time is wasted by manual adjustment and an optimal solution is difficult to obtain are avoided; 2, collecting a target image, and cutting the target image; step 3, modifying a loss function into focal loss, adjusting positive and negative sample weights, and improving model precision; avoiding the influence of imbalance of positive and negative samples on the model; step 4, image preprocessing: making a template image to perform rotation correction on the input image, performing subtraction to obtain a difference image, and fusing the three images into a three-channel image as a model input image; step 5, performing model reasoning: performing reasoning on an input image by using an EfficientNet model, and performing prediction on the input image by using the EfficientNet model, so as to enhance the adaptability of the model to a production environment and improve the generalization ability of the model; and step 6, outputting the reasoning image to an upper computer for display.

Description

technical field [0001] The invention relates to the technical field of nut surface defect classification, in particular to a nut surface defect classification method based on EfficientNet. Background technique [0002] With the development of science and technology, the automation level of industrial production is also increasing. In nut production, while improving production efficiency, how to improve detection efficiency has become an urgent problem to be solved; currently, most factories use manual inspection for quality inspection, which is affected by factors such as staff experience and working status Influenced by the lack of objectivity and heavy workload, the detection efficiency is low; traditional visual inspection methods used in nut defect detection algorithms usually have low accuracy, poor generalization ability and difficult to adapt to the factory environment. Therefore, the nut defect classification technology based on EfficientNet has important practical ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T7/00G06T3/60G06T7/11G06T7/136G06T7/194G06T7/187G06K9/62
CPCG06T7/0004G06T3/608G06T7/11G06T7/136G06T7/194G06T7/187G06T2207/20081G06T2207/20084G06T2207/30164G06F18/251G06F18/24G06F18/214
Inventor 李子杰程坦刘涛吕剑
Owner 中科海拓(无锡)科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products