Submitted:
22 June 2026
Posted:
23 June 2026
You are already at the latest version
Abstract

Keywords:
1. Introduction
- A hybrid two-stage framework that explicitly decouples geometric stem measurement from visual foliage condition classification, improving system interpretability and reducing model complexity compared to unified classification approaches.
- A pixel-based stem size estimation method incorporating trigonometric orientation correction and reference-marker spatial calibration, enabling accurate conversion of pixel measurements to real-world physical dimensions under controlled acquisition conditions.
- A systematic comparative evaluation of classical supervised machine learning classifiers on Bag of Features representations, providing evidence-based guidance on model selection for structured visual feature spaces in agricultural inspection tasks.
- An experimental validation on a curated dataset of 1,233 Ruscus hypophyllum images acquired under controlled post-harvest conditions, demonstrating the practical applicability of the proposed system in real agricultural processing environments.
2. Materials and Methods
2.1. Image Acquisition
2.2. Dataset Description
2.3. Image Preprocessing
2.4. Stem Size Estimation
2.4.1. Reference Marker Detection
2.4.2. Stem Detection and Orientation Estimation
2.4.3. Trigonometric Length Correction and Size Categorization
2.5. Feature Extraction Using Bag of Features
2.6. Machine Learning Classifiers
2.7. Performance Evaluation Metrics
2.7.1. Geometric Estimation Metrics
2.7.2. Classification Metrics
3. Results
3.1. Stem Size Estimation Evaluation
3.2. Vocabulary Size Sensitivity Analysis
3.3. Classification Performance
3.4. Confusion Matrix Analysis
4. Discussion
4.1. Geometric Stem Size Estimation
4.2. Foliage Condition Classification
4.3. Failure Case Analysis
4.4. Comparison with Related Work
4.5. Practical Deployment Considerations
4.6. Limitations
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| BoF | Bag of Features |
| CLAHE | Contrast Limited Adaptive Histogram Equalization |
| CNN | Convolutional Neural Network |
| KNN | k-Nearest Neighbors |
| MAE | Mean Absolute Error |
| MLP | Multilayer Perceptron |
| RMSE | Root Mean Square Error |
| SIFT | Scale-Invariant Feature Transform |
| SVM | Support Vector Machine |
References
- Meir, S.; Philosoph-Hadas, S. Postharvest Physiology of Ornamentals: Processes and Their Regulation. Agronomy 2021, 11, 2387. [Google Scholar] [CrossRef]
- Guaita-Pradas, I.; Rodríguez-Mañay, L.O.; Marques-Perez, I. Competitiveness of Ecuador’s Flower Industry in the Global Market in the Period 2016–2020. Sustainability 2023, 15, 5821. [Google Scholar] [CrossRef]
- Franzoni, G.; Rovera, C.; Farris, S.; Ferrante, A. Packaging materials and their effect on ruscus quality changes during storage and vase life. Postharvest Biol. Technol. 2024, 210, 112789. [Google Scholar] [CrossRef]
- Ahmad, I.; Saeed, H.A.u.R.; Khan, M.A.S. Ornamental Horticulture: Economic Importance, Current Scenario and Future Prospects. In Etiology and Integrated Management of Economically Important Fungal Diseases of Ornamental Palms;Sustainability in Plant and Crop Protection; Ul Haq, I., Ijaz, S., Eds.; Springer: Cham, 2020; Volume 16, pp. 3–40. [Google Scholar] [CrossRef]
- Cubero, S.; Aleixos, N.; Moltó, E.; Gómez-Sanchis, J.; Blasco, J. Advances in machine vision applications for automatic inspection and quality evaluation of fruits and vegetables. Food Bioprocess Technol. 2011, 4, 487–504. [Google Scholar] [CrossRef]
- Liakos, K.G.; Busato, P.; Moshou, D.; Pearson, S.; Bochtis, D. Machine Learning in Agriculture: A Review. Sensors 2018, 18, 2674. [Google Scholar] [CrossRef] [PubMed]
- Blasco, J.; Munera, S.; Aleixos, N.; Cubero, S.; Moltó, E. Machine Vision-Based Measurement Systems for Fruit and Vegetable Quality Control in Postharvest. Adv. Biochem. Eng. 2017, 161, 71–91. [Google Scholar] [CrossRef]
- Kamilaris, A.; Prenafeta-Boldú, F.X. Deep learning in agriculture: A survey. Comput. Electron. Agric. 2018, 147, 70–90. [Google Scholar] [CrossRef]
- Mohanty, S.P.; Hughes, D.P.; Salathé, M. Using deep learning for image-based plant disease detection. Front. Plant Sci. 2016, 7, 1419. [Google Scholar] [CrossRef] [PubMed]
- Too, E.C.; Yujian, L.; Njuki, S.; Yingchun, L. A comparative study of fine-tuning deep learning models for plant disease identification. Comput. Electron. Agric. 2019, 161, 272–279. [Google Scholar] [CrossRef]
- Soleimanipour, A.; Chegini, G.R. A Vision-Based Hybrid Approach for Identification of Anthurium Flower Cultivars. Comput. Electron. Agric. 2020, 174, 105460. [Google Scholar] [CrossRef]
- Li, D.; et al. Four-Dimension Deep Learning Method for Flower Quality Grading with Depth Information. Electronics 2021, 10, 2353. [Google Scholar] [CrossRef]
- Afonso, M.; Paulo, M.J.; Fonteijn, H.; van den Helder, M.; Zwinkels, H.; Rijsbergen, M.; van Hameren, G.; Haegens, R.W. Automatic trait estimation in floriculture using computer vision and deep learning. Smart Agric. Technol. 2024, 7, 100383. [Google Scholar] [CrossRef]
- Minervini, M.; Scharr, H.; Tsaftaris, S.A. Image Analysis: The New Bottleneck in Plant Phenotyping. IEEE Signal Process. Mag. 2015, 32, 126–131. [Google Scholar] [CrossRef]
- Meraj, T.; et al. Computer Vision-Based Plants Phenotyping: A Comprehensive Survey. iScience 2023, 26, 108709. [Google Scholar] [CrossRef] [PubMed]
- Zhang, Y.; Wang, C.; Liu, X. A review of Vision-based crop measurement. Sensors 2021, 21, 5057. [Google Scholar] [CrossRef] [PubMed]
- Nguyen, T.T.; Vandevoorde, J.; Saeys, W. Measurement of Plant Traits Using Computer Vision: A Review of Calibration and Scaling Methods. Bot. Rev. 2024. [Google Scholar] [CrossRef]
- Franco, V.R.; Hott, M.C.; Andrade, R.G.; Goliatt, L. Hybrid machine learning methods combined with computer vision approaches to estimate biophysical parameters of pastures. Evol. Intell. 2023, 16, 1271–1284. [Google Scholar] [CrossRef]
- Kotsiantis, S.B. Supervised machine learning: A review of classification techniques. Informatica 2007, 31, 249–268. [Google Scholar]
- Hastie, T.; Tibshirani, R.; Friedman, J. The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed.; Springer: New York, 2009. [Google Scholar] [CrossRef]
- Azlah, M.A.F.; Chua, L.S.; Rahmad, F.R.; Abdullah, F.I.; Wan Alwi, S.R. Review on Techniques for Plant Leaf Classification and Recognition. Computers 2019, 8, 77. [Google Scholar] [CrossRef]
- Sultana, F.; Sufian, A.; Dutta, P. Advancements in Image Classification Using Convolutional Neural Networks: A Survey. In Intelligent Computing: Image Processing Based Applications;Advances in Intelligent Systems and Computing; Springer: Singapore, 2020; Volume 1157, pp. 1–16. [Google Scholar] [CrossRef]
- Csurka, G.; Dance, C.; Fan, L.; Willamowski, J.; Bray, C. Visual categorization with bags of keypoints. In Proceedings of the ECCV Workshop on Statistical Learning in Computer Vision, 2004; pp. 1–22. [Google Scholar]
- Lowe, D.G. Distinctive Image Features from Scale-Invariant Keypoints. Int. J. Comput. Vis. 2004, 60, 91–110. [Google Scholar] [CrossRef]
- Brewster, M. Open Camera. Android application, version 1.53. 2021. Accessed: 2024. Available online: https://opencamera.org.uk.
- Chen, H.; Zhuang, J.; Liu, B.; Wang, L.; Zhang, L. Camera calibration method based on circular array calibration board. Syst. Sci. Control Eng. 2023, 11, 2163914. [Google Scholar] [CrossRef]
- van der Walt, S.; et al. scikit-image: Image Processing in Python. PeerJ 2014, 2, e453. [Google Scholar] [CrossRef] [PubMed]
- Bradski, G.; Kaehler, A. Learning OpenCV: Computer Vision with the OpenCV Library; O’Reilly Media: Sebastopol, CA, 2008. [Google Scholar]
- Otsu, N. A Threshold Selection Method from Gray-Level Histograms. IEEE Trans. Syst. Man. Cybern. 1979, 9, 62–66. [Google Scholar] [CrossRef]
- Zuiderveld, K. Contrast Limited Adaptive Histogram Equalization. In Graphics Gems IV; Heckbert, P.S., Ed.; Academic Press: San Diego, CA, 1994; pp. 474–485. [Google Scholar] [CrossRef]
- Liu, T.; Lv, X.; Jin, M. Research on Image Measurement Method of Flat Parts Based on the Adaptive Chord Inclination Angle Algorithm. Appl. Sci. 2023, 13, 1641. [Google Scholar] [CrossRef]
- Lloyd, S.P. Least Squares Quantization in PCM. IEEE Trans. Inf. Theory 1982, 28, 129–137. [Google Scholar] [CrossRef]
- Pedregosa, F.; et al. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
- Alshammari, A.H.; Bencsik, G.; Ali, H.A. A Survey of Six Classical Classifiers. Algorithms 2026, 19, 37. [Google Scholar] [CrossRef]
- Powers, D.M.W. Evaluation: From Precision, Recall and F-Measure to ROC, Informedness, Markedness and Correlation. J. Mach. Learn. Technol. 2020, 11, 37–63. [Google Scholar] [CrossRef]
- Ahmad, I.; Alqahtani, A.; Al-Makhadmeh, Z.; Al-Amri, A. Improved Support Vector Machine Enabled Radial Basis Function and Linear Variants for Remote Sensing Image Classification. Sensors 2021, 21, 4431. [Google Scholar] [CrossRef] [PubMed]







| Study | Species | Attributes | Method | Accuracy |
|---|---|---|---|---|
| Soleimanipour & Chegini [11] | Anthurium | Cultivar identification | Geometric + ML | >99% |
| Li et al. [12] | Cut flowers | Maturity/quality grading | CNN (4D deep learning) | N/R |
| Afonso et al. [13] | Ornamental floriculture | Multiple morphological traits | CNN | 35–99% |
| Franco et al. [18] | Pastures | Biophysical parameters | Hybrid ML + CV | 85–90% |
| This work | Ruscus hypophyllum | Stem size and foliar condition | Decoupled geometric + BoF/SVM | 99.84% + 92.4% |
| Size Class | Length Range (cm) | Images | Condition | Images |
|---|---|---|---|---|
| Small | 407 | Good | 525 | |
| Medium | 413 | Poor | 708 | |
| Large | 413 | — | — | |
| Total | — | 1,233 | Total | 1,233 |
| Metric | Value |
|---|---|
| Mean Absolute Error (MAE) | 1.2 mm |
| Standard Deviation () | 0.45 mm |
| Root Mean Square Error (RMSE) | 1.3 mm |
| Size Classification Accuracy | 99.84% |
| Misclassified Samples | 2/1,233 |
| No. | Classifier | Acc. (%) | Prec. (%) | Rec. (%) | F1 (%) |
|---|---|---|---|---|---|
| Support Vector Machines | |||||
| 1 | Linear SVM | 90.7 | 91.4 | ||
| 2 | Quadratic SVM | 89.1 | 90.1 | ||
| 3 | Cubic SVM | 86.7 | 88.0 | ||
| 4 | Fine Gaussian SVM | 77.1 | 80.0 | ||
| 5 | Mean Gaussian SVM | 69.1 | 72.4 | ||
| 6 | Coarse Gaussian SVM | 62.2 | 65.7 | ||
| Neural Networks (MLP) | |||||
| 7 | Medium Neural Network | 87.1 | 88.6 | ||
| 8 | Wide Neural Network | 86.3 | 87.2 | ||
| 9 | Two-layer Neural Network | 85.1 | 86.1 | ||
| 10 | Narrow Neural Network | 84.4 | 85.3 | ||
| 11 | Three-layer Neural Network | 81.6 | 82.9 | ||
| Naive Bayes | |||||
| 12 | Gaussian Naive Bayes | 85.7 | 86.7 | ||
| 13 | Kernel Naive Bayes | 72.7 | 76.2 | ||
| Logistic Regression | |||||
| 14 | Efficient Logistic Regression | 84.7 | 85.7 | ||
| 15 | Binary Logistic Regression | 78.6 | 80.4 | ||
| Decision Trees | |||||
| 16 | Fine Decision Tree | 82.4 | 84.8 | ||
| 17 | Medium Decision Tree | 80.6 | 82.9 | ||
| 18 | Coarse Decision Tree | 78.7 | 81.0 | ||
| k-Nearest Neighbors | |||||
| 19 | Cosine KNN | 64.5 | 65.7 | ||
| 20 | Fine KNN | 62.0 | 63.8 | ||
| 21 | Cubic KNN | 60.2 | 61.9 | ||
| 22 | Weighted KNN | 58.3 | 60.0 | ||
| 23 | Medium KNN | 56.5 | 58.1 | ||
| 24 | Coarse KNN | 52.7 | 55.2 | ||
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).