International Journal of Computer Networks and Applications (IJCNA) DOI: 10.22247/ijcna/2023/220734 Volume 10, Issue 2, March April (2023) ISSN: 2395-0455 ©EverScience Publications 166 RESEARCH ARTICLE A Hybrid Cryptography and LogiXGBoost Model for Intelligent and Privacy Protection in Wireless Body Sensor Networks (WBSNS) Mohammed Naif Alatawi Department of Computer Information Technology, University of Tabuk, Tabuk, Saudi Arabia. alatawimn@ut.edu.sa Received: 15 December 2022 / Revised: 12 February 2023 / Accepted: 23 February 2023 / Published: 29 April 2023 Abstract An increasing number of healthcare applications are making use of wireless body sensor networks (WBSNs). WBSN technology provides a framework that allows for remote physiological monitoring of patients without the use of wired connections in the house. Furthermore, these systems provide real-time data transfer for medical personnel, allowing them to make timely decisions regarding patient care. Despite this, worries remain about patient data being compromised. This research presents a strategy for protecting patient-provider communications by making use of WBSNs. To solve the problem of how to securely store sensitive information on blockchains, a hybrid cryptographic architecture is proposed. The strengths of both public key and symmetric key cryptography are leveraged in my approach. In order to achieve this goal, I have developed a new algorithm by fusing the AES, RSA, and Blowfish algorithms. My experiments have shown that the proposed solution can keep private data safe without affecting its scalability. Using Logi-XGB as a prediction model for attacks, the proposed approach can successfully thwart 99.7 percent of them. Index Terms WBSNs, IoT, Machine Learning, Logi-XGB, XGB, DL, Blockchain. 1. INTRODUCTION E-health has benefited greatly from recent technological developments and advances in information technology. The use of WBSNs (Wireless Body Sensor Networks) in healthcare monitoring and diagnostics is on the rise [1]. The WBSN has been seen in a variety of settings within the healthcare sector in the past [2, 3]. They have been used for a variety of medical issues, including diabetes, Alzheimer's disease, congestive heart failure, and asthma [4]. WBSN enables real-time monitoring of patients during critical situations [5]. Using WBSNs (Wireless Body Sensor Networks) in a mobile healthcare setting has potential [6]. Sensor data can be analysed by computers at a healthcare facility [7]. Real-time monitoring at home allows patients to be kept under observation for longer periods of time, reducing the need for costly hospitalisation [8]. Sensing nodes and Internet servers in a WBSN should be encrypted [9] to prevent unauthorised parties from accessing patients' personal health information during transmission and reception. It is also important for doctors to get their hands on this data to verify that it is authentic and has not been tampered with [10]. Internet of Health Things (IoHT) [11] allows for the incorporation of sensors and remotely monitored medical devices with patient data. At today's hospitals, IoT-based Wireless Body Sensor Networks play a crucial role in patient care (WBSNs). Intelligent sensors can now be used to gather vital biological data from a patient in real time. The data collected can then be sent electronically to faraway medical professionals [12]. In recent years, many anonymous authentication solutions for WSNs have been presented [8]. Many of these methods, however, require higher computer power when utilised for anonymous authentication [13]. Existing procedures did not safeguard against tracking for either patients or clinicians [1416], [17]. Based on the results of a thorough analysis [18], it is clear that the proposed system eliminates the security flaws of the aforementioned approaches, all while requiring very low computer resources for anonymous authentication [1923]. Block-chains provide a more secure platform for storing and sharing data due to its open nature [24]. A number of healthcare organisations are exploring potential applications of blockchain technology [25]. Significant features of this system include [26] the safe transmission of patient medical records, the management of the drug supply chain, and the support of researchers working on the genetic code. The blockchain's inherent security stems from its immutable ledger and decentralised storage [27], [28]. People's sensitive health records are safe in the hands of blockchain's secure protocols [29]. Doctors and other medical professionals can now have more secure and productive conversations with their patients thanks to technological advancements [30]. Distributed and shared healthcare data is made possible by blockchain technology [31]. Since the Blockchain is a