# Non-Destructive Assessment of Beef Freshness Using Visible and Near-Infrared Spectroscopy with Interpretable Machine Learning

**Authors:** Ruoxin Chen, Wei Ning, Xufen Xie, Jingran Bi, Gongliang Zhang, Hongman Hou

PMC · DOI: 10.3390/foods15040728 · 2026-02-15

## TL;DR

This study introduces a non-destructive method using light and machine learning to assess beef freshness, offering accurate predictions and insights into key wavelengths.

## Contribution

A novel PSOGA-XGBoost model with SHAP interpretation is proposed for accurate and interpretable beef freshness assessment.

## Key findings

- The PSOGA-XGBoost model achieved high prediction accuracy (R2p values up to 0.95) for beef freshness indicators.
- SHAP identified key wavelengths (e.g., 1236 nm for TVB-N) that are critical for freshness assessment.
- The method provides interpretable results, enhancing transparency in beef quality monitoring.

## Abstract

Beef freshness is a critical indicator of meat quality and safety, and its rapid, non-destructive detection is of significant importance for ensuring consumer health and enhancing quality control throughout the meat industry chain. This study developed a novel methodology for non-destructive beef freshness assessment using visible and near-infrared (Vis-NIR) spectroscopy combined with machine learning, explainable artificial intelligence (xAI) techniques, and the SHapley Additive exPlanations (SHAP) framework. An improved hybrid heuristic method, particle swarm optimization–genetic algorithm (PSOGA), was used for feature selection, optimizing the wavelength subset for predicting beef quality indicators, including total volatile basic nitrogen (TVB-N) and color parameters (L*, a*, and b*). The eXtreme Gradient Boosting (XGBoost) was employed for regression modeling, and the results showed that PSOGA significantly outperforms traditional methods, with the PSOGA-XGBoost model achieving a satisfactory prediction accuracy (R2p values of 0.9504 for TVB-N, 0.9540 for L*, 0.8939 for a*, and 0.9416 for b*). The SHAP framework identified the key wavelengths as 1236 nm and 1316 nm for TVB-N, 728 nm for L*, 576 nm for a*, and 604 nm for b*, providing valuable insights into the determination of key wavelengths and enhancing the interpretability of the model. The results demonstrated the effectiveness of PSOGA and SHAP, providing a promising analytical method for monitoring beef freshness.

## Full-text entities

- **Genes:** MB (myoglobin) [NCBI Gene 280695] {aka GLNG}
- **Diseases:** injury to (MESH:D014947)
- **Chemicals:** deuterium (MESH:D003903), TVB (-), lipid (MESH:D008055), MgO (MESH:D008277), H (MESH:D006859), GA (MESH:D005708), organic compounds (MESH:D009930), NH3+ (MESH:D000641), O (MESH:D010100), N (MESH:D009584), C (MESH:D002244), water (MESH:D014867)
- **Species:** Homo sapiens (human, species) [taxon 9606], Bos taurus (bovine, species) [taxon 9913]

## Figures

7 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12939979/full.md

---
Source: https://tomesphere.com/paper/PMC12939979