For the closure of the subgrid-scale (SGS) stress tensor, an artificial neural network (ANN)-based SGS model that takes account of the inverse energy cascade in isotropic turbulence is developed. The data required for training this ANN-based SGS model are provided by direct numerical simulation of isotropic turbulence with an inverse energy cascade. Two input features, the root mean square of the rate-of-strain tensor and the product of the eigenvalues of the rate-of-strain tensor, are employed to characterize the inverse energy cascade. An a priori test reveals that the ANN-based model adequately predicts the SGS stress tensor in the backward energy transfer process, and the predictive capability of the gradient model is found to be slightly poorer than that of the ANN-based model, while that of the Smagorinsky model is not satisfactory. In comparison with the gradient model, the ANN-based model even predicts a few backward energy transfer events in the stage of excessive energy dissipation. In addition, the off-diagonal component of the SGS stress tensor, rather than the diagonal component, may be intimately associated with the inverse energy cascade. The ANN-based SGS model presented here is expected to provide inspiration for future investigations of the construction of SGS models that take account of the inverse energy cascade.