|Computer Systems Science & Engineering |
Hybrid Smart Contracts for Securing IoMT Data
1Department of Computer Science and Engineering, Dr NGP Institute of Technology, Coimbatore, 641048, India
2Department of Statistics and Operations Research, College of Science, King Saud University, Riyadh, 11451, Saudi Arabia
3Department of Computer Science and Engineering, Bannari Amman Institute of Technology, Sathy, 638401, India
4Department of Mathematics, Faculty of Science, Mansoura University, Mansoura, 35516, Egypt
5Department of Computational Mathematics, Science, and Engineering (CMSE), Michigan State University, East Lansing, MI, 48824, USA
*Corresponding Author: Mohamed Abouhawwash. Email: email@example.com
Received: 03 November 2021; Accepted: 07 January 2022
Abstract: Data management becomes essential component of patient healthcare. Internet of Medical Things (IoMT) performs a wireless communication between E-medical applications and human being. Instead of consulting a doctor in the hospital, patients get health related information remotely from the physician. The main issues in the E-Medical application are lack of safety, security and privacy preservation of patient’s health care data. To overcome these issues, this work proposes block chain based IoMT Processed with Hybrid consensus protocol for secured storage. Patients health data is collected from physician, smart devices etc. The main goal is to store this highly valuable health related data in a secure, safety, easy access and less cost-effective manner. In this research we combine two smart contracts such as Practical Byzantine Fault Tolerance with proof of work (PBFT-PoW). The implementation is done using cloud technology setup with smart contracts (PBFT-PoW). The accuracy rate of PBFT is 90.15%, for PoW is 92.75% and our proposed work PBFT-PoW is 99.88%.
Keywords: PoW; byzantine fault tolerance; IoMT; cloud computing; health care data
Internet of Medical Things (IoMT) uses smart devices to collect medical data. In the health care system, IoMT plays an important role in providing security, accessing physicians, remote lab access and transmitting health care data electronically. It also provides real time-medical services like consulting physicians, through web and mobile applications. The benefits of IoMT are reducing the cost of health care data, faster decision-making process. Timely responses from the physicians and improvise in quality of health care treatment . In smart health care data management system, real time health data is collected through medical sensors. Physicians can monitor the patient’s health status through collected data . Patient’s sensitive information are stored in blockchain securely. To provide high dimensional security and transmitting data in a secure manner it needs to detect unauthorized users and prevent them to access the data. It ensures the integrity, validity, authenticity and preserving privacy in health data .
Patient’s requests are analyzed using a web application. The smart contract is a mediator to transfer health data between physician and patient in a secured manner . A medical data transaction between two or more parties using blockchain in a secure manner without check for validity process is a key concern. In the decentralized blockchain network, each and every node contains copy of medical data and updates the content of nodes in the network [5,6]. Research works have been done in managing of health care data in a secure way. The main drawback of existing algorithm is lower-level security, unscalable, computation time is high. To overcome these issues this paper proposes PBFT-PoW. It gives double layer of security in high level, scalable, faster in access of health data in the blockchain network.
The consensus algorithm is used in open public blockchain technology such as Proof-of-Authority (PoAu), Proof-of-Work (PoW), Byz Coin, Delegated Proof-of-Stake (DPoS), Proof-of-Stake (PoS), Leased Proof-of-Stake (LPoS), Omni Ledger, Elastico, Proof-of-Burn (PoB). The main drawbacks in the open public blockchain are current state value cannot compete with existing system.
Private blockchain is called as permissioned blockchain in which Delegated Practical Byzantine Fault Tolerance (DPBFT), Practical Byzantine Fault Tolerance (PBFT), Proof-of-Elapsed-Time (PoET), Tender mint, RS Coin, Raft consensus protocols and Pore are used. For accessing the medical data this private blockchain network needs permission to access, contribute and transfer the medical data from one node to another node in the blockchain network. It provides higher levels of security, preserving privacy and accessed by authorized users only. They are also highly scalable because it needs only few nodes for managing the medical data. These characteristics makes the private blockchain network as optimal in the IoMT network. In the private blockchain network, parameters such as medical data size, accessing speed, trust preserving privacy, scalability is the much better than public blockchain network [7,8]. The contribution of this work is:
1. To implement consensus algorithm of Practical Byzantine Fault Tolerance with PoW (Proof of Work) (PBFT-PoW) to provide high level security in accessing of health care record in the blockchain network.
2. Evaluate the performance metric measures of Block propagation time, latency, energy consumption and accessing time.
3. Smart contracts are implemented in the verification of health care data to facilitate the identification and authorization of the user.
The paper has been organized as follows: Section 2 describes the review of literature; Section 3 introduces Secure Storage of Patient’s Health Care Data Management in IoMT Using Blockchain technology, Section 4 discusses about the experimented results and Section 5 concludes the paper with future directions.
2 Review of Literature
Recently blockchain has been used in various security domains to store and process the data. In the article . blockchain based applications is surveyed and its potentiality is studied briefly. Blockchain has been used in several applications like education, healthcare, share market, stock Exchange etc. Various opportunities and challenges in the block chain at different domains are discussed. The consensus algorithms used in blockchain like proof of work, proof of stack etc., was studied. This article helps to know the future research scope in blockchain security. Block chain characteristics  with the benefits are identified in different domains other than bit coin. Technical challenges in consensus protocol like scalability, privacy leakage, security challenges are discussed for proof of work and proof of stack.
The advanced internet communities like smart city, smart nation and smart vehicles etc. IoT devices can be placed in various locations of geographical region. Creation of Block chain, verification of blockchain using consensus algorithm and cryptographic techniques are discussed . Communication support using wireless and wired networks in block chain is studied and 5G support efficiently. Smart home IoT device is rapidly increased due to advancement in internet technology in providing security . Risk assessment on remote data access is focused on this research work. Remote data authentication using blockchain, signatures and authentication secret codes are presented in this article. The secure data communication using grid system based on mutual authentication is discussed in paper . Privacy is ensured using key management in smart meter. In this research they use signature keyless method in blockchain. Result shows cost effective, robust, and scalable in providing security.
Block chain technology in paper  used in secured data access of internet of vehicles (IoV). IoV is most significant mobile based application used in real time traffic management, speed control alert, direction alert, accidents etc. Consensus algorithm is used in blockchain for secured transmission. Key distribution technique is used for formation of new nodes in block chain. The resource limitation in IoT is overcome by using outsourcing bilinear pairing with permission blockchain . Major potential of permission blockchain is security, scalability, and availability. The new tactile internet in paper  is used for intelligent transport energy trading system. Blockchain was used in providing security of energy trading.
Electrical vehicle uses blockchain for secured energy trading based on the request. SDN architecture is used for effective computation with less latency.
VANET was communicated with environment via wireless medium for efficient monitoring technique. Major advantages like weather monitor during emergency, intelligent path management etc. They proposed a blockchain with privacy assistance  using authentication technique for vehicle data. It helps to monitor the behavior of vehicle and communication records are traced. Block chain advantages and effectiveness is surveyed in article . It states the importance on consensus algorithm with its principal and performance analysis. Different algorithm on consensus protocol is used to check the performance. Group decision is suggested in reaching consensus was implemented in paper . It initiates and proposes minimum cost soft model in consensus algorithm. it is used in loan problem. The symmetric and asymmetric cryptographic method is used as hybrid scheme in blockchain technology . It combines both techniques to provide efficient security in data storage. The IoT are now days used wide variety applications like nano robots, nano technology etc. internet of nano health care [21,22] applications required high security infrastructure for medical data process.
The limitations of above literature work are still need of additional security and do not support dynamic entry of device in the network. some technology does not support blockchain concepts and some research works are insecure when the devices are stolen.
3 Proposed PBFT-PoW Methodology
Storing of patient’s health care data electronically, in the IoMT by using sensor devices, wearable devices status of patient’s health details is collected based upon some predefined parametric measures of oxygen saturation, pulse rate, calories, temperature, Blood sugar etc. These data are collected from wearable devices and permanently stored in Ethereum based blockchain technology. All patient’s health status is a sensitive information, and it must be kept in safe and more confidential one. This paper proposes Ethereum blockchain technology of smart contracts with various consensus protocols of Practical Byzantine Fault Tolerance, PoW (PBFT-PoW). Fig. 1. shows that architecture of PBFT-PoW.
This PBFT-PoW is composed of sensor and wearable devices that connect with web application as well as mobile application which collects and monitors the patient’s health care data.
3.1 Wearable Devices
To capture the patient’s health care information based on predefined parametric measures of oxygen saturation, pulse rate, calories, temperature, Blood sugar etc. These devices are transforming the collected data with web and mobile applications through ZigBee and Bluetooth.
3.2 Ethereum Based Blockchain
Each and every node in the blockchain represents the physicians, health caretaker etc. In this work we are implementing the Ethereum based blockchain network. It is decentralized ledger in which patient health care data is stored and manage the data through mobile application and web application. For each patient’s registration the transaction of health care data is validated and stored in smart contract. Physicians add the patient’s health care data in the block of the blockchain.
3.3 Mobile Application and Web Application
The medical data collected from wearable devices are stored in Ethereum based blockchain network. And it is accessed by patient or physicians via web application or mobile application. The data is uploaded in the blockchain every three hours or based upon the request.
3.4 Smart Contract with PBFT and PoW Consensus Algorithm
In this proposed work, each patient’s health care data is collected from wearable devices and stored in the patient’s smart contract. The Ethereum based smart contracts with consensus protocols of practical Byzantine Fault Tolerance, PoW.
3.4.1 Practical Byzantine Fault Tolerance in Smart Contract
PBFT is a distributed system and nodes are arranged in sequential order. It contains only one is called leader node or primary node and remaining other nodes are called as back up nodes or secondary nodes. Through leader node health care data is transferred to back up nodes. If primary node gets fail by using majority rule remaining all honesty nodes helps to reach the state. The malicious nodes of PBFT system must not greater than or equal to one-third of all nodes. If number of nodes increase, then the system gets more secure . The algorithm for PBFT is given above.
3.4.2 PoW Consensus Algorithm in Smart Contract
It provides more secure to the health care data in the blockchain network.
In the algorithm 2, smart contract act as a finite state machine and executes the instruction in the dynamic form. When data requested from the patient or physician smart contracts monitor authorized user or not and give rights to access it and stored it in block of the blockchain network.
3.5 Smart Contracts Consensus Protocols of PBFT- PoW
To create Ethereum based blockchain this proposed work has two types of consensus protocols and it is used to improve more secure in the storage of health care data in the blockchain this PBFT-PoW consensus algorithm is used. The features of this PBFT-PoW consensus algorithm are given in Tab. 1.
Form the Tab. 1, Practical Byzantine Fault Tolerance (PBFT) enhances very fast transactions with low consumption of energy, but it provides high security. It’s a private blockchain, to access health care data it needs permission. In the proof of work (PoW) it’s a public blockchain network no need to get permission. When executing a node in the blockchain network it accesses the health care data and ether transmit the transaction between physician or patient with network. It takes more time to transmit the data and consumption of energy is also high. To overcome these issues, this proposed work implements the transaction of health care data in the Ethereum blockchain network gives less transaction time, high security. Fig. 2 shows that workflow of PBFT- PoW.
This proposed work contains two phases:
Phase 1: Upload Health care Data using PBFT- PoW
Phase 2: Read the Health Care DataPBFT- PoW
3.5.1 PoW Consensus Algorithm in Smart Contract
This describes the process of uploading or storing health care data in the Ethereum based blockchain. Data collected from wearable devices and stored it in the blockchain.
In the algorithm 3, get the new patient heath care data from the wearable devices and send it to blockchain and verify by PBFT- PoW consensus algorithm. If it is verified successfully then new health care data (HCD) will be added to the smart contract.
3.5.2 Read the Health Care Data PBFT- PoW
From the Algorithm 4, health care data is stored in the smart contract is accessed by only authorized patients. Request send by the patient via web application or mobile application to smart contract. This request will verify by the smart contract and response will be given to the authorized patient only. The algorithm is given below:
In algorithm 4, which checks for the authorized patient are in the list and give rights to access all information data from the block in the blockchain via smart contract.
4 Result Analysis
This blockchain based secure storage of patient’s health care data management in IoMT is implemented by using PBFT-PoW. It’s a double layer concept of providing security. In the blockchain technology set of blocks which contains patient’s health care data in a secure manner. Fig. 3 shows that performance analysis of energy consumption using various algorithms.
In the Fig. 3. shows that our proposed work got low energy consumption compared it with other existing algorithms of PBFT and PoW. Tab. 2 shows the comparison of PBFT-PoW with parametric attributes with our proposed work.
From the Tab. 2, our proposed work PBFT-PoW supports with all attributes of blockchain based IoMT compared it with other existing work, and it offers promising solution in Health care data management [28–36]. The blockchain with decentralized security model using smart contracts enable to manage the patients’ health care data. This PBFT-PoW work is evaluated using following performance parameter.
Latency in PBFT-PoW has been calculated by analyzing the time taken to access a patient health care data. The latency for PBFT-PoW is represented in Tab. 3.
In the observation of Latency in Tab. 3, if user’s request increases to access the of patient health care data latency time also increases.
In this performance parameter, it is the rate at which valid transactions of IoMT medical data are committed by the blockchain as per Eqs. (1), (2) AND Eq. (1).
This throughput parameter is compared with Blockchain with decentralized storage, and PBFT-PoW. Fig. 4 shows the comparison of throughput for Blockchain with decentralized using smart contract and PBFT-PoW using smart contract.
In the Fig. 4, If the number of blocks increases within certain period of time, our proposed work gives prominent result.
4.3 Block Propagation Time (BPT)
It is a time taken to distribute the new block with the majority set of nodes in the cloud network. After verification process taken place using algorithm 2, the propagation time for each block is given in Fig. 5.
Form the Fig. 5. BPT is calculated by number of sealers in the network. If number of sealers increases in the network, then synchronization issues occur. It leads to higher propagation delay in the network. Health care data is accessed from blockchain network in IoMT produces the optimized accessing time of medical records. Additionally, number of user’s requests increases will lead to average response time also increases. Tab. 4 shows the result obtained by using proposed work (PBFT-PoW)
From the observation of Tab. 4. our proposed work produces better result in accessing time of health care records from the decentralized blockchain network. Fig. 6 shows that accuracy rate of executing these consensus algorithms.
From the observation of Fig. 6 shows that our proposed algorithm gives better accuracy rate in the execution of algorithm as well as gives the prominent result.
This paper proposes PBFT-PoW using smart contract in health care data are stored in the cloud network, where data collected from wearable devices. Health care data is stored in decentralized and provides security, scalability, preserve privacy and effectively. The experimental results show that PBFT-PoW achieves transmitting of health care data between physician/user. This PBFT-PoW of HCD access control system protects patient health care data from external attacks. Our proposed work requires minimum consumption time when it is compared with existing algorithm. This PBFT-PoW is a decentralized storage of data and which preserves data privacy. In order to get the optimized solution for PBFT-PoW number of sealers should be less than nodes in the network. It minimizes the delay in synchronization and propagation. The accuracy rate of PBFT is 90.15%, for PoW is 92.75% and our proposed work PBFT-PoW is 99.88%. In future this PBFT-PoW will be improving in terms of reducing number of replicas, involving various protocols.
Acknowledgement: Research Supporting Project number (RSP-2021/323), King Saud University, Riyadh, Saudi Arabia.
Funding Statement: This project is funded by King Saud University, Riyadh, Saudi Arabia.
Conflicts of Interest: The authors declare that they have no conflicts of interest to report regarding the present study.
|This work is licensed under a Creative Commons Attribution 4.0 International License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.|