收藏切换
MaMoNet-Based Detection Model for Moisture Content and Hardness of Fresh Corn Using Spatially Resolved Spectroscopy
收藏切换
Min XU1, Xin ZHAO1, Yanping CHEN2, Qibing ZHU1, Min HUANG1
Smart Agriculture | 2026, 8(4) : 114 - 126
Less
收藏切换
Smart Agriculture | 2026, 8(4): 114-126
• Information Processing and Decision Making •
MaMoNet-Based Detection Model for Moisture Content and Hardness of Fresh Corn Using Spatially Resolved Spectroscopy
Full
Min XU1, Xin ZHAO1, Yanping CHEN2, Qibing ZHU1, Min HUANG1
Affiliations
  • 1.Key Laboratory of Advanced Process Control for Light Industry (Ministry of Education), Jiangnan University, Wuxi 214122, China
  • 2.Institute of Food Crops, Jiangsu Academy of Agricultural Sciences, Nanjing 210014, China
  • XU Min, E-mail:

About Author:

XU Min, E-mail:

Published: 2026-07-30 doi: 10.12133/j.smartag.SA202512025
Outline
收藏切换

[Objective] Moisture content and kernel hardness are key indicators for evaluating the eating quality and harvest maturity of fresh corn. Accurate and simultaneous prediction of the two parameters is essential for quality grading and post-harvest management. However, conventional near-infrared spectroscopy (NIRS) methods are mostly based on single-point measurements, which are easily affected by husk shielding and kernel heterogeneity, resulting in limited prediction accuracy, especially for multi-attribute estimation. Spatially resolved spectroscopy, by acquiring spectral information from multiple measurement channels, can better reflect internal quality differences of corn kernels. Nevertheless, the high dimensionality and strong correlation of spatially resolved spectral data, together with the heterogeneity between different prediction tasks, pose significant challenges to traditional modeling approaches. Therefore, the purpose of this research was to develop an effective multi-task prediction model that can fully exploit spatially resolved spectral information while balancing feature sharing and task specificity for moisture content and kernel hardness prediction in husked fresh corn. [Methods] Husk-on fresh corn samples were collected across different maturity stages to ensure sufficient variability in moisture content and kernel hardness. A multi-channel visible-near infrared spatially resolved spectroscopy system was constructed to acquire spectral signals from four spatial measurement channels at different source-detector distances. Each corn ear was segmented into multiple positions, and spectral data were collected from different spatial locations to comprehensively capture internal quality information. In total, 500 valid spectral samples were obtained and randomly divided into training, validation, and test sets at a ratio of 7:1:2. Before modeling, the raw spectral data were preprocessed using z-score standardization to eliminate scale differences among channels and wavelengths and to improve numerical stability during training. The proposed MaMoNet (Mamba-MMoE Network) model is composed of three main modules: a one-dimensional convolutional neural network (1D-CNN) for local feature extraction, a Mamba-based sequence modeling module for global dependency learning, and a Multi-gate Mixture-of-Experts (MMoE) module for task-adaptive feature allocation. First, the 1D-CNN module was employed to extract low-level local spectral patterns and reduce feature redundancy. The input spectral data were processed by two successive one-dimensional convolutional layers and down sampling was then applied to compress the spectral length, resulting in a more compact representation and reducing the computational burden for subsequent sequence modeling. Next, the compressed spectral features were fed into the Mamba module to capture long-range dependencies along the spectral dimension. Mamba is a selective state space model that enables efficient modeling of long spectral sequences by dynamically updating hidden states, allowing global spectral evolution patterns to be effectively learned with linear computational complexity. Finally, the output features of the Mamba module were input into an MMoE module to support multi-task learning of moisture content and kernel hardness. Multiple expert networks were shared across tasks, and task-specific gating networks were used to adaptively weight expert outputs, enabling flexible feature sharing and task-specific representation learning. The task-specific features were then passed to individual regression heads to generate the final predictions for moisture content and kernel hardness. To comprehensively evaluate the effectiveness of the proposed approach, MaMoNet was compared with several representative multi-task convolutional neural network models. In addition, ablation experiments were conducted by selectively removing the Mamba module or the MMoE module to analyze their individual contributions to overall performance. [Results and Discussions] Experimental results demonstrated that the proposed MaMoNet model consistently outperformed all comparison models on the test set for both prediction tasks. For moisture content prediction, MaMoNet achieved a coefficient of determination (R2) of 0.91, a root mean square error (RMSE) of 4.98%, and a residual predictive deviation (RPD) of 3.40, indicating excellent predictive accuracy and robustness. For kernel hardness prediction, the corresponding R2, RMSE, and RPD values reached 0.89, 3.46 N, and 3.06, respectively, which also surpassed those of the benchmark models. The ablation study further verified the rationality of the proposed model design. Removing both the Mamba and MMoE modules resulted in the poorest performance, whereas introducing either module individually led to noticeable improvements. The best prediction results were achieved when both modules were jointly employed, indicating that their combination was critical for achieving optimal multi-task prediction performance. These results indicated that moisture content and kernel hardness, although correlated, emphasize different spectral characteristics. The flexible feature-sharing mechanism enabled by MMoE allows the model to balance information sharing and task specificity, while the Mamba module ensures effective utilization of long-range spectral information. Together, they contribute to improved generalization performance under limited sample conditions. [Conclusions] This study proposes a MaMoNet model that integrates Mamba-based state space modeling with an MMoE-based multi-task learning strategy for simultaneous prediction of moisture content and kernel hardness in husked fresh corn using spatially resolved spectroscopy. The proposed approach effectively overcomes the limitations of conventional single-point spectral analysis and rigid parameter-sharing multi-task models. Experimental comparisons and ablation analyses confirm that MaMoNet achieves improved accuracy, robustness, and generalization capability. The results demonstrate the potential of the proposed framework for rapid and non-destructive quality assessment of fresh corn and provide useful methodological insights for multi-attribute prediction based on high-dimensional spectral data.

fresh corn  /  multi-channel Vis-NIR spectroscopy  /  Mamba network  /  multi-task learning  /  quality prediction
许敏, 赵鑫, 陈艳萍, 朱启兵, 黄敏. 基于空间分辨光谱的鲜食玉米含水率和硬度MaMoNet检测模型. 智慧农业(中英文), 2026 , 8 (4) : 114 -126 . DOI: 10.12133/j.smartag.SA202512025
Min XU, Xin ZHAO, Yanping CHEN, Qibing ZHU, Min HUANG. MaMoNet-Based Detection Model for Moisture Content and Hardness of Fresh Corn Using Spatially Resolved Spectroscopy[J]. Smart Agriculture, 2026 , 8 (4) : 114 -126 . DOI: 10.12133/j.smartag.SA202512025
  • Jiangsu Provincial Agricultural Science and Technology Independent Innovation Fund (CX [23] 3129)
Year 2026 volume 8 Issue 4
130
56
Cite this Article
BibTeX
Article Info
doi: 10.12133/j.smartag.SA202512025
  • Receive Date:2025-12-26
  • Online Date:2026-10-16
  • Published:2026-07-30
Article Data
Affiliations
History
  • Received:2025-12-26
Funding
Jiangsu Provincial Agricultural Science and Technology Independent Innovation Fund (CX [23] 3129)
Affiliations
    1.Key Laboratory of Advanced Process Control for Light Industry (Ministry of Education), Jiangnan University, Wuxi 214122, China
    2.Institute of Food Crops, Jiangsu Academy of Agricultural Sciences, Nanjing 210014, China

Corresponding:

HUANG Min, E-mail:
References
Share
https://castjournals.cast.org.cn/joweb/zhny/EN/10.12133/j.smartag.SA202512025
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数
科
Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)
属
Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT