Spectral Classification Using Fuzzy Hyperbolic Cosine Discriminant Analysis
WU Bin1, 2*, LIU Fu-bei3, WU Xiao-hong3
1. School of Information Engineering, Chuzhou Polytechnic, Chuzhou 239000, China
2. School of Computer Science and Engineering, Southeast University, Nanjing 211102, China
3. School of Electrical and Information Engineering, Jiangsu University, Zhenjiang 212013, China
Abstract:Traditional linear discriminant analysis (LDA) has a small sample problem when directly processing high-dimensional spectral data, while hyperbolic cosine discriminant analysis (HCMDA) can solve the small sample problem. To further improve the classification accuracy of HCMDA and process noisy spectral data, a fuzzy hyperbolic cosine discriminant analysis (FHCMDA) algorithm was proposed by combining fuzzy set theory with hyperbolic cosine similarity. Furthermore, a model based on FHCMDA and K-nearest neighbors (KNN) was built to classify meat mid-infrared (MIR) spectra and apple near-infrared (NIR) spectra, respectively, and was compared with HCMDA to contrast their classification accuracies. FHCMDA calculates the fuzzy membership values by using the training samples and their means, the fuzzy intra-class scatter matrix and the fuzzy inter-class scatter matrix, the fuzzy intra-class hyperbolic cosine function and the fuzzy inter-class hyperbolic cosine function, and the eigenvector through feature decomposition. At first, MIR spectra were obtained for three meat variaties (chicken, turkey, and pork) and NIR spectra for four apple varieties (Red Fuji, Huaniu, Huangjiao, and Jiana), with 40 samples for each meat type and 50 for each apple type. Secondly, multivariate scattering correction (MSC) was applied to preprocess the NIR spectral data of apples, eliminating spectral differences caused by varying scattering levels and enhancing their correlation. Thirdly, the initial clustering centers for meat and apple were determined, and the fuzzy membership degree of each sample was calculated. The feature decomposition was completed by HCMDA and FHCMDA, respectively, using the calculated fuzzy hyperbolic cosine function to extract features from spectral data. Finally, KNN was used for classification, and the classification accuracies of HCMDA and FHCMDA were obtained and compared. The final results of this experiment were as follows: HCMDA+KNN achieved classification accuracies of 90.48% for the meat variety and 76.67% for the apple variety. The classification accuracy of FHCMDA+KNN was 97.62% for the meat variety and 91.67% for the apple variety. The above experimental results show that fuzzy hyperbolic cosine discriminant analysis combined with KNN is an effective method for identifying food varieties, with identification accuracy significantly higher than that of HCMDA+KNN.
[1] Li Y Q, Liu L, Fan Y K, et al. International Journal of Dairy Technology, 2024, 77(2): 304.
[2] Fattahi S H, Kazemi A, Khojastehnazhand M, et al. Expert Systems with Applications, 2024, 239: 122175.
[3] Wu X H, Zhang T F, Wu B, et al. International Journal of Agricultural and Biological Engineering, 2022, 15(3): 217.
[4] Sun J, Ge X, Wu X H, et al. Journal of Food Process Engineering, 2018, 41(6) : e12816.
[5] Liu X S, Zhang S Y, Si L T, et al. Journal of Near Infrared Spectroscopy, 2020, 28(1): 10.
[6] Wang J Y, Guo Z M, Zou C X, et al. Journal of Food Measurement and Characterization, 2022, 16(4): 2582.
[7] Qu L X, Pei Y. Processes. 2024, 12(7): 1382.
[8] RAN Rui-sheng, ZHANG Shou-gui, REN Yin-shan, et al(冉瑞生, 张守贵, 任银山, 等). Application Research of Computers(计算机应用研究), 2020, 37(8): 2517.
[9] Murthy K R, Ghosh A, Expert Systems with Applications, 2017, 81: 88.
[10] Liu T T, Song Y, Liu H, et al. Infrared Physics & Technology, 2024, 141: 105506.
[11] Al-Jowder O, Kemsley E K, Wilson R H. Food Chemistry, 1997, 59(2): 195.
[12] Wu X H, Zhou H, Wu B, et al. Journal of Food Processing and Preservation, 2020, 44: e14561.
[13] Zheng W, Fu X, Ying Y. Chemometrics and Intelligent Laboratory Systems, 2014, 139: 42.
[14] Silalahi D D, Midi H, Arasan J, et al. Vibrational Spectroscopy, 2018, 97: 55.
[15] Nayak S K, Panda M, Palai G. Optik, 2020, 212: 164675.