As the lifeline of offshore oil and gas production, a submarine pipeline requires regular safety evaluations with proper maintenance according to the evaluation results. At present, the safety factors based on regional-level commonly used factors in engineering are too many, and this leads to conservative evaluation results with a low acceptance of defects. In this paper, a risk factor evaluation index system for submarine pipeline defects is constructed through an analytic hierarchy process (AHP), and the original safety factors are corrected to achieve accurate evaluations for submarine pipeline safety. By constructing a radial basis neural network (RBFNN), the fast calculation of safety factors for other pipeline defects can be realized. Through comparison, it was found that the values obtained by the machine training were in good agreement with the real values, which reflects the accuracy of the model and provides a basis for the repair of a defective pipeline.