Application of spectral preprocessing and machine learning models for discriminating nitrogen levels in cucumber production

Nitrogen is one of the most essential macronutrients for plant growth, and its improper management can reduce fertilizer use efficiency while causing significant economic and environmental consequences. In this study, a hyperspectral imaging–based machine learning framework was developed and evaluated to classify different nitrogen fertilizer levels in cucumber leaves (cv. Super Arshiya-F1). Nitrogen treatments consisted of 30%, 60%, and 90% additional nitrogen applied to a nutrient solution with a base concentration of 2 g L⁻¹. Seventy-two hours after treatment application, a total of 300 leaves were collected from the treated plants, and hyperspectral images were acquired in the spectral range of 400–1100 nm, producing 327 spectral bands for each sample. To enhance signal quality and examine the influence of spectral preprocessing on class separability, three preprocessing techniques—Savitzky–Golay filtering, Multiplicative Scatter Correction (MSC), and Gaussian normalization—were applied exclusively to the training dataset and subsequently transferred to the independent test set. Three machine learning algorithms, including Support Vector Machine (SVM), Linear Discriminant Analysis (LDA), and Decision Tree (DT), were evaluated using a 75/25 training–testing split along with five-fold cross-validation for model optimization. The results demonstrated that SVM consistently achieved the highest classification performance across all scenarios. The best results were obtained without preprocessing and with Gaussian normalization, both reaching an overall accuracy of 94%, an F1-score of approximately 0.94, and a ROC–AUC exceeding 0.98. In contrast, LDA showed moderate performance, while DT yielded the lowest classification accuracy. These findings highlight the strong potential of integrating hyperspectral imaging with SVM for accurate discrimination of nitrogen levels and for supporting efficient nutrient management in crop production systems.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-11-07
DOI
https://doi.org/10.1038/s41598-026-79436-8
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Application of spectral preprocessing and machine learning models for discriminating nitrogen levels in cucumber production

Mohammad Vahedi Torshizi, Razieh Pourdarbani, Sajad Sabzi, Mohsen Azadbakht
2 links
Scientific Reports
Spectroscopy and Chemometric Analyses
article

Application of spectral preprocessing and machine learning models for discriminating nitrogen levels in cucumber production

Mohammad Vahedi Torshizi, Razieh Pourdarbani, Sajad Sabzi, Mohsen Azadbakht
article en

Abstract

Nitrogen is one of the most essential macronutrients for plant growth, and its improper management can reduce fertilizer use efficiency while causing significant economic and environmental consequences. In this study, a hyperspectral imaging–based machine learning framework was developed and evaluated to classify different nitrogen fertilizer levels in cucumber leaves (cv. Super Arshiya-F1). Nitrogen treatments consisted of 30%, 60%, and 90% additional nitrogen applied to a nutrient solution with a base concentration of 2 g L⁻¹. Seventy-two hours after treatment application, a total of 300 leaves were collected from the treated plants, and hyperspectral images were acquired in the spectral range of 400–1100 nm, producing 327 spectral bands for each sample. To enhance signal quality and examine the influence of spectral preprocessing on class separability, three preprocessing techniques—Savitzky–Golay filtering, Multiplicative Scatter Correction (MSC), and Gaussian normalization—were applied exclusively to the training dataset and subsequently transferred to the independent test set. Three machine learning algorithms, including Support Vector Machine (SVM), Linear Discriminant Analysis (LDA), and Decision Tree (DT), were evaluated using a 75/25 training–testing split along with five-fold cross-validation for model optimization. The results demonstrated that SVM consistently achieved the highest classification performance across all scenarios. The best results were obtained without preprocessing and with Gaussian normalization, both reaching an overall accuracy of 94%, an F1-score of approximately 0.94, and a ROC–AUC exceeding 0.98. In contrast, LDA showed moderate performance, while DT yielded the lowest classification accuracy. These findings highlight the strong potential of integrating hyperspectral imaging with SVM for accurate discrimination of nitrogen levels and for supporting efficient nutrient management in crop production systems.

Scientific Reports
Tarbiat Modares University (IR), Gorgan University of Agricultural Sciences and Natural Resources (IR), University of Mohaghegh Ardabili (IR)
Zero hunger
Openalex Percentile: Top 26%
Spectroscopy and Chemometric Analyses
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon