Abstract
With the widespread cultivation of genetically modified (GM) maize, accurate detection of GM components has become critical. This study developed three end-to-end DeepSpectra models (V1–V3) to classify GA21 maize at six GM concentrations (blank, levels 1–5). Spectral data were acquired using a terahertz time-domain spectroscopy system. Outliers were removed using an isolation forest, and the spectral data were preprocessed with Savitzky-Golay smoothing, standard normal variate transformation, baseline correction, first derivative (FD), and second derivative. Three comparison models were constructed, a support vector machine (SPA-GS-SVM) and a random forest (SPA-GS-RF) based on successive projection algorithms (SPA) and grid search (GS), as well as a one-dimensional convolutional neural network. Experimental results showed that the DeepSpectraV2 model with FD preprocessing achieved the best classification accuracy of 96.56%, outperforming the best comparative models by 1.52 to 15.52% across other preprocessing methods. This study presents a novel approach for the rapid non-destructive detection of GM crops.
Similar content being viewed by others
Acknowledgements
This work was supported by the National Natural Science Foundation of China (Nos. 61975053 and 62271191), the Natural Science Foundation of Henan Province (No. 222300420040), the Program for Science and Technology Innovation Talents in Universities of Henan Province (Nos. 22HASTIT017 and 23HASTIT024), the Open Fund Project of Key Laboratory of Grain Information Processing and Control, Ministry of Education, Henan University of Technology (KFJJ2025006). The funders had no role in the study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Jiang, Y., Wen, X., Ge, H. et al. Quantitative analysis of genetically modified maize based on terahertz spectroscopy and DeepSpectra models. npj Sci Food (2026). https://doi.org/10.1038/s41538-026-00866-9
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41538-026-00866-9


