Deep Learning and N8N-Based Soybean Defect Recognition and Traceable Quality Grading System
DOI:
https://doi.org/10.53893/ijrvocas.v6i2.532Keywords:
Soybean Defect Detection, YOLOv11, Quality Grading, n8n, Large Language Model, TraceabilityAbstract
Soybean is an important food commodity whose market value is strongly influenced by seed quality. However, quality inspection in many small and medium agro-industries is still performed manually, making the process slow, subjective, and poorly documented. This study develops an automated soybean inspection system that combines deep-learning-based defect recognition with traceability-supported quality reporting through workflow automation. A YOLOv11n model was trained on a self-collected dataset of 344 annotated images covering five classes, namely Intact, Broken, Skin Damaged, Spotted, and Immature, which was expanded to 1,032 images through augmentation. The model runs on a Raspberry Pi 5 inspection station, where accumulated detection results are converted into a defect rate that determines the quality grade of each batch. An n8n workflow then forwards every inspection result to the Gemini 2.5 Flash large language model to generate a narrative quality-control report, and each batch is stored in an SQLite database that can be accessed through a history viewer to support traceability. Validation results show a precision of 92.73%, a recall of 90.71%, an mAP@0.50 of 96.54%, and an mAP@0.50–0.95 of 88.67%. Functional testing demonstrates that the system produces consistent grades, accumulates detections from multiple captures into a single batch, and generates reports automatically, while still producing a rule-based report when the language model service is unavailable. The proposed system therefore offers an automated, low-cost, and traceability-supported approach to soybean quality inspection that is suitable for deployment on edge devices.
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Rafie Hamizan Al Hafiz, Pola Risma, Hsien-Wei Tseng, Chun-Chieh Fan

This work is licensed under a Creative Commons Attribution 4.0 International License.
All articles published in International Journal of Research in Vocational Studies (IJRVOCAS) are distributed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
Under this license, users are permitted to share, copy, redistribute, adapt, transform, and build upon the published work for any purpose, including commercial use, provided that appropriate credit is given to the original authors and IJRVOCAS, a link to the license is provided, and any changes made are indicated.
Authors retain the copyright of their published articles and grant IJRVOCAS the right of first publication. The journal makes published articles freely and permanently available online immediately upon publication.
Proper attribution should include the author names, article title, journal title, publication year, volume, issue, page numbers or article number where applicable, DOI or URL, and a reference to the CC BY 4.0 license.
The full terms of the Creative Commons Attribution 4.0 International License are available at:
https://creativecommons.org/licenses/by/4.0/
By submitting a manuscript to IJRVOCAS, authors agree that accepted articles will be published under the CC BY 4.0 license.











