Red Wine Quality Classification Using Decision Tree and Random Forest: Examining How Parameter Variation
Haolang Huang
Key points
From the paper's conclusion- A Decision Tree and a Random Forest were each tested under four parameter settings using 1,356 samples from the UCI Red Wine Quality dataset, producing eight configurations.
Abstract
Physicochemical measurements of wine can complement expert sensory evaluation and offer a more scalable route to quality estimation. Although machine learning has been widely used for this task, most previous studies report only the final performance after parameter tuning, giving limited insight into how parameter changes influence model behaviour. To investigate this question, red wine quality was formulated as a binary classification problem, labelling wines scoring 7 or above as Good and the rest as Normal. A Decision Tree and a Random Forest were each tested under four parameter settings using 1,356 samples from the UCI Red Wine Quality dataset, producing eight configurations. Both classification accuracy and confusion matrices were recorded for each configuration to capture overall and class-level performance. The best Decision Tree (depth 5) achieved 0.8787 accuracy and the best Random Forest (100 or 200 trees) reached 0.8713. At a depth of 4, however, overall accuracy fell to 0.8640 while Good-class recall climbed to 45.9%, the highest across all configurations. Alcohol, sulphates and volatile acidity were the top predictors in both models. Examining results across multiple parameter settings provides a more complete view of model behaviour and supports lightweight decision trees for wine quality screening.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Multi-Vintage Physicochemical Differentiation and Machine-Learning Classification of North Macedonian Wine VarietiesBeverages · 2026
- Machine learning models for predicting wine aroma: An application practice in wine blending strategies.Food chemistry · 2026
- Interpretable near-infrared spectroscopic classification of Baijiu grades using XGBoost and multi-level XAI.Analytical methods : advancing methods and applications · 2026
- Colorimetric sensor array combined with machine learning for discriminating the geographical origins and grape varieties of Chinese red winesFood Chemistry X · 2026
- Evaluation of full-bodied mouthfeel in Jiangxiangxing baijiu based on multimodal profiling and machine learning.Food chemistry · 2026
- Near-Infrared Spectroscopy-Based Maturity Classification of Wine Grapes Using the SG-SFLA-Transformer ModelInternational Journal of Fruit Science · 2025