Drilling risers play a crucial role in deepwater oil and gas development, and any compromise in their integrity can severely hinder the progress of drilling operations. In light of this, efficient and accurate nondestructive testing of drilling risers is paramount. However, existing inspection equipment falls short in both efficiency and accuracy, posing challenges to the sustainability of deepwater oil and gas exploration and development. To effectively assess the damage conditions of deepwater drilling risers, this study developed an inspection robot based on metal magnetic memory and researched intelligent defect recognition methods using computer vision. The robot can perform in situ inspections on drilling risers and has been successfully deployed for field application on a deepwater drilling platform. The application results demonstrate that this detection robot offers significant advantages regarding high reliability and detection efficiency. Utilizing data collected on-site, we constructed a dataset containing 1100 images that cover five typical types of defects in drilling risers, including pitting, groove corrosion, and wear. Based on this dataset, we proposed and trained a novel image classification model, SK-ConvNeXt-KAN. By deeply optimizing the ConvNeXt convolutional network incorporating the introduced SK attention module and replacing traditional linear classification layers with the KAN module, this model significantly enhanced its feature extraction capabilities and efficiency in handling complex nonlinear problems. Experimental results show that this model achieved an accuracy rate of 95.4% in identifying defects in drilling risers, which is significantly better than traditional methods. This achievement has dramatically improved the efficiency and accuracy of deepwater drilling riser inspections, providing robust technical support for deepwater oil and gas exploration and development sustainability.