The use of Disturbance Observer-based (DOB) control is widespread in stabilizing the electromagnetic field in superconducting radio frequency cavities to facilitate beam acceleration in particle accelerators. Repetitive disturbances such as beam loading and Lorentz force cavity detuning are compensated by DOB control, and their suppression is enhanced through the incorporation of a learning scheme into the conventional disturbance observer. This paper evaluated the performance of a learning-based disturbance observer for compensating beam loading and cavity detuning in pulsed superconducting radio frequency cavities and proposes modifications for better field stability. A superconducting cavity baseband model for π-mode was simulated in Matlab/Simulink with a trapezoidal beam pulse as the input disturbance and different cavity detuning values to analyze the controllers’ performance. The simulations were conducted for multiple observer filter bandwidths to evaluate the performance of the learning-based disturbance observer under plant model uncertainties and different detuning values. The results demonstrate that the learning-based disturbance observer yields faster convergence to the reference input and lower tracking errors during the flat top of pulse voltage in comparison to conventional disturbance observer control.