Abstract:A rapid early diagnosis model for banana leaf spot disease was constructed and evaluated by combining spectral optimization methods with a Transformer model. The investigation was motivated by the fact that banana leaf spot disease is among the most common fungal diseases that damage banana leaves. It is widely recognized that early diagnosis,achieved before symptom manifestation,is crucial for enabling precise early intervention and optimized pesticide use. The hyperspectral images of healthy,diseased,and asymptomatic samples were collected,and the average spectral data of region of interest between 400 nm and 900 nm bands was extracted. In response to the problem of mutual interference in hyperspectral data of banana leaf spot disease with different severity levels,as well as the decrease in prediction accuracy caused by the large number of bands,large data volume,and complex spectral bands,spectral preprocessing methods and feature band selection methods were studied. Four preprocessing algorithms,Savitzky-Golay convolution smoothing (SG),standard normal transformation (SNV),first derivative (D1),and multiple scattering correction (MSC),and their combined model effects were compared and analyzed. Principal component analysis (PCA),continuous projection algorithm (SPA),and competitive adaptive reweighting algorithm (CARS) were used for feature wavelength extraction. By combining these methods,a total of 30 spectral processing methods were obtained,which were then combined with the Transformer model with center loss added to establish optimized discriminant models. Based on the average accuracy of the established discriminant models,the optimal spectral processing method suitable for early detection of banana leaf spot disease was finally selected. The research results showed that the classification accuracy of optimized spectral data using 22 spectral processing methods was significantly improved compared with the overall classification accuracy of 79.57% for the original data. The optimal spectral processing method was SG-D1-CARS,combined with the confusion matrix. The Transformer model constructed based on optimized spectral data achieved an overall accuracy of 91.78%,an improvement of 12.21 percentage points compared with that of the unoptimized spectral model. The experimental results indicated that the proposed method can effectively detect banana leaf spot disease in the early stage. By combining various preprocessing and feature extraction methods based on optimization objectives,the modeling effect can be effectively improved,providing theoretical and technical support for non-destructive,accurate,and intelligent detection of crop diseases.