  We use the distance sum rule (DSR) method to constrain the spatial curvature
of the Universe with a large sample of 161 strong gravitational lensing (SGL)
systems, whose distances are calibrated from the Pantheon compilation of type
Ia supernovae (SNe Ia) using deep learning. To investigate the possible
influence of mass model of the lens galaxy on constraining the curvature
parameter $\Omega_k$, we consider three different lens models. Results show
that a flat Universe is supported in the singular isothermal sphere (SIS) model
with the parameter $\Omega_k=0.049^{+0.147}_{-0.125}$. While in the power-law
(PL) model, a closed Universe is preferred at $\sim 3\sigma$ confidence level,
with the parameter $\Omega_k=-0.245^{+0.075}_{-0.071}$. In extended power-law
(EPL) model, the 95$\%$ confidence level upper limit of $\Omega_k$ is $<0.011$.
As for the parameters of the lens models, constrains on the three models
indicate that the mass profile of the lens galaxy could not be simply described
by the standard SIS model.
