A Novel Cost-Efficient Framework for Critical Heartbeat Task Scheduling Using the Internet of Medical Things in a Fog Cloud System
Abstract
:1. Introduction
- In other to solve the cost-efficient task scheduling problem for critical heartbeat conditions, we formulated this problem as a scheduling problem. Generally, the task scheduling problem requires multiple steps to address the cost-efficient assignment of tasks onto heterogeneous resources. To have this problem solved, we proposed a health care awareness cost-efficient task scheduling (HCCETS) algorithmic framework that is composed of the following phases: a task prioritizing phase, a resource searching phase, and a task scheduling phase.
- Task prioritizing phase: Generally, the ECG signal is the primary source for the monitoring of electric cardiac activity of the heart. Every ECG cycle provides various types of information regarding the patient; for instance, if the patient has an arrhythmic heartbeat, a myocardial infarction, coronary artery disease and so on. In this phase, the author prioritized the critical tasks of heartbeat for an immediate process for execution, as these tasks were considered as an essential task. On the other hand, the delay-tolerant tasks, likewise patient report tasks, do not require a necessary process for execution. To handle the priority of urgent and late tasks, the author proposes a new task sequence rule method, which is not only used to satisfy the execution requirement but also to minimize the average cost of the application.
- Resource search phase: The author considered different fog servers with their unique characterizations. Every fog server offers on-demand-based cloud services, to run the IoT heartbeat-based healthcare application. The characterization of each server is a set of a vector, such as computing capability, storage, and price. Therefore, costs and deadlines are critical factors when the system chooses a fog server to run the tasks of the IoT application. To cope with this situation, the author proposes an efficient resource algorithm that is capable of utilizing the appropriate resource for each task to reduce the cost.
- Task scheduling phase: Task scheduling is a critical phase that allocates all dangerous heartbeat tasks into heterogeneous resources to assure work done at minimal cost accordingly. The author proposes a new cost-efficient task scheduling algorithm, which allocates all critical heartbeat tasks into appropriate resources until no tasks are left behind. To evaluate the effectiveness and efficiency of the proposed cost-efficient algorithm, the author compared it to the existing task scheduling algorithm when it was run over the heartbeat dataset of IoT applications.
- The author proposes the health care based fog system (HCBFS) that processes all requested heartbeat critical tasks to fog cloud networks.
2. Related Work
3. Problem Description
3.1. System Model
3.2. Application and Resource Model
3.3. Mathematical Model
4. Proposed HCCETS Framework
Algorithm 1: HCCETS Framework |
Input: ; ; {, …, } |
1 begin |
2 Z ← 0; |
3 Call Task Sequencing; |
4 foreach ( ∈ ) do |
5 Zi ← Call Initial Task Scheduling; |
6 Z ← Z + Zi; |
7 Call Critical Task Reshuffling; |
8 Call Cost-Efficient Rescheduling; |
9 Z* ← Z + Zi; |
10 return Z*; |
4.1. Task Sequencing
- (1)
- Earliest Deadline First (EDF): The author sorted the set of tasks based on their deadline. The small deadline task is sorted first. If the deadline is the same, the task with the smaller size is ranked with a higher priority.
- (2)
- Smallest Slack Time First (SSF): The tasks are sort according to the task slack time. The task which has smallest slack time is scheduled first. If the slack time is the same as any tasks, the smallest total workload will be arranged first.
- (3)
- Smallest Workload First (SWF): The task is sequenced based on the size of the task, the smallest workload task is arranged first.
- EDF-based task sequencing:
- SSF-based task sequencing:
- SWF-based task sequencing:
4.2. Task Scheduling
- In line 2, all fog servers are sorted by calculating with the descending order and put into in which the fog servers are iteratively traversed.
- In line 3, initially, all fog servers are null.
- The available time of each fog server in the is initialized to 0.
- Line 7 to 11, if the available time of the fog server plus the execution time of is less than the deadline , is assigned to the fog server , and the new available time of is dynamically updated.
Algorithm 2: Initial Task Scheduling |
Input: vi:task to schedule |
1 PList[vi ∈ N, j ∈ M]; |
2 begin |
3 Qvm ←Sort the fog serves by the cij with the descending order; |
4 V ← NULL; |
5 foreach Vj ∈ Qvm do |
6 Tj,0 ← 0; |
7 foreach Vj ∈ Qvm do |
8 Calculate the Tie of Vj by the Equation (4); |
9 if Tj,i -1 + < di then |
10 Calculate the Tj,i of Vj by the Equation (3); |
11 Z ← Vj; |
12 break; |
13 Calculate cost of Z by the Equation (1); |
14 PList[vi ∈ N, j ∈ M] ← Z; |
15 return Z, V; |
4.3. Critical and Non-Critical Tasks
Algorithm 3: Critical Task Reshuffling |
Input: Z, PList[vi ∈ N, j ∈ M]; |
1 begin |
2 foreach (vi as N) do |
3 foreach (j = 1 as M) do |
4 if (.vi > .N) then |
5 Swap: v1 ← v2; |
6 Calculate the Tj,i of Vj by the Equation (3); |
7 V ← Vj; |
8 Z* ← V; break; |
9 PList[vi ∈ N, j ∈ M] ← Z*; |
10 return Z*, PList[vi ∈ N, j ∈ M]; |
4.4. Cost-Efficient Rescheduling
Algorithm 4: Cost-Efficient Rescheduling |
Input: Z, PList[vi ∈ N, j ∈ M]; |
1 begin |
2 foreach (vi as N) do |
3 Calculate the of Vj by the Equation (4); |
4 if Tj,i -1 + < di then |
5 Calculate the Tj,i of Vj by the Equation (3); |
6 V ← Vj; |
7 break; |
8 Calculate cost of Z by the Equation (1); |
9 PList[vi ∈ N, j ∈ M] ← Z*; |
10 return Z*; |
4.5. Time Complexity
5. Performance Evaluation
5.1. Practical Implementation of (HCBFS)
5.2. Resources Specifications
5.3. Heartbeat Datasets
5.4. Component Calibration of Proposed Algorithm
5.5. Performance Metrics
5.6. Baseline Approaches and System
- Baseline 1: This study implement the heterogeneous earliest finish time [40] method to schedule autonomous healthcare application tasks to the heterogeneous clouds. This study processed all tasks through its different phases until completion.
- Baseline 2: This approach makes a topological order of processors such as fog cloud and by handing over their various priorities. This process is continuous in anticipation of a suitable schedule being gained [41].
- Base-Frame 1: This study implements existing healthcare [18] for IoMT applications that provide resources based on the heterogeneous cloud without any prioritizing tasks during scheduling.
- Base-Frame 2: This study implements the existing healthcare mobile cloud system [42], which offers services to the IoT application without a guaranteed deadline constraint.
5.7. Algorithm and System Comparison
5.8. Task Scheduling
5.8.1. Deadline Quality Aware Satisfaction
5.8.2. Bandwidth Utilization during Scheduling and Feedback Results
5.8.3. CPU Utilization Cost
5.8.4. Initial Task Scheduling
5.8.5. Cost Efficient Rescheduling for All Tasks
6. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Writing, G.M.; Mozaffarian, D.; Benjamin, E.; Go, A.; Arnett, D.; Blaha, M.; Cushman, M.; Das, S.; de Ferranti, S.; Després, J. Heart disease and stroke statistics-2016 update: A report from the american heart association. Circulation 2016, 133, e38. [Google Scholar]
- Li, H.; Ge, J.J.I.H. Cardiovascular diseases in china: Current status and future perspectives. IJC Heart Vasc. 2015, 6, 25–31. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Mora, H.; Gil, D.; Terol, R.M.; Azorín, J.; Szymanski, J.J.S. An iot-based computational framework for healthcare monitoring in mobile environments. Sensors 2017, 17, 2302. [Google Scholar] [CrossRef] [Green Version]
- Scirè, A.; Tropeano, F.; Anagnostopoulos, A.; Chatzigiannakis, I.J.A. Fog-computing-based heartbeat detection and arrhythmia classification using machine learning. Algorithms 2019, 12, 32. [Google Scholar] [CrossRef] [Green Version]
- Wu, W.; Pirbhulal, S.; Sangaiah, A.K.; Mukhopadhyay, S.C.; Li, G.J.F.G.C.S. Optimization of signal quality over comfortability of textile electrodes for ecg monitoring in fog computing based medical applications. Future Gener. Comput. Syst. 2018, 86, 515–526. [Google Scholar] [CrossRef]
- Hayek, A.; Telawi, S.; Börcsök, J.; Daou, R.A.Z.; Halabi, N.J.H. Smart wearable system for safety-related medical iot application: Case of epileptic patient working in industrial environment. Health Technol. 2019. [Google Scholar] [CrossRef]
- Depari, A.; Fernandes Carvalho, D.; Bellagente, P.; Ferrari, P.; Sisinni, E.; Flammini, A.; Padovani, A.J.S. An iot based architecture for enhancing the effectiveness of prototype medical instruments applied to neurodegenerative disease diagnosis. Sensors 2019, 19, 1564. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Sodhro, A.; Sangaiah, A.; Sodhro, G.; Lohano, S.; Pirbhulal, S.J.S. An energy-efficient algorithm for wearable electrocardiogram signal processing in ubiquitous healthcare applications. Sensors 2018, 18, 923. [Google Scholar] [CrossRef] [Green Version]
- Sodhro, A.H.; Pirbhulal, S.; Qaraqe, M.; Lohano, S.; Sodhro, G.H.; Junejo, N.U.R.; Luo, Z.J.I.A. Power control algorithms for media transmission in remote healthcare systems. IEEE Access 2018, 6, 42384–42393. [Google Scholar] [CrossRef]
- Sodhro, A.H.; Pirbhulal, S.; Sodhro, G.H.; Gurtov, A.; Muzammal, M.; Luo, Z.J.I. A joint transmission power control and duty-cycle approach for smart healthcare system. IEEE Sens. J. 2018, 19, 8479–8486. [Google Scholar] [CrossRef] [Green Version]
- Muzammal, M.; Talat, R.; Sodhro, A.H.; Pirbhulal, S.J.I.F. A multi-sensor data fusion enabled ensemble approach for medical data from body sensor networks. Inf. Fusion 2020, 53, 155–164. [Google Scholar] [CrossRef]
- Sodhro, A.H.; Li, Y.; Shah, M.A.J.I.C. Energy-efficient adaptive transmission power control for wireless body area networks. IET Commun. 2016, 10, 81–90. [Google Scholar] [CrossRef]
- Pirbhulal, S.; Zhang, H.; E Alahi, M.; Ghayvat, H.; Mukhopadhyay, S.; Zhang, Y.-T.; Wu, W.J.S. A novel secure iot-based smart home automation system using a wireless sensor network. Sensors 2017, 17, 69. [Google Scholar] [CrossRef] [PubMed]
- Tuli, S.; Basumatary, N.; Gill, S.S.; Kahani, M.; Arya, R.C.; Wander, G.S.; Buyya, R.J.F.G.C.S. Healthfog: An ensemble deep learning based smart healthcare system for automatic diagnosis of heart diseases in integrated iot and fog computing environments. Future Gener. Comput. Syst. 2020, 104, 187–200. [Google Scholar] [CrossRef] [Green Version]
- Pirbhulal, S.; Zhang, H.; Wu, W.; Mukhopadhyay, S.C.; Zhang, Y.-T.J.I.T.O.B.E. Heartbeats based biometric random binary sequences generation to secure wireless body sensor networks. IEEE Trans. Biomed. Eng. 2018, 65, 2751–2759. [Google Scholar] [CrossRef] [PubMed]
- Petrakis, E.G.; Sotiriadis, S.; Soultanopoulos, T.; Renta, P.T.; Buyya, R.; Bessis, N.J.I.O.T. Internet of things as a service (itaas): Challenges and solutions for management of sensor data on the cloud and the fog. Internet Things 2018, 3, 156–174. [Google Scholar] [CrossRef] [Green Version]
- Balas, V.E.; Solanki, V.K.; Kumar, R.; Ahad, M.A.R. A Handbook of Internet of Things in Biomedical and Cyber Physical System; Springer: Berlin/Heidelberg, Germany, 2019. [Google Scholar]
- Mahmud, R.; Koch, F.L.; Buyya, R. Cloud-fog interoperability in iot-enabled healthcare solutions. In Proceedings of the 19th International Conference on Distributed Computing and Networking, Varanasi, India, 4–7 January 2018; p. 32. [Google Scholar]
- Bhatia, M.; Sood, S.K.J.M.N. Exploring temporal analytics in fog-cloud architecture for smart office healthcare. Mob. Netw. Appl. 2019, 24, 1392–1410. [Google Scholar] [CrossRef]
- Mehdipour, F.; Javadi, B.; Mahanti, A.; Ramirez-Prado, G.J.F.; Principles, E.C. Fog computing realization for big data analytics. Fog Edge Comput.: Princ. Paradig. 2019. [Google Scholar] [CrossRef]
- Takiddeen, N.; Zualkernan, I. Smartwatches as iot edge devices: A framework and survey. In Proceedings of the IEEE 2019 Fourth International Conference on Fog and Mobile Edge Computing (FMEC), Rome, Italy, 10–13 June 2019; pp. 216–222. [Google Scholar]
- Jagadeeswari, V.; Subramaniyaswamy, V.; Logesh, R.; Vijayakumar, V.J.H.I.S. A study on medical internet of things and big data in personalized healthcare system. Health Inf. Sci. Syst. 2018, 6, 14. [Google Scholar] [CrossRef]
- Gu, F.; Niu, J.; Jin, X.; Yu, S. Fdfa: A fog computing assisted distributed analytics and detecting system for family activities. Peer-to-Peer Netw. Appl. 2019, 1–15. [Google Scholar] [CrossRef]
- Wah, T.Y.; Gopal Raj, R.J.A.S. Reservoir computing based echo state networks for ventricular heart beat classification. Appl. Sci. 2019, 9, 702. [Google Scholar]
- Lakhan, A.; Xiaoping, L. Energy aware dynamic workflow application partitioning and task scheduling in heterogeneous mobile cloud network. In Proceedings of the IEEE 2018 International Conference on Cloud Computing, Big Data and Blockchain (ICCBB), Fuzhou, China, 15–17 November 2018; pp. 1–8. [Google Scholar]
- Monteiro, K.; Rocha, É.; Silva, É.; Santos, G.L.; Santos, W.; Endo, P.T. Developing an e-health system based on iot, fog and cloud computing. In Proceedings of the 2018 IEEE/ACM International Conference on Utility and Cloud Computing Companion (UCC Companion), Zurich, Switzerland, 17–20 December 2018; pp. 17–18. [Google Scholar]
- Ding, R.; Li, X.; Liu, X.; Xu, J. A cost-effective time-constrained multi-workflow scheduling strategy in fog computing. In Proceedings of the International Conference on Service-Oriented Computing; Springer: Berlin/Heidelberg, Germany, 2018; pp. 194–207. [Google Scholar]
- Akrivopoulos, O.; Amaxilatis, D.; Mavrommati, I.; Chatzigiannakis, I.J.J.O.A.I.; Environments, S. Utilising fog computing for developing a person-centric heart monitoring system. J. Ambient Intell. Smart Environ. 2019, 11, 237–259. [Google Scholar] [CrossRef]
- Li, C.; Bai, J.; Tang, J.J.J.O.P.; Computing, D. Joint optimization of data placement and scheduling for improving user experience in edge computing. J. Parallel Distrib. Comput. 2019, 125, 93–105. [Google Scholar] [CrossRef]
- Li, C.; Zhang, J.; Tang, H.J.T.J.O.S. Replica-aware task scheduling and load balanced cache placement for delay reduction in multi-cloud environment. J. Supercomput. 2019, 75, 2805–2836. [Google Scholar] [CrossRef]
- Abdelmoneem, R.M.; Benslimane, A.; Shaaban, E.; Abdelhamid, S.; Ghoneim, S. A cloud-fog based architecture for iot applications dedicated to healthcare. In Proceedings of the ICC 2019-2019 IEEE International Conference on Communications (ICC), Dublin, Ireland, 20–24 May 2019; pp. 1–6. [Google Scholar]
- Tang, H.; Li, C.; Bai, J.; Tang, J.; Luo, Y.J.C.C. Dynamic resource allocation strategy for latency-critical and computation-intensive applications in cloud—Edge environment. Comput. Commun. 2019, 134, 70–82. [Google Scholar] [CrossRef]
- Karthick, T.; Manikandan, M.J.C.; Practice, C.; Experience. Fog assisted iot based medical cyber system for cardiovascular diseases affected patients. Concurr. Comput.: Pract. Exp. 2019. [Google Scholar] [CrossRef]
- Luthra, M.; Koldehofe, B.; Steinmetz, R.J.K.-F.F.C. Adaptive complex event processing over fog-cloud infrastructure supporting transitions. KuVS-Fachgespräch Fog Comput. 2018, 2018, 17. [Google Scholar]
- Lin, S.-S.; Lin, J.-J.J.S. Development of a novel health promotion system based on wireless sensor network and cloud computing. Sens. Mater. 2019, 31, 939–952. [Google Scholar] [CrossRef]
- Poongodi, T.; Krishnamurthi, R.; Indrakumari, R.; Suresh, P.; Balusamy, B. Wearable devices and iot. In A Handbook of Internet of Things in Biomedical and Cyber Physical System; Springer: Berlin/Heidelberg, Germany, 2020; pp. 245–273. [Google Scholar]
- Sanakkayala, S.; Joseph, S.C.; Venkatesha, A.; Polimera, R.; Pawar, R.S.; Dornemann, H.W. Heartbeat Monitoring of Virtual Machines for Initiating Failover Operations in A Data Storage Management System, Using Ping Monitoring of Target Virtual Machines. Google Patents 15/716,386, 5 April 2018. [Google Scholar]
- Boris, J.R. Data standards of the american college of cardiology foundation (accf) and the american heart association (aha) and the universal pediatric cardiac dataset. In Pediatric and Congenital Cardiac Care; Springer: Berlin/Heidelberg, Germany, 2015; pp. 287–294. [Google Scholar]
- Moody, G.B.; Mark, R. Mit-Bih Arrhythmia Database Directory; Harvard University-MIT Division of Health Sciences and Technology: Cambridge, MA, USA, 1992. [Google Scholar]
- Zhou, X.; Zhang, G.; Sun, J.; Zhou, J.; Wei, T.; Hu, S.J.F.G.C.S. Minimizing cost and makespan for workflow scheduling in cloud using fuzzy dominance sort based heft. Future Gener. Comput. Syst. 2019, 93, 278–289. [Google Scholar] [CrossRef]
- Wu, Q.; Zhou, M.; Zhu, Q.; Xia, Y.; Wen, J. Moels: Multiobjective evolutionary list scheduling for cloud workflows. IEEE Trans. Autom. Sci. Eng. 2019, 1–11. [Google Scholar] [CrossRef]
- Zhang, C.; Cho, H.-H.; Chen, C.-Y. Emergency-level-based healthcare information offloading over fog network. Peer-to-Peer Netw. Appl. 2019, 1–11. [Google Scholar] [CrossRef]
Notation | Definition |
---|---|
N | The set of healthcare tasks v |
M | Fog cloud networks V |
The jth fog cloud | |
The ith healthcare task | |
The data of healthcare task | |
Computing rate of the fog server | |
Cost of each fog cloud | |
Calculated execution time | |
Assignment of a task to a fog cloud | |
It denotes the total execution cost of a task | |
Completion of the task | |
TST | Slack-timing of scheduling |
lack | The lateness of a task |
Simulation Parameters | Values |
---|---|
Languages | Python, JAVA, CSharp |
Simulation time | 24 h |
Experiment repetition | 30 times |
Program implementation | Eclipse |
Lead I | DFR0027 |
Lead II | Arduino |
N | 2000 |
M | 3 |
Resource Type | Storage (GB) | Core | Speed (MIPS) | Cost-M |
---|---|---|---|---|
Fog Server 1 | 20,000 | 1 | 10,000 | 100 $ |
Fog Server 2 | 50,000 | 1 | 5000 | 200 $ |
Fog Server 3 | 100 | 1 | 1000 | 500 $ |
Datasets | ECG Subjects | Patients | Critical Heartbeat | Non-Critical Heartbeat |
---|---|---|---|---|
MIT-BIH-SVDB | 78 | - | 9953 | 174,317 |
MIT-BIH-ARR | 48 | 47 | 7803 | 92,754 |
AHA | 155 | - | 32,403 | 317,612 |
Workload | Data Size (MB) | C.Ins. (MI) | No. of Tasks |
---|---|---|---|
MIT-BIH-SVDM | 500 | 5.8 | 825 |
MIT-BIH-AR | 800 | 6.8 | 750 |
AHA | 900 | 7.8 | 1000 |
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Mastoi, Q.-u.-a.; Ying Wah, T.; Gopal Raj, R.; Lakhan, A. A Novel Cost-Efficient Framework for Critical Heartbeat Task Scheduling Using the Internet of Medical Things in a Fog Cloud System. Sensors 2020, 20, 441. https://doi.org/10.3390/s20020441
Mastoi Q-u-a, Ying Wah T, Gopal Raj R, Lakhan A. A Novel Cost-Efficient Framework for Critical Heartbeat Task Scheduling Using the Internet of Medical Things in a Fog Cloud System. Sensors. 2020; 20(2):441. https://doi.org/10.3390/s20020441
Chicago/Turabian StyleMastoi, Qurat-ul-ain, Teh Ying Wah, Ram Gopal Raj, and Abdullah Lakhan. 2020. "A Novel Cost-Efficient Framework for Critical Heartbeat Task Scheduling Using the Internet of Medical Things in a Fog Cloud System" Sensors 20, no. 2: 441. https://doi.org/10.3390/s20020441
APA StyleMastoi, Q. -u. -a., Ying Wah, T., Gopal Raj, R., & Lakhan, A. (2020). A Novel Cost-Efficient Framework for Critical Heartbeat Task Scheduling Using the Internet of Medical Things in a Fog Cloud System. Sensors, 20(2), 441. https://doi.org/10.3390/s20020441