Cannabis Seeds Classification Using HOG Feature Extraction Based SVM Optimization

Cannabis Seeds Classification HOG SVM k-Fold Cross-Validation Grid Search

Authors

Downloads

Cannabis is the second most common psychoactive drug in the world, and Thailand is the only country in Southeast Asia that allows people to use it. To maintain the integrity of different cannabis varieties and get the most out of their crops, growers, seed sellers, and farmers need to be able to accurately classify cannabis seed kinds. This paper presents a method for categorizing Thai cannabis seeds through the integration of Histogram of Oriented Gradients (HOG) feature extraction and Support Vector Machine (SVM) optimization, utilizing k-fold cross-validation and grid search methodologies. The suggested method worked well for smartly sorting different types of cannabis seeds. The regular SVM classifier got 94.11% accuracy, the k-fold cross-validation (K=10) got 94.00%, and the grid search optimization got 93.91%. These results indicate that the proposed method is both reliable and efficient for distinguishing cannabis seed varieties. Beyond its direct application to Thailand’s cannabis industry, the approach demonstrates the potential of combining HOG-based feature extraction with SVM optimization for other seed classification tasks in agriculture. By providing a scalable and accurate tool for seed identification, this work supports quality control, traceability, and productivity improvement in legal cannabis cultivation and trade.