Hyperparameter Optimization of ANN, SVM, and KNN Models for Classification of Hazelnuts Images Based on Shell Cracks and Feature Selection Method

In some countries, people commonly consume hazelnuts in their shells to extend shelf life or due to technological limitations. Therefore, open-shell hazelnuts are more marketable. At the semi-industrial scale, open-shell and closed-shell hazelnuts are currently separated from each other through visual inspection. This study aims to develop a new algorithm to separate open-shell hazelnuts from cracked or closed-shell hazelnuts. In the first approach, dimension reduction techniques such as Sequential Forward Feature Selection (SFFS) and Principal Component Analysis (PCA) were used to select or extract a combination of color, texture, and grayscale features for the model’s input. In the second approach, individual features were used directly as inputs. In this study, three famous machine learning models, including Support Vector Machine (SVM), K-nearest neighbors (KNN), and Multi-Layer Perceptron (MLP) were employed. The results indicated that the SFFS method had a greater effect on improving the performance of the models than the PCA method. However, there was no significant difference between the performance of the models developed with combined features (98.00%) and that of the models using individual features (98.67%). The overall results of this study indicated that the MLP model, with one hidden layer, a dropout of 0.3, and 10 neurons using Histogram of Oriented Gradients (HOG) features as input, is a good choice for classifying hazelnuts into two classes of open-shell and closed-shell.

Institutions

Publication Details

Journal
SHILAP Revista de lepidopterología
Published
2025-03-01
DOI
https://doi.org/10.22067/jam.2024.87830.1244
Primary Topic
Nuts composition and effects
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hyperparameter Optimization of ANN, SVM, and KNN Models for Classification of Hazelnuts Images Based on Shell Cracks and Feature Selection Method

SHILAP Revista de lepidopterología
Nuts composition and effects
article

Hyperparameter Optimization of ANN, SVM, and KNN Models for Classification of Hazelnuts Images Based on Shell Cracks and Feature Selection Method

article en

Abstract

In some countries, people commonly consume hazelnuts in their shells to extend shelf life or due to technological limitations. Therefore, open-shell hazelnuts are more marketable. At the semi-industrial scale, open-shell and closed-shell hazelnuts are currently separated from each other through visual inspection. This study aims to develop a new algorithm to separate open-shell hazelnuts from cracked or closed-shell hazelnuts. In the first approach, dimension reduction techniques such as Sequential Forward Feature Selection (SFFS) and Principal Component Analysis (PCA) were used to select or extract a combination of color, texture, and grayscale features for the model’s input. In the second approach, individual features were used directly as inputs. In this study, three famous machine learning models, including Support Vector Machine (SVM), K-nearest neighbors (KNN), and Multi-Layer Perceptron (MLP) were employed. The results indicated that the SFFS method had a greater effect on improving the performance of the models than the PCA method. However, there was no significant difference between the performance of the models developed with combined features (98.00%) and that of the models using individual features (98.67%). The overall results of this study indicated that the MLP model, with one hidden layer, a dropout of 0.3, and 10 neurons using Histogram of Oriented Gradients (HOG) features as input, is a good choice for classifying hazelnuts into two classes of open-shell and closed-shell.

SHILAP Revista de lepidopterología
Bu-Ali Sina University (IR), Iran University of Science and Technology (IR)
Responsible consumption and production
Openalex Percentile: Top 50%
Nuts composition and effects
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.

Hyperparameter Optimization of ANN, SVM, and KNN Models for Classification of Hazelnuts Images Based on Shell Cracks and Feature Selection Method · SHILAP Revista de lepidopterología (2025) | TGRS Research Map | TGRS