Deployments of fog computing at the edge of the network enable efficiency, security, network scalability, availability, reliability, and maintainability in the cloud computing paradigm. Due to these features, fog computing devices have been deployed in various application areas, notably in healthcare. [25]. In the following subsections, we delve into fog computing. We will elaborate on characteristics and types before we explore studies related to the application of fog computing in IoMT.
4.2. IoMT Fog-Cloud Computing
Fog computing is recommended to enable computing directly at the network's edge that may provide new services and applications, particularly for the Internet's future. For instance, commercial edge routers advertise the number of cores, processor speed, and built-in network storage. Such routers may become new servers. Infrastructures or facilities in fog computing that may provide resources for services at the network edge are called fog nodes. Fog nodes can be resource-poor devices like routers, set-top-boxes, access points, base stations, switches, resource-rich machines, and end devices like IOx and Cloudlet. "Cloudlet" is a resource-rich machine and is a "cloud-in-a-box" that can be used by mobile devices nearby. [27].
Managing private data centers for customers often uses the cloud computing model, and the pay is based on data usage. To maintain the massive aggregation of the data centers, the data centers' factors must have a higher predictability of massive aggregation, allowing high use with adequate work performance, utilization of inexpensive power in various locations, appropriate storage, and networking. [28]. Combining all these qualities can be brought under one platform, the Internet of Things (IoT) or Fog Computing. [29]. Fog Computing facilitates the interplay of various applications and services within the Fog and the cloud in data management. It operates closer to the consumer, on the network edge, avoiding delays and failure in the network and leading to quicker decision-making in healthcare delivery. [30].
Fog computing's function in big data analytics utilizes networking, storage, and computation of data, as well as virtualization and multi-tenancy, which are attributes the same as the cloud. There are a few differences in the functioning of both applications. The Fog considers the applications and features that were deficient in the cloud. It aids in geo-distributed applications such as monitoring pipelines and sensors associated with environmental data. It also enables the distribution of control systems on a large scale and fast mobile applications. With all these excellences, Fog complements the cloud rather than a substitution. [19]. There are fog computing nodes (micro clouds) near the data source. It reduces the requirement of massive storage, processes a large amount of data before reaching the cloud, and reduces data communication duration and cost. It connects the IoT devices and the cloud data center by propelling the storage, networking, and cloud computing services near the end of the IoT devices. [30].
In summary, from these two general architectures, it may be noted that data and applications are processed in the cloud in a centralized manner, which is time-consuming. In the fog case, it operates on the network's edge, and processing takes less time, thus overcoming delay. In clouds, bandwidth is expected because all data is transmitted over cloud channels (Internet). Alternatively, Fog does not demand more bandwidth as every bit of information is aggregated at certain access points within the sensor network rather than sending data over cloud channels. In clouds, servers can be located at remote locations, resulting in slow response time and scalability issues. Fog gateways or devices can be deployed at the network edge, thus overcoming response time and scalability. Hence, fog computing gateways provide more efficiency and reliability and help overcome latency issues in cloud-based healthcare application environments.
4.4. Analysis of Existing Techniques and Evaluation Criteria in Fog Computing
A fog-based healthcare architecture (FHA) was proposed by [31], which deploys a fog gateway at the network's edge to monitor a patient's health in real-time. ZigBee technology is used to connect the patient's health condition, mobile-based wearable sensors collect real-time data through the ZigBee link, and data is forwarded to the Tele-lab server (TLS). Patients' data are analyzed through a Laboratory Information Database (LIDB) module, which sends the information to the cloud server for storage and backup. In this system, the TLS transmits data over the communication channel and relies on FHA to manage the congestion. When FHA predicts the critical condition, it immediately sends data to the fog gateway to raise an emergency alert and to the cloud server to update the patient's record. However, the study was built based on the assumption that the communication channel is dependable and has no data loss during the data transmission. This does not hold due to the transient nature of the IoMT networks and the patient's mobility and dynamic topology. Consequently, data that reaches the gateway might not be complete. Although the proposed architecture was designed to deal with sensors' heterogeneity, it used fixed architecture in its simulation, which makes it outdated when topology changes.
The need for a transition from clinic-centered healthcare to patient-centered was discussed in [32]. This could be achieved by connecting hospitals, patients, and services into a layered e-health ecosystem. The layers include end nodes, Fog, and cloud, which facilitate efficient handling of the big data generated by the system's various components. The study used multiple standards at the interface level to deal with a vast number of sensor devices and support fog nodes' heterogeneity. Although the authors discussed scalability in detail in this paper, they did not show how to apply it in their proposed architecture. There is no discussion of mobility support in this paper. The authors show the significance of protecting and securing patients' information. The architecture supports multi-layer security measures for access control, encryption, and authentication.
The study by [33] indicated that deploying smart e-health gateways at the network's edge will enable health monitoring in hospital environments. They concluded that fog gateways must be strategically positioned to provide high-level services, including local storage, real-time analysis, data mining, etc. The purpose of the proposed smart gateway is to manage sensor network operations and remote healthcare centers. It also manages scalability, energy efficiency, and reliability. However, the study overlooks the possibility that any failure at the gateway would cause a major disruption to the system. Although redundant gateways solve such a single point of failure, they create additional overhead and complexity when selecting the gateway. The paths to different gateways must be prioritized to address such an issue based on criteria like the number of hops, bandwidth, and signal-to-noise ratio (SNR).
A detailed review of the implementation of fog computing in healthcare services was provided by [30]. The study investigated the different cases of fog computing being used in healthcare informatics. The study categorizes the use cases based on specific fog device applications and functions. It discusses the processing and analytics at the network and fog levels. The study concluded that fog computing supports many activities in healthcare. Data analysis at higher network tiers is needed to overcome IoT constraints and fulfill the need to aggregate data. Although the study showed that a common infrastructure could be used by sensor devices to transfer their data to more comprehensive applications using standardized protocols, it did not show the exact mechanism to deal with the heterogeneous environment. The introductory study discussed fog computing's ability to enhance the scalability of a system. Nevertheless, no technique was proposed. The authors described the importance of mobility and security in a fog environment but did not show how to apply them in their work.
As part of the OpSIT project, the smart Fog was integrated with cloud computing. [34] To support healthcare applications. The proposed smart healthcare system's architecture comprises three layers: sensors, Fog, and cloud. The validity of this architecture was evaluated using several use cases. However, it is not clear on which criteria the architecture was evaluated. Additionally, the multi-layer architecture creates additional overhead due to the interfacing and compatibility issues when data passes through various components.
The effect of incorporating IoT in healthcare was investigated by [35], and it was found that fog computing helps provide sufficient storage, processing, and networking resources. Fog also improves real-time analysis and supports online decision-making. Furthermore, the fog device's data collected by sensors can be managed immediately while minimizing latency and jitter. Two scenarios, "Daily Monitoring and Healthcare Service Provisioning" and "Extended eCall Service Delivery," were investigated considering the heterogeneity of communication protocols that allow data aggregation from different heterogeneous IoT devices. However, the fog environment's scalability was overlooked, which is crucial as the heterogeneity implies the interoperability between many devices and sensors that grow exponentially in real-world deployment to support mobility and allow data gathering from different IoT technologies. Security and privacy concerns are also overlooked, which could have severe consequences for the entire system.
A consumer-centric IoT services approach was investigated in [36], which utilizes fog computing to create an architecture for connected vehicles with M2M gateway and Road Side Units. The authors discussed M2M Data Analytics with Semantics, discovery, and connected vehicles' management as a consumer-centric IoT. The study proposed an architecture for utilizing vehicles as the infrastructures for computation and communication, called Vehicular Fog Computing. It supports mobility, allowing the mobile stations to write, read, and even update sensor configuration. Such an architecture suits IoMT, matching the need for mobile stations like ambulances and reliable and robust communication with the healthcare center. Their study results showed huge potential improvement in computation, communication, and capacity, which the vehicular fog platform can recognize. The computational performance can be improved dramatically by vehicular fog computing compared to conventional systems because it benefits from individual vehicles' currently underutilized computational resources. 37]. However, the study overlooks the heterogeneity of this kind of network.
Furthermore, scalability was not considered when designing the solution, which becomes an issue with this architecture. Security is another aspect that this study has not considered, which adversely affects the reliability of the communication channels and the consistency and credibility of the data. Security is not discussed in their work.
The authors of [38] proposed an architecture to enable the efficient processing and storage of data to enhance the existing smart meter infrastructure. In their proposed architecture for the Fog computing platform, smart meters are gathered to process a cluster that acts as a data node. Among these data nodes, one will be chosen to function as a master node. The master node is responsible for managing the file system. It is also responsible for storing metadata that holds the needed data, such as the file name and the storage location. However, the study does not show how to deal with the nodes' heterogeneity on the fog or cloud layers. Nevertheless, one of the advantages of this solution is that the architecture has a Plug-and-Play feature, which reduces the need for manual configuration. Consequently, the scalability criteria are met. The mobility support was not discussed. Even though the authors showed the importance of security and privacy when aggregating data to the cloud, they did not implement any security measures.
The use of fog technology to support a smart living environment and improve the user's experience was discussed in [39]. The integration between fog components like Fog Edge Node, Fog Server, and Foglet was investigated to determine to what extent they support the heterogeneity of IoMT. The study concluded that latency could be reduced if data processing were carried out within the fog scope. However, the analysis overlooks the density of IoMT devices, which could cause a lot of congestion and bottlenecks when the number of nodes in the fog layer increases. Such a scalability issue hurts the latency.
Latency in the fog layer of IoMT was also investigated by [40], and a 3-tier fog-assisted health monitoring architecture was proposed. All sensors, such as medical, environmental, and actuators, exchange the data with the Fog layer's application, where they are fused and processed. As data are locally analyzed, network traffic is minimized, preserving the bandwidth and decreasing the latency. Storing data locally also protects security and maintains the privacy of patients' information.
Preserving the resources within the fog layer's IoMT layer was investigated in [41] Employing a task scheduling algorithm prioritizes the tasks properly based on their relevance. The study developed a Task Classification and Virtual Machine Categorization (TCVC) method that prioritizes task significance. The tasks were categorized into high-importance, medium-importance, and low-importance tasks based on the patient's health status. MAX-MIN scheduling algorithm was employed to determine the performance of the proposed method. However, the method does not consider the task size when estimating the priority, which hinders the full utilization of the fog layer's resources. The 3-tier approach was also used in [42] To build an analytical healthcare IoT model. By combining reinforcement learning and fuzzy logic in the fog computing environment, network latency was decreased. Patient health data were collected by sensors and sent to the fog layer, where they were prepared and used for training the model. The model then classifies the new readings as high-risk, low-risk, and normal. The purpose of reinforcement learning is to support real-time decision-making and prioritize time-sensitive data.
Nonetheless, the study ignores task size when prioritizing resources. It is also not clear how the model decides whether data is time-sensitive. Relying on a fixed definition does not fit the dynamic nature of health status, changing the context.
An energy-efficient fog-to-cloud architecture was used by [43] To reduce energy consumption in IoMT devices. This architecture works in three modes to preserve sensors' battery energy: periodic, sleep-renew–renew, and continue. The IoMT sensors are divided into several clusters, each with a dedicated cluster head such that cluster members use the cluster head as their gateway to the cloud and are connected to gateways called cluster heads. The cluster heads forward data to a respective fog, which is processed and then forwarded to the cloud for further processing. This technique enabled all sensing modes, which collected the patient data according to their health condition. However, cluster heads in this architecture are sing-point-of-failure and bottlenecks that cause data loss. Such data loss is caused by faulty cluster heads or mobility of the nodes within a cluster, which sometimes becomes unreachable to the centroid.
An efficient analytical model was proposed in [44] to reduce computational complexity regarding processing power and memory and to suit the resource constraints in IoMT. A network of queues that help in estimating minimum computing resources was integrated into the model. The gateway sends sensitive data to a private cloud to protect patients' data. In contrast, non-sensitive data are sent to fog nodes connected to a public cloud where thorough data analytics is conducted. However, the model assumes that communication channels are stable and data delivery is dependable, which does not hold when the patient is mobile. Healthcare sensors work in harsh environments.
A 5-tier architecture [45] was proposed to process and analyze the data generated by various devices and equipment in IoMT. This architecture supports real-time event detection and shows the alerts on monitoring dashboards run at the fog layer. Nodes in the fog layer receive and process data collected from sensors through gateways before they are transmitted to the cloud for additional processing. Time-sensitive healthcare applications can make real-time decisions by relying on the fog layer for processing and analyzing data. However, the architecture's multi-layer nature creates additional overhead on the system as it needs extra work when passing data between layers. This adversely affects the efficiency of the architecture and delays the response in real-time applications. A detection model [46] was created in the fog layer to notify people about fall activity in real-time. The model used the One-Class Support Vector Machine (OC-SVM). A new kernel matrix calculation technique was developed and incorporated into the classifier for real-time applications. The caregivers can get a real-time notification despite losing the cloud and fog node connection. Although the kernel efficiently calculates the model's parameters, it does not account for the noises generated during a patient's mobility or the harsh environment.
The fog-based model for monitoring, predicting, and controlling the real-time risks of remote diabetic patients based on their physiological condition was proposed by [47]. By training a J48 decision tree classifier, the risk level of the diabetic patient can be predicted. Multiple parameters like blood glucose levels, ECG, and physical activities were used as input parameters to train the model and support high accuracy. However, the model does not consider the special nature of data that arrive at the fog layer contaminated with noises. This could mislead the model and decrease the detection accuracy. Smart e-Health Gateways for IoMT were investigated in [17], which could support many services like real-time data processing, local storage, and embedded data mining. These gateways were incorporated into the fog layer and strategically positioned between the sensor nodes and the cloud. The model overcomes the challenges related to energy consumption, mobility, reliability, and scalability issues by relaying the processing to the fog layer. However, gateways could be a single point of failure that causes much data loss.
Table 1 summarizes the studies related to fog computing based on the named criteria.
An improvement for the IoMT health monitoring system was proposed in 51], which employs fog computing at smart gateways to perform various tasks such as embedded data mining, distributed storage, and notification service at the network's edge. The features were obtained from cardiac disease data from the electrocardiogram (ECG). ECG signals were analyzed in smart gateways with features extracted, such as heart rate, P wave, and T wave, through a flexible template based on a lightweight wavelet transform mechanism. However, analyzing data at smart gateways creates additional overhead on these nodes, which causes time delays.
The concept of transferring the computing intelligence from the cloud to the fog network was utilized in [35], which lowers the response time and minimizes network failures. The servers in the fog layer relay all protocol conversions, data storage, processing, and evaluation to the cloud and only focus on decision-making. Therefore, faster and more accurate treatment delivery, reduced medical costs, and improved doctor-patient interaction could be achieved. However, fetching the cloud data increases Fog's time to detect and/or predict a serious condition. A low-cost health IoMT system that integrates end-node sensors with a fog layer to provide continuous remote monitoring of ECG together with automatic analysis and notification was proposed by [25]. The sensors collect data about body temperature, respiration rate, and ECG and transmit them to a smart gateway where healthcare providers can access them. The data are represented in a form suitable for automatic decision-making. However, sending data about vital signs introduces a risk of noise and dropped packets, harming the user and the data quality.
A fog-assisted-IoT IoT-enabled patient health monitoring model has been proposed by [52]. The idea was to utilize fog computing at the smart gateway to process the massive amount of data collected by healthcare-related sensors at the end nodes close to patients. The Bayesian belief network algorithm was used to construct the classifier. Event triggering-based data transmission methodology is implemented to process the patient's real-time data at the fog layer. The temporal mining concept analyzes adversity by calculating the patient's temporal health index. However, temporal features do not accurately reflect the context in which data is collected. This negatively affects the data quality and the model's accuracy.
A Reduced Variable Neighbourhood Search (RVNS)--based Sensor Data Processing Framework (REDPF) [53] was proposed to enhance the reliability of data transmission and processing speed between the nodes and fog layer in IoMT systems. The framework was used to evaluate the health status of older people. The framework provides reliable data transmission and rapid data processing by adopting fault-tolerant data transmission, self-adaptive filtering, and data-load-reduction processing. Therefore, it significantly improves the efficacy of IoMT applications. Self-adaptive filtering that recollects lost data is achieved using the RVNS algorithm to refine valuable information from raw sensing data at fog devices. However, the study assumes that the data retention period at sensory devices is sufficient to hold the data until recollection is successful. This does not hold for resource-restricted devices in IoMT that have no sufficient space or memory to hold data for long periods.
In the study carried out by [54], the security of fog-driven IoT healthcare systems was investigated. Two security parameters (authentication and key agreement) have been explored. Specifically, a three-party authenticated key agreement protocol from bilinear pairings was proposed. The security model was formally proofed so it can be used to protect fog nodes deployed in remote and unprotected places. However, attackers could hijack a legitimate user account and easily break into the system. In such a case, the data and services will be fully or partially accessible to the attacker, who could compromise the integrity of the data and the privacy of the patient's information.
The cognitive Fog (CF) model [55] was developed to safeguard the integrity of the data exchanged among the nodes in IoMT. The model provides secure data transmission between smart healthcare services and allows people to opt in and out of running processes, utilizing new processes when necessary and providing security for Fog's operational processes system. Ensemble learning was utilized to create the model to classify the data as normal or suspicious. However, the ensemble-based model was unsuitable for the dynamic nature of IoMT systems and user mobility. Therefore, attackers could use the concept of drift to avoid detection.
Fog layers have been employed to enhance IoT-based healthcare systems' capabilities, and they have demonstrated their worth by providing fast response time and low latency. However, such development poses a significant challenge in preserving users' privacy and addressing security/privacy issues. Being in an infant stage, such technology has invariably become more prone to privacy issues. Therefore, the study by [56] proposed an e-healthcare framework that deals with electronic medical records (EMRs) in the fog layer while preserving data privacy. However, the heterogeneity of data and services at the fog layer was overlooked, resulting in the risk of unauthorized parties exposing data by exploiting vulnerabilities in the Fog's weekly secured services.
A multi-modal fog-assisted system [57] was proposed to support remote patients with diabetes. The system combines data from multiple vital sensors measuring heart rate, ECG, and blood sugar. The data processing is conducted at the fog layer instead of the sensors, which preserves the resources at the sensory layer. The sensor's battery lifetime is prolonged by offloading the processing on the fog layer. The J48 decision tree was utilized to predict the diabetes risk level with higher classification accuracy. An emergency alert is generated immediately for preventive actions by using fog computing. However, making decisions at the fog level involves some delay, which is not recommended for time-sensitive and life-threatening applications. A virtual machine (VM) partitioning technique [58] was proposed to reconsolidate IoMT services' security at the fog layer. The Elliptic Curve Cryptography technique created the output token for user authentication. This authentication method was implemented into identity management to prevent security breaches. However, the attacker could take over a legitimate identity and utilize it to gain access to the system, where he can decrypt the data and access the resources freely.