Research on mechanical automatic food packaging defect detection model based on improved YOLOv5 algorithm

  • 0Internship and Training Management Office, Binzhou Polytechnic, Binzhou, Shandong, China.

|

|

Summary

This summary is machine-generated.

This study introduces an enhanced YOLOv5 model for automated food packaging defect detection, significantly improving accuracy and efficiency over traditional methods. The advanced model excels at identifying subtle flaws and small targets, boosting industrial automation capabilities.

Area Of Science

  • Computer Vision
  • Machine Learning
  • Industrial Automation

Background

  • Traditional manual inspection methods for food packaging defects are inefficient and error-prone.
  • Modern industrial automation demands high efficiency and precision in defect detection.
  • Existing automated systems struggle with identifying small targets and subtle defects.

Purpose Of The Study

  • To develop an enhanced YOLOv5-based model for accurate and efficient food packaging defect detection.
  • To improve the identification of small targets and subtle defects in food packaging.
  • To enhance the automation and precision of the food packaging inspection process.

Main Methods

  • Integrated a Convolutional Block Attention Module (CBAM) to enhance feature prioritization.
  • Employed pyramid and aggregation networks for multi-scale feature fusion to capture diverse defects.
  • Optimized the YOLOv5 backbone with a streamlined YOLOv5s model and Adaptive Spatial Feature Fusion (ASFF) for improved feature blending.

Main Results

  • The enhanced YOLOv5 model achieved superior performance with Accuracy (Ac)=0.96, Recall (Re)=0.94, and F1 score=0.94.
  • Outperformed original YOLOv5 (Ac=0.82, Re=0.85, F1=0.88), YOLOv5+CBAM (Ac=0.88, Re=0.9, F1=0.89), and YOLOv5+ASFF (Ac=0.94, Re=0.95, F1=0.94).
  • The combined model (CBAM+FPN+PANet+ASFF) demonstrated performance comparable to related research works.

Conclusions

  • The proposed enhanced YOLOv5 model significantly improves automated food packaging defect detection.
  • The integration of CBAM, multi-scale fusion, and ASFF effectively addresses limitations in detecting small and subtle defects.
  • The developed system offers a robust solution for enhancing automation and accuracy in food production quality control.

Related Concept Videos

Detection of Gross Error: The <em>Q</em> Test 01:00

4.4K

When one or more data points appear far from the rest of the data, there is a need to determine whether they are outliers and whether they should be eliminated from the data set to ensure an accurate representation of the measured value. In many cases, outliers arise from gross errors (or human errors) and do not accurately reflect the underlying phenomenon. In some cases, however, these apparent outliers reflect true phenomenological differences. In these cases, we can use statistical methods...

Improving Translational Accuracy 02:07

2.5K
Force Classification 01:22

1.0K

Forces play a crucial role in the study of physics and engineering. They are essential in describing the motion, behavior, and equilibrium of objects in the physical world. Forces can be classified based on their origin, type, and direction of action.
Contact and non-contact forces are two of the most widely used categories of forces. As the name suggests, contact forces require physical contact between two objects to act upon each other. Examples of contact forces include frictional,...

Types of Errors: Detection and Minimization 01:12

1.3K

Error is the deviation of the obtained result from the true, expected value or the estimated central value. Errors are expressed in absolute or relative terms.
Absolute error in a measurement is the numerical difference from the true or central value. Relative error is the ratio between absolute error and the true or central value, expressed as a percentage.
Errors can be classified by source, magnitude, and sign. There are three types of errors: systematic, random, and gross.
Systematic or...

Classification of Systems-I 01:26

156

Linearity is a system property characterized by a direct input-output relationship, combining homogeneity and additivity.
Homogeneity dictates that if an input x(t) is multiplied by a constant c, the output y(t) is multiplied by the same constant. Mathematically, this is expressed as:

Additivity means that the response to the sum of multiple inputs is the sum of their individual responses. For inputs x1(t) and x2(t) producing outputs y1(t) and y2(t), respectively:

Combining homogeneity and...

Reducing Line Loss 01:18

130

In a three-phase circuit, line loss is an indicator of energy dissipated as heat due to the resistance of transmission lines. To address this, incorporating transformers into the system—a step-up transformer at the source and a step-down transformer at the load—is a strategic solution. Two three-phase transformers are introduced to improve this.
With a step-up transformer at the source, the voltage is increased, thereby reducing the current in the transmission lines since power loss...