Improving accuracy and generalization in single kernel oil characteristics prediction in maize using NIR-HSI and a knowledge-injected spectral tabtransformer

Near-infrared spectroscopy hyperspectral imaging (NIR-HSI) is widely used for seed component prediction due to its non-destructive and rapid nature. However, existing models often suffer from limited generalization, particularly when trained on small datasets, and there is a lack of effective deep learning (DL) models for spectral data analysis. To address these challenges, we propose the Knowledge-Injected Spectral TabTransformer (KIT-Spectral TabTransformer), an innovative adaptation of the traditional TabTransformer specifically designed for maize seeds. By integrating domain-specific knowledge, this approach enhances model training efficiency and predictive accuracy while reducing reliance on large datasets. The generalization capability of the model was rigorously validated through ten-fold cross-validation (10-CV). Compared to traditional machine learning methods, the attention-based CNN (ACNNR), and the Oil Characteristics Predictor Transformer (OCP-Transformer), the KIT-Spectral TabTransformer demonstrated superior performance in oil mass prediction, achieving R p 2 = 0.9238 ± 0.0346, RMSE p = 0.1746 ± 0.0401. For oil content, R p 2 = 0.9602 ± 0.0180 and RMSE p = 0.5301 ± 0.1446 on a dataset with oil content ranging from 0.81 % to 13.07 %. On the independent validation set, our model achieved R 2 values of 0.7820 and 0.7586, along with RPD values of 2.1420 and 2.0355 in the two tasks, highlighting its strong prediction capability and potential for real-world application. These findings offer a potential method and direction for single seed oil prediction and related crop component analysis. • The KIT-Spectral TabTransformer model achieved accurate predictions of oil mass and content rate for individual maize seeds. • It outperforms ACNNR and OCP-transformer in accuracy on datasets with oil content rates ranging from 0.81 % to 13.07 %. • Our model demonstrates excellent generalization ability and convergence speed. • The end-to-end design eliminates cumbersome processes.

Authors

Institutions

Publication Details

Journal
Artificial Intelligence in Agriculture
Published
2025-06-11
DOI
https://doi.org/10.1016/j.aiia.2025.05.007
Citations
5
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
3.76

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Improving accuracy and generalization in single kernel oil characteristics prediction in maize using NIR-HSI and a knowledge-injected spectral tabtransformer

Xinyu Guo, Anran Song, Weiliang Wen, Chuanyu Wang et al.
5 citations
Artificial Intelligence in Agriculture
Spectroscopy and Chemometric Analyses
3.76
article

Improving accuracy and generalization in single kernel oil characteristics prediction in maize using NIR-HSI and a knowledge-injected spectral tabtransformer

Xinyu Guo, Anran Song, Weiliang Wen, Chuanyu Wang, Chunjiang Zhao, Xiaoqian Chen, Juan Wang, Shenghao Gu
article en
5 citations

Abstract

Near-infrared spectroscopy hyperspectral imaging (NIR-HSI) is widely used for seed component prediction due to its non-destructive and rapid nature. However, existing models often suffer from limited generalization, particularly when trained on small datasets, and there is a lack of effective deep learning (DL) models for spectral data analysis. To address these challenges, we propose the Knowledge-Injected Spectral TabTransformer (KIT-Spectral TabTransformer), an innovative adaptation of the traditional TabTransformer specifically designed for maize seeds. By integrating domain-specific knowledge, this approach enhances model training efficiency and predictive accuracy while reducing reliance on large datasets. The generalization capability of the model was rigorously validated through ten-fold cross-validation (10-CV). Compared to traditional machine learning methods, the attention-based CNN (ACNNR), and the Oil Characteristics Predictor Transformer (OCP-Transformer), the KIT-Spectral TabTransformer demonstrated superior performance in oil mass prediction, achieving R p 2 = 0.9238 ± 0.0346, RMSE p = 0.1746 ± 0.0401. For oil content, R p 2 = 0.9602 ± 0.0180 and RMSE p = 0.5301 ± 0.1446 on a dataset with oil content ranging from 0.81 % to 13.07 %. On the independent validation set, our model achieved R 2 values of 0.7820 and 0.7586, along with RPD values of 2.1420 and 2.0355 in the two tasks, highlighting its strong prediction capability and potential for real-world application. These findings offer a potential method and direction for single seed oil prediction and related crop component analysis. • The KIT-Spectral TabTransformer model achieved accurate predictions of oil mass and content rate for individual maize seeds. • It outperforms ACNNR and OCP-transformer in accuracy on datasets with oil content rates ranging from 0.81 % to 13.07 %. • Our model demonstrates excellent generalization ability and convergence speed. • The end-to-end design eliminates cumbersome processes.

Artificial Intelligence in AgricultureVol. 15(4)
Digital China Health (China) (CN), National Engineering Research Center for Information Technology in Agriculture (CN), University of Science and Technology Beijing (CN)
Ministry of Science and Technology of the People's Republic of China, Beijing Academy of Agricultural and Forestry Sciences, National Key Research and Development Program of China
Zero hunger
Openalex Percentile: Top 7%
Spectroscopy and Chemometric Analyses
3.76
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.