Rapid monitoring of pathogens is crucial for preventing foodborne diseases, thus making it an urgent need to develop efficient, fast, and simple methods for on-site detection of multiple pathogens. With advances in SERS-based label-free biosensors and machine learning, progress is evident, yet challenges such as complex substrates and limited model interpretability persist. In this work, we reported a novel dendrimer-based platform that integrated surface-enhanced Raman scattering (SERS) with class-incremental learning (CIL) for quick and simultaneous detection of four pathogenic bacteria, namely Escherichia coli, Salmonella Paratyphi B, Pseudomonas aeruginosa, and Staphylococcus aureus. First, the poly(amidoamine) (PAMAM)-based gold nanoassemblies on silicon wafer (PGNAs/Si) was designed as a highly active SERS substrate with an easy fabrication process. Compared with naked gold nanoparticles, both sensitivity and repeatability were improved by introducing a controllable dendritic nanostructure with ultra-small internal nanogaps. The detection limits of four pathogens in water, food, and dietary supplement matrices were all on the order of 10 CFU/mL. Subsequently, to analyze the complex SERS spectra and distinguish samples with different pathogens, CIL models were established using the light gradient boosting machine (LightGBM) algorithm. Notably, the discriminative models demonstrated excellent classification performance with an accuracy of over 93.44 %. Further, the SHapley Additive exPlanations (SHAP) method was utilized to identify the key SERS features in accurately discriminating different pathogens. Together, these results demonstrate that the dendrimer-based platform, by integrating SERS with CIL, can rapidly detect four pathogenic bacteria, underscoring its potential for food safety testing or quality monitoring in medical supplies manufacturing.