1 Department of Computer Science, University of Technology, Baghdad, Iraq

2 Department of Computer Science, Technology University, Iraq


The automation of medical systems is one of the most important topics and that takes the highest priority in our time due to the COVID-19 pandemic, which has caused human disasters without knowing the exact diagnosis of patients and other diseases. Therefore, it has been recently started to rely on sensors to support medical results and monitor the patient throughout the day, and this in itself is an application of Internet of Things (IoT) which is called Internet of Medical Things (IoMT). The expansion and reliability of this type of systems need to secure the systems, infrastructure, devices and used sensors. This paper focuses on the proposal key to encrypt the data stored in the database by relying on artificial intelligence algorithms and Bezier curves based on the dynamic number generated in the medical platform as an input to it. The Particle Swarm Optimization (PSO) algorithm was chosen because it is fast to implement and to support limited devices within the used network. Also, the logistic map function was used to generate the randomness of the generated key. The proposed key has also been examined and it has passed the five randomness tests and succeeded in 13 out of 16 tests within the NIST tests.