The low-temperature deposition (LDM) food 3D printing process is easily affected by a combination of multiple factors, such as extrusion temperature, speed, and material rheological properties, leading to various issues such as blockage, excessive extrusion, and interference, affecting the printing quality. To achieve efficient identification of defects, this study developed a visual monitoring platform based on industrial cameras by constructing a multi-category nozzle extrusion defect image dataset, addressing the problems of small defect sizes and insignificant inter-class differences. A dual-channel multi-scale feature extraction network that integrated ResNet and Swin Transformer was proposed, and a multi-scale attention fusion module was introduced to improve recognition accuracy. Experimental results showed that the proposed model could effectively identify various types of extrusion defects, with prediction accuracies of 98.20%, 97.89%, 94.90%, and 97.86% for blockage, excess, granularity, and interference, respectively, and 97.63% for standard extrusion. The average detection time for a single image was 0.2 s. The overall accuracy was 97.53%, and the recall rate was 97.62%, which were 4.11 and 4.00 percentage points higher than those of ResNet34, respectively. This demonstrates excellent recognition performance and real-time capabilities, providing reliable data support for food 3D printing quality control.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |