White Wine Quality Prediction and Feature Importance Analysis Based on Chemical Composition and Machine Learning Models

Authors

  • Jialiang Yan

DOI:

https://doi.org/10.54097/hset.v41i.6800

Keywords:

white wine, machine learning, random forest, data set

Abstract

Consumers tends to purchase white wines based only on their taste and price due to the difficulty of studying the composition of white wine. Popular classifications of white wines are usually depending on some easily understandable aspects such as carbon dioxide pressure and grape harvest time. A detailed way to classify the quality of the white wines is needed for both the consumers and the market regulators. In this research, a white wine dataset with 11 parameters and a final quality value is being used to train the machine learning models for future prediction. To avoid extreme values influencing the dataset, this paper used the Interquartile Range method to remove the outliers. After processing the data, six machine learning models were applied to the dataset to test the initial accuracies of the models. The Random Forest had the best accuracy among all the models. Then the focus of the research turned into the feature importance of the Decision Tree and Random Forest methods. The project found out that it is possible to remove one of the parameters from two parameters that have similar importance while maintaining almost the same model accuracy. Both models’ parameter number were reduced to nine instead of 11 at the cost of less than 3% of accuracy. This provides people a useful way to make their analyzing processes easier in machine learning research.

Downloads

Download data is not yet available.

References

Wine institute 2022 US Wine Consumption https://wineinstitute.org/our-industry/statistics/us-wine-consumption/

Wine institute 2022 California US Wine Sales https://wineinstitute.org/our-industry/statistics/california-us-wine-sales/

Chambers P J et al. 2010 Fermenting knowledge: the history of winemaking, science and yeast research. EMBO Rep 2010 Dec;11(12):914-20. doi: 10.1038/embor.2010.179

Olavin 2022 The Ultimate Guide: How Wine is Classified? https://olavin.com/how-wine-is-classified.html

Yogesh G 2018 Selection of important features and predicting wine quality using machine learning techniques Procedia Computer Science Volume 125 Pages 305-312

Paulo C et al. Modeling wine preferences by data mining from physicochemical properties, Decision Support Systems Volume 47 Issue 4 2009 Pages 547-553

Kaggle 2020 White Wine Quality https://www.kaggle.com/datasets/piyushagni5/white-wine-quality

Sklearn Tree 2022 https://scikit-learn.org/stable/modules/tree.html

Sklearn 2022 Random forest classifier https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html

Guo G 2003 et al. KNN model-based approach in classification. OTM Confederated International Conferences" On the Move to Meaningful Internet Systems. Springer, Berlin, Heidelberg

Downloads

Published

30-03-2023