1. Introduction
We are living in an age in which technology has revolutionized the world. The technological revolution has happened in communication, business, education, medical care, and many other areas. Digital technology removes barriers of distance, enlarges thinking, and benefits businesses. In particular, since the spread of COVID-19, the use of modern smart applications has increased massively. Such applications are used for a variety of applications, including medical care. Furthermore, the birth of the Internet is considered a major contribution to technological advancement [
1]. The Internet removes barriers to digital technology and provides access everywhere. Social media is another source of information and has a large impact on the young generation. Handy technology provides instant data on social media.
The Internet of Things (IoT) is an emerging field of computer science that has impacted the world in a short period of time. The concepts of smart homes [
2], smart-resource-based cities [
3], smart driving [
4], and smart farming [
5] have changed the living and working styles of many people around the world. Smart devices are embedded in smart homes and cities, and things are controlled by smart devices. In the near future, real-time human activities will be monitored by smart devices, and real-time data will be collected by tagging sensors within the human body [
6]. Human health can be monitored in real-time by sending the information obtained using the sensors to medical consultants. The Internet of medical things (IoMT) is the field in which health equipment is connected with IoT [
7]. Authors have discussed IoMt using wearable devices and AI [
8]. This concept gives new directions to the health field and opens up new doors of development. As in the medical field, accurate and timely diagnosis and intervention are the main factors in health-related issues, so substantial work is required to fulfill this gap and develop intelligent systems for health monitoring.
With the development of information technology (IT), medical fields are being revolutionized in developed countries. In a traditional medical system, huge crowds, power consumption, and routine work all burden the system and lead to delays in facilitation. In IoMT, wearable sensor devices are connected to the care provider’s smart devices, and they can monitor the real-time patient health record and treat the patient accordingly [
9]. IoMT provides a low-cost and quick solution by remotely monitoring the patient’s health. With the spread and rise of chronic diseases, the medical systems of underdeveloped countries face significant issues in managing large numbers of patients due to a shortage of staffing and resources. In the medical field, quick responses significantly impact saving lives.
Figure 1 shows the IoMT mechanism in the physical environment.
Artificial intelligence (AI) is a domain of computer science that induces intelligence in machines and makes smart devices capable of working without human intervention. Smart devices make smooth connectivity using AI and work innovatively. AI processes help to find hidden patterns in the large volume of data received from smart devices [
10]. Moreover, the AI process also makes recommendations to improve the performance of the systems. The domains of AI and machine learning (ML) greatly help in solving today’s complex problems. In every field of life, computational systems are designed using AI and ML to solve significant dynamic problems. Combining IoT, AI, and ML can change how people live and interact in their daily lives. In the medical field, large datasets are gathered using smart devices and sensors. AI and ML algorithms are applied to find underlying hidden patterns to diagnose different diseases.
Using AI-based solutions, it has become easy for medical staff to work on large datasets and provide future recommendations to prevent diseases. The artificial intelligence of medical things (AIoMT) combines AI approaches with health diagnosis approaches to help in the medical field. The idea behind AIoMT is to prevent unnecessary stays in the hospital and avoid the associated health charges [
11]. With the growth in the population, traditional methods of medical diagnosis need to fulfill the demand of the growing community. Because of the limited resources considering the increasing population growth, finding solutions for the efficient management of these resources is a high priority.
After COVID-19, a remote healthcare system is needed for the real-time diagnosis of various diseases. To improve healthcare facilities, it is the responsibility of academia and industry to make combined efforts to overcome these issues. Some efforts have been made in the recent past to design a smart bed concept and smart point-of-care (PoC) devices, but due to population growth, further efforts are needed. According to the world health organization (WHO), 17.9 million deaths are recorded yearly because of cardiac diseases [
12]. Heart disease is a major challenge in the medical field. Heart disease arises due to the narrowing of arteries. Heart failure is the primary cause of death in most underdeveloped countries due to inadequate instant response. Old-aged people are the predominant group of heart patients; however, young patients might also be victims of this disease. In the US, one of every nine deaths are caused by heart disease [
13]. Chest pain and fatigue are the primary symptoms of this disease, but it happens even without such symptoms. There is a need to develop a remote health monitoring system for heart patient that continuously monitors the patient’s activity. In the case of an emergency, remote health-monitoring systems can require an instant response. IoMT provides a lot of success in medicine, especially in rural areas where providing instant help is challenging. Early disease detection and medication can save a lot of lives. Remote health monitoring also reduces the cost of routine diagnosis due to eliminating the traveling cost and other medical overhead.
Figure 1.
IoMT mechanism [
14].
Figure 1.
IoMT mechanism [
14].
The IoMT is a multifaceted domain of IoT and medical technique and faces many challenges. Medicine is a sensitive field where the survival of human beings is essential. Therefore, a remote monitoring system in IoMT with AI is needed. The software systems in medical areas must be appropriately and extensively verified to meet medical standards. The IoMT-induced AI system must satisfy the following criteria:
Security The AI-inspired remote monitoring system of cardiac disease must be secure. It must not be vulnerable to adversarial attacks by other devices. The exact measurements it provides are the main advantage of these systems.
Reliablity The reliability of medical software systems must be achieved. A non-reliable system cannot be used in any field, particularly when the privacy and confidentiality of patients are concerned. Internal implementation issues or external problems should be ensured regarding accurate measurements. An auto-correction algorithm must be implemented in every system to avoid damage.
Safety The remote monitoring software must be economical and not affect the environment. The system must be human-friendly so that there is no negative impact on human lives. The medical operator, user, and designer should be able to interact with the system without harm.
In this study, a remote monitoring software system is designed using IoMT and AI approaches. This remote system takes real-time human data and processes those data in the presence of bio-medical experts. AI approaches find hidden patterns and classify cardiac patients. The remote monitoring software system obtains real-time patient data and detects heart disease. The system is helpful in early diagnosis and removes the physical barriers to reaching the hospital. The performance of the proposed system is comparable to existing systems in the literature. This study makes the following contributions:
A brief overview of existing literature on IoMT is presented along with the major applications of IoT in medical care. In addition, major challenges in IoMT are identified.
An IoT-based smart healthcare monitoring system is presented that collects and processes the data for heart patients. Machine learning models are incorporated to detect patients with acute heart failure.
The performance of the proposed system is evaluated using several experiments, and a performance analysis is performed in comparison to existing state-of-the-art methods.
The rest of the paper is organized as follows:
Section 2 discusses previous literature.
Section 3 provides the working of IoMT.
Section 4 describes the dataset used in this work and provides the scenario of the proposed smart framework. It also explains the various algorithms used in this research.
Section 5 explains experimental details and evaluation parameters. A conclusion is given in
Section 6.
2. Related Work
In this modern age, multiple technologies have been developed to monitor medical data. With the invention of sensors, the development has been taking place at a rapid pace. Sensors are used for real-time monitoring and data collection. Smart devices are full of sensors and are used for data collection. In [
15], a technique based on a ring sensor is used to monitor the patient. A wearable ring containing the sensor is used for real-time monitoring of cardiac patients. In [
16], a technique based on an ear sensor is used for continuous monitoring of heart patients. These sensors are small in size and wearable among persons of different ages alike which makes the monitoring process easy.
Heart patients need an instant response in case of an emergency. Most fatalities happen due to delays in early diagnosis and inefficient methods. In [
17], the authors designed a technique to take advantage of IoT technology using cloud sources for early diagnosis. One of the biggest challenges in medical fields is maintaining data. Clouds have huge volumes of storage capacity, so combining IoT technology with the cloud can have a huge impact. The study [
18] designed an energy-efficient protocol for healthcare applications using dynamic channel coding by combining physical and multiple access layers. The aim is to optimize energy usage and maintain a lifetime of nodes in a network.
During the COVID-19 pandemic, the health of front-end medical staff became vulnerable to this disease, and extra care was required to deal with patients. Consequently, remote health monitoring applications helped medical staff to diagnose patients effectively. Such systems are realized using IoT devices [
19,
20]. In addition, image processing applications are installed at different public points for real-time surveillance of the public. The data from such installments can be obtained via IoMT by medical staff for further analysis [
21].
Due to the advantages offered by IoMT technology, several approaches and systems have been presented recently using IoT connectors (
Table 1). Jain et al. [
22] proposed a health-monitoring system based on near-infrared spectroscopy and ML to analyze the glucose level. Today, IoMT edge devices are frequently used to monitor human health. It is a positive trend to help humans achieve fast-tracking and accurate results. The error ratio of the proposed glucose level detector is minimized as compared to methods available in the literature. Shui-Hua Wang et al. [
23] proposed a method to classify diseases such as COVID-19, pulmonary diseases, tuberculosis, and pneumonia. The suggested method helps medical staff to diagnose diseases more accurately. This method shows better results in detecting various diseases. The authors designed an approach for remote-controlled ambulance service to improve healthcare in [
24]. AI approaches are used to obtain real-time results. AI approaches are helpful in real-time applications, especially in medical applications where a fast and accurate response is needed. Similarly, Harshal Arbat et al. [
25] used an approach to monitor heart patients by managing a smart health band. The band is used to measure the heart rate data, which are used in analyzing the patient’s health.
Smart devices are used today to gather health-related data to analyze human health. The study [
34] designed an approach to monitor human health using a mobile application. Mobile applications can be merged with IoT and cloud computing to boost the limits of the health monitoring system. Cloud technology has enough storage to store large volumes of IoT data and provide processing services. This approach also covers the brain signal to measure the stress of the human body. Michael Fischer et al. [
35] proposed a technique for non-professionals to know about various diseases. Instructions are given to the bot, which help to diagnose the patient. The integration of the bot with smart devices helps in providing better services. The accuracy of the technique is low compared to other techniques, yet it is a remarkable step toward automated disease diagnosis. The complete summary of IoT-based works is shown in
Table 2.
Along the same lines, Reference [
41] developed a system consisting of cloud, IoT sensors, and IoMT devices to deal with cardiac patients. The system measures the patient’s eye movement, body temperature, and oxygen level for heart disease. Similarly, authors designed a model to monitor heart disease in [
42]. The proposed approach utilizes sensor data and an ensemble model in a fog environment. The model performs early diagnosis of heart patients. In [
43], an Adaptive Neuro-Fuzzy inference system with multiple kernel learning is used to identify cardiac disease. The system provides better results, although the computational complexity is high. An automated approach is designed in [
44] to distinguish between people at high risk of heart failure and those at low risk. The authors used the classification and regression tree (CART) and achieved specificity and sensitivity values of 63% and 93%, respectively. The existing state-of-the-art studies on cardiac disease is shown in
Table 3.
5. Results and Discussion
The performance of the CNN-based model was evaluated against the dataset of heart patients. The deep learning algorithms MLP, CNN, LSTM, and RNN were used to predict heart failure patients and compare with the machine learning algorithms. A training-to-testing ratio of 70% to 30% was set for all models to measure the performance of the models. The Python libraries Keras and TensorFlow were used to implement deep learning algorithms. The hardware and software specifications are shown in
Table 6. The system took approximately one hour time to train the data and give the final results.
Table 7 shows the performance analysis of the deep learning models regarding the accuracy, precision, recall, and F1 scores. The CNN model leads, with an accuracy score of 0.9398 and precision, recall, and F1 score values of 0.95 each.
The performance of the CNN model is better than the other deep learning models. Its performance was compared to two other models from study [
59]. Reference [
59] performed experiments using different scenarios, including one involving the use of oversampling by the synthetic minority oversampling technique (SMOTE). The SMOTE is utilized with CNN and Extra Tree Classifier (ETC) models. Results comparison given in
Table 7 indicates that the performance of the proposed CNN model is better than both the CNN and ETC, which is employed with SMOTE in [
59].
Table 8 shows the accuracy with other models employed in [
59], including Decision Tree (DT), Logistic Regression (LR), Stochastic Gradient classifier (SGD), etc. All these models are utilized with the SMOTE oversampling approach. Performance comparison indicates that the proposed CNN deep learning model shows better results than all the models used in [
59]. Despite the use of SMOTE in [
59], the CNN model performs better than these approaches.
5.1. Comparison with Deep Transfer Learning Models
In addition to machine and deep learning models, a performance comparison was also carried out using transfer learning approaches. Visual Geometry Group (VGG-16) and AlexNet are the two deep neural networks employed in this study. The VGG-16 is based on convolution, connected, pooling, and padding layers, while AlexNet is also based on CNN and has millions of parameters.
Table 9 shows a comparison of the performances of CNN, VGG-16, and AlexNet. The CNN model shows better performance, but precision, recall, and F1 scores of VGG-16 are also good.
Table 10 shows the comparison of time needed for training the transfer learning models and the proposed CNN model to analyze their computational complexity. The training time of the proposed model is less than those of transfer learning models, which shows its efficiency in terms of time and accuracy.
5.2. Results of Proposed Model for K-Fold Cross-Validation
To validate the proposed model, 10-fold cross-validation was applied. The heart failure dataset is used to validate the model. The CNN-based proposed model classifies the patient data with an average accuracy of 0.9462, while the precision, recall, and F1 scores are 0.9398, 0.9565, and 0.9481, respectively.
Table 11 shows 10-fold cross-validation results of the CNN.
5.3. Discussion
IoT-based smart patient monitoring systems are receiving attention, especially in the context of dealing with a large number of patients and those with acute heart failure, where continuous monitoring is needed. This study presents an IoT-based monitoring system along with a deep CNN model for heart failure detection. Experiments are performed to analyze the effectiveness of the proposed CNN within the context of other machine learning, deep learning, and transfer learning models such as VGG-16 and AlexNet. Experimental results show the best results from the proposed CNN model compared to other employed models. The classification accuracy of the CNN model is 0.9368, which is better than other models.
The proposed model outperforms all machine learning and deep learning models. The accuracy, precision, recall, and F1 score performance of the proposed model is high. In order to validate the proposed CNN, 10-fold cross-validation is applied, which also shows its efficacy. Moreover, a comparison of the proposed approach is carried out with existing works regarding different features such as the number of features used, the uses of AI approaches, and IoT and patient monthly record-keeping, and results are presented in
Table 12. These comparisons indicate that the proposed system is better than the existing ones.
5.4. Comparison with Existing Studies
The performance of the proposed models is further compared with existing studies that utilized the same dataset for experiments.
Table 13 shows the comparison of the accuracy of the proposed CNN with [
68,
69,
70,
71]. The study [
68] employed an optimized logistic regression for heart disease detection and obtained a 0.85 accuracy score. On the other hand, both [
69,
71] made use of the Naïve Bayes model and obtained accuracy scores of 0.74 and 0.86, respectively. The authors used a K-NN model in [
70] for the same purpose and obtained a better accuracy of 0.92. In comparison, the proposed model obtained an accuracy score of 0.9398 and proves to be better than these studies.
5.5. Performance of Proposed Approach Using Real-Time Dataset
Additional experiments are performed to analyze the performance of the proposed approach using a real-time collected dataset.
5.5.1. Dataset Description
This study employs the Public Health Dataset, which comprises four datasets, Cleve-Land, Hungary, Switzerland, and Long Beach V. The dataset contains 76 features; however, only 14 features are used in all published research that used this dataset.
Clinical HD data from 303 patients at CCF in Cleveland, Ohio, and across the US were collected in the dataset. The Heart Disease Database UCI_MLRepository contains this dataset and is publicly available [
72]. In each of the 303 clinical cases, there are 76 attributes, as well as, a target attribute. An integer from 0 to 4 indicates the state of the patient, 0 indicates a heart patient, and [1, 2, 3] indicates a healthy subject. For the current study, binary classification is used, so the target values are set to 0 and 1 for heart patients and healthy subjects, respectively. The 282 clinical sessions include 125 instances of cardiac disease (44.33%) and 157 cases of lacking cardiac disease (55.67%).
Table 14 displays features, attribute names, and domains.
5.5.2. Experimental Results
Table 15 shows the results of deep learning models using the real-time dataset. Deep learning models are used because they show better performance compared to machine learning models. The performance of the proposed CNN model is better than that of other deep learning models. The CNN shows an accuracy score of 0.9534, which is better than MLP, RNN, and LSTM. It is followed by RNN, which has a 0.9449 accuracy score. The proposed CNN has better performance on metrics such as precision and F1 score and obtains the highest recall score at 0.97.
5.6. Comparison with Existing State-of-the-Art Approaches
The proposed health monitoring technique is compared with the state-of-the-art methods. The study [
73] designed an IoT-based cardiovascular risk prediction using ensemble techniques. The ensemble techniques increase complexity and require higher computation resources, which is not appropriate for health-related systems. Moreover, these techniques generate over-fitting problems if not properly implemented.
Table 16 shows a performance comparison of the proposed approach with [
73]. The results show that the proposed approach has better performance.
5.7. Limitations and Future Directions
The main limitation of this study is that the proposed system collects data from different sources and sends them to the cloud for further analysis. The IoT-based system can be further expanded with different types of wearable medical healthcare devices that can be operated on smart devices such as smartphones, digital assistants, or tablets, which are common among medical workers. These devices provide local data storage and have only fundamental processing capabilities. The security of such devices is also low, which can compromise the confidentiality and privacy of patients’ data. Wearable and implanted IoT devices can provide continuous monitoring of patients and allow for theearly diagnosis of possible health issues.
6. Conclusions
A remote health monitoring system is designed in this study to monitor the health of acute heart failure. IoT technology is used to design health monitoring systems in order to access patients’ records without a physical appearance in medical clinics. The proposed smart healthcare framework is used to improve the odds of survival for critically ill patients and to provide easy, economical, and dependable monitoring for cardiac patients. The proposed system collects data and delivers them to the cloud, where they are further analyzed.
In addition, an optimized CNN model is presented for the accurate detection of heart patients, and its performance is analyzed against machine learning, deep learning, and transfer learning approaches. The experimental results indicate that the proposed models achieve better results than all the employed models with a 0.9398 accuracy score. Its performance is further validated using 10-fold cross-validation and performance comparison with existing studies using the same dataset for experiments; both prove the superior results from the proposed model. The accuracy and training time of the proposed technique are also better than those of the other models.