Author Contributions
The individual contributions were investigation, methodology, validation, software, writing (first draft preparation, revision, and editing): D.T. Supervision, project administration, writing (editing): Y.B. All authors have read and agreed to the published version of the manuscript.
Figure 1.
Parts of a glass bottle and an example of the chipping focused on in this study.
Figure 1.
Parts of a glass bottle and an example of the chipping focused on in this study.
Figure 2.
Scope of inspection in conventional research (inspection of bottle bottom (a) and bottle body (b)).
Figure 2.
Scope of inspection in conventional research (inspection of bottle bottom (a) and bottle body (b)).
Figure 3.
Examples of deficiencies covered in this study (Chips are present on the threads of all bottles).
Figure 3.
Examples of deficiencies covered in this study (Chips are present on the threads of all bottles).
Figure 4.
Overview of glass bottle photography. (If there are no chips, light passes through intact (
a). When there are chips, light reflects diffusely through the chips, resulting in a dark reflection (
b)) [
7].
Figure 4.
Overview of glass bottle photography. (If there are no chips, light passes through intact (
a). When there are chips, light reflects diffusely through the chips, resulting in a dark reflection (
b)) [
7].
Figure 5.
Configuration of the proposed system.
Figure 5.
Configuration of the proposed system.
Figure 6.
Pre-processing flowchart.
Figure 6.
Pre-processing flowchart.
Figure 7.
Process to search both ends of the screw threads. (A process that searches both ends (
a) and a process that further searches the screw thread region (
b)) [
7].
Figure 7.
Process to search both ends of the screw threads. (A process that searches both ends (
a) and a process that further searches the screw thread region (
b)) [
7].
Figure 8.
Screw thread range depicted when both endpoints are successfully identified (solid line) [
7].
Figure 8.
Screw thread range depicted when both endpoints are successfully identified (solid line) [
7].
Figure 9.
Generated mask image (
a) and the resulting composite image (
b) [
7].
Figure 9.
Generated mask image (
a) and the resulting composite image (
b) [
7].
Figure 10.
Labeling process using Connected Components with Stats (binarized image (
a), labeled image (
b), composite image (
c)) [
7].
Figure 10.
Labeling process using Connected Components with Stats (binarized image (
a), labeled image (
b), composite image (
c)) [
7].
Figure 11.
Generated mask and synthesized images. Label image (
a), mask image (
b), composite image (
c) [
7].
Figure 11.
Generated mask and synthesized images. Label image (
a), mask image (
b), composite image (
c) [
7].
Figure 12.
Rotation correction. Composite image of original image and label image (a), cropped image (b), image with rotation correction (c).
Figure 12.
Rotation correction. Composite image of original image and label image (a), cropped image (b), image with rotation correction (c).
Figure 13.
Composition of the learning model.
Figure 13.
Composition of the learning model.
Figure 14.
Experimental environment. Experimental setup (a) and glass bottle used in the study (b).
Figure 14.
Experimental environment. Experimental setup (a) and glass bottle used in the study (b).
Figure 15.
Schematic drawing of the experimental environment [
7].
Figure 15.
Schematic drawing of the experimental environment [
7].
Figure 16.
How to take bottle images (taken when a glass bottle is placed in the marker area indicated by the red circle) [
7].
Figure 16.
How to take bottle images (taken when a glass bottle is placed in the marker area indicated by the red circle) [
7].
Figure 17.
Image used for screw thread learning experiment 1 (good image (a), chipped image (b)).
Figure 17.
Image used for screw thread learning experiment 1 (good image (a), chipped image (b)).
Figure 18.
Mouth image used for experiment 1 (good image (a), chipped image (b)).
Figure 18.
Mouth image used for experiment 1 (good image (a), chipped image (b)).
Figure 19.
Example of false detection at the entire mouth (a) and correct determination at the screw threads (b).
Figure 19.
Example of false detection at the entire mouth (a) and correct determination at the screw threads (b).
Figure 20.
Image used for screw thread learning experiment 2 (good image (a), chipped image (b)).
Figure 20.
Image used for screw thread learning experiment 2 (good image (a), chipped image (b)).
Figure 21.
Mouth image used for experiment 2 (good image (a), chipped image (b)).
Figure 21.
Mouth image used for experiment 2 (good image (a), chipped image (b)).
Table 1.
Accuracy of each model in fruit classification [
8].
Table 1.
Accuracy of each model in fruit classification [
8].
Models | Precision | Recall | F1-Score |
---|
AlexNet | 0.81 | 0.79 | 0.83 |
VGG16 | 0.79 | 0.80 | 0.80 |
Inception V3 | 0.84 | 0.82 | 0.81 |
ResNet | 0.82 | 0.81 | 0.82 |
MobileNetV2 | 0.89 | 0.91 | 0.89 |
Table 2.
Finetuned hyperparameters (* epoch may vary due to early stopping).
Table 2.
Finetuned hyperparameters (* epoch may vary due to early stopping).
Parameters | Value |
---|
Epochs | 500 * |
Optimizer | Adam |
Learning rate | 0.00001 |
Batch size | 16 |
Table 3.
Details on early stopping.
Table 3.
Details on early stopping.
Parameters | Value |
---|
Monitoring metric | Validation Loss |
Patience | 20 |
Initiation epoch | 100 |
Table 4.
Data augmentation techniques used in the system.
Table 4.
Data augmentation techniques used in the system.
Data Augmentation Mode | Changes |
---|
Random flipping | Randomly flips the image horizontally. |
Random rotation | Rotates the image between −3° and 3° so that the features of the glass bottle are not lost. |
Grayscale | Grayscales the image and reduces the number of features. |
Filtering | Applies a bilateral filter to the image to remove noise. |
Change color space | Changes the color space. |
Contrast | Changes the brightness of the image. |
Table 5.
Equipment used in the experiment.
Table 5.
Equipment used in the experiment.
Component Parts | Specification |
---|
Camera | Manufacturer | Baumer, Frauenfeld, Switerland |
Model number | VCXU-32M |
Resolution | |
Lens | Manufacturer | VS TECHNOLOGY, Tokyo, Japan |
Model number | VS-1218VM |
Filter | Manufacturer | ZOMEI, Shenzhen, China |
Model number | ZOMEI IR850 |
Infrared backlight | Manufacturer | Leimac, Siga, Japan |
Model number | IFD-300/200IR-850 |
Light source power supply | Manufacturer | Leimac, Siga, Japan |
Model number | IWDV-300S-24 |
Table 6.
Detail of image of glass bottle screw threads used in experiment 1.
Table 6.
Detail of image of glass bottle screw threads used in experiment 1.
| Images for Training | Images for Verification |
---|
superior article | 3520 | 480 |
defective product | 3608 | 141 |
total (number) | 7128 | 621 |
Table 7.
Confusion matrix of experimental results 1 (screw thread image).
Table 7.
Confusion matrix of experimental results 1 (screw thread image).
| Prediction | Superior Article | Defective Product |
---|
Correct | |
---|
Superior article | 480 | 0 |
Defective product | 2 | 139 |
Table 8.
Details of the image of the mouth of the glass bottle used in experiment 1.
Table 8.
Details of the image of the mouth of the glass bottle used in experiment 1.
| Images for Training | Images for Verification |
---|
superior article | 7040 | 298 |
defective product | 7348 | 244 |
total (number) | 14,388 | 542 |
Table 9.
Confusion matrix of experimental results 1 (mouth of the bottle image).
Table 9.
Confusion matrix of experimental results 1 (mouth of the bottle image).
| Prediction | Superior Article | Defective Product |
---|
Correct | |
---|
Superior article | 298 | 0 |
Defective product | 11 | 233 |
Table 10.
Evaluation of results 1 (screw threads image and mouth of the bottle image).
Table 10.
Evaluation of results 1 (screw threads image and mouth of the bottle image).
| | Screw Thread Image | Mouth Image |
---|
Superior article | Precision | 99.6% | 96.4% |
Recall | 100% | 100% |
F1 Score | 99.8% | 98.2% |
Defective product | Precision | 100% | 100% |
Recall | 98.6% | 95.5% |
F1 Score | 99.3% | 97.7% |
Detection accuracy | 99.7% | 98.0% |
Table 11.
Comparison with previous studies (* previous research [
4] does not distinguish between good and bad products in the inspection confusion matrix).
Table 11.
Comparison with previous studies (* previous research [
4] does not distinguish between good and bad products in the inspection confusion matrix).
| | Previous Research (Image Processing) [3,7] | Previous Research * (Machine Learning) [4] | Proposed Method | Entire Mouth Image |
---|
Superior article | Precision | 98.0% | 98.0% | 98.8% | 99.6% | 96.4% |
Recall | 98.0% | 100% | 99.3% | 100% | 100% |
F1 Score | 98.0% | 99.0% | 99.0% | 99.8% | 98.2% |
Defective product | Precision | 98.0% | 100% | - | 100% | 100% |
Recall | 98.0% | 98.0% | - | 98.6% | 95.5% |
F1 Score | 98.0% | 99.0% | - | 99.3% | 97.7% |
Detection accuracy | 98.0% | 99.0% | 98.1 | 99.7% | 98.0% |
Table 12.
Detail of image of glass bottle screw threads used in experiment 2 (images taken at the factory).
Table 12.
Detail of image of glass bottle screw threads used in experiment 2 (images taken at the factory).
| Images for Learning (Factory Shooting) | Images for Verification |
---|
superior article | 319 | 1665 |
defective product | 176 | 17 |
total (number) | 495 | 1682 |
Table 13.
Detail of image of glass bottle screw threads used in experiment 2 (dataset from Experiment 1 combined with images taken at the factory).
Table 13.
Detail of image of glass bottle screw threads used in experiment 2 (dataset from Experiment 1 combined with images taken at the factory).
| Images for Learning |
---|
superior article | 3839 |
defective product | 3784 |
total (number) | 7623 |
Table 14.
Confusion matrix of experimental results (screw thread image).
Table 14.
Confusion matrix of experimental results (screw thread image).
| Prediction | Superior Article | Defective Product |
---|
Correct | |
---|
Superior article | 1665 | 0 |
Defective product | 0 | 17 |
Table 15.
Details of the image of the mouth of the glass bottle used in experiment 2 (images taken at the factory).
Table 15.
Details of the image of the mouth of the glass bottle used in experiment 2 (images taken at the factory).
| Images for Learning (Factory Shooting) | Images for Verification |
---|
superior article | 660 | 1157 |
defective product | 176 | 17 |
total (number) | 836 | 1174 |
Table 16.
Details of the image of the mouth of the glass bottle used in experiment 2 (dataset from Experiment 1 combined with images taken at the factory).
Table 16.
Details of the image of the mouth of the glass bottle used in experiment 2 (dataset from Experiment 1 combined with images taken at the factory).
| Images for Learning |
---|
superior article | 7700 |
defective product | 7524 |
total (number) | 15,224 |
Table 17.
Confusion matrix of experimental results (mouth of the bottle image).
Table 17.
Confusion matrix of experimental results (mouth of the bottle image).
| Prediction | Superior Article | Defective Product |
---|
Correct | |
---|
Superior article | 1154 | 3 |
Defective product | 0 | 17 |
Table 18.
Evaluation of results 2 (screw threads image and mouth of the bottle image).
Table 18.
Evaluation of results 2 (screw threads image and mouth of the bottle image).
| | Screw Thread Image | Mouth Image |
---|
Superior article | Precision | 100% | 100% |
Recall | 100% | 99.7% |
F1 Score | 100% | 99.8% |
Defective product | Precision | 100% | 85.0% |
Recall | 100% | 100% |
F1 Score | 100% | 91.9% |
Detection accuracy | 100% | 99.7% |