Quality Detection Model for Apricots (Diaoganxing) Based on Spectral Morphological Feature Fusion Across Different Moisture Intervals
Abstract
1. Introduction
2. Materials and Methods
2.1. Materials
2.2. Method
2.2.1. Spectral Acquisition Method
2.2.2. Spectral Data Processing Method
2.2.3. Moisture Content Determination Method
2.2.4. Spectral Morphological Feature Extraction Methods
2.2.5. Correlation Analysis Methods
2.2.6. Model Construction and Evaluation Methods
2.2.7. Overall Research Process
3. Results and Discussion
3.1. Extraction of Spectral Morphological Features
3.2. Pearson Correlation Analysis Between Spectral Morphological Features and Moisture Content of Apricots
3.3. Sample Set Partitioning and Feature Band Selection
3.4. Moisture Content Detection Model for Apricots Integrating Feature Wavelengths and Spectral Morphological Features
4. Conclusions
- (1)
- Within the moisture range of 25–70%, the model constructed at 55–70% moisture content yields optimal results. This moisture range provides the richest spectral information and highest signal-to-noise ratio for apricots. The CARS algorithm achieves an Rp of 0.8703, with other moisture intervals hovering around 0.8.
- (2)
- The model fusion results indicate that valley morphological features contribute more significantly and demonstrate greater stability than crest features, but they carry an overfitting risk. After screening four relevant parameters using Pearson correlation, they were then integrated with CARS spectral bands for modeling. This approach effectively suppressed overfitting and further enhanced the model’s accuracy. This classification model provides an effective means for the precise, non-destructive detection of moisture content during the apricot drying process.
- (1)
- Due to significant interference from outdoor noise and other factors, this study only tested the strong water absorption peak in the 850–970 nm range, extracting its spectral morphological features for analysis. Future studies may conduct detailed analysis of water absorption peaks at wavelengths such as 1200 nm and 1450 nm to develop hybrid modeling approaches for enhancing the accuracy of apricot moisture content detection.
- (2)
- There exists a certain nonlinear relationship between the moisture content of apricots and their spectral data and spectral morphological features; however, this study only examined linear relationships. Future research could establish nonlinear correlations between spectral morphological features and apricot quality using the Maximum Information Coefficient (MIC), and construct nonlinear models such as BP neural networks to further enhance model accuracy.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Azodanlou, R.; Darbellay, C.; Luisier, J.-L.; Villettaz, J.-C.; Amadò, R. Development of a model for quality assessment of tomatoes and apricots. LWT-Food Sci. Technol. 2003, 36, 223–233. [Google Scholar] [CrossRef]
- Li, L.; Jia, X.; Fan, K. Recent advance in nondestructive imaging technology for detecting quality of fruits and vegetables: A review. Crit. Rev. Food Sci. Nutr. 2024, 65, 5181–5199. [Google Scholar] [CrossRef]
- Zhu, F.; Wei, H.; Shen, Y.; Zhang, Y.; Xu, N.; Zheng, H.; Qiao, X.; Liu, D. A multi-feature fusion based method for detecting the moisture content of withered black tea. J. Food Compos. Anal. 2025, 141, 107325. [Google Scholar] [CrossRef]
- Xue, H.; Xu, X.; Yang, Y.; Hu, D.; Niu, G. Rapid and Non-Destructive Prediction of Moisture Content in Maize Seeds Using Hyperspectral Imaging. J. Sens. 2024, 24, 1855. [Google Scholar] [CrossRef] [PubMed]
- Wan, G.; He, J.; Meng, X.; Liu, G.; Zhang, J.; Ma, F.; Zhang, Q.; Wu, D. Hyperspectral imaging technology for nondestructive identification of quality deterioration in fruits and vegetables: A review. J. Crit. Rev. Food Sci. Nutr. 2025, 65, 7923–7952. [Google Scholar] [CrossRef] [PubMed]
- Wang, W.-x.; Ma, B.-x.; Luo, X.-z.; Li, X.-x.; Lei, S.-y.; Li, Y.-j.; Sun, J.-t. Study on the Moisture Content of Dried Hami Big Jujubes by Near-Infrared Spectroscopy Combined with Variable Preferred and GA-ELM Model. J. Spectrosc. Spectr. Anal. 2020, 40, 543–549. [Google Scholar]
- Liu, Z.; Zhao, H.; Wang, X.; Wang, S.; Li, J.; Zhong, Y. PU-KBS: A Robust Positive and Unlabeled Learning Framework with Key Band Selection for One-Class Hyperspectral Image Classification. IEEE Trans. Geosci. Remote Sens. 2024, 62, 1–15. [Google Scholar] [CrossRef]
- Fu, B.; Sun, X.; Cui, C.; Zhang, J.; Shang, X. Structure-Preserved and Weakly Redundant Band Selection for Hyperspectral Imagery. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 12490–12504. [Google Scholar] [CrossRef]
- Di, Y.; Yu, J.; Luo, H.; Liu, H.; Kang, L.; Tong, Y. Study on Outdoor Spectral Inversion of Winter Jujube Based on BPDF Models. J. Agric. 2025, 15, 1334. [Google Scholar] [CrossRef]
- Liu, H.; Wei, Z.; Lu, M.; Gao, P.; Li, J.; Zhao, J.; Hu, J. A Vis/NIR device for detecting moldy apple cores using spectral shape features. Comput. Electron. Agric. 2024, 220, 108898. [Google Scholar] [CrossRef]
- Yan, J.; Wang, G.; Du, H.; Liu, Y.; Ouyang, A.; Hu, M. Convolutional neural networks fusing spectral shape features with attentional mechanisms for accurate prediction of soluble solids content in apples. J. Food Meas. Charact. 2024, 19, 412–423. [Google Scholar] [CrossRef]
- Zheng, Y.; Zhou, Y.; Liu, P.; Zheng, Y.; Wei, Z.; Li, Z.; Xie, L. Improving discrimination accuracy of pest-infested crabapples using Vis/NIR spectral morphological features. J. Food Meas. 2024, 18, 8755–8766. [Google Scholar] [CrossRef]
- Sun, J.Q.; Yin, Y.; Yu, H.C.; Yuan, Y.X.; Guo, L.G. Hyperspectral prediction method of perilla aldehyde content in perilla. J. Spectrosc. Spectr. Anal. 2024, 44, 2667–2674. [Google Scholar]
- Zhong, L.; Yang, S.; Rong, Y.; Qian, J.; Zhou, L.; Li, J.; Sun, Z. Indirect Estimation of Heavy Metal Contamination in Rice Soil Using Spectral Techniques. Plants 2024, 13, 831. [Google Scholar] [CrossRef]
- Yang, C.; Xu, J.; Feng, M.; Bai, J.; Sun, H.; Song, L.; Wang, C.; Yang, W.; Xiao, L.; Zhang, M.; et al. Evaluation of Hyperspectral Monitoring Model for Aboveground Dry Biomass of Winter Wheat by Using Multiple Factors. Agronomy 2023, 13, 983. [Google Scholar] [CrossRef]
- Li, Q.; Huang, Y.; Song, X.; Zhang, J.; Min, S. Moving window smoothing on the ensemble of competitive adaptive reweighted sampling algorithm. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2019, 214, 129–138. [Google Scholar] [CrossRef]
- Yang, J.; Ma, X.; Guan, H.; Yang, C.; Zhang, Y.; Li, G.; Li, Z. A recognition method of corn varieties based on spectral technology and deep learning model. Infrared Phys. Technol. 2023, 128, 104533. [Google Scholar] [CrossRef]
- Li, H.; Liang, Y.; Xu, Q.; Cao, D. Key wavelengths screening using competitive adaptive reweighted sampling method for multivariate calibration. Anal. Chim. Acta 2009, 648, 77–84. [Google Scholar] [CrossRef] [PubMed]
- GB/T 5009.3-2016; National Standard for Food Safety Determination of Moisture in Food. China Standard Press: Beijing, China, 2016.
- Engelmann, L.; Bierl, R.; Kirchhoff, M.; Ries, J.B. Application of mid-infrared spectroscopy for soil analysis in calcareous Argania spinosa forests in Morocco. Geoderma Reg. 2025, 42, e00964. [Google Scholar] [CrossRef]
- Xu, T.; Wei, Z.; Xu, X.; Li, Z.; Rao, X. Study on the Evolution Mechanism of Spectral Features of Initial Damage in Apples. J. Food Bioprocess Technol. 2024, 18, 1377–1389. [Google Scholar] [CrossRef]
- Xie, D.D.; Guo, W.C.; Gao, M.J.; Liu, D.Y. Optical Properties of Strawberry Fruit and Their Relationship with Soluble Solids Content and Moisture Content. J. Food Sci. 2021, 42, 41–46. [Google Scholar]
- Guo, Y. Information Technology Based Wave Correction of Track Dynamic Inspection Data. J. Railw. Eng. 2022, 39, 46–49. [Google Scholar]









| Moisture Gradient (%) | Spectral Features | H | F | FL | FR | L | R | A |
|---|---|---|---|---|---|---|---|---|
| 25–40 | R1a | 0.30 | 0.03 | 0.31 | 0.12 | 0.18 | 0.08 | 0.35 |
| R1b | 0.19 | 0.04 | 0.17 | 0.03 | 0.07 | 0.13 | 0.21 | |
| 40–55 | R2a | 0.20 | 0.26 | 0.10 | 0.03 | 0.24 | 0.25 | 0.30 |
| R2b | 0.17 | 0.26 | 0.02 | 0.01 | 0.12 | 0.20 | 0.30 | |
| 55–70 | R3a | 0.05 | 0.07 | 0.01 | 0.14 | 0.16 | 0.12 | 0.10 |
| R3b | 0.13 | 0.09 | 0.07 | 0.06 | 0.01 | 0.11 | 0.15 |
| Moisture Gradient (%) | Sample Set | Data Range | Average Value | Standard Deviation | Coefficient of Variation |
|---|---|---|---|---|---|
| 25–40 | calibration set | 25.24–39.94 | 33.02 | 3.86 | 0.12 |
| prediction set | 25.21–39.22 | 33.21 | 3.48 | 0.10 | |
| 40–55 | calibration set | 40.03–54.89 | 47.38 | 3.66 | 0.08 |
| prediction set | 41.96–53.63 | 48.37 | 2.92 | 0.06 | |
| 55–70 | calibration set | 55.21–67.98 | 60.15 | 3.22 | 0.05 |
| prediction set | 55.82–64.85 | 59.63 | 2.06 | 0.03 |
| Moisture Gradient (%) | Characteristic Band | Highly Correlated Morphological Feature Parameters |
|---|---|---|
| 25–40 | R1a | A, FL, H, L |
| R1b | A, H, FL, R | |
| 40–55 | R2a | A, F, R, L |
| R2b | A, F, R, H | |
| 55–70 | R3a | L, FR, R, A |
| R3b | A, H, R, F |
| Feature Selection Methods | Number of Variables | Calibration Set | Prediction Set | |||
|---|---|---|---|---|---|---|
| Rc | RMSEC | Rp | RMSEP | RPIQ | ||
| CARS | 50 | 0.9384 | 1.3447 | 0.7920 | 2.0434 | 2.3418 |
| CARS + R1a | 57 | 0.9345 | 1.3597 | 0.8775 | 1.9371 | 2.5013 |
| CARS + R1b | 57 | 0.9516 | 1.1772 | 0.7905 | 2.3721 | 1.8508 |
| CARS + PearsonR1a | 54 | 0.9305 | 1.4086 | 0.8688 | 1.7985 | 2.5371 |
| CARS + PearsonR1b | 54 | 0.9370 | 1.3471 | 0.8189 | 1.9775 | 2.2201 |
| Feature Selection Methods | Number of Variables | Calibration Set | Prediction Set | |||
|---|---|---|---|---|---|---|
| Rc | RMSEC | Rp | RMSEP | RPIQ | ||
| CARS | 56 | 0.9437 | 1.2272 | 0.8129 | 1.8291 | 2.2910 |
| CARS + R2a | 63 | 0.9442 | 1.1813 | 0.8104 | 1.8963 | 2.5978 |
| CARS + R2b | 63 | 0.9509 | 1.1397 | 0.7817 | 2.1102 | 1.7778 |
| CARS + PearsonR2a | 60 | 0.9356 | 1.2859 | 0.8243 | 1.8674 | 2.2825 |
| CARS + PearsonR2b | 60 | 0.9395 | 1.2487 | 0.8570 | 1.5443 | 2.7077 |
| Feature Selection Methods | Number of Variables | Calibration Set | Prediction Set | |||
|---|---|---|---|---|---|---|
| Rc | RMSEC | Rp | RMSEP | RPIQ | ||
| CARS | 56 | 0.9432 | 0.9996 | 0.8703 | 1.6325 | 2.4729 |
| CARS + R3a | 63 | 0.9474 | 0.9557 | 0.8615 | 1.6546 | 2.5893 |
| CARS + R3b | 63 | 0.9493 | 0.9685 | 0.8616 | 1.4721 | 2.3646 |
| CARS + PearsonR3a | 60 | 0.9423 | 1.0061 | 0.8678 | 1.5382 | 2.4193 |
| CARS + PearsonR3b | 60 | 0.9418 | 1.0107 | 0.8723 | 1.6007 | 2.5220 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, H.; Luo, H.; Liu, H.; Yu, J.; Kang, L.; Tong, Y. Quality Detection Model for Apricots (Diaoganxing) Based on Spectral Morphological Feature Fusion Across Different Moisture Intervals. Agriculture 2025, 15, 2486. https://doi.org/10.3390/agriculture15232486
Liu H, Luo H, Liu H, Yu J, Kang L, Tong Y. Quality Detection Model for Apricots (Diaoganxing) Based on Spectral Morphological Feature Fusion Across Different Moisture Intervals. Agriculture. 2025; 15(23):2486. https://doi.org/10.3390/agriculture15232486
Chicago/Turabian StyleLiu, Huaiyu, Huaping Luo, Hongyang Liu, Jinlong Yu, Lei Kang, and Yuesen Tong. 2025. "Quality Detection Model for Apricots (Diaoganxing) Based on Spectral Morphological Feature Fusion Across Different Moisture Intervals" Agriculture 15, no. 23: 2486. https://doi.org/10.3390/agriculture15232486
APA StyleLiu, H., Luo, H., Liu, H., Yu, J., Kang, L., & Tong, Y. (2025). Quality Detection Model for Apricots (Diaoganxing) Based on Spectral Morphological Feature Fusion Across Different Moisture Intervals. Agriculture, 15(23), 2486. https://doi.org/10.3390/agriculture15232486

