Next Article in Journal
Molecular Testing in Ovarian Tumours: Challenges from the Pathologist’s Perspective
Previous Article in Journal
Acute Appendicitis Following COVID-19 Infection in Pediatric Patients: A Single Center’s Study in Greece
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fog-Based Smart Cardiovascular Disease Prediction System Powered by Modified Gated Recurrent Unit

by
A Angel Nancy
1,
Dakshanamoorthy Ravindran
1,
Durai Raj Vincent
2,
Kathiravan Srinivasan
3 and
Chuan-Yu Chang
4,5,*
1
Department of Computer Science, St. Joseph’s College (Autonomous), Bharathidasan University, Tiruchirappalli 620002, India
2
School of Information Technology and Engineering, Vellore Institute of Technology, Vellore 632014, India
3
School of Computer Science and Engineering, Vellore Institute of Technology, Vellore 632014, India
4
Department of Computer Science and Information Engineering, National Yunlin University of Science and Technology, Douliu City 64002, Taiwan
5
Service Systems Technology Center, Industrial Technology Research Institute, Hsinchu 310401, Taiwan
*
Author to whom correspondence should be addressed.
Diagnostics 2023, 13(12), 2071; https://doi.org/10.3390/diagnostics13122071
Submission received: 6 March 2023 / Revised: 25 April 2023 / Accepted: 9 June 2023 / Published: 15 June 2023
(This article belongs to the Section Machine Learning and Artificial Intelligence in Diagnostics)

Abstract

:
The ongoing fast-paced technology trend has brought forth ceaseless transformation. In this regard, cloud computing has long proven to be the paramount deliverer of services such as computing power, software, networking, storage, and databases on a pay-per-use basis. The cloud is a big proponent of the internet of things (IoT), furnishing the computation and storage requisite to address internet-of-things applications. With the proliferating IoT devices triggering a continual data upsurge, the cloud–IoT interaction encounters latency, bandwidth, and connectivity restraints. The inclusion of the decentralized and distributed fog computing layer amidst the cloud and IoT layer extends the cloud’s processing, storage, and networking services close to end users. This hierarchical edge–fog–cloud model distributes computation and intelligence, yielding optimal solutions while tackling constraints like massive data volume, latency, delay, and security vulnerability. The healthcare domain, warranting time-critical functionalities, can reap benefits from the cloud–fog–IoT interplay. This research paper propounded a fog-assisted smart healthcare system to diagnose heart or cardiovascular disease. It combined a fuzzy inference system (FIS) with the recurrent neural network model’s variant of the gated recurrent unit (GRU) for pre-processing and predictive analytics tasks. The proposed system showcases substantially improved performance results, with classification accuracy at 99.125%. With major processing of healthcare data analytics happening at the fog layer, it is observed that the proposed work reveals optimized results concerning delays in terms of latency, response time, and jitter, compared to the cloud. Deep learning models are adept at handling sophisticated tasks, particularly predictive analytics. Time-critical healthcare applications reap benefits from deep learning’s exclusive potential to furnish near-perfect results, coupled with the merits of the decentralized fog model, as revealed by the experimental results.

1. Introduction

The global revolution brought about by the reign of the digital age has touched all walks of human life and ushered in expeditious changes that are reshaping economies and societies and opening up immense possibilities while transforming lives. Given this, the centralized cloud computing model offers ubiquitous access to resources required for processing, analytics, and storage in a conducive manner [1,2]. The internet of-things (IoT), which seamlessly connects objects and people, has triggered a data upsurge due to the rapidly expanding number of connected devices. The data thus acquired warrants analysis, identifying patterns and trends to infer insights for efficient decision-making. However, IoT devices possess minimal computational and storage potential. These limitations are overcome by integrating cloud computing with IoT, termed the Cloud-of-Things [3]. In that context, the cloud has become the key enabler of IoT, offering services across healthcare, education, and industry domains while overcoming significant IoT restraints.
The World Health Organization (WHO) states that cardiovascular diseases claim 17.9 million lives globally annually [4]. Healthcare applications deploy artificial intelligence, specifically machine learning techniques, to elicit intelligent insights [5] from the exponentially increasing medical data. These clinical prediction models aid in diagnosing heart disease and prognosis by accurately predicting future medical events, thereby improving individuals’ health [6]. The proliferating number of healthcare internet-of-things devices, such as smart wearable ones, generates massive amounts of data, transmitted to the cloud for computation. The cloud possesses the improved processing power these machine learning models warrant [7]. The data transfer between these healthcare IoT devices and the cloud servers requires considerable bandwidth. Furthermore, it increases latency, which is inept for real-time healthcare applications that are, by and large, latency-sensitive [8]. The fog computing paradigm, put forth by Cisco, positions the fog layer closer to the IoT layer, where data is produced, and conveniently extends the cloud services to the edge [9]. The inclusion of an additional layer with computational capability amid the cloud layer and the IoT layer considerably minimizes the response time, making inpatient care and remote monitoring possible. With healthcare applications warranting swift reaction times, fog computing is a viable alternative to managing the complexity of vast medical data, eventually enhancing reliability [10]. Thus, this assures that the cloud is reserved for large-scale, complex analytics tasks. The potential to triage data while eliciting vital decisions within the device’s environment, as in fog, will help extract critical insights from the vast volume of data [11].

1.1. Motivation

The cloud servers traditionally manage the pre-processing, analysis, and storage of the enormous IoT data generated at varying velocities from sizable IoTs. These are eventually sent to the cloud datacenters, and the computation result is returned to the IoT devices, leading to transmission and processing errors alongside needless delays [12]. The high latency in handling real-time medical data may render it inadequate, meaningless, and unreliable. With expanding data sizes, delays due to round-trip time may increase from milliseconds to minutes, adversely impacting the quality of service (QoS) of healthcare IoTs’ real-time operations. The crucial necessities of healthcare IoTs include reducing latency and conserving network bandwidth. IoT devices are linked to the cloud by several routers and gateways, causing data to travel a long distance and consume high bandwidth, causing needless delays [13]. An intensive care unit (ICU) patient or a home-bound cardiac patient under monitoring warrants swift actions as soon as a drop in vital signs is detected, and caretakers are to be promptly notified to avoid it becoming disastrous and fatal [14]. The physiological state of patients varies with time, and remote patient monitoring insists on rapid responses and agile decisions. Thus, most healthcare IoT applications require processing close to IoT devices and hardly need cloud-scale storage and processing.
The huge amount of data amassed by healthcare IoT devices makes it challenging to infer intuitive and streamlined decisions from the electronic clinical records to enhance clinical care’s reliability. With devices becoming tinier and data becoming more sizeable, finding meaningful methods to acquire, analyse, interpret, and use data that can substantially impact patient care is becoming a hassle. With the cloud unable to meet healthcare IoT demands due to its inherent limitations, the fog computing (FC) concept has garnered attention lately. It eases the burden of the centralized cloud by extending its features to the network edge, which can be a router, gateway, or any device mediating the cloud and IoT. With proximity to IoT end devices, FC’s key intent is to mitigate the high latency between the cloud and IoT devices. The healthcare application entails a smart infrastructure that acquires the massive IoT data in real time, performs preliminary computation tasks while reducing network latency and transmission issues, and sends the processing results to the cloud and IoT end nodes. The primary motivation of this research is to enhance decision-making accuracy when handling vast amounts of data, which deep learning models are competent at handling. The research endeavour also emphasizes the minimum latency requisite for time-critical healthcare applications using fog computing technology for enhanced quality of service.

1.2. Contributions of This Work

The key outcomes of the research primarily oriented toward diagnosing heart disease risk severity are as follows:
  • The smart and efficient heart disease diagnostic system encompasses the IoT–fog–cloud technologies;
  • The healthcare IoT data acquired is pre-processed by a filtering technique and fuzzy inference system and subjected to predictive analytics at the fog layer using deep learning’s recurrent neural network model of the gated recurrent unit (GRU);
  • The proposed fuzzy inference system with improved GRU accurately predicts heart attack risk from IoT patient data and electronic health records (EHR) when compared to the results of the generic GRU model;
  • The suggested model is evaluated using metrics that test the deep learning model’s predictive adeptness and performance, with a comparison of cloud and fog.
The rest of the article is organized into sections on related work, background, proposed methodology, experimental setup, performance evaluation, results and discussion, and conclusions.

2. Literature Review

Smart healthcare systems are becoming prevalent and have been revolutionised by merging cloud computing and IoT-based sensor technology. Minor errors in heart disease diagnosis may prove fatal to patients; therefore, ML techniques have been deployed to predict various cardiovascular diseases effectively, thereby minimizing the death ratio [15]. The University of California, Irvine (UCI) Machine Learning Repository’s Heart Disease dataset has been harnessed by many researchers to examine their heart disease classification model’s efficiency, which is discussed as follows [4,16,17,18,19,20,21,22,23,24,25,26,27,28,29]. A study conducted by Singh and Kumar to analyse the effectiveness in detecting heart diseases among the machine learning algorithms of support vector machine, decision tree, k-nearest neighbour, and linear regression concluded that the k-nearest neighbour is the preferred model, with an accuracy of 87% [16]. A similar study by Rajdhan et al., with the same dataset involving a decision tree, naive Bayes, logistic regression, and random forest algorithms, indicates that the best accuracy, of 90.16%, was shown by the random forest algorithm [17]. An Android application based on the cloud was proposed to predict heart disease with algorithms such as naive Bayes, simple logistic regression, random forest, support vector machine, and artificial neural networks, among which support vector machine exhibited the highest accuracy at 97.53% [18]. A heart disease diagnosis system involving two subsystems of relief and rough set feature selection and an ensemble classifier model has shown 92.59% accuracy when evaluated [19]. Classifying heart diseases from electrocardiogram (ECG) signals by using classification and pre-processed methods displays an accuracy of 98.4% when symbolic aggregate approximation for pre-processing and long short-term memory (LSTM) for classification are used [20]. A smart system to ascertain key biomedical markers named BioLearner is proposed for predicting heart disease utilizing machine learning algorithms such as a k-nearest neighbour, neural networks, and support vector machine displays an accuracy of 95% [21]. Predicting heart disease by an ensemble deep dynamic algorithm using linear regression and a deep Boltzmann machine displays an accuracy of 98.12% [22].
In recent times, IoT–fog–cloud-based models for predictive analytics have become prominent owing to the benefits they offer. Fog computing is equipped to proficiently address computational tasks involving healthcare data originating from diverse IoT devices, such as wearable sensors, and prior electronic clinical data stored in the cloud [23]. In particular, fog computing’s operational capability minimizes response time, latency, and delay, which is adept for heart disease patients’ healthcare monitoring. An IoT–fog computing integrated healthcare system called HealthFog has been proposed for heart disease diagnosis [24], which employs ensemble deep learning models of bagging and boosting. Furthermore, it harnesses the FogBus framework [25], which enables IoT–fog–cloud integration and has shown improved accuracy, latency, network bandwidth, jitter, execution time, and power consumption. It is customizable for different operation modes, offering the best prediction accuracy and quality of service. A novel hybrid IoT–fog assisted healthcare model [26] for handling heart disease data based on fuzzy reinforcement learning and neural network evolution strategies at fog nodes has been proffered. It indicates optimal performance results regarding latency, RAM consumption, and network usage under simulation compared to existing techniques.
HealthCloud, a cloud-based monitoring system to identify heart disease risk involving a support vector machine, logistic regression, gradient boosting trees, k-nearest neighbour, and neural networks, unveiled logistic regression as being 85.96% more accurate and responsive [27]. Here, performance was evaluated using the metrics of accuracy, recall, specificity, latency, execution time, and memory usage. An IoT–fog–cloud-based heart disease diagnostic model deploying machine learning algorithms has been put forth, which shows an accuracy of 97.32%, precision of 97.16%, recall of 97.58%, specificity of 96.87%, and F1-measure of 97.37% [28]. A modified deep convolutional neural network model involving smart healthcare monitoring to predict heart disease in the IoT–cloud framework while harnessing the UCI dataset shows an accuracy of 93.3% [29]. An IoT smart system for predicting heart disease with kernel discriminant analysis and a modified self-adaptive Bayesian algorithm displays an accuracy of 90% [30]. An IoT-cloud-based smart heart disease prediction system was suggested to acquire healthcare data from the IoT and utilize a fuzzy inference system for data pre-processing and bidirectional long short-term memory for classification, and showed 98.86% accuracy [4].
Machine learning is deployed not only for heart disease prediction systems but also for other healthcare diagnostic applications. A system is presented to identify the hypertensive stage, wherein IoT sensors acquire the user’s health parameters in real time at the fog layer [31]. An alert is generated once hypertension is identified, and the artificial neural network predicts a hypertension attack risk state in users at remote sites. The results are stored in the cloud, while the temporal information produced at the fog layer can be used to enforce preventive measures for patients’ wellness. This model displays high prediction accuracy, low response time, and bandwidth efficiency. For monitoring, prevention, and control of encephalitis [32], a fog-assisted healthcare model deploying a fuzzy C-Means classifier and a temporal recurrent neural network has shown improved classification and prediction accuracy while minimizing latency and response time. In the research work for a fog-based diabetes patient support system [33], the J48Graft decision tree has been deployed. A fog-based latency-aware framework to monitor and detect dengue viruses involving cloud computing and IoT has been shown to classify users by symptoms with improved execution and response time [34].

3. Materials and Methods

3.1. IoT–Fog–Cloud Interplay

By 2025, the number of smart, connected devices is forecasted to exceed 75.44 billion, up from 42.62 billion in 2022 [35]. As per the International Data Corporation (IDC), the global data volume produced by IoT devices is predicted to exceed 79.4 zettabytes (ZB) by 2025 [36]. The surging data from IoT-connected devices within the conventional cloud computing model has triggered the cloud’s inherent shortcomings to become apparent as services are orchestrated by distant cloud datacenters [37]. It is inept at managing time-sensitive real-time applications that warrant swifter decision-making and has become insufficient as a myriad of devices accesses the cloud. An efficient quality of service (QoS) assurance is vital for latency-sensitive real-time applications.
The fog computing concept has evolved to be a reliable and resilient extension of the cloud, favourably positioned in between the cloud layer and the IoT device layer [38]. Its proximity to the end users is favourable for efficiently managing computation and communication tasks alongside crucial local resource-sharing and storage-related activities. Fog computing encompasses a geographically distributed architecture involving heterogeneous edge-level devices that provide flexible computation, storage, and communication services [39]. Thus, fog computing complements cloud computing technology by extending it to the network edge, accelerating lightweight local processing of data and responses to events, thereby reducing latency [40]. The data transmission rate is significantly reduced as a round trip to the cloud is mitigated. The increased network bandwidth utilization caused by data traffic to and from the core cloud network is drastically reduced due to local data processing. Unlike the cloud, which possesses unlimited, high-performance processing and storage capability, fog computing has limited resources. With localized analysis, overall business agility and service levels are improved.

3.2. Predictive Analytics in Healthcare

Predictive analytics is a field of data analytics involving engineering, scientific, mathematical, and statistical models and data mining techniques, as well as AI and machine learning methods, for foreseeing patterns to make accurate and meaningful decisions [41]. The past and real-time data are used to predict the future. The interest in predictive analytics in healthcare in the recent past is attributed to the availability of flexible and powerful machine learning algorithms and computing platforms alongside high-quality data; more specifically, electronic health record (EHR) data [42].
Accurate, real-time insights based on abundant clinical data that can impact patients are crucial in aiding healthcare organizations, hospitals, and clinicians [43]. Predictive analytics in healthcare analyses past records and current clinical data. It offers clinical decision support for doctors to render a fast and accurate diagnosis, identify at-risk patients, prevent diseases, and provide quality patient care [44]. It further includes identifying deteriorating patient signs in the ICU, remotely providing predictive care to high-risk patients, preventative care for chronic diseases, and detecting the equipment’s maintenance needs. It helps predict where, when, and how to improve health outcomes through enhanced patient care. Healthcare analytics enables averting medical risks rather than treating health problems and empowers clinicians to make informed decisions with patients’ lives at stake [45]. It is a convenient tool that enhances the value of healthcare by being helpful in diagnosis, prognosis, and treatment while saving time and reducing costs.
Traditional statistical methods as well as advanced artificial and machine learning approaches are leveraged, referred to as clinical prediction models. They enable eliciting accurate predictions and identifying the patient’s risk condition from enormous data in less time [46]. Predictive analytics is already becoming a keystone of personalized healthcare treatment and helps warn clinicians and caretakers about the potential of occurrences and outcomes before they happen. This decreases the administrative burden of healthcare professionals and helps tackle administrative and operational challenges. Driven by the widespread deployment of artificial intelligence and the internet of things (IoT), algorithms are fed historical as well as real-time healthcare data to make meaningful predictions on the probability of events to prevent and cure health issues.

3.3. Recurrent Neural Network (RNN)

All domains encompassing industry, healthcare, agriculture, education, banking, and finance are, without exception, permeated by machine learning (ML) techniques. Explicitly, deep learning (DL), which attempts to mimic the human brain’s functionality, has been garnering significance recently as a subfield of machine learning [47]. It can learn from an enormous amount of data and, with additional hidden layers, optimise and refine predictions with incredible accuracy. DL drives many everyday AI products and services that perform without human intervention. Deep learning has proven it is able to solve intricate predicaments as a supervised learning model, with notable breakthroughs in computer vision, natural language processing, autonomous vehicles, fraud detection, and healthcare. Certain deep learning neural networks or artificial neural networks are profoundly sophisticated, addressing specific cases and datasets [48]. Convolutional neural networks (CNNs) have efficiently handled computer vision, image pattern recognition, and classification tasks [49]. Recurrent neural networks (RNNs) leverage sequential or time series data in natural language processing, speech recognition, meteorological data, and predictive healthcare [50].

3.4. Gated Recurrent Unit (GRU)

In addition to manually recorded unstructured data, the surge in multi-sensor systems has led to episodic time series data. The conventional deep learning techniques fail due to the irregularities and incompleteness of time series data [51]. From our foray into deep learning (DL), we can report that recurrent neural networks (RNNs) are worth investigating owing to their state-of-the-art solutions in modelling time series data. They compute each time step’s hidden state using the previous hidden state and the current input through a weight matrix and activation function, enabling retention of information from past inputs. In spite of the standard RNN’s adeptness at handling temporal dependencies, it suffers from vanishing gradient problems. This problem arises when the backpropagation gradients become too small to update the network parameters, thereby impairing the network’s ability to learn long-term dependencies. However, RNN’s variants of long short-term memory (LSTM) and gated recurrent unit (GRU) have shown phenomenal results in sequential modelling [50,52]. It is an apparent choice for handling irregular as well as time series data. Hence, a GRU is worth a try in predictive healthcare. It is designed to overcome the vanishing gradient issue and efficiently capture long-term dependencies by incorporating gated mechanisms that streamline the network’s information flow.
GRU is a gated RNN, propounded by Kyunghyun Cho et al., that employs the reset and update gates to regulate selective retention or forgetting of information from prior time steps [53]. At each time step, the GRU acquires an input vector and a hidden state vector to generate an output vector and a new hidden state vector. The hidden state basically includes a value ‘1’ or ‘0’ indicating that the previous hidden state is fully retained or forgotten, respectively. The update gate helps determine the past information that is to be retained and passed on to the current hidden state from the previous hidden state and current input. The reset gate decides which past knowledge to forget from the previous hidden state and how much of the current input to focus on [54]. Thus, the GRU model learns through training by backpropagation involving weight matrices and activation functions. The activation function sigmoid is used for the update and reset gate. The tanh activation function is used to compute the current hidden state. GRU is much simpler, as it includes fewer parameters, making it easier and faster to train while consuming less memory [55]. The gated recurrent unit can be referred to as memory-centred, as it is capable of retaining information over a while. The equations of a standard GRU are delineated as follows:
Update   gate :   z t = σ W z x t + W z h t 1
Reset   gate :   r t = σ W r x t + W r h t 1
Candidate   hidden   state :   h t ~ = tanh W x t + W r t + W h t 1
Hidden   state :   h t = 1 z t h t 1 + z t h t ~
where z, r are the update and reset gates, respectively, while W(z,r) corresponds to their weight matrices. h t ~ and h t indicate at time t the linear interpolation among the current h t ~ and previous h t activation states, while x t refers to the input. σ and t a n h are the sigmoid and the hyperbolic tangent activation functions, respectively. The element-wise multiplication is indicated by the operator. Figure 1 depicts the standard gated recurrent unit model [56].
In Figure 1, x t is the input at time step t, h t 1 denotes the hidden state of the previous time step, and sigmoid and tanh are the activation functions. The update gate z t determines how much information to withhold from the previous hidden state. The reset gate r t decides how much of the new input should be considered. The candidate hidden state h t is the intended new hidden state, which is the combination of the input and the reset gate. The actual hidden state, h t , is based on both the candidate hidden state as well as the previous hidden state. The output is generated based on the hidden state h t .

3.5. Proposed Model

IoT-connected devices acquire data for real-time healthcare applications. With surging IoT devices comes the challenge of managing the computation and storage of an exorbitant volume of medical data generated from the connected devices.
The propounded smart heart disease risk prediction system, as portrayed in Figure 2, comprises modules of (1) Data collection, (2) Data pre-processing, and (3) Disease risk prediction.

3.5.1. Data Collection Layer

The proposed predictive smart healthcare system has two main data sources: physiological data acquired from remote health monitoring smart devices, and electronic health records (EHR). The data gathered from routine monitoring of patients using smart connected devices include blood pressure (BP), blood sugar level, respiration rate, heart rate, blood oxygen level, cholesterol level, electrocardiogram (ECG), electroencephalogram (EEG), and electromyogram (EMG). The electronic clinical data include an extensive medical history comprising lab reports, observations, medications, and allergies that offer valuable disease prediction information, which is stored in the cloud database. The acquired data is sent to associated fog layer nodes, such as gateway devices, for further analysis, via wireless technologies, Bluetooth, or Zigbee [57], which enable interaction between IoT devices.
  • Dataset
The heart disease datasets from the Hungarian Institute of Cardiology and Cleveland Clinic Foundation were accessed from the UCI machine learning repository [58]. This fairly balanced dataset collectively had 597 records with 76 actual attributes, of which 13 features were selected for this research to detect heart attack risk in patients. Table 1 depicts the characteristics of the dataset considered.
Table 2 depicts the sample of the dataset considered.

3.5.2. Data Pre-Processing Layer

With real-world data likely to be incomplete, inconsistent, and noisy, data pre-processing prior to ML model deployment has become inevitable. The wearable sensor data is prone to noise and missing data owing to signal aberrations, which may impact the accuracy of the heart disease prediction system. Therefore, the Kalman filtering technique, which operates with minimal computing power, is used to remove noise, duplicate records, and discrepancies in data of concern [59,60]. This technique is apt to manage huge amounts of sensor data and can deliver values near actual sensor data while eliminating noise.
The initial classification of heart disease risk based on the patient’s health data, namely blood pressure, maximum heart rate, and ECG, is done using the fuzzy inference system (FIS) [4]. The fuzzy system is used to model real-world occurrences that are innately vague and derived from the logical decisions made by humans using imprecise as well as non-numerical inferences. Fuzzy inference maps input to output based on fuzzy logic to ensure discernment of patterns for accurate decision-making. In the proposed system, the values of maximum heart rate, ECG, and blood pressure and their respective member functions served as input. The member functions taken for the three inputs were low, normal, and high. They were then fuzzified using a fuzzy value range into fuzzy sets. As per the classification results, high-risk patients and their overall status were stored for future analysis on the cloud server. The high-risk patient data was further analysed at the subsequent prediction layer. The algorithm for a fuzzy inference system (FIS) for classifying the risk of heart disease using blood pressure, ECG, and maximum heart rate is illustrated in Algorithm 1.
Algorithm 1: Classifying patients by their health data by FIS
Step 1: Inputs and relevant member functions define the fuzzy system
Step 2: Calculate the risk of heart disease by µ1(ECG_1), µ1(MaxHeartRate_1), µ1(BloodPressure_1)
as µ1(high) or µ1(normal) or µ1(low)
Step 3: If HealthRiskState = µ1(high)
   3.1 Notify GD using SPARK as RTA
   3.2 Store Puid in FS and CS
Step 4: Otherwise store Puid HealthRiskState in CS
Step 5: Stop the process
GD: Gateway device; CS: Cloud server; FS: Fog server; µ1: Membership function; RTA: Real-time analyser; Puid: Patient unique identification number
Note: SPARK is the open-source analytical engine issuing real-time analytics.
An alert is sent regarding patients found to be at high risk for heart disease, and the health status results are stored in the cloud for future reference.

3.5.3. Data Prediction Layer

After the initial pre-processing tasks were completed, the patients classified as being at high risk for cardiac disease were additionally subjected to intense analysis at the subsequent prediction layer. This research initiative modifies the RNN’s variant of GRU for the prediction task. The modified GRU model classified cardiac disease states accurately as having risk or not and was found to outperform the standard GRU’s prediction accuracy. The performance-enhanced GRU model description and the ensuing performance evaluation are delineated as follows:

Modified GRU Model

The gated recurrent unit (GRU) is the latest advancement of the standard recurrent neural network model intended to overcome the vanishing gradient impediment coupled with faster computational capability and less memory consumption [53,54,56,61]. If a layer fails to learn in a neural network, the RNNs forget longer sequences. The GRU solves this issue by deploying two gates—the update and reset gates—that determine whether the information is allowed through to the output, and it retains information from farther back, respectively. Thus, it enables passing only relevant information from a sequence of events for better predictions. The update gate updates the weights and helps eliminate the problem of vanishing gradient. The model learns on its own and continues to update the information to pass on to the future. In contrast, the reset gate determines the information that needs to be forgotten concerning the current state.
The choice of the activation function is found to have a significant influence on the training dynamics as well as the task performance in deep neural networks. Hence, the swish activation function propounded by the Google Brain Team [62] is chosen for the predicted model, which is given as f x = x . s i g m o i d β x . Figure 3 shows the modified GRU model.
z t = s w i s h W z x t + W z h t 1
r t = s w i s h W r x t + W r i h t 1
h t ~ = ReLU W x t + W r t + W h t 1
h t = 1 z t h t 1 + z t h t ~
where z, r are the update and reset gates, respectively, while W(z,r) corresponds to their weight matrices, and h t ~ and h t indicate, at time t, the linear interpolation among the current h t ~ and previous h t activation states. The activation functions in the update and reset gates in the standard gated recurrent unit are sigmoid σ , a n d are depicted in Equations (1) and (2). These are replaced by the swish activation function, in the proposed gated recurrent unit model which is indicated in Equations (5) and (6). Similarly, the current memory gate, h t ~ , of the standard GRU having the tanh activation function stated in Equation (3) is replaced by the rectified linear unit (ReLU) activation function as depicted in Equation (7) in the propounded model.

Experimental Setup

The experiment assesses the deep learning models’ abilities, namely the standard GRU, the combined FIS-GRU (FGRU), and the suggested model, by harnessing the Hungarian and Cleveland heart disease dataset, from the University of California, Irvine (UCI) online ML and data mining repository [58]. This dataset collectively had 597 records with 14 features. The records were synthetically increased using the dataset generator tool, Mockaroo, to 100,000 records to assess the robustness of the proposed model. The IoT data gathered from smart health monitoring devices pertaining to heart disease risk were transmitted to fog devices, wherein the pre-processing and classification took place. Once the pre-processing data tasks were dealt with, the resulting patient data was subjected to three distinct deep prediction models. These comprised the generic GRU model; the fuzzy inference system (FIS) combined with the GRU, indicated by FGRU, wherein the initial classification was performed by the FIS, followed by the GRU for the final prediction; and the proposed GRU model, which also included FIS for the initial classification task.
For the experiment, a system with Intel(R) Core i5-10210U CPU @ 2.11 GHz, 8.00 GB RAM, and 64-bit Windows 10 connected to the intermediary i2k2 cloud infrastructure to rent the Amazon cloud server. The number of fog nodes used ranged from 100 to 1000, with CPU @ 12–80 MHz, 16 KB to 1 MB RAM, 4 MB to 32 MB storage, and IEEE 802.11 Wi-Fi. In addition, the Google Brain team’s open-source machine learning framework of TensorFlow [63] was also utilized. The Apache Spark server, a scalable, in-memory, and open-source framework that has surfaced as the de facto leader among machine-learning-based analytics having faster memory access and disk access, was utilized as well [64,65]. Furthermore, the open-source Apache Cassandra, offering distributed storage infrastructure, was used for this research [66]. The past medical data of patients was accessed from the cloud, and it also stored the final results for future analysis. The suggested neural network model based on the gated recurrent unit consisted of four layers, of which two were hidden. There were five units in the dense layer, and the dropout rate ws 16%. The random weight initialization ranged from 0.1 to 0.2. The decay and learning rates were 0.94 and 0.018, respectively. The optimizer used was Adam; the number of epochs was set to 765 and the batch size was 128. Table 3 indicates the hyperparameter values of the proposed model.

Performance Evaluation

For training and testing tasks, the 100,000 patient medical records were partitioned into 70% and 30%, respectively, as this offered the highest accuracy and goodness of fit [67]. The entire dataset of 100,000 records was validated by k-fold cross-validation, wherein the dataset was shuffled and split into k groups. Here, k = 10 was chosen, so the records were divided into ten equal-size sub-samples of 10,000 records. Thus, k − 1, which was 9 folds, was used for training, and the one holdout fold was used for testing. Tuning the neural network model’s hyperparameters and then testing it with entirely unseen data helped prevent overfitting; hence, the cross-validation technique was chosen. After repeating this procedure for all sub-samples, the models were evaluated for accuracy, precision, sensitivity, specificity, and the F1 measure for classifying the heart disease risk status.

Evaluation Metrics

The deep learning models’ efficiency was evaluated by the measures of accuracy, precision, recall, specificity, and F1-score [68,69]. The overall predictive ability of the model was revealed by the accuracy metric, which compared the desired output with the actual output. The classification model’s ability to identify heart disease risk in a patient was examined by the values of true positive (TP) and true negative (TN). False positives (FP) and false negatives (FN) pointed out the wrong predictions made by the model. The proportion of actual positive observations to all positive observations was determined by precision. Recall and specificity were the proportions of overall positive and negative observations, respectively. F1-measure was the mean of recall and precision.

4. Results and Discussion

The comparison of the generic GRU model; fuzzy inference system (FIS) combined with GRU, indicated by FGRU; and the proposed GRU model was performed, and results in terms of accuracy, precision, recall, specificity, and F1-score were analysed. The three deep models of concern were evaluated by increasing the records from 10% to 100%. The results of a comparative analysis vividly proved that the proposed smart heart attack risk prediction system involving a fuzzy inference system for preliminary analysis and a modified gated recurrent unit for predictive analytics performed better.
Figure 4a–e depicts the accuracy, precision, recall, specificity, and F1-score analysis of the models GRU, FGRU, and the proposed system. The overall performance measures of the GRU, FGRU, and proposed model are hereby compared in Table 4.
The results of accuracy, precision, recall, specificity, and F1-score analysis indicate that the propounded model outperforms the other models of GRU and FGRU. Figure 5 portrays the proposed model’s comprehensive performance.
The proffered model has outdone the other models with an accuracy of 99.13%, a precision of 99.13%, a sensitivity of 99.12%, a specificity of 99.13%, and an F1-score of 99.13%. From the accuracy of 99.13%, we infer the misclassification or error rate (e) using the following formula,
M i s c a l s s i f i c a t i o n   r a t e   ( o r )   E r r o r   r a t e = F P + F N T o t a l
gives the misclassified rate of disease prediction, which is equivalent to
M i s c l a s s i f i c a t i o n   r a t e   o r   E r r o r   r a t e = 1 A c c u r a c y
Thus, the error rate of the proposed healthcare system for disease prediction is 0.0087.
Moreover, the model was evaluated for its efficiency using the confusion matrix depicted in Figure 6.
The receiver operating characteristics (ROC) curve is a classification model’s key performance indicator that is plotted using the true positive rate (TPR) and false positive rate (FPR) at different classification thresholds. For binary classification problems with an unbalanced dataset, the area under the ROC curve (AUC) score is preferred to the accuracy measure. Figure 7 portrays the ROC curve for the proposed approach.
The AUC score of the model was found to be 81.35%. However, the UCI heart disease dataset harnessed to evaluate the propounded model is reasonably balanced, so the accuracy score supersedes the AUC score.
Mean average precision (mAP) is another common metric used to ascertain a classification model’s performance. It is computed based on the average precision value derived from precision and recall. The mAP of the model was found to be 98.43%.

4.1. Comparison with State-of-the-Art Systems

The classification accuracy of the state-of-the-art models harnessing the UCI heart disease dataset was compared with the proposed work. The comparative analysis with the existing literature is characterized by increasing order of accuracy in Table 5.

4.2. Comparative Analysis—Fog vs. Cloud

The deep learning model proposed in this work was ascertained by increasing the dataset from 10% to 100% in both cloud- and fog-based computing. The model’s performance in terms of latency rate, jitter, average response time, and memory utilization was evaluated in cloud and fog. Figure 8 depicts the evaluated network latency results. It indicates that classifying the patient’s risk for heart disease by the proposed gated recurrent model involving the fog layer showed less latency relative to that of cloud-based computing. The transmission delay effectuated due to network congestion was referred to as jitter and was examined in cloud and fog, and the results in terms of time are indicated in Figure 9. The network jitter in the fog was comparatively lower than that in the cloud. The average response time in fog and cloud was also evaluated, and the results in fog showed a lower response time in the fog than in the cloud, which is depicted in Figure 10. Moreover, the memory utilization of the proposed classification model was ascertained, with fog showing better results due to offloading to nearer fog nodes than the faraway cloud, and the results are portrayed in Figure 11. With fog computing offering processing as well as communication resources in proximity to the end users, it considerably minimizes data transmission traffic and leads to low latency. In contrast, the centralized cloud computing model transmits enormous data to the cloud server for computation, thus increasing traffic congestion and latency rate.

4.3. Limitations and Future Directions

The system proposed in this work deploys a fuzzy inference system for pre-processing combined with a modified GRU for heart attack risk prediction that outdoes other models, with remarkable outcomes evident from the performance results. The research initiative of performing health analytics at the fog layer has shown substantial results in reducing latency. However, the model harnesses the UCI heart disease dataset, and in order to ascertain the efficacy of the model, it needs to be deployed in a medical setting. Despite having significant upsides to the traditional cloud-only model, the fog model encounters several downsides that must be remedied. Fog computing encompasses a diverse set of end devices ranging among sensors, mobile phones, and internet-of-things gadgets, among others. The billions of geographically dispersed fog devices raise maintainability issues and increase operational expenses. In addition, it encounters the strenuous task of linking heterogeneous devices with different configurations that operate with multiple protocols and are furnished by multiple vendors. The seamless integration of such diverse devices and systems raises compatibility and interoperability issues. Hence, rigorous research efforts are needed to overcome these challenges.
Furthermore, because data is processed and stored on multiple edge devices, there is an increased risk of data breaches and unauthorized access with fog computing. This can be overcome by configuring the fog nodes to be impervious to physical harm and site-based attacks, with strict access control policies and tamper-proof hardware. Authentication and trust methods developed before the advent of heterogeneous IoT nodes and fog nodes are becoming obsolete. Hence, a novel user, service, node authentication, and trust framework must be designed. Offloading work to fog nodes could compromise personal data, so a foolproof method of offloading tasks while ensuring their correctness and integrity is needed. The user has access to multiple potentially sensitive fog nodes. Protecting the confidentiality of private information with appropriate privacy-preserving mechanisms is crucial.

5. Conclusions

The healthcare industry has primarily benefited from digitizing hospital records, enabling clinicians to leverage powerful predictive algorithms to facilitate clinical decision-making. It enables the prevention and cure of health issues by alerting clinicians, as well as caregivers, ahead of time on the possibility of medical events. In this research endeavour, a smart system for the prediction of heart attack risk based on an IoT–fog–cloud model is propounded, which deploys the fuzzy inference system (FIS) and a modified gated recurrent unit (GRU) to handle the predictive task. This suggested system outperforms other cutting-edge heart disease prediction models. The time-sensitive analytical tasks effectuated at the fog layer effectively tackle the IoT data upsurge, as they prevail over the cloud’s inherent shortcoming of higher latency caused by increased response time. The proffered model can be extended to facilitate personalized diet and exercise recommendations to patients on the clinician’s advice. Healthcare analytics expedites the early identification of illnesses, agile clinical decision-making, and timely intervention, enabling more accurate, swifter, and safer patient care. It further enhances the quality of service by involving medical data analytics at the fog layer. This is just a small fraction of the immense potential that deep learning models possess, which has yet to be explored in healthcare. The future of healthcare is anticipated to forge ahead with unfolding technology trends. Moreover, the complex challenges of device heterogeneity and geographically wide distribution, interoperability, maintainability, increased operational expenditure, and security and privacy concerns in the fog-based healthcare environment are to be resolved with further study.

Author Contributions

Conceptualization, A.A.N., D.R. and K.S.; methodology, A.A.N., D.R. and K.S.; software, A.A.N.; validation, D.R.V., K.S. and C.-Y.C.; formal analysis, A.A.N.; investigation, A.A.N.; resources, K.S. and C.-Y.C.; data curation, A.A.N.; writing—original draft preparation, A.A.N.; writing—review and editing, A.A.N., D.R., D.R.V., K.S. and C.-Y.C.; visualization, A.A.N. and K.S.; supervision, D.R.; project administration, C.-Y.C.; funding acquisition, C.-Y.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially funded by Intelligent Recognition Industry Service Research Center from the Featured Areas Research Center Program within the framework of the Higher Education Sprout Project by the Ministry of Education (MOE) in Taiwan and Ministry of Science and Technology in Taiwan (Grant No. MOST 109-2221-E-224-048-MY2).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets generated and/or analysed during the current study are available in the UCI machine learning repository, URL: https://archive.ics.uci.edu/dataset/45/heart+disease (accessed on 12 June 2023). The original contributions generated for this study are included in the article; further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

IoTInternet of Things
WHOWorld Health Organization
ICUIntensive Care Unit
FCFog Computing
AIArtificial Intelligence
MLMachine Learning
DLDeep Learning
QoSQuality of Service
RNNRecurrent Neural Network
CNNConvolutional Neural Network
ANNArtificial Neural Network
GRUGated Recurrent Unit
ReLURectified Linear Unit
EHRElectronic health record
UCIUniversity of California Irvine
ECGElectrocardiogram
EEGElectroencephalogram
EMGElectromyogram
LSTMLong Short-Term Memory
FISFuzzy Inference System
IDCInternational Data Corporation
ZBZettabytes
ROCReceiver Operating Characteristics
AUCArea Under Curve
mAPMean Average Precision

References

  1. Guevara, J.C.; Torres, R.D.S.; da Fonseca, N.L.S. On the classification of fog computing applications: A machine learning perspective. J. Netw. Comput. Appl. 2020, 159, 102596. [Google Scholar] [CrossRef]
  2. Ijaz, M.; Li, G.; Lin, L.; Cheikhrouhou, O.; Hamam, H.; Noor, A. Integration and applications of fog computing and cloud computing based on the internet of things for provision of healthcare services at home. Electronics 2021, 10, 1077. [Google Scholar] [CrossRef]
  3. Díaz, M.; Martín, C.; Rubio, B. State-of-the-art, challenges, and open issues in the integration of Internet of things and cloud computing. J. Netw. Comput. Appl. 2016, 67, 99–117. [Google Scholar] [CrossRef]
  4. Nancy, A.A.; Ravindran, D.; Raj Vincent, P.M.D.; Srinivasan, K.; Gutierrez Reina, D. IoT-cloud-based smart healthcare monitoring system for heart disease prediction via deep learning. Electronics 2022, 11, 2292. [Google Scholar] [CrossRef]
  5. Farahani, B.; Barzegari, M.; Shams Aliee, F.; Shaik, K.A. Towards collaborative intelligent IoT eHealth: From device to fog, and cloud. Microprocess. Microsyst. 2020, 72, 102938. [Google Scholar] [CrossRef]
  6. Nadakinamani, R.G.; Reyana, A.; Kautish, S.; Vibith, A.S.; Gupta, Y.; Abdelwahab, S.F.; Mohamed, A.W. Clinical Data Analysis for Prediction of Cardiovascular Disease Using Machine Learning Techniques. Comput. Intell. Neurosci. 2022, 2022, 2973324. [Google Scholar] [CrossRef]
  7. Farahani, B.; Firouzi, F.; Chang, V.; Badaroglu, M.; Constant, N.; Mankodiya, K. Towards fog-driven IoT eHealth: Promises and challenges of IoT in medicine and healthcare. Future Gener. Comput. Syst. 2018, 78, 659–676. [Google Scholar] [CrossRef] [Green Version]
  8. Kraemer, F.A.; Braten, A.E.; Tamkittikhun, N.; Palma, D. Fog computing in healthcare–A review and discussion. IEEE Access 2017, 5, 9206–9222. [Google Scholar] [CrossRef]
  9. Borthakur, D.; Dubey, H.; Constant, N.; Mahler, L.; Mankodiya, K. Smart fog: Fog computing framework for unsupervised clustering analytics in wearable Internet of Things. In Proceedings of the 2017 IEEE Global Conference on Signal and Information Processing (GlobalSIP), Montreal, QC, Canada, 14–16 November 2017; IEEE: Piscataway, NJ, USA, 2017. [Google Scholar]
  10. De Moura Costa, H.J.; da Costa, C.A.; da Rosa Righi, R.; Antunes, R.S. Fog computing in health: A systematic literature review. Health Technol. 2020, 10, 1025–1044. [Google Scholar] [CrossRef]
  11. Andriopoulou, F.; Dagiuklas, T.; Orphanoudakis, T. Integrating IoT and fog computing for healthcare service delivery. In Components and Services for IoT Platforms; Springer International Publishing: Cham, Switzerland, 2017; pp. 213–232. [Google Scholar]
  12. Gia, T.N.; Jiang, M.; Rahmani, A.-M.; Westerlund, T.; Liljeberg, P.; Tenhunen, H. Fog computing in healthcare internet of things: A case study on ECG feature extraction. In Proceedings of the 2015 IEEE International Conference on Computer and Information Technology, Ubiquitous Computing and Communications, Dependable, Autonomic and Secure Computing, Pervasive Intelligence and Computing, Liverpool, UK, 26–28 October 2015; IEEE: Piscataway, NJ, USA, 2015. [Google Scholar]
  13. Kumari, A.; Tanwar, S.; Tyagi, S.; Kumar, N.; Parizi, R.M.; Choo, K.-K.R. Fog data analytics: A taxonomy and process model. J. Netw. Comput. Appl. 2019, 128, 90–104. [Google Scholar] [CrossRef]
  14. Mudawi, N.A. Integration of IoT and Fog Computing in Healthcare Based the Smart Intensive Units. IEEE Access 2022, 10, 59906–59918. [Google Scholar] [CrossRef]
  15. Ansarullah, S.I.; Kumar, P.A. systematic literature review on cardiovascular disorder identification using knowledge mining and machine learning method. Int. J. Recent Technol. Eng. 2019, 7, 1009–1015. [Google Scholar]
  16. Singh, A.; Kumar, R. Heart disease prediction using machine learning algorithms. In Proceedings of the 2020 International Conference on Electrical and Electronics Engineering (ICE3), Gorakhpur, India, 14–15 February 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 452–457. [Google Scholar]
  17. Rajdhan, A.; Agarwal, A.; Sai, M.; Ravi, D.; Ghuli, P. Heart disease prediction using machine learning. Int. J. Res. Technol. 2020, 9, 659–662. [Google Scholar]
  18. Nashif, S.; Raihan, M.R.; Islam, M.R.; Imam, M.H. Heart disease detection by using machine learning algorithms and a real-time cardiovascular health monitoring system. World J. Eng. Technol. 2018, 06, 854–873. [Google Scholar] [CrossRef] [Green Version]
  19. Liu, X.; Wang, X.; Su, Q.; Zhang, M.; Zhu, Y.; Wang, Q.; Wang, Q. A hybrid classification system for heart disease diagnosis based on the RFRS method. Comput. Math. Methods Med. 2017, 2017, 8272091. [Google Scholar] [CrossRef] [Green Version]
  20. Liu, M.; Kim, Y. Classification of heart diseases based on ECG signals using Long Short-Term Memory. Annu. Int. Conf. IEEE Eng. Med. Biol. Soc. 2018, 2018, 2707–2710. [Google Scholar]
  21. Amer, S.S.; Wander, G.; Singh, M.; Bahsoon, R.; Jennings, N.R.; Gill, S.S. BioLearner: A machine learning-powered smart heart disease risk prediction system utilizing biomedical markers. J. Interconnect. Netw. 2022, 22, 2145003. [Google Scholar] [CrossRef]
  22. Rao, J.N.; Prasad, R.S. An Ensemble Deep Dynamic Algorithm (EDDA) to predict the heart disease. Int. J. Sci. Res. Sci. Eng. Technol. 2021, 8, 105–111. [Google Scholar] [CrossRef]
  23. Elhadad, A.; Alanazi, F.; Taloba, A.I.; Abozeid, A. Fog computing service in the healthcare monitoring system for managing the real-time notification. J. Healthc. Eng. 2022, 2022, 5337733. [Google Scholar] [CrossRef]
  24. Tuli, S.; Basumatary, N.; Gill, S.S.; Kahani, M.; Arya, R.C.; Wander, G.S.; Buyya, R. 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]
  25. Tuli, S.; Mahmud, R.; Tuli, S.; Buyya, R. FogBus: A Blockchain-Based Lightweight Framework for Edge and Fog Computing. J. Syst. Softw. 2019, 154, 22–36. [Google Scholar] [CrossRef] [Green Version]
  26. Shukla, S.; Hassan, M.F.; Khan, M.K.; Jung, L.T.; Awang, A. An analytical model to minimize the latency in healthcare internet-of-things in fog computing environment. PLoS ONE 2019, 14, e0224934. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  27. Desai, F.; Chowdhury, D.; Kaur, R.; Peeters, M.; Arya, R.C.; Wander, G.S.; Gill, S.S.; Buyya, R. HealthCloud: A system for monitoring health status of heart patients using machine learning and cloud computing. Internet Things 2022, 17, 100485. [Google Scholar] [CrossRef]
  28. Chakraborty, C.; Kishor, A. Real-time cloud-based patient-centric monitoring using computational health systems. IEEE Trans. Comput. Soc. Syst. 2022, 9, 1613–1623. [Google Scholar] [CrossRef]
  29. Khan, M.A. An IoT framework for heart disease prediction based on MDCNN classifier. IEEE Access 2020, 8, 34717–34727. [Google Scholar] [CrossRef]
  30. Subahi, A.F.; Khalaf, O.I.; Alotaibi, Y.; Natarajan, R.; Mahadev, N.; Ramesh, T. Modified Self-Adaptive Bayesian algorithm for smart heart disease prediction in IoT system. Sustainability 2022, 14, 14208. [Google Scholar] [CrossRef]
  31. Sood, S.K.; Mahajan, I. IoT-fog-based healthcare framework to identify and control hypertension attack. IEEE Internet Things J. 2019, 6, 1920–1927. [Google Scholar] [CrossRef]
  32. Bhatia, M.; Kumari, S. A novel IoT-fog-cloud-based healthcare system for monitoring and preventing encephalitis. Cogn. Comput. 2022, 14, 1609–1626. [Google Scholar] [CrossRef]
  33. Devarajan, M.; Subramaniyaswamy, V.; Vijayakumar, V.; Ravi, L. Fog-assisted personalized healthcare-support system for remote patients with diabetes. J. Ambient. Intell. Humaniz. Comput. 2019, 10, 3747–3760. [Google Scholar] [CrossRef]
  34. Singh, S.; Bansal, A.; Sandhu, R.; Sidhu, J. Fog computing and IoT based healthcare support service for dengue fever. Int. J. Pervasive Comput. Commun. 2018, 14, 197–207. [Google Scholar] [CrossRef]
  35. Snehi, M.; Bhandari, A. IoT-based DDoS on cyber physical systems: Research challenges, datasets and future prospects. In Proceedings of the 2022 IEEE International IOT, Electronics and Mechatronics Conference (IEMTRONICS), Toronto, ON, Canada, 1–4 June 2022; IEEE: Piscataway, NJ, USA, 2022. [Google Scholar]
  36. Angel, N.A.; Ravindran, D.; Vincent PM, D.R.; Srinivasan, K.; Hu, Y.-C. Recent Advances in Evolving Computing Paradigms: Cloud, Edge, and Fog Technologies. Sensors 2021, 22, 196. [Google Scholar] [CrossRef]
  37. Chegini, H.; Naha, R.K.; Mahanti, A.; Thulasiraman, P. Process automation in an IoT–fog–cloud ecosystem: A survey and taxonomy. IoT 2021, 2, 92–118. [Google Scholar] [CrossRef]
  38. Ketu, S.; Mishra, P.K. Cloud, fog and mist computing in IoT: An indication of emerging opportunities. IETE Tech. Rev. 2022, 39, 713–724. [Google Scholar] [CrossRef]
  39. Kharel, J.; Reda, H.T.; Shin, S.Y. Fog computing-based smart health monitoring system deploying LoRa wireless communication. IETE Tech. Rev. 2019, 36, 69–82. [Google Scholar] [CrossRef]
  40. Mondragón-Ruiz, G.; Tenorio-Trigoso, A.; Castillo-Cara, M.; Caminero, B.; Carrión, C. An experimental study of fog and cloud computing in CEP-based Real-Time IoT applications. J. Cloud Comput. 2021, 10, 32. [Google Scholar] [CrossRef]
  41. Leung, C.K.; Fung, D.L.X.; Mushtaq, S.B.; Leduchowski, O.T.; Bouchard, R.L.; Jin, H.; Cuzzocrea, A.; Zhang, C.Y. Data science for healthcare predictive analytics. In Proceedings of the 24th Symposium on International Database Engineering & Applications, New York, NY, USA, 12–14 August 2020; ACM: New York, NY, USA, 2020. [Google Scholar]
  42. Liu, V.X.; Bates, D.W.; Wiens, J.; Shah, N.H. The number needed to benefit: Estimating the value of predictive analytics in healthcare. J. Am. Med. Inf. Assoc. 2019, 26, 1655–1659. [Google Scholar] [CrossRef]
  43. Beam, A.L.; Kohane, I.S. Big data and machine learning in health care. JAMA 2018, 319, 1317–1318. [Google Scholar] [CrossRef]
  44. Attaran, M.; Attaran, S. Opportunities and challenges of implementing predictive analytics for competitive advantage. Int. J. Bus. Intell. Res. 2018, 9, 1–26. [Google Scholar] [CrossRef] [Green Version]
  45. Purba, J.H.; Ratodi, M.; Mulyana, M.; Wahyoedi, S.; Andriana, R.; Shankar, K.; Nguyen, P.T. Prediction model in medical science and health care. Predict. Model Med. Sci. Health Care 2019, 8, 815–818. [Google Scholar]
  46. Van Calster, B.; Wynants, L.; Timmerman, D.; Steyerberg, E.W.; Collins, G.S. Predictive analytics in health care: How can we know it works? J. Am. Med. Inf. Assoc. 2019, 26, 1651–1654. [Google Scholar] [CrossRef]
  47. Smys, S.; Chen, J.I.Z.; Shakya, S. Survey on neural network architectures with deep learning. J. Soft Comput. Paradig. 2020, 2, 186–194. [Google Scholar]
  48. Lalapura, V.S.; Amudha, J.; Satheesh, H.S. Recurrent Neural Networks for edge intelligence: A survey. ACM Comput. Surv. 2022, 54, 1–38. [Google Scholar] [CrossRef]
  49. Sharma, S.; Guleria, K. Deep Learning Models for Image Classification: Comparison and Applications. In Proceedings of the 2022 2nd International Conference on Advance Computing and Innovative Technologies in Engineering (ICACITE), Greater Noida, India, 28–29 April 2022; IEEE: Piscataway, NJ, USA, 2022. [Google Scholar]
  50. Abdel-Jaber, H.; Devassy, D.; Al Salam, A.; Hidaytallah, L.; EL-Amir, M. A Review of Deep Learning Algorithms and Their Applications in Healthcare. Algorithms 2022, 15, 71. [Google Scholar] [CrossRef]
  51. Weerakody, P.B.; Wong, K.W.; Wang, G.; Ela, W. A review of irregular time series data handling with gated recurrent neural ne works. Neurocomputing 2021, 441, 161–178. [Google Scholar] [CrossRef]
  52. Saba Raoof, S.; Durai, M.A.S. A Comprehensive Review on Smart Health Care: Applications, Paradigms, and Challenges with Case Studies. Contrast Media Mol. Imaging 2022, 2022, 4822235. [Google Scholar] [CrossRef]
  53. Cho, K.; van Merrienboer, B.; Bahdanau, D.; Bengio, Y. On the properties of neural machine translation: Encoder–decoder approaches. In Proceedings of the SSST-8, Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation, Doha, Qatar, 25 October 2014; Association for Computational Linguistics: Stroudsburg, PA, USA, 2014. [Google Scholar]
  54. Dey, R.; Salem, F.M. Gate-variants of Gated Recurrent Unit (GRU) neural networks. In Proceedings of the 2017 IEEE 60th International Midwest Symposium on Circuits and Systems (MWSCAS), Boston, MA, USA, 6–9 August 2017; IEEE: Piscataway, NJ, USA, 2017. [Google Scholar]
  55. Yang, S.; Yu, X.; Zhou, Y. LSTM and GRU neural network performance comparison study: Taking yelp review dataset as an example. In Proceedings of the 2020 International Workshop on Electronic Communication and Artificial Intelligence (IWECAI), Shanghai, China, 12–14 June 2020; IEEE: Piscataway, NJ, USA, 2020. [Google Scholar]
  56. Zhao, R.; Wang, D.; Yan, R.; Mao, K.; Shen, F.; Wang, J. Machine Health Monitoring Using Local Feature-Based Gated Recurrent Unit Networks. IEEE Trans. Ind. Electron. 2018, 65, 1539–1548. [Google Scholar] [CrossRef]
  57. Ali, F.; El-Sappagh, S.; Islam, S.M.R.; Kwak, D.; Ali, A.; Imran, M.; Kwak, K.-S. A Smart Healthcare Monitoring System for Heart Disease Prediction Based on Ensemble Deep Learning and Feature Fusion. Inf. Fusion 2020, 63, 208–222. [Google Scholar] [CrossRef]
  58. Janosi, A.; Steinbrunn, W.; Pfisterer, M.; Detrano, R. Heart Disease. UCI Machine Learning Repository. 1988. [Google Scholar] [CrossRef]
  59. Kim, Y.; Bang, H. Introduction to Kalman filter and its applications. In Introduction and Implementations of the Kalman Filter; IntechOpen: London, UK, 2019. [Google Scholar]
  60. Park, S.; Gil, M.-S.; Im, H.; Moon, Y.-S. Measurement noise recommendation for efficient Kalman filtering over a large amount of sensor data. Sensors 2019, 19, 1168. [Google Scholar] [CrossRef] [Green Version]
  61. Chung, J.; Gulcehre, C.; Cho, K.; Bengio, Y. Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv 2014. [Google Scholar] [CrossRef]
  62. Ramachandran, P.; Zoph, B.; Le, Q.V. Searching for Activation Functions. arXiv 2017, arXiv:1710.05941. [Google Scholar]
  63. Zhang, X.; Wang, Y.; Shi, W. PCAMP: Performance Comparison of Machine Learning Packages on the Edges. arXiv 2019. [Google Scholar] [CrossRef]
  64. Salloum, S.; Dautov, R.; Chen, X.; Peng, P.X.; Huang, J.Z. Big Data Analytics on Apache Spark. Int. J. Data Sci. Anal. 2016, 1, 145–164. [Google Scholar] [CrossRef] [Green Version]
  65. Guo, R.; Zhao, Y.; Zou, Q.; Fang, X.; Peng, S. Bioinformatics Applications on Apache Spark. GigaScience 2018, 7, giy098. [Google Scholar] [CrossRef]
  66. Pinheiro, G.; Vinagre, E.; Praça, I.; Vale, Z.; Ramos, C. Smart Grids Data Management: A Case for Cassandra. In Proceedings of the Distributed Computing and Artificial Intelligence, 14th International Conference, Porto, Portugal, 21–23 June 2017; Springer International Publishing: Cham, Switzerland, 2018; pp. 87–95. [Google Scholar]
  67. Saha, S.; Roy, J.; Pradhan, B.; Hembram, T.K. Hybrid ensemble machine learning approaches for landslide susceptibility mapping using different sampling ratios at East Sikkim Himalayan, India. Adv. Space Res. 2021, 68, 2819–2840. [Google Scholar] [CrossRef]
  68. Asif, M.A.A.R.; Nishat, M.M.; Faisal, F.; Dip, R.R.; Udoy, M.H.; Shikder, M.F.; Ahsan, R. Performance Evaluation and Comparative Analysis of Different Machine Learning Algorithms in Predicting Cardiovascular Disease. Eng. Lett. 2021, 29, EL_29_2_42. [Google Scholar]
  69. Asif, S.; Yi, W.; Ain, Q.U.; Hou, J.; Yi, T.; Si, J. Improving Effectiveness of Different Deep Transfer Learning-Based Models for Detecting Brain Tumors from MR Images. IEEE Access 2022, 10, 34716–34730. [Google Scholar] [CrossRef]
Figure 1. Standard gated recurrent unit model.
Figure 1. Standard gated recurrent unit model.
Diagnostics 13 02071 g001
Figure 2. Smart system for heart disease risk prediction.
Figure 2. Smart system for heart disease risk prediction.
Diagnostics 13 02071 g002
Figure 3. Modified gated recurrent unit model.
Figure 3. Modified gated recurrent unit model.
Diagnostics 13 02071 g003
Figure 4. (ae) Accuracy, precision, recall, specificity, and F1-score analysis.
Figure 4. (ae) Accuracy, precision, recall, specificity, and F1-score analysis.
Diagnostics 13 02071 g004
Figure 5. Overall performance results of the proposed model.
Figure 5. Overall performance results of the proposed model.
Diagnostics 13 02071 g005
Figure 6. Confusion matrix of the proposed model.
Figure 6. Confusion matrix of the proposed model.
Diagnostics 13 02071 g006
Figure 7. ROC analysis of the proposed model.
Figure 7. ROC analysis of the proposed model.
Diagnostics 13 02071 g007
Figure 8. Comparative analysis of latency rate between cloud and fog computing.
Figure 8. Comparative analysis of latency rate between cloud and fog computing.
Diagnostics 13 02071 g008
Figure 9. Comparative analysis of average response time between cloud and fog computing.
Figure 9. Comparative analysis of average response time between cloud and fog computing.
Diagnostics 13 02071 g009
Figure 10. Comparative analysis of network jitter between cloud and fog computing.
Figure 10. Comparative analysis of network jitter between cloud and fog computing.
Diagnostics 13 02071 g010
Figure 11. Comparative analysis of memory utilization between cloud and fog computing.
Figure 11. Comparative analysis of memory utilization between cloud and fog computing.
Diagnostics 13 02071 g011
Table 1. Attribute description.
Table 1. Attribute description.
No.AttributeDescriptionValue Range
1agePatient age in years29–77
2sexGender instance 1 = Male; 0 = Female
3cpType of chest pain 1 = Angina, 2 = Atypical form of angina, 3 = Non-angina, 4 = No symptoms of angina
4trestbpsResting blood pressure in mm Hg[94; 200]
5cholCholesterol value in mg/dL[126; 564]
6fbsFasting blood sugar Value > 120 mg/dL1 = True and 0 = False
7restecgValue of ECG at rest 0 = Normal, 1 = Abnormal (ST-T wave), 2 = Definite Ventricular
8thalachMaximum heart rate recorded[71; 202]
9exangExercise induced angina 1 = yes; 0 = no
10oldpeakExercise induced ST depression[0.0; 62.0]
11slopeslope of T segment peak exercise 1 = up-sloping, 2 = flat and 3 = down sloping
12caMajor vessels number coloured by fluoroscopy0–3
13thalDefect types3 = normal; 6 = fixed defect; 7 = reversable defect
Table 2. Dataset sample.
Table 2. Dataset sample.
agesexcptrestbpscholfbsrestecgthalacexangoldpeakslopecathal
4011975391219800.2212
65001572811214202143
55011804080211903001
70131182081215304100
40031534090118612.4020
32021272451219201.8143
70011421600218800.6021
59131574810111710.9231
62121514901114601.2043
63001295051018911113
Table 3. Hyperparameter values—proposed model.
Table 3. Hyperparameter values—proposed model.
HyperparameterValue
Lag (Length of time lags)1039
Number of layers4
Number of hidden layers2
Number of units in dense layer5
Dropout rate16
Decay rate0.94
Learning rate0.018
Number of epochs765
Batch size128
Table 4. Comparing performance measures of the proposed system.
Table 4. Comparing performance measures of the proposed system.
Performance MetricsGRUFGRUProposed
Accuracy (%)96.5598.8599.1250
Precision (%)96.5798.9099.1300
Recall (%)96.5398.8199.1200
Specificity (%)96.5798.9099.1299
F1 Score (%)96.5598.8699.1250
Table 5. Comparison with state-of-the-art systems.
Table 5. Comparison with state-of-the-art systems.
No.Author/YearMethodAccuracy (%)
1Desai et al. [26], 2022Logistic Regression85.96%
2Singh et al. [16], 2020K-Nearest Neighbor87.00%
3Subhahi et al. [29], 2022Kernel Discriminant Analysis and Modified Self-Adaptive Bayesian Algorithm90.00%
4Rajdhan et al. [17], 2020Random Forest90.16%
5Liu et al. [19], 2017Relief and Rough Set Feature Selection and Ensemble Classifier Model92.59%
6Khan et al. [28], 2020Modified Deep Convolutional Neural Network93.30%
7Nancy et al. [4], 2022Fuzzy Inference System and Modified Bi-LSTM97.32%
8Nashif et al. [18], 2018Support Vector Machine97.53%
9Rao et al. [22], 2021Ensemble Deep Dynamic Algorithm98.12%
10Liu et al. [20], 2018Symbolic aggregate Approximation and Long Short-Term Memory98.40%
11Proposed ModelFuzzy Inference System and Gated Recurrent Unit99.13%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Nancy, A.A.; Ravindran, D.; Vincent, D.R.; Srinivasan, K.; Chang, C.-Y. Fog-Based Smart Cardiovascular Disease Prediction System Powered by Modified Gated Recurrent Unit. Diagnostics 2023, 13, 2071. https://doi.org/10.3390/diagnostics13122071

AMA Style

Nancy AA, Ravindran D, Vincent DR, Srinivasan K, Chang C-Y. Fog-Based Smart Cardiovascular Disease Prediction System Powered by Modified Gated Recurrent Unit. Diagnostics. 2023; 13(12):2071. https://doi.org/10.3390/diagnostics13122071

Chicago/Turabian Style

Nancy, A Angel, Dakshanamoorthy Ravindran, Durai Raj Vincent, Kathiravan Srinivasan, and Chuan-Yu Chang. 2023. "Fog-Based Smart Cardiovascular Disease Prediction System Powered by Modified Gated Recurrent Unit" Diagnostics 13, no. 12: 2071. https://doi.org/10.3390/diagnostics13122071

APA Style

Nancy, A. A., Ravindran, D., Vincent, D. R., Srinivasan, K., & Chang, C. -Y. (2023). Fog-Based Smart Cardiovascular Disease Prediction System Powered by Modified Gated Recurrent Unit. Diagnostics, 13(12), 2071. https://doi.org/10.3390/diagnostics13122071

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop