We proposed a novel method for predicting the service life of optical cables based on the Autoformer model combined with the calculation method. Leveraging historical weather data from Guangzhou and employing specific cable length calculation techniques, our study comprehensively considers factors impacting cable lifespan. Moreover, through comparative analysis with alternative deep learning models and parameter assessments, our method validates the superiority and stability of the Autoformer model in predicting cable lifespan, which can offer a more reliable approach for ensuring cable techno...