This study addresses antibiotic pollution in global water bodies by integrating machine learning and optimization algorithms to develop a novel reverse synthesis strategy for inorganic catalysts. We meticulously analyzed data from 96 studies, ensuring quality through preprocessing steps. Employing the AdaBoost model, we achieved 90.57% accuracy in classification and an R²value of 0.93 in regression, showcasing strong predictive power. A key innovation is the Sparrow Search Algorithm (SSA), which optimizes catalyst selection and experimental setup tailored to specific antibiotics. Empirical experiments validated SSA's efficacy, with degradation rates of 94% for Levofloxacin and 97% for Norfloxacin, aligning closely with predictions within a 2% margin of error. This research advances theoretical understanding and offers practical applications in material science and environmental engineering, significantly enhancing catalyst design efficiency and accuracy through the fusion of advanced machine learning techniques and optimization algorithms.