Design of an Automated System for Classifying Maturation Stages of Erythrina edulis Beans Using Computer Vision and Convolutional Neural Networks

Erythrina edulis, commonly known as pajuro, is a large leguminous plant native to the Amazon region of Peru. Its seeds are valued for their high protein content and their potential to enhance food security in rural communities. However, the current methods of harvesting and sorting are entirely manual, making the process labor-intensive, time-consuming, and subject to high variability, particularly in industrial contexts. A custom lightweight convolutional neural network (CNN) was developed from scratch and optimized specifically for real-time execution on embedded hardware. The model employs ReLU activation, Adam optimization, and a SoftMax output layer to enable efficient and accurate classification. The system employs a fixed-region segmentation strategy to prevent overcounting and utilizes GPIO-based control on a Raspberry Pi 5 to synchronize seed classification with physical sorting in real time. Seeds identified as defective are automatically removed via a servo-controlled ejection mechanism. The integrated system combines object detection, image processing, and real-time actuation, achieving a classification accuracy exceeding 99.6% and an average processing time of 12.4 milliseconds per seed. The proposed solution contributes to the industrial automation of pajuro sorting and provides a scalable framework for color-based grain classification applicable to a wide range of agricultural products.

Authors

Institutions

Publication Details

Journal
AgriEngineering
Published
2025-08-27
DOI
https://doi.org/10.3390/agriengineering7090277
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Design of an Automated System for Classifying Maturation Stages of Erythrina edulis Beans Using Computer Vision and Convolutional Neural Networks

Hector Pasache, Cristian Tuesta, Carlos H. Inga Espinoza
AgriEngineering
Spectroscopy and Chemometric Analyses
article

Design of an Automated System for Classifying Maturation Stages of Erythrina edulis Beans Using Computer Vision and Convolutional Neural Networks

Hector Pasache, Cristian Tuesta, Carlos H. Inga Espinoza
article en

Abstract

Erythrina edulis, commonly known as pajuro, is a large leguminous plant native to the Amazon region of Peru. Its seeds are valued for their high protein content and their potential to enhance food security in rural communities. However, the current methods of harvesting and sorting are entirely manual, making the process labor-intensive, time-consuming, and subject to high variability, particularly in industrial contexts. A custom lightweight convolutional neural network (CNN) was developed from scratch and optimized specifically for real-time execution on embedded hardware. The model employs ReLU activation, Adam optimization, and a SoftMax output layer to enable efficient and accurate classification. The system employs a fixed-region segmentation strategy to prevent overcounting and utilizes GPIO-based control on a Raspberry Pi 5 to synchronize seed classification with physical sorting in real time. Seeds identified as defective are automatically removed via a servo-controlled ejection mechanism. The integrated system combines object detection, image processing, and real-time actuation, achieving a classification accuracy exceeding 99.6% and an average processing time of 12.4 milliseconds per seed. The proposed solution contributes to the industrial automation of pajuro sorting and provides a scalable framework for color-based grain classification applicable to a wide range of agricultural products.

AgriEngineeringVol. 7(9)
Peruvian University of Applied Sciences (PE)
Openalex Percentile: Top 75%
Spectroscopy and Chemometric Analyses
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.