The boiler is a critical component of conventional thermal power systems, where surface flaws in boiler water walls can significantly compromise safety and availability, potentially leading to substantial loss of life and property. Traditional detection methods, whether manual or based on machine learning, often prove costly, inefficient and time-consuming, failing to meet the stringent requirements for water wall inspection. Therefore, a novel surface defect detection model integrating an improved single shot multibox detector (SSD) with the optical flow method (OFM) (OFM_SSD) is proposed. The OFM enhances data sample diversity by augmenting the dataset derived from thermal power plants, while the incorporation of deconvolution techniques improves the model receptive field, thereby enhancing its ability to detect and classify small defects. Comprehensive experiments demonstrate that the OFM_SSD outperforms several existing models including the SSD model based on traditional expanded datasets (T_SSD), you only look once (YOLO), ordinary SSD, Regions with the CNN(R_CNN), and Deconvolution-only SSD (DSSD) in terms of accuracy in defect localization and classification. This advancement of the OFM_SSD not only reduces operational costs but also enhances detection capabilities, ultimately contributing to safer and more efficient operations within thermal power plants.