The strapdown inertial navigation system/Doppler velocity log (SINS/DVL)-based localization system provides high positioning accuracy under the bottom-track mode. However, once the DVL loses bottom tracking capability, inertial navigation errors rapidly accumulate. This paper proposes an underwater robot localization method based on ocean current modeling. During the bottom-track mode, an ocean current model is established using the robot’s motion information, including acceleration, velocity relative to water, angular velocity, angular acceleration, attitude, and propulsion force. After bottom-tracking failure, the proposed method estimates the ocean current from the identified model parameters using water-track measurements. The estimated ocean current velocity is used to compensate the DVL-measured velocity relative to water, and the reconstructed ground velocity is used as the measurement vector of the EKF. Measurement updates suppress inertial velocity divergence and improve localization accuracy. Simulation results demonstrate that, without additional hardware, the proposed method significantly improves the accuracy and robustness of SINS/DVL-based localization. Compared with the advanced augmented observable quantity (AOQ) method, the proposed method improves localization accuracy by 55.48%, providing an effective solution for underwater robots operating in complex marine environments.