Issue 21, 2025

Hybrid NGO–PSO optimized random forest combined with multi-energy LIBS for enhanced accurate classification of tea

Abstract

Accurately measuring and analyzing the chemical composition and spectral characteristics of tea is of great significance for improving the sorting accuracy and preventing tea adulteration and variety misjudgment. We propose a tea identification and classification system that combines multiple settings of laser-induced breakdown spectroscopy (LIBS) and a Random Forest model that combines the Northern Eagle and Particle Swarm Optimization algorithm (NGO–PSO–RF), which provides a new idea for efficient and accurate classification and recognition of tea. The experiment increased the spectral difference between similar samples by measuring the spectral data of eight tea samples at three different energies. Principal Component Analysis (PCA) was performed on the spectral data at each energy, and the first three principal components were extracted to construct the fusion feature set. PCA dimension reduction was used again to obtain the core feature vector. The original complex multi-energy spectral data were simplified by performing two analyses. Finally, the fusion spectral data were analyzed using the NGO–PSO–RF model, and the classification accuracy of the test set was 99.22%, which was 3.13 percentage points higher than the average classification accuracy (96.09%) at a single energy, and the core indicators, such as the recall rate (+3.11%) and F1 value (+3.19%), were synchronously optimized. In addition, compared with LSTM, SVM, RF and PSO–RF, the classification accuracy of the NGO–PSO–RF model improved by 6.77%, 5.47%, 5.34% and 3.52% respectively. This method provides an innovative and efficient method with high universality and robustness for material classification and provides important technical support and reliable detection prospects for food production safety and chemical analysis.

Graphical abstract: Hybrid NGO–PSO optimized random forest combined with multi-energy LIBS for enhanced accurate classification of tea

Article information

Article type
Paper
Submitted
21 May 2025
Accepted
29 Aug 2025
First published
26 Sep 2025

Analyst, 2025,150, 4798-4806

Hybrid NGO–PSO optimized random forest combined with multi-energy LIBS for enhanced accurate classification of tea

J. Ma, X. Hao, R. Jia, B. Mo, J. Chen, S. Li, H. Wei, Y. Tian and S. Gao, Analyst, 2025, 150, 4798 DOI: 10.1039/D5AN00559K

To request permission to reproduce material from this article, please go to the Copyright Clearance Center request page.

If you are an author contributing to an RSC publication, you do not need to request permission provided correct acknowledgement is given.

If you are the author of this article, you do not need to request permission to reproduce figures and diagrams provided correct acknowledgement is given. If you want to reproduce the whole article in a third-party publication (excluding your thesis/dissertation for which permission is not required) please go to the Copyright Clearance Center request page.

Read more about how to correctly acknowledge RSC content.

Social activity

Spotlight

Advertisements