Effects of hyperparameter tuning on random forest regressor in the beef quality prediction model
Open Access
- 1 July 2025
- journal article
- Published by Institute of Advanced Engineering and Science in Computer Science and Information Technologies
- Vol. 6 (2) , 159-168
Abstract
Prediction models for beef meat quality are necessary because production and consumption were significant and increasing yearly. This study aims to create a prediction model for beef freshness quality using the random forest regressor (RFR) algorithm and to improve the accuracy of the predictions using hyperparameter tuning. The use of near-infrared spectroscopy (NIRS) in predicting beef quality is an easy, cheap, and fast technique. This study used six meat quality parameters as prediction target variables for the test. The R² metric was used to evaluate the prediction results and compare the performance of the RFR with default parameters versus the RFR with hyperparameter tuning (RandomSearchCV). Using default parameters, the R-squared (R²) values for color (L*), drip loss (%), pH, storage time (hour), total plate colony (TPC in cfu/g), and water moisture (%) were 0.789, 0.839, 0.734, 0.909, 0.845, and 0.544, respectively. After applying hyperparameter tuning, these R² scores increased to 0.885, 0.931, 0.843, 0.957, 0.903, and 0.739, indicating an overall improvement in the model’s performance. The average performance increase for prediction results for all beef quality parameters is 0.0997 or 14% higher than the default parameters.Keywords
This publication has 22 references indexed in Scilit:
- Analysis of beef quality according to color changes using computer vision and white-box machine learning techniquesHeliyon, 2023
- A pH-Responsive colourimetric sensor array based on machine learning for real-time monitoring of beef freshnessFood Control, 2023
- Distinguishing fresh and frozen-thawed beef using hyperspectral imaging technology combined with convolutional neural networksMicrochemical Journal, 2023
- Classification of cattle breeds based on the random forest approachLivestock Science, 2022
- The use of visible/near-infrared spectroscopy to predict fibre fractions, fibre-bound nitrogen and total-tract apparent nutrients digestibility in beef cattle diets and faecesItalian Journal of Animal Science, 2021
- Prediction of meat quality traits in the abattoir using portable and hand-held near-infrared spectrometersMeat Science, 2020
- Hyperparameters and tuning strategies for random forestWIREs Data Mining and Knowledge Discovery, 2019
- Advances in meat spoilage detection: A short focus on rapid methods and technologiesCyTA - Journal of Food, 2018
- Quantitative Prediction of Beef Quality Using Visible and NIR Spectroscopy with Large Data Samples Under Industry ConditionsJournal of Applied Spectroscopy, 2015
- Influence of Hyperparameters on Random Forest Accuracy2009