Abstract
The increasing demand for personalized, real-time healthcare necessitates efficient, secure patient data management. Digital Twins (DTs) enable AI-powered monitoring and decision support but also introduce challenges related to latency, computational cost, and security. This paper proposes a cost-optimized, AI-driven Medical Digital Twin (MDT) framework that manages task allocation across heterogeneous edge, fog, and cloud infrastructures. The system is formulated as a tri-objective optimization model that jointly minimizes latency and operational cost while maximizing security, subject to resource and clinical-priority constraints. To solve this problem, three complementary approaches are developed: (i) an exact Integer Linear Programming (ILP) model for optimal benchmarking, (ii) a Patient-Aware Task Intelligence Greedy (PATI-Greedy) heuristic algorithm for low-latency decision-making, and (iii) a Hybrid Q-Learning Enhanced Genetic Algorithm (HybridQeGA) for scalable, near-optimal performance in complex environments. Extensive simulations in a smart ICU scenario with 4, 8, and 12 patients demonstrate that ILP consistently achieves the best objective values but is computationally impractical for large instances. PATI-Greedy executes rapidly with polynomial complexity, achieving results within 5–\(8\%\) of ILP for small- to medium-scale workloads. HybridQeGA offers the closest match to ILP in larger problem sizes, with less than \(3\%\) deviation in overall objective value while maintaining scalability. Security-sensitive scenarios highlight HybridQeGA’s adaptability, improving security scores by an average of \(12\%\) compared to PATI-Greedy. These findings establish a balanced trade-off between accuracy and computational efficiency, positioning the proposed framework as a robust and deployable solution for intelligent and trustworthy digital health ecosystems.
Similar content being viewed by others
Data availability
No external datasets were generated or analyzed during the current study, as the evaluation was conducted using simulation-based experiments. The implementation details, algorithmic configurations, and parameter settings used in this work are described in the manuscript. Source code and additional simulation materials can be made available upon reasonable request to the corresponding author.
References
Kannampallil, T. G., Schauer, G. F., Cohen, T. & Patel, V. L. Considering complexity in healthcare systems. J. Biomed. Inform. 44, 943–947 (2011).
Khaleel, M. I., Safran, M., Alfarhood, S. & Zhu, M. Workflow scheduling scheme for optimized reliability and end-to-end delay control in cloud computing using AI-based modeling. Mathematics 11, 1–24 (2023).
Shrivastava, V. et al. Evolutionary patterns in modern-era cloud-based healthcare technologies. In International Conference on Information and Communication Technology for Competitive Strategies. 19–32 (Springer, 2023).
Balasubhramanyam, A., Ramesh, R., Sudheer, R. & Honnavalli, P. B. Revolutionizing healthcare: A review unveiling the transformative power of digital twins. IEEE Access 12, 69652–69676 (2024).
Hartmann, M., Hashmi, U. S. & Imran, A. Edge computing in smart health care systems: Review, challenges, and research directions. Trans. Emerg. Telecommun. Technol. 33, e3710 (2022).
Rahim, M., Lalouani, W., Toubal, E. & Emokpae, L. A digital twin-based platform for medical cyber-physical systems. IEEE Access 12, 174591–174607 (2024).
Chen, J., Yi, C., Okegbile, S. D., Cai, J. & Shen, X. Networking architecture and key supporting technologies for human digital twin in personalized healthcare: A comprehensive survey. IEEE Commun. Surv. Tutor. 26, 706–746 (2023).
Sirigu, G., Carminati, B. & Ferrari, E. Privacy and security issues for human digital twins. In 2022 IEEE 4th International Conference on Trust, Privacy and Security in Intelligent Systems, and Applications (TPS-ISA). 1–9 (IEEE, 2022).
Khaleel, M. I., Safran, M., Alfarhood, S. & Zhu, M. Energy-latency trade-off analysis for scientific workflow in cloud environments: The role of processor utilization ratio and mean grey wolf optimizer. Eng. Sci. Technol. 50, 101611 (2024).
Chen, J. et al. Generative AI-driven human digital twin in IOT-healthcare: A comprehensive survey. IEEE Internet Things J. 11, 34749–34773 (2024).
Li, T. et al. Generative AI empowered network digital twins: Architecture, technologies, and applications. ACM Comput. Surv. 57, 1–43 (2025).
Zhang, K. et al. Concepts and applications of digital twins in healthcare and medicine. Patterns 5, 1–15 (2024).
Gourraud, P. et al. Digital representation of patients as medical digital twins: Data-centric framework. JMIR Med. Inform. 13, e53542 (2025).
Walton, N. et al. Digital twins for health: A scoping review. npj Digit. Med. 7, 1–11 (2024).
Rodrigues, L. et al. Health digital twins supported by AI-based algorithms and extended reality in cardiology. arXiv preprint arXiv:2401.14208 (2024).
Trayanova, N. et al. A ‘digital twin’ of your heart lets doctors test treatments before surgery. Wall Street J. (2024).
Pandey, H. et al. Digital twin ecosystem for oncology clinical operations. arXiv preprint arXiv:2409.17650 (2024).
Ibrahim, M. et al. Generative AI for synthetic data across multiple medical modalities: A systematic review. arXiv preprint arXiv:2407.00116 (2024).
Vengathattil, S. Advancing healthcare systems with generative AI-driven digital twins. Int. J. Innov. Sci. Res. Technol. 10, 1678–1688 (2025).
Almasan, P. et al. Network digital twin: Context, enabling technologies, and opportunities. IEEE Commun. Mag. 60, 22–27 (2022).
Mahmood, K. et al. Adaptive resource aware and privacy preserving federated edge learning framework for real time internet of medical things applications. Sci. Rep. 15, 36468 (2025).
Stephanie, V., Khalil, I. & Atiquzzaman, M. Dsfl: A decentralized splitfed learning approach for healthcare consumers in the metaverse. IEEE Trans. Consumer Electron. 70, 2107–2115 (2024).
Jiang, L., Ming, X. & Zhang, X. Dt-dofl: Digital-twin-empowered decentralized online federated learning for user-centered smart healthcare service systems. IEEE Trans. Comput. Soc. Syst. 12, 4441–4455 (2025).
Jameil, A. K. & Al-Raweshidy, H. Enhancing offloading with cybersecurity in edge computing for digital twin-driven patient monitoring. IET Wirel. Sens. Syst. 14, 363–380 (2024).
Shankhdhar, A. & Garg, H. Blockchain-enabled secure data transmission for personalized e-healthcare and digital twin well-being. Cluster Comput. 28, 956 (2025).
Li, J. & Wang, D. Federated learning for digital twin applications: a privacy-preserving and low-latency approach. PeerJ Comput. Sci. 11, e2877 (2025).
Kuštelega, M., Mekovec, R. & Shareef, A. Privacy and security challenges of the digital twin: Systematic literature review. J. Univ. Comput. Sci. (JUCS) 30 (2024).
Diakakis, S. et al. A review of interoperability challenges and solutions towards a digital twin of the European electricity grid. In 2024 16th Electrical Engineering Faculty Conference (BulEF). 1–5 (IEEE, 2024).
Vallee, A. Digital twin for healthcare systems. Front. Digit. Health 5, 1253050 (2023).
Drummond, D. & Gonsard, A. Definitions and characteristics of patient digital twins being developed for clinical use: Scoping review. J. Med. Internet Res. 26, e58504 (2024).
Nadeem, M., Kostic, S., Dornhöfer, M., Weber, C. & Fathi, M. A comprehensive review of digital twin in healthcare in the scope of simulative health-monitoring. Digit. Health 11, 1–24 (2025).
Tortora, M. et al. Medical digital twin: A review on technical principles and clinical applications. J. Clin. Med. 14, 324 (2025).
Hu, Y. et al. Personalized heart disease detection via ECG digital twin generation. arXiv preprint arXiv:2404.11171 (2024).
Wang, S., Ren, T., Cheng, N., Wang, R. & Zhang, L. Patient-specific dynamic digital-physical twin for coronary intervention training: An integrated mixed reality approach. arXiv preprint arXiv:2505.10902 (2025).
Kuang, K., Ouyang, D. S. & Alaa, A. M. Med-real2sim: Non-invasive medical digital twins using physics-informed ssl. arXiv preprint arXiv:2403.00177 (2024).
Khaleel, M. I., Safran, M., Alfarhood, S. & Zhu, M. A hybrid many-objective optimization algorithm for job scheduling in cloud computing based on merge-and-split theory. Mathematics 11, 3563 (2023).
Kleinert, T. & Schmidt, M. Why there is no need to use a big-m in linear bilevel optimization: A computational study of two ready-to-use approaches. Comput. Manag. Sci. 20, 1–20 (2023).
Sharif, Z., Jung, L. T., Ayaz, M., Yahya, M. & Pitafi, S. Priority-based task scheduling and resource allocation in edge computing for health monitoring system. J. King Saud Univ.-Comput. Inf. Sci. 35, 544–559 (2023).
Acknowledgements
The authors extend their appreciation to Prince Sattam bin Abdulaziz University for funding this research work through the project number PSAU/2025/31124.
Funding
The authors extend their appreciation to Prince Sattam bin Abdulaziz University for funding this research work through the project number (PSAU/2025/31124).
Author information
Authors and Affiliations
Contributions
F. M .A and S. A, created the paper’s fundamental idea. T. A, and S. A, have developed the methodology. S. A, and M. A have analyzed the paper. Original draft was prepared by S. A, which was edited by A. M. A., F. M. A, and S. A . T. A, have supervised the overall work. All authors reviewed 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
Alotaibi, F.M., Ahmad, S., Akram, T. et al. A cost-optimized medical digital twin framework for secure and efficient patient data management in smart healthcare. Sci Rep (2026). https://doi.org/10.1038/s41598-026-41205-y
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-41205-y


