Journal of Animal Science and Technology
Korean Society of Animal Sciences and Technology
RESEARCH ARTICLE

Non-destructive evaluation of microbial quality of beef (M. longissimus thoracis muscle) using visible/NIR hyperspectral imaging and machine learning methods

Seongmin Park1,2https://orcid.org/0000-0001-5232-4080, Suk-Ju Hong3https://orcid.org/0000-0001-8758-8107, Chang-Hyup Lee1,2https://orcid.org/0000-0002-8459-7814, EungChan Kim1,4https://orcid.org/0000-0003-3121-1356, Sang-Yeon Kim1,2https://orcid.org/0000-0001-7719-9343, Cheorun Jo2,5https://orcid.org/0000-0003-2109-3798, Ghiseok Kim1,2,4,*https://orcid.org/0000-0003-2177-0031
1Department of Biosystems Engineering, College of Agriculture and Life Sciences, Seoul National University, Seoul 08826, Korea
2Research Institute of Agriculture and Life Sciences, Seoul National University, Seoul 08826, Korea
3Department of Smart Bio-industrial Mechanical Engineering, Kyungpook National University, Daegu 41566, Korea
4Global Smart Farm Convergence Major, College of Agriculture and Life Sciences, Seoul National University, Seoul 08826, Korea
5Department of Agricultural Biotechnology, College of Agriculture and Life Sciences, Seoul National University, Seoul 08826, Korea
*Corresponding author: Ghiseok Kim, Department of Biosystems Engineering, College of Agriculture and Life Sciences, Seoul National University, Seoul 08826, Korea., Tel: +82-2-880-4603, E-mail:ghiseok@snu.ac.kr

© Copyright 2026 Korean Society of Animal Science and Technology. This is an Open-Access article distributed under the terms of the Creative Commons Attribution Non-Commercial License (http://creativecommons.org/licenses/by-nc/4.0/) which permits unrestricted non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited.

Received: Aug 06, 2024; Revised: Oct 27, 2024; Accepted: Nov 09, 2024

Published Online: Jan 31, 2026

Abstract

Machine learning models were developed to predict the degree of microbial quality of beef by a non-destructive method using a near-infrared hyperspectral imaging system. Beef was stored under aerobic conditions at different temperature scenarios (refrigerated, thawed after freezing, or left at room temperature) for a period of 15 days to induce freshness change and microbial growth. Hyperspectral data cubes were obtained from a data acquisition system in a darkroom environment. The total aerobic bacteria (TAB) experiment was performed in the established meat science manner to provide reference values for the microbial contamination level of the sample. The region of interest designated as the red meat region was selected for spectral extraction. Regression models were developed to predict the TAB value from the extracted data. Partial least squares regression, support vector machine, artificial neural network, and one-dimensional convolutional neural network methods were employed to construct TAB prediction models. Chemical maps were also created for each developed model to visualize the performance of the model. The model development process concluded with the iteration of all previous steps at completely different times and with different beef samples, generating the data for verification and applying it to the developed model to evaluate its versatility. As a result of the development, it was confirmed that the microbial quality of beef can be predicted by models generated from hyperspectral data (Best validation R2 = 0.8593, RMSE = 0.6947). Accurate quality prediction helps livestock breeders develop and apply better husbandry practices, which ultimately leads to higher quality beef production.

Keywords: Beef; Hyperspectral imaging; Machine learning; Near-infrared spectroscopy; Total aerobic bacteria

INTRODUCTION

The freshness of meat, which is a key factor that influences the purchasing decisions of consumers [1], depends on the temperature and humidity conditions under which the product is stored, and its level of microbial contamination. Fresh meat is rich in nutritional components, such as protein, fat, and minerals, and has high water activity, all factors of which provide a favorable environment for microbial growth. Under such conditions, various types of microorganisms can cause meat spoilage [2]. Therefore, addressing these microbial issues is important for food preservation. Strategies include chemical treatment, vacuum treatment, heat treatment, and drying, among which cold treatment by freezing and refrigeration is the most used method [3]. However, sudden temperature changes under poor cold-chain conditions in sanitary facilities or during product transport can cause microbial contamination. Given that microbial reactions can adversely affect the food product, the potential for metabolic activity by microorganisms should be identified in advance to ensure stable food preservation [4].

Currently, the determination of freshness is based on chemical-base indicators, such as pH, volatile basic nitrogen (VBN) content, and 2-thiobarbituric acid-reactive substance (TBARS) value, or microbial contamination indicators, such as the total viable count (TVC) and total aerobic bacterial (TAB) count [57]. DeGeer measured and compared various quality parameters (pH, moisture, and lipid contents, TBARS value, microbial contamination level, and shearing force) of heat-cooked meat to identify the optimal conditions for dry aging beef [8]. Cheng et al. tried hyperspectral imaging to accurately predict the total volatile basic nitrogen (TVB-N) content of grass carp fillets during frozen storage, demonstrating its potential for rapid and non-destructive fish freshness assessment [9]. Leonard et al. explored the effect of lupin flour on sausage attributes by preparing sausages with different contents and analyzing cooking loss, TBARS, texture profile, etc [10]. Lee proposed a system for monitoring changes in the quality of vacuum-packaged dry-aged beef during storage and predicting the shelf-life of the product based on its current state. The pH, CIE colors, TBARS value, VBN content, microbial contamination level, and sensory characteristics of the cooked meat were evaluated [11]. Chen proposed a novel approach for real-time prediction and analysis of food safety risks using the one-step kinetic integrated Wiener process (OS-WP). This approach achieved high accuracy in modeling microbial growth and provided valuable early warning information for risk management and decision-making [12]. Although these studies reported highly accurate results, the measurement of freshness using traditional analytical methods is difficult to apply in the field because the techniques can be time consuming and expensive [13].

To facilitate efficient food quality certification, vendors or evaluation agencies require highly reproducible and accurate technologies to rapidly identify the conditions of fresh and processed meats. One technology that can meet this need is near-infrared spectroscopy (NIRS), a non-destructive technique that offers the advantages of rapid measurement of a single sample and ease of data collection [1416]. However, NIRS provides only one spectrum for a single round of data collection and yields no spatial information about the sample. Hyperspectral imaging (HSI) was developed to overcome the disadvantages of NIRS and has demonstrated the potential to provide both spatial and spectral information simultaneously [17]. As a non-destructive and contactless technique, HSI involves the integration of both spectral and imaging technologies for the examination of various components in samples. The system generates three-dimensional data in the form of a so-called hyperspectral data cube composed of a two-dimensional spatial image and a one-dimensional spectrum [18]. These data cubes can be used to analyze physical and geometrical characteristics (including morphology, color, and size) of an image, and the chemical composition of the sample can be predicted with an artificial intelligence model constructed using spectral information [19].

Various studies have employed hyperspectral imaging technology for non-destructive quality evaluation of livestock and seafood products. These studies have ranged from non-destructive analysis of omega-3 fatty acids in eggs to predicting fat content in pork and analyzing the frozen state of fish fillets and pork loins [2022]. Kamruzzaman showed that hyperspectral imaging and multivariate analysis can be used to identify red meat species (pork, beef, lamb) with 98.67% accuracy, demonstrating the potential for rapid and objective meat authentication [23]. Wold developed a near-infrared (NIR) spectroscopy method for online and non-contact monitoring of core temperature in heat-treated fish cakes during industrial processing, achieving a root mean square error of prediction of 2.3°C [24]. Yang used HSI to predict the level of protein deterioration during pork drying, whereas Aheto et al. used the method for predicting the TBARS value of dry-cured pork [25,26]. Lohumi et al. applied analysis of variance (ANOVA), spectral similarity analysis, and HSI in the 400–1,000 nm range to develop a system for predicting and visualizing the intramuscular fat content in beef samples. Advances in HSI technology have also led to studies on portable hyperspectral devices [27].

Consumer behavior towards meat and meat products is exhibiting increasing complexity and less predictability. And environmental impact has become significant driver of consumer perception [28]. Obviously, there is great scientific value in precisely determining the parameters that determine meat quality in the lab, whether by chemical methods or by directly observing microbial growth. However, these traditional tests are sometimes time-consuming and procedurally complex [29], therefore, several types of spectral analysis methods were employed and showed some promising solutions. However, a single point spectrum may not adequately represent the condition of the entire meat sample, which remains a drawback [30]. Accordingly, the aim of the present study is to use various machine learning techniques to develop a high-quality predictive model that can match hyperspectral imaging data with TAB counts for beef stored under different temperature conditions. It is to achieve precise identification of the contamination state of meat by combining microbiological factors and hyperspectral data. As a result, the study provided clues to optically visualize the distribution of microbial contamination in beef that could not be obtained by previous destructive chemical methods.

MATERIALS AND METHODS

Materials and microbial analysis

Experimental samples were obtained from the M. longissimus thoracis muscle chunks of three Korean Holstein cows. The average weight of the muscle chunks was 5.57 ± 0.61 kg. The beef chunks were purchased shortly after slaughter. Immediately following their acquisition, the three beef chunks were placed in a refrigeration box that was maintained at a temperature of 3 ± 1°C and transported to the laboratory. The meat samples were stored in the laboratory for 7 d at 4°C to achieve stabilization prior to the commencement of the experiment. After the stabilization period, the meat was removed from the vacuum package and the fascia and fat were excised. The resultant lean meat was cut along the direction of the myofiber into portions of approximately 250 g, which were then packed in shape to allow air flow. This was designated as the experimental start date. The experiment was conducted for 15 d and comprised the following three groups. The samples of control group were stored in a 4°C refrigerated environment throughout the experiment. Samples of Treatment group 1 were frozen at –20 ± 2°C for 6 d and thawed at 23 ± 1°C for 24 h to affect the microbial quality of the samples, and the rest of the period was refrigerated under the same conditions as the control group. And the last samples of treatment group 2 were initially left at 23°C for 6 h to induce microbial growth and the subsequent process is the same as treatment group 1. The experimental protocols are shown in Fig. 1.

jast-68-1-290-g1
Fig. 1. Experimental protocols based on the number of days for each experimental group.
Download Original Figure

The traditional plate count method was performed to obtain the reference of TAB count value. The measurement was performed in the following order, with some adjustments based on previous research [3133]. First, 10 g of samples were immersed in 90 mL of 0.1% peptone water and homogenized with a mixer (BagMixer, Interscience) to properly disperse and dilute the microorganisms. 10-fold serial dilutions of the homogenate were prepared using sterilized peptone water. Then, 1 mL of the dilution was inoculated into liquefied agar medium melted at 45°C (plate count agar, Becton Dickinson), and the suspension was carefully shaken to mix the microorganisms evenly. The suspension was cultured in a 37°C incubator for 48 h, following which the number of resultant colonies was counted and expressed in units of Log CFU/g. The experiment was repeated three times.

Hyperspectral imaging and spectrum extraction

To acquire hyperspectral images, a darkroom environment was employed to block external light and an image acquisition system was installed inside. No special temperature control was installed in the darkroom. At that time, the room temperature was observed as 23°C–24°C. As shown in Fig. 2, the system consisted of a hyperspectral imaging camera (Pika L, Resonon) with an attached lens. The camera was mounted on a stepper motor to allow its movement along a line while taking images. Four tungsten halogen lamps were installed to secure a stable light source. A black matte dish was used as the sample background. A total of 99 beef samples were used. For each experiment, nine samples from the same group were photographed at the same time and subjected to microbiological analysis. To ensure the stability of the light source and obtain high-quality hyperspectral data, a 20 min stabilization period was implemented before data acquisition.

jast-68-1-290-g2
Fig. 2. Configuration of devices for obtaining hyperspectral data.
Download Original Figure

Next, the region of interest (ROI) was defined as the red meat region within the meat data, and spectrum of only this region was extracted for analysis. The processes for determining the area of red lean meat in the hyperspectral data cube are presented in Fig. 3. Fig. 3A was reconstructed using only the visible light region (400–700 nm), whereas Fig. 3B was extracted from spectral images in the 630–650 nm range as an average value corresponding to the red region. Fig. 3C is an extraction of only images having a wavelength of 540–560 nm, corresponding to the green area. By comparing Fig. 3B and 3C and generating their difference set, the red region can be extracted by selecting only the pixels that belong to the red region and neither to the black region nor to the white region. To achieve this, Fig. 3B and 3C were first converted into binary images, resulting in Fig. 3D and 3E, respectively. As the result, Fig. 3F shows the difference between the two binary images. Consequently, by selecting and extracting only the spectra from the activated region in Fig. 3F, the spectra of red meat can be exclusively obtained.

jast-68-1-290-g3
Fig. 3. Images for determining the red lean meat regions (the ROI) in the hyperspectral images. (A) Reconstructed RGB image, (B) 630–650 nm average image, (C) 540–560 nm average image, (D) Binary image for the 630–650 nm reconstruction, (E) binary image for the 540–560 nm reconstruction, (F) red lean meat regions extracted from the difference.
Download Original Figure
Development of the predictive model

The extracted spectrum data for the area of red lean meat were used to develop TAB prediction model. And four machine learning methods were employed including partial least squares regression (PLSR), support vector machine (SVM), artificial neural network (ANN), and one-dimensional convolutional neural network (1D-CNN). Also, four preprocessing techniques such as multiplicative scatter correction (MSC), standard normal variate (SNV) transformation, Savitzky–Golay 1st-order filtering, and min–max normalization were used. In addition, models named ‘raw’ were developed and these models used raw spectrum which are not preprocessed. In this study, 80% of the experimental data was used as the training set, and the remaining 20% was used as the test set to verify the model’s performance. The randomly selected training set was 10-fold cross-validated to validate performance and develop optimal models.

PLSR is known as a widely used technique for the quantitative analysis of spectra [34]. As a method that complements the shortcomings of principal component analysis, PLSR is used mainly for component prediction in the measurement field. It performs the least squares method by compressing data down to several latent variables containing the most information in a data set, including both the input variable X and the output variable Y. To develop the PLSR model, one data set—including both the X matrix obtained from the spectral data and the Y vector obtained from the TAB counts—was first generated. Then, the number of components with the lowest root-mean-square error (RMSE) value was selected while changing the number of components from 1 to 40. The model was finally constructed using the number of components. Through this procedure, it can be seen that both the calibration and validation processes can be performed at once.

The SVM technique was originally developed for classification purposes, but it can be applied for support vector regression (SVR) problems through the use of a loss function. In this study, ε-insensitive loss function was used as following Equation (1):

L ( y k ) = max ( 0 , | y k f k ( x ) | ε )
(1)

where yk is the kth element of the y vector, and fk(x) is the value predicted by the model.

To develop the ANN model, a structure with an appropriate layer had to be designed. In the ANN, the connection structure between neurons, such as the number of hidden layers and the number of nodes of each layer, is collectively referred to as a topology, the optimal determination of which generally requires a large number of trial-and-error runs [35]. In this study, performance was tested by varying the number of hidden layers and the number of nodes in the model. The hidden layers were either one or two, and the number of nodes in each layer started at 25 and increased by one to 35. The optimal topology was found to be two hidden layers with 32 nodes each. The rectified linear unit (ReLU) was used as the hidden layer activation function, and adaptive moment estimation was used as the optimizer in the compilation process.

A CNN-based model, which is a class of ANN, is the most widely used architecture in deep learning approaches. Of the various CNN techniques, 1D-CNN was used in our study because the extracted spectrum was one-dimensional signal. Generally, the structure of a CNN-based model consists of an input layer, multiple hidden layers (convolutional layers, pooling layers, fully connected layers), and an output layer [36]. A structure of 1D-CNN based model also comprises a convolutional layer and a 1D filter suitable for spectral data. As was carried out for the ANN, the layer structure for the 1D-CNN was determined through trial-and-error repetitions, and the one with the highest performance was selected. Additionally, a dense layer consisting of 100 nodes was added before the result was reached. The ReLU function was used for all hidden layers. Fig. 4 shows the structure of the 1D-CNN used in this study. Since the models were created using four different techniques, evaluation indicators were needed for the comparison of their performances. This was achieved through three commonly used indicators for the evaluation of predictive model: R2, mean absolute error (MAE), and RMSE, calculated using Equatios (2), (3), and (4), respectively:

jast-68-1-290-g4
Fig. 4. Layer structure of the one-dimensional convolutional neural network used in this study.
Download Original Figure
R 2 = i = 1 n ( A i P i ) 2 i = 1 n ( A i A ¯ ) 2
(2)
MAE= 1 n i = 1 n | A i P i |
(3)
RMSE= 1 n i = 1 n ( A i P i ) 2
(4)

where n is the total number of data points, Ai is the actual output values, Pi is the predicted output values, and A- is average.

Verification of the predictive model

To ensure the generalizability of the developed model, a rigorous verification process was implemented. While the training and test sets were strictly separated during model development, both used samples from the same carcass. This potential limitation in variability prompted an additional verification step. At a different time, completely different beef samples were purchased and stored under identical conditions to those used for model development. All procedures used for the training and test sets were meticulously replicated with these new samples to create a dedicated verification set. This verification set was then applied to the previously developed models to assess their versatility.

RESULTS AND DISCUSSION

Total aerobic bacterial measurements

Fig. 5 shows the TAB values for different treatments of the beef samples. Similar to the results reported by other research, the TAB increased by approximately 3 folds with each passing week [37]. And no specific packaging or air conditioning treatments were applied to the samples, resulting in higher microbial counts compared to previous study [38]. Statistical differences among the results were evaluated using Scheffe’s post hoc test, with a significance level set at 5%. For this analysis, SPSS 26.0 statistical software package (IBM) was utilized. As anticipated, the five experimental dates clustered into three distinct groups based on their proximity. Furthermore, the analysis revealed that storage duration had a more pronounced effect on the proliferation of TAB.

jast-68-1-290-g5
Fig. 5. Counts of total aerobic bacteria (TAB) according to sample treatments and days of storage. The values represented by the bars are the mean of three replicates of the experiment, and the error bars represent the standard deviation. Denoted by +, ++ when Scheffe’s post hoc test shows statistical significance.
Download Original Figure
Spectrum extraction and performance of the regression models

A total of 5,285 spectra were extracted from the hyperspectral images of red meat area. The entire data set (n = 5,285) was then divided into a training set (n = 4,228) and a test set (n = 1,057). Table 1 shows the performance of the PLSR models in predicting TAB for different preprocessing methods. All models developed using the five data types achieved a coefficient of determination (R2) of 0.8 or higher, indicating successful training without significant issues. Evaluation on the five test data subsets likewise resulted in R2 values of 0.8 or greater. If the R2 values of the training and test sets were significantly different, it would suggest overfitting [39], but since this is not the case, it was determined that overfitting did not occur during the modelling process. The number of components in the PLSR models was in the range of 19–23.

Table 1. Performance of the PLSR models in predicting total aerobic bacterial counts for different preprocessing methods
Preprocessing n 1) Data set R 2 MAE RMSE
Raw 19 Training 0.8766 0.6624 0.8512
Test 0.8630 0.7043 0.8823
MSC 21 Training 0.8816 0.6482 0.8358
Test 0.8622 0.6811 0.8755
SNV 19 Training 0.8891 0.6220 0.8073
Test 0.8650 0.6775 0.8734
Savitzky-Golay 1st Filter 23 Training 0.8761 0.6645 0.8546
Test 0.8588 0.6891 0.8893
Min–Max Normalization 19 Training 0.8764 0.6555 0.8440
Test 0.8637 0.7270 0.9130

Number of components.

PLSR, partial least squares regression; MSC, multiplicative scatter correction; SNV, standard normal variate.

Download Excel Table

The performance of the SVM, ANN, and 1D-CNN models is shown in Table 2. These models consistently outperformed the PLSR model in terms of prediction accuracy. When evaluated on the training set, almost all preprocessed data types achieved R2 values of 0.9 or higher, except 1D-CNN with some preprocessing methods. When testing SVM models, using data preprocessed by MSC achieved the best performance, with an R2 value of 0.9617 and an RMSE of 0.4659. And this result suggests that data preprocessing methods with scatter correction, such as MSC and SNV, are advantageous compared to other techniques. This finding is consistent with the SVM’s reliance on hyperplanes for class separation, as outlier removal through scatter correction can contribute to improved model performance.

Table 2. Performance of the support vector machine, artificial neural network, and one-dimensional convolutional neural network model in predicting total aerobic bacterial counts for different preprocessing methods
Machine learning Preprocessing Data set R 2 MAE RMSE
SVM Raw Training 0.9364 0.3844 0.6093
Test 0.9166 0.4594 0.6962
MSC Training 0.9706 0.2038 0.4156
Test1) 0.96171) 0.26721) 0.46591)
SNV Training 0.9731 0.1907 0.3982
Test 0.9560 0.2808 0.4950
Savitzky–Golay 1st Filter Training 0.9353 0.3941 0.6155
Test 0.9171 0.4620 0.6914
Min–Max Normalization Training 0.9343 0.3850 0.6169
Test 0.9210 0.4701 0.6891
ANN Raw Training 0.9960 0.1172 0.1519
Test 0.9841 0.1490 0.3084
MSC Training 0.9987 0.0695 0.0884
Test 0.9764 0.1483 0.3741
SNV Training 0.9991 0.0546 0.0716
Test 0.9901 0.1479 0.2372
Savitzky–Golay 1st Filter Training 0.9976 0.0948 0.1191
Test 0.9876 0.1214 0.2718
Min–Max Normalization Training 0.9967 0.1006 0.1376
Test1) 0.99261) 0.12471) 0.21141)
1D-CNN Raw Training 0.8654 0.6720 0.8876
Test 0.8557 0.6854 0.9118
MSC Training 0.9291 0.5252 0.6426
Test 0.8767 0.6658 0.8510
SNV Training 0.9886 0.2150 0.2571
Test 0.9580 0.3080 0.4976
Savitzky–Golay 1st Filter Training 0.7677 0.9097 1.1510
Test 0.7673 0.9391 1.1684
Min–Max Normalization Training 0.9942 0.1415 0.1848
Test1) 0.97191) 0.27811) 0.39901)

Indicates the optimal prediction performance achieved in each category.

MAE, mean absolute error; RMSE, root-mean-square error; SVM, support vector machine; ANN, artificial neural network; 1D-CNN, one-dimensional convolutional neural network; MSC, multiplicative scatter correction; SNV, standard normal variate.

Download Excel Table

As presented in Table 2, the predictive performance of the ANN model was superior to that of the other models. The training set yielded R2 values of 0.99 or higher, whereas the test set yielded R2 values of 0.97 or higher, which indicated a fit of the model with the experiment data. The best performance during test was exhibited by the ANN model constructed using min–max normalization data, which yielded an R2 value of 0.9926 and RMSE value of 0.2114. This is comparable to or slightly better than previous study [16]. The 1D-CNN models were the only ones that showed significant deviations in performance according to the data preprocessing technique used. Since the 1D-CNN does not follow the basic structure of a CNN that extracts morphological characteristics, the development of a segmental structure through the extraction of only the red meat region from the original hyperspectral data cube did not affect the interpretation of the results.

Fig. 6 presents the best test result for four models. Among these models, the ANN model with min-max normalization achieved the superior predictive performance. As can be observed in Fig. 6A and 6B, the PLSR and SVM based models exhibited lower performance compared to ANN and 1D-CNN based models shown in Fig. 6C and 6D, respectively. This is well illustrated by the wider distribution of predictions for samples sharing the same reference value in Fig. 6A and 6B. Consequently, it is reasonable to posit that prediction using neural network architecture offers a more viable modeling approach.

jast-68-1-290-g6
Fig. 6. Graphs depicting the best prediction of total aerobic bacterial count by each model. (A) Partial least squares regression model, (B) Support vector machine model, (C) Artificial neural network model, (D) One-dimensional convolutional neural network model.
Download Original Figure
Construction of chemical map and model verification

Fig. 7 shows the chemical map of predicted TAB count generated by inputting the hyperspectral data extracted from the red meat into the ANN model, which was identified to have the best predictive performance. Since only the spectral data extracted from the red meat area were used, all regions other than the red meat appeared as black spaces. This method allowed for direct visual observation of the differences in microbial quality of beef samples from each experimental group. Compared to previous studies [40], we demonstrate that the time-dependent microbial quality changes of beef samples were more clearly discernible due to the enhanced resolution and contrast provided by our study. The control group samples that were kept in refrigerated storage showed a generally uniform color distribution. The result suggests that an inappropriate storage method could cause deterioration of the meat quality that may be undetectable by visual inspection.

jast-68-1-290-g7
Fig. 7. Chemical map of total aerobic bacteria in red meat samples, constructed using the ANN model of highest performance. Each pixel represents a location where a spectrum was actually acquired, with non-lean fat areas appearing blank because no spectrum was acquired. TAB values are in units of Log CFU/g.
Download Original Figure

As a final step, additional experiments were conducted to verify the practical performance of the TAB prediction models which were presented in Tables 1 and 2. For this purpose, the TAB prediction performance of developed models was re-evaluated on a completely separate new beef samples from the beef samples used in the development of TAB prediction models. Table 3 shows the test performance of the best models for predicting TAB during the first model development process and the final verification step. As a result of verification test, it was observed that the R2 of the PLSR model decreased by 42.78% compared to the test results specified in Table 1. However, the R2 values of the other three models, SVR, ANN, and 1D-CNN based prediction models, were confirmed to be 0.7988, 0.8593, and 0.8479, respectively. These results are 16.94%, 13.43%, and 12.76% lower than the R2 values of the SVR, ANN, and 1D-CNN based prediction models shown in Table 2, respectively.

Table 3. Test performance of the best models for predicting total aerobic bacterial counts during the first model development process and the final verification step
Model type Method Preprocessing R 2 MAE RMSE
Developed using the first beef samples PLSR SNV 0.8650 0.6775 0.8734
SVR MSC 0.9617 0.2672 0.4659
ANN Min–Max 0.9926 0.1247 0.2114
1D-CNN Min–Max 0.9719 0.2781 0.3990
Tested using new beef samples for verification PLSR MSC 0.4949 1.4984 1.8281
SVR SNV 0.7988 0.6570 0.8152
ANN MSC 0.8593 0.5245 0.6947
1D-CNN SNV 0.8479 0.5093 0.6810

MAE, mean absolute error; RMSE, root-mean-square error; PLSR, partial least squares regression; SVR, support vector regression; ANN, artificial neural network; 1D-CNN, one-dimensional convolutional neural network.

Download Excel Table

Although it was confirmed that the TAB prediction performance for completely new beef samples was reduced, the RMSE of the ANN and 1D-CNN based models acquired during verification test were 0.6947 and 0.681, respectively. These RMSE results can be analyzed as having a prediction error of about 7%, considering that the TAB destructively measured in actual beef samples were distributed in the range of 2.5 to 10. Through the verification test results, it was also observed that models based on artificial neural network methods such as ANN and 1D-CNN show better prediction performance than other machine learning-based models. Also, these results show the same trend as the model evaluation results shown in Table 2. If learning data for more diverse beef samples is acquired and additional, periodic learning processes are performed, the performance of machine learning models that can predict specific ingredients can be expected to improve to a certain level. Although this study cannot be said to have developed a sufficiently satisfactory prediction model that can be applied to all beef samples, it confirmed the possibility of predicting the TAB of beef non-destructively and non-invasively using machine learning methods and hyperspectral imaging technique. Further empirical research applying the methods and models presented in this study could lead to the development of commercially viable beef quality evaluation technology applicable in real-life settings. Accurate quality prediction helps livestock breeders develop and apply better husbandry practices, which ultimately leads to higher quality beef production. These technologies also enable faster response to consumer demand, enabling product development to meet market trends. Collaboration between industry and academia will play an important role in integrating these advanced technologies into existing quality management systems.

CONCLUSIONS

In this study, models for the non-destructive prediction of TAB in beef samples using NIR hyperspectral data were developed. Beef samples were exposed to various temperature conditions for 15 d to induce microbial growth and changes in meat freshness. For each meat sample, spectral data were obtained using a hyperspectral imaging system, and the TAB values were evaluated using the conventional plate count method to derive the reference counts for microbial contamination levels. In total, 5,285 spectra were extracted for the raw spectrum data and divided into a training set (80%) and a test set (20%). Then, models were developed using the PLSR, SVR, ANN, and 1D-CNN techniques. The predictive performance of each model was evaluated using the performance indicators R2, MAE, and RMSE. The ANN model was found to have the best predictive performance when the data was preprocessed using the min-max normalization method. In addition, even in a verification experiment performed with completely different beef samples at a separate time, the ANN based TAB prediction models showed somehow acceptable performance (R2: 0.85).

Recently, machine learning or deep learning-based ANN, CNN techniques have shown good performance in various fields. This study also successfully demonstrated the potential of ANN and 1D-CNN models for predicting TAB in beef using NIR hyperspectral data. These results are consistent with the growing body of research demonstrating the effectiveness of deep learning architectures in various analytical tasks. In our study, while both 1D-CNN and ANN models achieved high predictive performance, the ANN structure consistently outperformed for all data preprocessing methods. Interestingly, 1D-CNN performance showed greater sensitivity to preprocessing techniques, suggesting the potential for further optimization in this area.

In our study, there were some difficulties or limitations associated with the experiment and data acquisition. The number of sample groups was set to only three, and the observed microbial values were grouped by experimental day, resulting in a less diverse microbial population compared to real-world situations. Also, the experimental period was considered insufficient to represent all actual situations in the field. These experimental conditions have limitations in securing the diversity that can occur in actual distribution situations. To improve the generalizability of the models, future research should include data with a wider range of TAB that reflects the natural variability of microbial quality in beef. In addition, exploring the integration of other relevant data sources, such as temperature or storage conditions, alongside NIR spectral data could potentially refine model accuracy. Nonetheless, the approaches suggested in this study have the potential to provide more feasible and efficient tools for non-destructive microbial quality assessment in the meat industry.

Competing interests

No potential conflict of interest relevant to this article was reported.

Funding sources

This work was supported by the Rural Development Administration (RDA) through the Cooperative Research Program for Agriculture Science & Technology Development Program (Project No. PJ017095) and Smart Agri Products Flow Storage Technology Development Program through the Korea Institute of Planning and Evaluation for Technology in Food, Agriculture and Forestry (IPET) funded by the Ministry of Agriculture, Food and Rural Affairs (MAFRA) (No. 1545027072).

Acknowledgements

Not applicable.

Availability of data and material

Upon reasonable request, the datasets of this study can be available from the corresponding author.

Authors’ contributions

Conceptualization: Park S, Hong SJ, Kim G.

Data curation: Lee CH.

Formal analysis: Park S.

Methodology: Park S, Hong SJ, Jo C.

Software: Hong SJ, Kim EC, Kim SY.

Validation: Lee CH, Kim EC, Jo C.

Investigation: Kim SY, Kim G.

Writing - original draft: Park S.

Writing - review & editing: Park S, Hong SJ, Lee CH, Kim E, Kim SY, Jo C, Kim G.

Ethics approval and consent to participate

This article does not require IRB/IACUC approval because there are no human and animal participants.

REFERENCES

1.

Borgogno M, Favotto S, Corazzin M, Cardello AV, Piasentier E. The role of product familiarity and consumer involvement on liking and perceptions of fresh meat. Food Qual Prefer. 2015; 44:139-47

2.

Casaburi A, Piombino P, Nychas GJ, Villani F, Ercolini D. Bacterial populations and the volatilome associated to meat spoilage. Food Microbiol. 2015; 45:83-102

3.

Hu R, Zhang M, Mujumdar AS. Application of infrared and microwave heating prior to freezing of pork: effect on frozen meat quality. Meat Sci. 2022; 189:108811

4.

Singh S, Shalini R. Effect of hurdle technology in food preservation: a review. Crit Rev Food Sci Nutr. 2016; 56:641-9

5.

Bae YM, Cho SI, Kim YY, Park TS, Hwang KY. Estimation of freshness of beef using near-infrared spectroscopy. Trans ASABE. 2006; 49:557-61

6.

Kruk ZA, Yun H, Rutley DL, Lee EJ, Kim YJ, Jo C. The effect of high pressure on microbial population, meat quality and sensory characteristics of chicken breast fillet. Food Control. 2011; 22:6-12

7.

Bekhit AEDA, Holman BWB, Giteru SG, Hopkins DL. Total volatile basic nitrogen (TVB-N) and its role in meat spoilage: a review. Trends Food Sci Technol. 2021; 109:280-302

8.

DeGeer SL, Hunt MC, Bratcher CL, Crozier-Dodson BA, Johnson DE, Stika JF. Effects of dry aging of bone-in and boneless strip loins using two aging processes for two aging times. Meat Sci. 2009; 83:768-74

9.

Cheng JH, Sun DW, Zeng XA, Pu HB. Non-destructive and rapid determination of TVB-N content for freshness evaluation of grass carp (Ctenopharyngodon idella) by hyperspectral imaging. Innov Food Sci Emerg Technol. 2014; 21:179-87

10.

Leonard W, Hutchings SC, Warner RD, Fang Z. Effects of incorporating roasted lupin (Lupinus angustifolius) flour on the physicochemical and sensory attributes of beef sausage. Int J Food Sci Technol. 2019; 54:1849-57

11.

Lee HJ, Choe J, Yoon JW, Kim S, Oh H, Yoon Y, et al. Determination of salable shelf-life for wrap-packaged dry-aged beef during cold storage. Korean J Food Sci Anim Resour. 2018; 38:251-8

12.

Chen Q, Zhao Z, Wang X, Xiong K, Shi C. Microbiological predictive modeling and risk analysis based on the one-step kinetic integrated Wiener process. Innov Food Sci Emerg Technol. 2022; 75:102912

13.

Achata EM, Esquerre C, Ojha KS, Tiwari BK, O’Donnell CP. Development of NIR-HSI and chemometrics process analytical technology for drying of beef jerky. Innov Food Sci Emerg Technol. 2021; 69:102611

14.

Zhu F, Zhang D, He Y, Liu F, Sun DW. Application of visible and near infrared hyperspectral imaging to differentiate between fresh and frozen–thawed fish fillets. Food Bioprocess Technol. 2013; 6:2931-7

15.

Rahman A, Faqeerzada MA, Joshi R, Lohumi S, Kandpal LM, Lee H, et al. Quality analysis of stored bell peppers using near-infrared hyperspectral imaging. Trans ASABE. 2018; 61:1199-207

16.

Achata EM, Oliveira M, Esquerre CA, Tiwari BK, O’Donnell CP. Visible and NIR hyperspectral imaging and chemometrics for prediction of microbial quality of beef Longissimus dorsi muscle under simulated normal and abuse storage conditions. LWT. 2020; 128:109463

17.

Kim G, Lee H, Baek I, Cho BK, Kim MS. Short-wave infrared hyperspectral imaging system for nondestructive evaluation of powdered food. J Biosyst Eng. 2022; 47:223-32

18.

Ekramirad N, Rady A, Adedeji AA, Alimardani R. Application of hyperspectral imaging and acoustic emission techniques for apple quality prediction. Trans ASABE. 2017; 60:1391-401

19.

Cheng G, Li Z, Han J, Yao X, Guo L. Exploring hierarchical convolutional features for hyperspectral image classification. IEEE Trans Geosci Remote Sens. 2018; 56:6712-22

20.

Abdel-Nour N, Ngadi M. Detection of omega-3 fatty acid in designer eggs using hyperspectral imaging. Int J Food Sci Nutr. 2011; 62:418-22

21.

Barbin DF, Sun DW, Su C. NIR hyperspectral imaging as non-destructive evaluation tool for the recognition of fresh and frozen–thawed porcine longissimus dorsi muscles. Innov Food Sci Emerg Technol. 2013; 18:226-36

22.

Liu L, Ngadi MO. Predicting intramuscular fat content of pork using hyperspectral imaging. J Food Eng. 2014; 134:16-23

23.

Kamruzzaman M, Barbin D, ElMasry G, Sun DW, Allen P. Potential of hyperspectral imaging and pattern recognition for categorization and authentication of red meat. Innov Food Sci Emerg Technol. 2012; 16:316-25

24.

Wold JP. On-line and non-destructive measurement of core temperature in heat treated fish cakes by NIR hyperspectral imaging. Innov Food Sci Emerg Technol. 2016; 33:431-7

25.

Yang Q, Sun DW, Cheng W. Development of simplified models for nondestructive hyperspectral imaging monitoring of TVB-N contents in cured meat during drying process. J Food Eng. 2017; 192:53-60

26.

Aheto JH, Huang X, Tian X, Lv R, Dai C, Bonah E, et al. Evaluation of lipid oxidation and volatile compounds of traditional dry-cured pork belly: the hyperspectral imaging and multi-gas-sensory approaches. J Food Process Eng. 2019; 43e13092

27.

Lohumi S, Lee S, Lee H, Kim MS, Lee WH, Cho BK. Application of hyperspectral imaging for characterization of intramuscular fat distribution in beef. Infrared Phys Technol. 2016; 74:1-10

28.

de Araújo PD, Araújo WMC, Patarata L, Fraqueza MJ. Understanding the main factors that influence consumer quality perception and attitude towards meat and processed meat products. Meat Sci. 2022; 193:108952

29.

Santana EJ, Geronimo BC, Mastelini SM, Carvalho RH, Barbin DF, Ida EI, et al. Predicting poultry meat characteristics using an enhanced multi-target regression method. Biosyst Eng. 2018; 171:193-204

30.

Badaró AT, Morimitsu FL, Ferreira AR, Clerici MTPS, Barbin DF. Identification of fiber added to semolina by near infrared (NIR) spectral techniques. Food Chem. 2019; 289:195-203

31.

Kim B, Yun H, Jung S, Jung Y, Jung H, Choe W, et al. Effect of atmospheric pressure plasma on inactivation of pathogens inoculated onto bacon using two different gas compositions. Food Microbiol. 2011; 28:9-13

32.

Dong C, Wang B, Li F, Zhong Q, Xia X, Kong B. Effects of edible chitosan coating on Harbin red sausage storage stability at room temperature. Meat Sci. 2020; 159:107919

33.

Saleh E, Morshdy AE, El-Manakhly E, Al-Rashed S, Hetta HF, Jeandet P, et al. Effects of olive leaf extracts as natural preservative on retailed poultry meat quality. Foods. 2020; 9:1017

34.

Sarkar S, Basak JK, Moon BE, Kim HT. A comparative study of PLSR and SVM-R with various preprocessing techniques for the quantitative determination of soluble solids content of hardy kiwi fruit by a portable vis/NIR spectrometer. Foods. 2020; 9:1078

35.

Winiczenko R, Górnicki K, Kaleta A, Janaszek-Mańkowska M. Optimisation of ANN topology for predicting the rehydrated apple cubes colour change using RSM and GA. Neural Comput Appl. 2018; 30:1795-809

36.

Swapna G, Vinayakumar R, Soman KP. Diabetes detection using deep learning algorithms. ICT Express. 2018; 4:243-6

37.

Sujiwo J, Kim HJ, Song SO, Jang A. Relationship between quality and freshness traits and torrymeter value of beef loin during cold storage. Meat Sci. 2019; 149:120-5

38.

Liu H, Ji Z, Liu X, Shi C, Yang X. Non-destructive determination of chemical and microbial spoilage indicators of beef for freshness evaluation using front-face synchronous fluorescence spectroscopy. Food Chem. 2020; 321:126628

39.

Gong H, Sun Y, Shu X, Huang B. Use of random forests regression for predicting IRI of asphalt pavements. Constr Build Mater. 2018; 189:890-7

40.

Jin S, Liu X, Wang J, Pan L, Zhang Y, Zhou G, et al. Hyperspectral imaging combined with fluorescence for the prediction of microbial growth in chicken breasts under different packaging conditions. LWT. 2023; 181:114727