In this paper, the technique of image recognition algorithm is used to conduct an in-depth study and analysis of the intelligent classification and recycling system of solid waste and to optimize the design of its system. The network structure and detection principle of the YOLO target detection algorithm based on convolutional neural nets are analysed, images of construction solid waste are collected as a dataset, and the image dataset is expanded using data enhancement techniques, and the target objects in the dataset are labelled and used to train their own YOLO detection models. To facilitate testing the images and to design a YOLO algorithm-based construction solid waste target detection system. Using the detection system for construction solid waste recognition, the YOLO model can accurately detect the location, class, and confidential information of the target object in the image. Image recognition is a technique to recognize images by capturing real-life images through devices and performing feature extraction, and this technique has been widely used since its inception. The deep learning-based classification algorithm for recyclable solid waste studied in this paper can classify solid waste efficiently and accurately, solving the problem that people do not know how to classify solid waste in daily life. The convolutional layer, pooling layer, and fully connected layer in a convolutional neural network are responsible for feature extraction, reducing the number of parameters, integrating features into high-level features, and finally classifying them by SoftMax classifier in turn. However, the actual situation is intricate and often the result is not obtained as envisioned, and the use of migration learning can be a good way to improve the overfitting phenomenon. In this paper, the combination of lazy optimizer and lookahead can improve the generalization ability and fitting speed as well as greatly improve the accuracy and stability. The experimental results are tested, and it is found that the solid waste classification accuracy can be as high as 95% when the VGG19 model is selected and the optimizer is combined.