## 2 Materials and Methods
### Data Acquisition and Preprocessing  
#### 2.2.1 Acquisition of Raman Spectrum Data  
Due to changes in the external environment and other circumstances, whiteleg shrimp are frequently susceptible to infections produced by pathogenic bacteria during the shrimp farming process, leading to disease and death. After reviewing the relevant literature, this study selected four common whiteleg shrimp pathogens: _Vibrio parahaemolyticus_, _Escherichia coli_, _Aeromonas hydrophilla_, and _Aeromonas veronii_. _Vibrio parahaemolyticus_ is the most common pathogen in whiteleg shrimp farming, with infected shrimp turning white-grayish red and having a high mortality rate [29]. _Escherichia coli_[30] and _Aeromonas hydrophilla_ are among the causes of bacterial shrimp enteritis, which can lead to slow growth, significant body weight loss, and even death in severe cases. _Aeromonas veronii_ has also been identified as a pathogen that is commonly isolated from infected and dead shrimp [31].  
This study selected the above four pathogens as the research objects for the classification task. We obtained pathogen samples from the National Pathogen Collection Center for Aquatic Animals (NPCCAA) at Shanghai Ocean University, all of which were extracted from diseased whiteleg shrimps. They were then inoculated into LB (Luria Bertani) liquid medium and cultivated for 24 h at 37 \({}^{\circ}\)C before being rinsed with PBS and centrifuged. The bacterium solution that resulted was then kept at 4 \({}^{\circ}\)C. To prepare in situ coated  
Figure 1: The framework of the proposed network. The top layer is the RSEM module, the middle is the RSDM module, and the bottom is the DLCM module.  
silver nanoparticles, the bacteria solution was centrifuged to remove the supernatant, and the resulting pellet was resuspended in nitric acid solution. After thorough shaking and mixing, sodium hydroxide solution was added to further shake and mix, forming the in situ-coated silver nanoparticles. This process is known as surface enhancement, and it attempts to adhere the silver colloid to the bacterial surface, thereby boosting the bacteria's Raman signal and keeping low bacterial density from preventing Raman spectroscopy from being obtained.  
Additionally, we used the LabRAM HR Evolution Confocal Raman Microscope (HORIBA, Kyoto, Japan, 532 nm excitation wavelength) to obtain the Raman spectra of the samples. After adding an appropriate amount of surface enhanced bacteria, drops were placed on the center of the microscope slide, and the Raman spectroscopy was used to collect spectral data after the sample dried. Each sampling point was collected 3 times, and the average value of the 3 collected data was used as the Raman spectroscopy data for that point. This process was repeated to obtain a total of 160 Raman spectroscopy data points for the four bacteria. Specifically, each microorganism is assigned 40 spectral data points, with each wavelength range selected from the range of 1289 cm\({}^{-1}\) to 4000 cm\({}^{-1}\), totaling 1600 spectral features. After obtaining the Raman intensity of each feature (wavelength value), these 1600 points can be connected to obtain the final Raman spectral curve.