Abstract
Mobile Edge Computing (MEC) is a technology that provides computing services to mobile users by deploying edge servers at base stations, and it has become an important tool for enhancing user service experience. Due to limited resources and user mobility, service migration among edge servers becomes an effective way to maintain user service latency. However, frequent service migrations and resource competition among users result in additional energy consumption, significantly increasing the operational costs of service providers. In complex dynamic and resource-competitive scenarios, considering migration energy consumption as an independent core optimization objective comparable to service latency and making adaptive online migration decisions pose significant challenges and remain underexplored. In this paper, we propose a systematic new approach to address the service migration challenges in MEC from the perspectives of theoretical modeling, algorithm design, and mechanism innovation, namely a delay- and energy-aware adaptive service migration method. Firstly, we model service migration as a constrained (resource competition) bi-objective optimization problem (minimizing service latency and migration energy consumption), which can be formulated as a mixed-integer nonlinear programming problem. Then, given the NP-hard nature of this problem, network dynamics, differences in user mobility patterns, and the real-time requirements of migration decisions, we design a migration model based on Deep Q-Network (DQN), referred to as NPER-D3QN. This model integrates elements of D3QN, Noisy Net, and prioritized experience replay, enabling the generation of adaptive migration strategies with low latency and low energy consumption according to real-time network states, user mobility patterns, and server loads. Finally, we conduct simulation experiments comparing our proposed service migration method with existing typical and advanced methods. The results demonstrate that our method exhibits superior performance in terms of latency and energy efficiency, showing certain advantages in dynamic adaptation and multi-objective collaborative optimization.
Similar content being viewed by others
Data availability
All data generated or analysed during this study are included in this published article and its supplementary information files.
References
Ning, Z. et al. Mobile edge computing and machine learning in the internet of unmanned aerial vehicles: A survey. ACM Comput. Surv. 56, 13:1-13:31 (2024).
Liu, F., Yu, H., Huang, J. & Taleb, T. Joint service migration and resource allocation in edge IOT system based on deep reinforcement learning. IEEE Internet Things J. 11, 11341–11352 (2024).
Yuan, Y. et al. Service migration optimization for system overhead minimization in vecns via deep reinforcement learning. IEEE Internet Things J. 12, 3905–3920 (2025).
Peng, Y. et al. Computing and communication cost-aware service migration enabled by transfer reinforcement learning for dynamic vehicular edge computing networks. IEEE Trans. Mob. Comput. 23, 257–269 (2024).
Huang, X. et al. Optimizing task migration for public and private services in vehicular edge networks: A dual- layer graph neural network approach. IEEE Trans. Mob. Comput. 24, 13191–13208 (2025).
Han, Y., Li, X. & Zhou, Z. Dynamic task offloading and service migration optimization in edge networks. Int. J. Crowd Sci. 7, 16–23 (2023).
Tsourdinis, T., Makris, N., Fdida, S. & Korakis, T. Drl-based service migration for mec cloud-native 5g and beyond networks. In Network Softwarization. 62–70 (2023).
Kang, J. et al. UAV-assisted dynamic avatar task migration for vehicular metaverse services: A multi-agent deep reinforcement learning approach. IEEE/CAA J. Autom. Sin. 11, 430–445 (2024).
Li, X., Zhou, Z., Wang, Y., Deng, S. & Hung, P. C. K. Service migration for delay-sensitive IOT applications in edge networks. IEEE Trans. Serv. Comput. 18, 1782–1797 (2025).
Gao, Z., Yang, L. & Dai, Y. VRCCS-AC: Reinforcement learning for service migration in vehicular edge computing systems. IEEE Trans. Serv. Comput. 17, 4436–4450 (2024).
Wang, C. et al. AI-enabled spatial-temporal mobility awareness service migration for connected vehicles. IEEE Trans. Mob. Comput. 23, 3274–3290 (2024).
Li, C., Zhang, Q. & Luo, Y. A jointly non-cooperative game-based offloading and dynamic service migration approach in mobile edge computing. Knowl. Inf. Syst. 65, 2187–2223 (2023).
Cao, B. et al. Smart: Cost-aware service migration path selection based on deep reinforcement learning. IEEE Trans. Intell. Transp. Syst. 25, 12421–12436 (2024).
Wang, C. et al. AI-enabled spatial-temporal mobility awareness service migration for connected vehicles. IEEE Trans. Mobile Comput. 23, 3274–3290 (2024).
Zheng, G., Navaie, K., Ni, Q., Pervaiz, H. & Zarakovitis, C. Energy-efficient secure dynamic service migration for edge-based 3-D networks. Telecommun. Syst. 85, 477–490 (2024).
Zhang, X. et al. Optimization of Service Migration Decisions in Mobile Edge Computing Based on Markov Decision Processes. In The 3rd International Joint Conference on Information and Communication Engineering. 92–96 (2024).
Park, S. W., Boukerche, A. & Guan, S. A novel deep reinforcement learning based service migration model for mobile edge computing. In IEEE/ACM International Symposium on Distributed Interactive Simulation and Real-Time Applications. 1–8 (2020).
Shi, Y. et al. Service migration or task rerouting: A two-timescale online resource optimization for MEC. IEEE Trans. Wirel. Commun. 23, 1503–1519 (2024).
Wang, J., Hu, J. & Min, G. Online service migration in edge computing with incomplete information: A deep recurrent actor-critic method. In Computing Research Repository. arXiv:2012.08679 (2020).
Mwasinga, L. J. et al. RASM: Resource-aware service migration in edge computing based on deep reinforcement learning. J. Parallel Distrib. Comput. 182, 10745 (2023).
Zhou, X., Ge, S., Qiu, T., Li, K. & Atiquzzaman, M. Energy-efficient service migration for multi-user heterogeneous dense cellular networks. IEEE Trans. Mobile Comput. 22, 890–905 (2023).
Kumar, P. S., Kumar, P. S. & Satyabrata, D. Dynamic service migration and resource management for vehicular clouds. Ambient Intell. Hum. Comput. 12, 1227–1247 (2020).
Anwar, M. R., Wang, S., Akram, M. F., Raza, S. & Mahmood, S. 5G-enabled MEC: A distributed traffic steering for seamless service migration of internet of vehicles. IEEE Internet Things J. 9, 648–661 (2022).
Chen, J. et al. Multi-agent deep reinforcement learning for dynamic avatar migration in AIOT-enabled vehicular metaverses with trajectory prediction. CoRR arXiv:2306.14683 (2023).
Zhao, X. et al. MAPSM: Mobility-aware proactive service migration framework for mobile-edge computing in consumer internet of vehicles. IEEE Trans. Consumer Electron. 71, 3753–3766 (2025).
Chen, Z. et al. Mobility-aware seamless service migration and resource allocation in multi-edge IOV systems. IEEE Trans. Mob. Comput. 24, 6315–6332 (2025).
Li, X., Chen, S., Zhou, Y., Chen, J. & Feng, G. Intelligent service migration based on hidden state inference for mobile edge computing. IEEE Trans. Cognit. Commun. Netw. 8, 380–393 (2022).
Chen, W. et al. MSM: Mobility-aware service migration for seamless provision: A data-driven approach. IEEE Internet Things J. 10, 15690–15704 (2023).
Peng, Y. et al. Computing and communication cost-aware service migration enabled by transfer reinforcement learning for dynamic vehicular edge computing networks. IEEE Trans. Mobile Comput. 23, 257–269 (2024).
Fan, Q., Chen, L., You, C., Chen, Y. & Yin, H. Dependency-aware service migration for backhaul-free vehicular edge computing networks. IEEE Trans. Veh. Technol. 73, 1337–1352 (2024).
Labriji, I. et al. Mobility aware and dynamic migration of MEC services for the internet of vehicles. IEEE Trans. Netw. Serv. Manag. 18, 570–584 (2021).
Bozkaya-Aras, E. Optimizing service migration in IOT edge networks: Digital twin-based computation and energy-efficient approach. In 2025 IEEE Wireless Communications and Networking Conference (WCNC), Milan, Italy, March 24-27, 2025. 1–6 (2025).
Yin, L., Li, P. & Luo, J. Smart contract service migration mechanism based on container in edge computing. J. Parallel Distrib. Comput. 152, 157–166 (2021).
Cui, Y. et al. Multi-user reinforcement learning based task migration in mobile edge computing. Front. Comput. Sci. 18 (2024).
Haris, R. M., Khan, K. M., Nhlabatsi, A. & Barhamgi, M. A machine learning-based optimization approach for pre-copy live virtual machine migration. Clust. Comput. 27, 1293–1312 (2024).
Miao, Y., Wu, G., Li, M., Ghoneim, A. & Hossain, M. S. Intelligent task prediction and computation offloading based on mobile-edge cloud computing. Future Gener. Comput. Syst. 102, 925–931 (2020).
Cao, J., Yu, Z. & Xue, B. Research on collaborative edge network service migration strategy based on crowd clustering. Sci. Rep. 14, 7207 (2024).
Liu, S. et al. Dependent task scheduling and offloading for minimizing deadline violation ratio in mobile edge computing networks. IEEE J. Sel. Areas Commun. 41, 538–554 (2023).
Tang, Z., Zhou, X., Zhang, F., Jia, W. & Zhao, W. Migration modeling and learning algorithms for containers in fog computing. IEEE Trans. Serv. Comput. 12, 712–725 (2018).
Wang, Z. et al. Dueling network architectures for deep reinforcement learning. In International Conference on Machine Learning. 1995–2003 (2016).
Fortunato, M. et al. Noisy networks for exploration. In International Conference on Learning Representations (2018).
van Hasselt, H., Guez, A. & Silver, D. Deep reinforcement learning with double q-learning. In AAAI Conference on Artificial Intelligence. 2094–2100 (2016).
Horgan, D. et al. Distributed prioritized experience replay. In International Conference on Learning Representations (2018).
Wu, H., Yang, X. & Bu, Z. Task offloading with service migration for satellite edge computing: A deep reinforcement learning approach. IEEE Access 12, 25844–25856 (2024).
Chi, J., Zhou, X., Xiao, F., Lim, Y. & Qiu, T. Task offloading via prioritized experience-based double dueling DQN in edge-assisted IIOT. IEEE Trans. Mob. Comput. 23, 14575–14591 (2024).
Tang, M. & Wong, V. W. S. Deep reinforcement learning for task offloading in mobile edge computing systems. IEEE Trans. Mobile Comput. 21, 1985–1997 (2022).
Wang, Y., Ru, Z., Wang, K. & Huang, P. Joint deployment and task scheduling optimization for large-scale mobile users in multi-UAV-enabled mobile edge computing. IEEE Trans. Cybern. 50, 3984–3997 (2020).
Funding
This research was funded by the Technology Innovation Guidance Project of Jilin Province, China (Grant No. 20240402083GH).
Author information
Authors and Affiliations
Contributions
Conceptualization, L.L. and J.L.; methodology, L.L. and J.L.; software, J.L.; validation, S.W., C.H. and G.S.; formal analysis, L.L., N.L. and G.S.; investigation, S.W.; resources, C.H.; data curation, J.L; writing–original draft preparation, J.L. and L.L.; writing–review and editing, L.L. and N.L.; funding acquisition, L.L. and N.L.. All authors have read and agreed to the published version of the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Li, L., Lv, J., Wang, S. et al. Latency and energy-aware adaptive service migration in mobile edge computing. Sci Rep (2026). https://doi.org/10.1038/s41598-026-36711-y
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-36711-y


