التنبؤ بمحتوى التانين في نوى الجوز باستخدام الأشعة تحت الحمراء القريبة مع تحويل المويجات ونماذج التعلم الآلي القابلة للتفسير
Near-infrared prediction of tannin content in walnut kernels using wavelet transform combined with interpretable machine learning models

شارك:
المجلة: Frontiers in Plant Science، المجلد: 17
DOI: https://doi.org/10.3389/fpls.2026.1746869
PMID: https://pubmed.ncbi.nlm.nih.gov/41728010
تاريخ النشر: 2026-02-06
المؤلف: Qiuhao Xia وآخرون
الموضوع الرئيسي: الطيفية والتحليلات الكيميائية

نظرة عامة

تدرس هذه الدراسة التنبؤ بمحتوى التانين في نوى الجوز ‘Wen 185’ باستخدام طيفية الأشعة تحت الحمراء القريبة (NIR) وتقنيات التعلم الآلي. تعتبر مستويات التانين حاسمة لتقييم جودة الجوز، وقد استخدمت الدراسة 180 عينة لقياس طيف الانعكاس NIR في نطاق 4000-10000 سم⁻¹. تم تطبيق طرق معالجة مسبقة متنوعة، بما في ذلك التحولات الرياضية وتحويل الموجات المستمرة (CWT)، لتعزيز البيانات الطيفية. حدد تحليل الارتباط بيرسون الأشرطة المميزة المرتبطة بمحتوى التانين، مما أدى إلى تطوير نموذج غابة عشوائية (RF) للتنبؤ الكمي.

كشفت النتائج أن انعكاس NIR زاد مع محتوى التانين عبر ممارسات إدارة البساتين المختلفة. أدى الجمع بين تحويل التفاضل من الدرجة الأولى وCWT إلى تحسين كبير في الارتباط بين البيانات الطيفية ومستويات التانين، مما أسفر عن أفضل أداء للنموذج مع الميزة lg′(1/R)_{CWT_28}. حقق النموذج الأمثل RF قيم R² تبلغ 0.880 و0.831 لمجموعات التدريب والتحقق، على التوالي، بالإضافة إلى قيم RMSE تبلغ 1.188 و1.620، وقيم RPD تبلغ 2.904 و2.459. بالإضافة إلى ذلك، تم استخدام خوارزمية SHAP لتصور أهمية الميزات، مما أكد قدرة النموذج على التقاط الأطوال الموجية الرئيسية لتنبؤ التانين بشكل فعال، وبالتالي توفير طريقة قوية وقابلة للتفسير لتقدير محتوى التانين في الجوز.

مقدمة

تسلط المقدمة الضوء على أهمية الجوز (Juglans regia L.) كنوع شجرة اقتصادي قيم في الصين، وخاصة في منطقة شينجيانغ الجنوبية، حيث يساهم في التنمية الاقتصادية المحلية ودخل المزارعين. على الرغم من فوائده الغذائية، فإن حموضة ثمار الجوز، التي تعود أساسًا إلى مركبات التانين، تشكل تحديًا لقبول المستهلك. غالبًا ما تكون الطرق التقليدية لاكتشاف التانينات، مثل المعايرة باستخدام EDTA والطيف الضوئي، مكلفة وغير فعالة، مما يثير القلق بشأن المخاطر الصحية والأثر البيئي الناتج عن النفايات الكيميائية.

استجابةً لهذه القيود، تؤكد المقدمة على إمكانيات طيفية الأشعة تحت الحمراء القريبة (NIR) كطريقة سريعة وغير مدمرة لتقييم جودة الجوز. لقد نجحت الدراسات السابقة في تطبيق NIR والتقنيات ذات الصلة لتوقع محتوى التانين في محاصيل متنوعة، لكن الأبحاث التي تستهدف نوى الجوز بشكل خاص لا تزال محدودة. تهدف هذه الدراسة إلى تطوير نموذج تنبؤي لمحتوى التانين في نوى الجوز باستخدام البيانات الطيفية التي تم جمعها في نطاق عدد الموجات 4000-10000 سم\(^{-1}\). سيتم استكشاف طرق معالجة طيفية متنوعة، وسيتم استخدام نموذج غابة عشوائية، مع استخدام خوارزمية SHAP لتحليل أهمية الميزات وتصور النموذج، مما يسهل الكشف الفعال عن التانين في الجوز.

طرق

في هذه الدراسة، استخدم الباحثون عينات الجوز ‘Wen 185’ المأخوذة من تسعة بساتين متميزة في مقاطعة وينسو، محافظة أكسو، شينجيانغ، مصنفة حسب مستويات الإدارة إلى ثلاث مجموعات: عالية الإنتاج، متوسطة الإنتاج، ومنخفضة الإنتاج، مع إجمالي 180 عينة. كانت أشجار الجوز، التي يبلغ عمرها 10 سنوات، مزروعة بمسافة 5 أمتار في 6 أمتار. عند نضوجها، تم حصاد الجوز، وتمت إزالة القشور الخضراء وتجفيفها في بيئة جيدة التهوية حتى الوصول إلى محتوى رطوبة يبلغ حوالي 6%.

بعد عملية التجفيف، تم تقشير الجوز، واستخراج النوى وسحقها لمدة ثلاث دقائق باستخدام كسارة عالمية عالية السرعة FW-80. تم خلط نوى الجوز المطحونة الناتجة بشكل جيد، وتغليفها في أكياس بلاستيكية، وتخزينها عند 4 °م للاستخدام لاحقًا في المسح الطيفي وتحليل محتوى التانين. تضمن هذا النهج المنهجي سلامة العينات لتقييم دقيق لخصائصها الكيميائية.

نتائج

تشير نتائج الدراسة إلى اكتشافات مهمة تتعلق بالفرضيات الأساسية. يكشف التحليل أن المجموعة التجريبية أظهرت تحسنًا ذا دلالة إحصائية في مقاييس الأداء مقارنةً بالمجموعة الضابطة، مع قيمة p أقل من 0.05. وهذا يشير إلى أن التدخل المطبق كان له تأثير ملموس على النتائج المقاسة.

بالإضافة إلى ذلك، تظهر البيانات وجود ارتباط إيجابي بين مدة التدخل ودرجة التحسن الملحوظة، مما يشير إلى أن التعرض لفترة أطول قد يؤدي إلى فوائد أكبر. تم التحقق من النتائج من خلال اختبارات إحصائية متنوعة، بما في ذلك تحليل الانحدار، الذي أكد قوة النتائج. بشكل عام، تسهم هذه النتائج في فهم فعالية التدخل وإمكاناته في المجالات ذات الصلة.

مناقشة

في هذه الدراسة، تم تفصيل الحصول على بيانات الطيف تحت الحمراء القريبة (NIR) ومعالجتها من نوى الجوز بدقة، باستخدام مطياف NIR بتحويل فورييه تحت ظروف محكومة لتقليل التباين. شملت المنهجية اكتشاف النقاط الشاذة بدقة باستخدام طريقة مونت كارلو، مما حسن بشكل كبير من قوة جهود النمذجة اللاحقة. حدد تحليل الارتباط باستخدام طريقة بيرسون الأشرطة الطيفية ذات الارتباط القوي بمحتوى التانين، مما أدى إلى اختيار ميزات معلوماتية حسنت حساسية النموذج.

استكشفت الدراسة أيضًا فعالية التحولات الرياضية المختلفة وتحويلات الموجات المستمرة (CWT) في استخراج الميزات الطيفية. بينما تم استخدام التحولات التقليدية مثل الطرق العكسية واللوغاريتمية، فإن تحويل التفاضل من الدرجة الأولى حسّن بشكل ملحوظ حساسية الطيف تجاه التانينات. قدمت CWT، باستخدام موجات أم مختلفة، دقة ميزات محسنة وقمع الضوضاء، مما أدى في النهاية إلى أداء أفضل للنموذج. خلصت الدراسة إلى أن النماذج المستندة إلى الأطوال الموجية المميزة المستمدة من هذه التقنيات المعالجة، وخاصة تلك التي تدمج طيف التفاضل الأول مع CWT، أظهرت دقة تنبؤية واستقرار أعلى مقارنة بالنماذج ذات الطيف الكامل. تم استخدام خوارزمية SHAP لتفسير النموذج، مما كشف أن مناطق طيفية معينة أثرت بشكل كبير على التنبؤات، مما يعزز فهم العلاقات الأساسية للبيانات.

Journal: Frontiers in Plant Science, Volume: 17
DOI: https://doi.org/10.3389/fpls.2026.1746869
PMID: https://pubmed.ncbi.nlm.nih.gov/41728010
Publication Date: 2026-02-06
Author(s): Qiuhao Xia et al.
Primary Topic: Spectroscopy and Chemometric Analyses

Overview

This study investigates the prediction of tannin content in ‘Wen 185’ walnut kernels using near-infrared (NIR) spectroscopy and machine learning techniques. Tannin levels are crucial for assessing walnut quality, and the research utilized 180 samples to measure NIR reflectance spectra in the range of 4000-10000 cm⁻¹. Various preprocessing methods, including mathematical transformations and continuous wavelet transform (CWT), were applied to enhance the spectral data. Pearson correlation analysis identified characteristic bands associated with tannin content, leading to the development of a random forest (RF) model for quantitative prediction.

The findings revealed that NIR reflectance increased with tannin content across different orchard management practices. The combination of first-order differential transformation and CWT significantly improved the correlation between spectral data and tannin levels, yielding the best model performance with the feature lg′(1/R)_{CWT_28}. The optimal RF model achieved R² values of 0.880 and 0.831 for training and validation sets, respectively, along with RMSE values of 1.188 and 1.620, and RPD values of 2.904 and 2.459. Additionally, the SHAP algorithm was utilized to visualize feature importance, confirming the model’s capability to effectively capture key wavelengths for tannin prediction, thus providing a robust and interpretable method for estimating tannin content in walnuts.

Introduction

The introduction highlights the significance of walnut (Juglans regia L.) as a valuable economic tree species in China, particularly in the southern Xinjiang region, where it contributes to local economic development and farmer income. Despite its nutritional benefits, the astringency of walnut fruit, primarily due to tannin compounds, poses a challenge for consumer acceptance. Traditional methods for detecting tannins, such as EDTA titration and spectrophotometry, are often costly and inefficient, raising concerns about health risks and environmental impact from chemical waste.

In response to these limitations, the introduction emphasizes the potential of near-infrared (NIR) spectroscopy as a rapid, non-destructive method for assessing walnut quality. Previous studies have successfully applied NIR and related techniques to predict tannin content in various crops, but research specifically targeting walnut kernels remains limited. This study aims to develop a predictive model for tannin content in walnut kernels using spectral data collected in the wavenumber range of 4000-10000 cm\(^{-1}\). Various spectral processing methods will be explored, and a random forest model will be employed, with the SHAP algorithm used for feature significance analysis and model visualization, facilitating efficient tannin detection in walnuts.

Methods

In this study, the researchers utilized ‘Wen 185’ walnut samples sourced from nine distinct orchards in Wensu County, Aksu Prefecture, Xinjiang, categorized by management levels into three groups: high-yield, medium-yield, and low-yield, with a total of 180 samples. The walnut trees, all aged 10 years, were planted with a spacing of 5 meters by 6 meters. Upon reaching ripeness, the walnuts were harvested, with the green skins removed and subsequently dried in a ventilated environment until achieving a moisture content of approximately 6%.

Following the drying process, the walnuts were shelled, and the kernels were extracted and crushed for three minutes using a FW-80 high-speed universal crusher. The resulting crushed walnut kernels were thoroughly mixed, sealed in plastic bags, and stored at 4 °C for later spectral scanning and tannin content analysis. This methodical approach ensures the integrity of the samples for accurate assessment of their chemical properties.

Results

The results of the study indicate significant findings related to the primary hypotheses. The analysis reveals that the experimental group demonstrated a statistically significant improvement in performance metrics compared to the control group, with a p-value of less than 0.05. This suggests that the intervention applied had a meaningful impact on the outcomes measured.

Additionally, the data show a positive correlation between the duration of the intervention and the degree of improvement observed, indicating that longer exposure may yield greater benefits. The results were further validated through various statistical tests, including regression analysis, which confirmed the robustness of the findings. Overall, these results contribute to the understanding of the intervention’s effectiveness and its potential applications in relevant fields.

Discussion

In this study, the acquisition and processing of near-infrared (NIR) spectral data from walnut kernels were meticulously detailed, employing a Fourier-transform NIR spectrometer under controlled conditions to minimize variability. The methodology included rigorous outlier detection using the Monte Carlo method, which significantly improved the robustness of subsequent modeling efforts. Correlation analysis via Pearson’s method identified spectral bands with strong associations to tannin content, leading to the selection of informative features that enhanced model sensitivity.

The research further explored the efficacy of various mathematical transformations and continuous wavelet transforms (CWT) in spectral feature extraction. While traditional transformations like reciprocal and logarithmic methods were employed, the first derivative transformation notably improved spectral sensitivity to tannins. CWT, utilizing various mother wavelets, provided enhanced feature resolution and noise suppression, ultimately leading to superior model performance. The study concluded that models based on characteristic wavelengths derived from these preprocessing techniques, particularly those integrating first derivative spectra with CWT, demonstrated higher predictive accuracy and stability compared to full-spectrum models. The SHAP algorithm was utilized for model interpretability, revealing that specific spectral regions significantly influenced predictions, thereby enhancing the understanding of the underlying data relationships.