Using DANN to Classify the Mango Varieties With NIR Spectroscopy
LI Tong-le1, CHEN Xiao2, CHEN Xiao-jing1, CHEN Xi1, YUAN Lei-ming1, SHI Wen1, HUANG Guang-zao1*
1. College of Electrical and Electronic Engineering, Wenzhou University, Wenzhou 325000, China
2. Wenzhou Institute of Industry & Science, Wenzhou 325000, China
Abstract:Different cultivars of mangoes can not only represent different qualities but also produce different economic benefits. Traditional mango variety identification methods often rely more on the experience of practitioners and are time-consuming and laborious. Therefore, how to quickly classify mango cultivars is an emerging problem that needs to be solved. Near-infrared (NIR) spectroscopy technology is a fast and non-destructive approach. Users can often identify different mangoes by combining machine learning methods with near-infrared spectroscopy data. However, the NIR spectral information of the same variety of mangoes can vary due to variations in different instruments, seasons, and years. These differences result in a different distribution between the previously measured sample data (source domain) and the newly measured sample data (target domain). Consequently, the present classification model cannot correctly classify new mango samples. Domain adaptation methods can solve this problem of model inapplicability caused by different data distributions. This article focuses on the distribution differences of mango near-infrared spectroscopy data caused by factors such as working temperature and season. The domain adaptation methods can solve the problem of model unsuitability caused by different data distributions. This article used a deep domain adaptive neural network (DANN) model to solve this problem. The DANN model effectively achieves cross-domain sample classification models by aligning features between two domains through adversarial learning. This article compared DANN with unsupervised dynamic orthogonal projection (uDOP) and joint distribution adaptation (JDA), two traditional domain adaptation methods based on statistical learning. The experimental results of applying these three methods in this article showed that the DANN model could achieve a classification accuracy of 94% for the test set in the binary classification task of mango varieties. In the multi-classification task of mango varieties, the classification accuracy of the DANN model was over 10% higher than that of uDOP and JDA. The results indicated that the DANN model could effectively solve the problem of mango variety recognition caused by the different distribution of near-infrared spectral data between two fields.
李统乐,陈 潇,陈孝敬,陈 熙,袁雷明,石 文,黄光造. 基于近红外光谱与深度域自适的芒果品种识别[J]. 光谱学与光谱分析, 2025, 45(05): 1251-1256.
LI Tong-le, CHEN Xiao, CHEN Xiao-jing, CHEN Xi, YUAN Lei-ming, SHI Wen, HUANG Guang-zao. Using DANN to Classify the Mango Varieties With NIR Spectroscopy. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(05): 1251-1256.
[1] Aly Farag El Sheikha, Isabelle Métayer, Didier Montet. Food Biotechnology, 2011, 25: 115.
[2] Nicolaï B M, Beullens K, Bobelyn E, et al. Postharvest Biol. Postharvest Biology and Technology, 2007, 46(2): 99.
[3] Rasool Khodabakhshian, Bagher Emadi, Mehdi Khojastehpour, et al. International Journal of Food Properties, 2017, 20(1): 41.
[4] Rong D, Wang H, Ying Y, et al. Electron. Computers and Electronics in Agriculture, 2020, 175: 105553.
[5] Jerome J, Workman J. Applied Spectroscopy, 2018, 72(3): 340.
[6] Wang Yongdong, Veltkamp D J, Kowalski B R. Analytical Chemistry, 1991, 63(23): 2750.
[7] Bouveresse E, Massart D L. Chemometrics and Intelligent Laboratory Systems, 1996, 32(2): 201.
[8] Du W, Chen Z P, Zhong L J. Analytica Chimica Acta, 2011, 690(1): 64.
[9] Nikzad Langerodi R, Zellinger W, Lughofer E, et al. Analytical Chemistry, 2018, 90(11): 6693.
[10] Huang G, Chen X, Li L. Chemometrics and Intelligent Laboratory Systems,2020, 201:103986.
[11] Zeaiter M, Roger J M, Bellon-Maurel V. Chemometrics and Intelligent Laboratory Systems, 2006, 80(2):227.
[12] Diaz V F, Roger J M, Saeys W. Analytica Chimica Acta, 2022, 1225:340154.
[13] Pan S J, Tsang I W, Kwok J T, et al. IEEE Transactions on Neural Networks, 2011, 22(2):199.
[14] Mishra P, Roger J M, Rutledge D N, et al. Postharvest Biology and Technology, 2020, 170: 111326.
[15] Zhao X, Liu S, Que H, et al. Sensors, 2023, 23(19).
[16] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, et al. Journal of Machine Learning Research, 2016, 17(59): 1.
[17] Rodriguez-Vazquez J, Fernandez-Cortizas M, Perez-Saura D, et al. Remote Sensing,2023, 15(6): 1700.
[18] Anderson N T, Walsh K B, Subedi P P, et al. Postharvest Biology and Technology, 2020, 168: 111202.