The effectiveness of PCA and various hyperparameter settings in SVM and KNN for wine quality estimation
Abstract
Wine is popular around the world and wine quality evaluation is focused by the wine companies. Wine quality prediction through machine learning is expected to mitigate the waste of time and money of artificial wine quality prediction. Previous researches focused on simple applications and comparisons of the machine learning methods on the wine dataset, but the exploration of optimal parameters of models lacked. Therefore, this research mainly aimed to determine wine quality based on known data by implementing various machine learning models and find the optimal model for predicting the wine quality. For the optimal model, the detailed value of parameter and setting are aimed to be explored. This paper trained five machine learning algorithms and tested them on a wine dataset. The impact of standardization on different machine learning models was tested. Except for decision tree and AdaBoost, standardization is an effective method to improve the performances of different methods. Support vector machine (SVM) with rbf kernel performed best among different SVM classifiers. K-nearest neighbor (KNN) of twenty-five neighborhood points combined with principal component analysis (PCA) of five principal components showed 90.94% accuracy and it is the optimal algorithm.
References
- Koranga, M., Pandey, R., Joshi, M., & Kumar, M. (2021). Analysis of white wine using machine learning algorithms. Materials Today: Proceedings, 46, 11087-11093.
- Bhardwaj, P., Tiwari, P., Olejar Jr, K., Parr, W., & Kulasiri, D. (2022). A machine learning application in wine quality prediction. Machine Learning with Applications, 8, 100261.
- Anami, B. S., Mainalli, K., Kallur, S., & Patil, V. (2022). A Machine Learning Based Approach for Wine Quality Prediction. In 2022 2nd Asian Conference on Innovation in Technology (ASIANCON), 1-6.
- Athanasiadis, I., & Ioannides, D. (2021). A machine learning approach using random forest and LASSO to predict wine quality. International Journal of Sustainable Agricultural Management and Informatics, 7(3), 232-251.
- Tingwei, Z. (2021). Red wine quality prediction through active learning. In Journal of Physics: Conference Series, 1966(1), 012021.
- Mani, S., Krishnankutty, R. A., Swaminathan, S., & Theerthagiri, P. (2023). An investigation of wine quality testing using machine learning techniques. IAES International Journal of Artificial Intelligence, 12(2), 747.
- Cortez, P., Cerdeira, A., Almeida, F., Matos, T., & Reis, J. (2009). Modeling wine preferences by data mining from physicochemical properties. Decision support systems, 47(4), 547-553.
- Red wine Quality, Kaggle, https://www.kaggle.com/datasets/uciml/red-wine-quality-cortez-et-al-2009. Last accessed 2023/07/02
- Pisner, D. A., & Schnyer, D. M. (2020). Support vector machine. In Machine learning, 101-121.
- Kramer, O., & Kramer, O. (2013). K-nearest neighbors. Dimensionality reduction with unsupervised nearest neighbors, 13-23.