key: cord-1004441-ob9e8r67 authors: Deperlioglu, Omer; Kose, Utku; Gupta, Deepak; Khanna, Ashish; Sangaiah, Arun Kumar title: Diagnosis of heart diseases by a secure Internet of Health Things system based on Autoencoder Deep Neural Network date: 2020-08-19 journal: Comput Commun DOI: 10.1016/j.comcom.2020.08.011 sha: 0d05e201a7b005661b68c119b785beabff9b5572 doc_id: 1004441 cord_uid: ob9e8r67 Objective of this study is to introduce a secure IoHT system, which acts as a clinical decision support system with the diagnosis of cardiovascular diseases. In this sense, it was emphasized that the accuracy rate of diagnosis (classification) can be improved via deep learning algorithms, by needing no hybrid-complex models, and a secure data processing can be achieved with a multi-authentication and Tangle based approach. In detail, heart sounds were classified with Autoencoder Neural Networks (AEN) and an the IoHT system was built for supporting doctors in real-time. For developing the diagnosis infrastructure by the AEN, PASCAL B-Training and Physiobank-PhysioNet A-Training heart sound datasets were used accordingly. For the PASCAL dataset, the AEN provided a diagnosis-classification performance with the accuracy of 100%, sensitivity of 100%, and the specificity of 100% whereas the rates were respectively 99.8%, 99.65%, and 99.13% for the PhysioNet dataset. It was seen that the findings by the developed AEN based solution were better than the alternative solutions from the literature. Additionally, usability of the whole IoHT system was found positive by the doctors, and according to the 479 real-case applications, the system was able to achieve accuracy rates of 96.03% for normal heart sounds, 91.91% for extrasystole, and 90.11% for murmur. In terms of security approach, the system was also robust against several attacking methods including synthetic data impute as well as trying to penetrating to the system via central system or mobile devices After the introduction of a rapid learning algorithm with deep belief networks (in 2006), many research studies have been done on deep learning techniques. Deep learning methods have been applied to almost every area, including especially big data groups [52] . Deep learning, which has been widely used in recent years, is an advanced machine learning technique with a large number of discrete layers communicating with each other [53] . An autencoder (AEN) is a simple method that aim to transfer inputs to outputs with the smallest possible changes. AEN has important state in terms of machine / deep learning. AEN was proposed first time by Hinton and PDP group [54] in the 1980s to solve the problem via the back-propagation algorithm without, by using the input data as a supervisor. Thanks to Hebbian learning rules, the AEN is used for learning the basic paradigms, solving the mystery of the unsupervised learner and learning how local changes can be coordinated in a self-organizing way so that global learning and intelligent behavior are both obtained [55, 56] . In the context of medical diagnosis, AEN has been used in different diseases. For example, it was used for diagnosing Alzheimer's disease [57, 58] and for even the prodromal stage: mild cognitive impairment [57] . It was also used for diagnosing Parkinson disease [59, 60] . Additionally, AEN was used for diagnosing osteoporosis disease [61] , type 2 diabetes [62] , prostate [63] , brain [64] (as being recognition related), and even different cancer types [65] [66] [67] . Recently, deep neural nets have been used frequently in diagnosing heart diseases by examining heart sounds. In some studies, Convolutional Neural Networks (CNN) have been used to classify PCG images in time domain and frequency domain. For example, Aykanat et al. used two types of machine learning algorithms: SVM, and CNN with spectrogram images for classification of heart sounds [68] . Chen et al. studied the effectiveness of using CNN to detect automatically abnormal heart, and lung sounds for classifying them under different classes at the end. They tried to increase classification accuracy with 1, 2, and 3 convolutional layers. They obtained the best accuracy value with 2 convolutional layers [69] . Ryu et al. proposed a diagnostic model of cardiac diseases using CNN. This model can predict whether a heart sound recording is normal and abnormal by classifying PCGs [70] . As seen in the examples above, CNN is practically used as a deep learning method in classifying heart sounds. Recently, there is still great interest in running In order to understand better about how IoHT system in this study works, details regarding the whole system architecture and the AEN model can be explained. In this context, the following subsections provides information about IoHT architecture, and the AEN (with technical details about the datasets and the technique). The IoHT system developed in this study has been structured over a combination of technological components. These components can be used easily and ensure a comprehensive communication network where the data for diagnosis can be shared fast and the devices in that environment can form an interactive usage. The system includes use of a cloud environment, beacons for tracking the doctors (for data sharing purposes), a central system for managing communication between the cloud and the devices as well as ensuring training of the deep learning model. Furthermore, the system employs a data security layer (inside the central system, as shared with user side), and mobile devices with digital stethoscopes used by doctors. Figure 1 provides the general schema of the IoHT architecture-system. Considering that architecture, role of the components and general working mechanism within the IoHT approach can be explained as follows:  Cloud Environment: The cloud environment is based on Azure services ensuring synchronizations of mobile devices, keeping an up-to-date trained AEN, allowing share of heart sounds-cases, and ensuring communication among doctors. The cloud employs some small program-script codes, which are triggered by the central system and / or mobile devices to keep real-time interaction in the context of the system. At this point, using cloud environment has the objective of ensuring a bigger IoHT system with multi-hospitals at the same time. In this way, a global network of heart disease diagnosis over AEN can be achieved directly.  Central System: Central system is a workstation where training of the AEN model can be done offline. Thanks to the software in that system, it is also possible to run automated training phases with new data so that the cloud is updated for improving diagnosis capabilities. The central system also tracks which beacons are sensed and which doctors (mobile devices) can be synchronized. The central system has the ability to receive data from beacons and communicate with the cloud. In this way, the cloud ensures an updated, balanced real-time running for the IoHT system. On the other hand, the central system is responsible for ensuring encrypted data for the active users over the system and stores actions in the IoHT environment within a Tangle data model, which was provided open source by the IOTA. The central system also controls multi-authentication by the users. J o u r n a l P r e -p r o o f Journal Pre-proof  Beacons: Beacons are known as a type of wireless sensors, which are cheap, small electronic tools to transmit a signal over Bluetooth communication [93, 94] . With beacons, it is possible to sense other devices, track actions, analyze surrounding environment, and employ interaction-oriented feedback for different purposes. Thus, applications such as indoor / out-door navigation, e-trade, and multi-communication within wide places can be achieved [95] [96] [97] [98] . In the IoHT architecture designed in this study, proximity beacons with up to 5-month battery life are located in the hospital environment, in order to track actions by doctors. Considering active use by doctors, beacons sense mobile devices where the application of the system is installed and ensure a network of doctors for sharing the most recently trained AEN with them. Also, beacons allow sharing new data (heart sounds) to analyze or simply enabling doctors to communicate each other over a messaging service. Beacons are controlled by the central system so that there is a one-way communication between a beacon and a mobile device as well as a beacon and the central system. In the context of the IoHT system, real-time heart sound gathering and AEN based diagnosis are all done with mobile devices and digital stethoscopes carried by doctors. Here, a mobile application ( Figure 2 ) is used for obtaining heart sounds from patients, and performing diagnosis-classification over them by communicating with the cloud. According to the communication sessions done between the cloud and the central system, each active mobile device is supported with the latest sound data as well as past analyze reports in real-time. The mobile application also allows doctors to see-track each other and perform instant messaging. At this point, installing mobile application for the first time requires users to create a public key-based data for multiauthentication. After a user tries to login to the system with username and password, the central system creates a unique code for the second authentication step. The users may also enable application to communicate with the central system for automatic login for each time (central system generates data and check that with the target user's application through a secure channel). It is also possible to activate alternative authentication mode such as voice, hidden answer, or visual puzzles.  Data Security Layer: In order to ensure a secure communication and data storing, the IoHT system was supported with a data security layer. That approach consists of three essential approaches: (1) Public key-based multi-authentication for mobile devices, (2) Tangle based action storing against malicious attacks, (3) Twin data synchronization between central system and the cloud. As the authentication between the central system and mobile devices are done according to the actions expressed before, the system uses Elliptic J o u r n a l P r e -p r o o f Journal Pre-proof Curve Digital Signature Algorithm (ECDSA), which is preferred to be used within wireless communications. Here, the implementation by Sghaier et al. [99] was followed for ensuring optimum running of the algorithm. Also, the deterministic usage suggested by [100] has been followed for better security. The central system stores twin data over the cloud environment so that it regularly checks and any data discrepancy corresponding to possible attacks or data errors is detected accordingly. Additionally, the central system stores data in terms of Tangle data model, which was introduced by the IOTA, as focusing on Directed Acyclic Graph (DAG) [101, 102] . Here, actions by users are checked in the context of the data history shared with all authenticated peers (mobile devices). In the scenario of this study, it is not necessary to approve any past action (as done originally in Tangle) to join to the Tangle network (because authenticated users are already part of the network here). Micro proof-of-work phases allows fast using experience without having any idea about data security communications on the background. A brief scheme of the data security layer / approach is given in Figure 3 . Heart disease diagnosis in this study is associated with a classification approach, which forms a diagnosis infrastructure for the IoHT system. For all classification tasks, MATLAB r2017a was used along the research period. While the cloud environment of the IoHT system is supported by the In this study, the following datasets were used for the classification (diagnosis) applications: PASCAL B-training dataset includes heart sounds files in the WAV format. The related sound files were obtained at clinic trials at hospitals, thanks to the digital stethoscope named as DigiScope® [103] . DigiScope® comes with a panel in addition to the stethoscope components, and it can amplify the sound range of 20 to 1000 Hz for heart sounds. Additionally, it can be used for also lung sounds, by targeting the range of 70 to 2000 Hz. It is important that DigiScope® can also amplify the sound at maximum 200 times. As using 9V batteries for long-time use, and having a 15 to 90 Db volume range, it comes with a special software platform for recording, analyzing, and sharing sounds over the Internet. DigiScope® is around 490g, which means it is not heavy to carry during medical tasks. The PASCAL B-training dataset (as used also in this research) obtained with that device comes with 449 files in 5 categories (also output) as normal, noisy normal, extrasystole, murmur, and the noisy murmur. Table 1 represents technical details of the files. In the PhysioNet A-Training dataset, the heart sounds are included as again sound files, which are in the WAV format. As the sounds were obtained during clinic trials at hospitals, there are both healthy and pathological records in the dataset. It is also remarkable that the PhysioNet A-Training dataset includes heart sounds recorded from children and adults. In detail, one to six heart sounds were recorded from each person / patient. The duration of the recordings varies from a few seconds to a hundred seconds. All the recordings were accordingly resampled to 2000 Hz and recorded in WAV format [104, 105] . The dataset contains 409 files in 2 categories (output) as normal, and abnormal. Table 2 shows the technical details for the sound files. Preprocessing of the heart sounds corresponds to three steps such as resampling, normalization and filtering. In the classification step, all heart sounds should be recorded at the same length of time so that the learning data set matrix dimensions are equal. Similarly, the sampling frequency should be equal. For this purpose, the sound files are set to the same sampling time in the resampling step and at the same size of time. As shown in Table 1 , the length of all audio files in the PASCAL data set is J o u r n a l P r e -p r o o f Journal Pre-proof set to 8 seconds. No processing was done in resampling step because the sampling rate is 4000 Hz for all files. Likewise, as shown in Table 2 , the lengths of all audio files in the PhysioNet data set to 15 seconds. No processing is required to be done in the resampling step because the sampling rate is 2000 Hz for all files. First, the PCGs were normalized to a fixed '[-1 1]' scale: because heart sounds should be normalized before filtering. Normalization can be performed by using the Equation 1 [103] . (1) where xnorm[n] corresponds to the normalized signal, and the x[n] is the resampled signal. Because of the uncontrolled environmental factors during heartbeat recording, many sound files include noises. These noises may be because of lung sounds, stethoscope movement, and even breathing sounds. So, it is quite difficult to classify records in their own, exact categories. In order to solve that issue, heart sounds should be filtered to become noise-free before the classification. In this study, an elliptic filter was used for that purpose. In order to achieve early diagnosis of heart diseases, the step of noise removal is too critical for the first steps of classification. Coskun et al. used several filtering methods for the same heart sound datasets (considered in this study) and the classification approach employed in their study was an attempt to emphasize filtering step for heart sounds. That study has given an insight for future studies in the related area. In detail of the study, the classifying of heart sounds was done with the SVM over mobile devices and it was seen that the fastest filter was Butterworth and the best effect on classification results was obtained via elliptic filter. Moving from that study and some other studies done previously, it is also possible to indicate that the effect of the filters used during classification may show differences according to the target dataset [104, 105] . In this study, an Autoencoders Neural Network (AEN) was used to classify the heart sounds. AEN is a type of Multilayer Perceptron (MLP based ANNs) and sometimes referred to as auto-associator. An AEN ensures an algorithm of unsupervised-learning, which is used for effectively encoding a dataset for reduced dimension size. For past few decades, AENs have been extremely important in the context of research on ANNs. Bourlard and Camp have proposed a multi-layer sensor in autocoupling mode. Thus, they provided data compression and dimensional reduction during data J o u r n a l P r e -p r o o f Journal Pre-proof processing [106] . In general, AENs are used to learn productive models defining the target data. One of the major advantages of AEN is that it constantly filters out the propagation process, as bringing forward useful features of the model. Moreover, since the input vector is converted into a smaller size by coding, a more efficient and faster learning process is obtained [52] . In 1986, Rina Dechter showed early example of Deep Learning for the first time. However, the first study was actually a controlled, deep, forward-feed learning algorithm for multi-layered perceptions, as introduced by Ivakhnenko and Lapa in 1965. AEN, a type of deep neural networks or deep learning, was first mentioned in the 1990s and has also become widespread in the 2000s. An AEN model is basically ANNs structure with three main layers. These layers are: an input layer, several hidden (coding) layers, and an output (decoding) layer. An AEN architecture with n hidden layer is given in Figure 5 . AEN is trained to restructure the inputs and forces the hidden layer to learn good representations of the inputs. AEN is an unsupervised machine learning method, which is applying back propagation to try to equalize the target values to the inputs. Briefly, an AEN is trained to try to copy the input to the output. Internally, there is a hidden layer providing a code used to represent the input [53, 107] . In an AEN model having single hidden layer, the vector of hidden node events can be computed as in Equation 2: (2) In this equation, ƒ represents the function of activation, Wd represents the matrix of parameters, and d represents the bias parameters vector. In this study, Scaled Conjugate Gradient Algorithm and Cross entropy cost function was used in the coding layer. The secret representation of the data is then mapped to a field by using the decoding function in If the hidden layer has a size less than a, the AEN learns the training data represented in compressed form. In fact, an AEN with k linear hidden units will learn to reflect the data to the first k main components. Normally, an AEN with k linear hidden nodes learns to transfer training data to the first k main component. Nonlinear hidden nodes allow an AEN to learn more complex coding functions, such as in additional hidden layers. In the context of medical classification studies, different performance calculations are widely-used. Accuracy, Precision, Recall, F-measure, and Gmean are among them and these measures are run for precise. Recall is also known as the rate for true positive as it means also the ratio of the correctly identified positives within a test. Finally, F-measure (F1-score) corresponds to the measure of accuracy of a test. It briefly gives the weighted harmonic average of precision and recall [109] [110] [111] . It is remarkable that the Accuracy, Sensitivity and Specificity are used to assess the precision of an employed solution [68, 69] . In this study, some other measures have been also used for evaluating the performance against PhysioNet A-Training dataset. Here, the PhysioNet/Computing in Cardiology (CinC) Challenge 2016 suggests a public database with heart sounds [112] . The scoring algorithm defined as the average of specificity (Sp) plus sensitivity (Se) is as follows (as proposed by the challenge organizers): In the equations 12-14, Nn, and Aa corresponds respectively to the correctly classified normal, and abnormal recordings. Additionally, Na, and An mean incorrectly classified normal, and abnormal recordings respectively [113] . Heart diagnosis performance is the most critical characteristic of the developed IoHT approach in this study. Except from using experiences with the IoHT system, it is important to see if successful diagnosis-classification performances can be achieved via AEN based infrastructure. Moving from that, previously done studies were examined along this research, and attempts were made to determine the most appropriate AEN confederation. The same AEN was used in the classification study for both databases. In this way, it was ensured that the IoHT system with the well-trained AEN can be applied for real cases. For the real cases, a total of 12 doctors (whose expertise is The structure of the AEN model used in this study is given in Figure 6 . That model consists of 8 steps. The first step is an automatic identifier (with a hidden layer size of 10), by employing a linear transfer function for the decoding. In the AEN, the coefficient for the L2 weight 'regulaizer' is 0.001, the coefficient for the sparsity regularization term is 4, and the sparsity proportion is 0.05. The Softmax layer is used regarding the classification purpose. The softmax layer has the same size with the target matrix. Loss function for the softmax layer is the cross-entropy function. In the sixth step of the AEN, the softmax layer and the encoders are stacked to form the deep network: Deepnet 1. In the seventh step, the deep network is trained according to the heart sounds, as using input and output matrices to create Deepnet 2. In the last step, Deepnet 2 estimates types of heart sounds for input data using Deepnet 2. The maximum training epochs for each step of the AEN was 1000. Based on the 20 runs and the finding for the whole data for each dataset, Figure 11 Based on the related findings and further investigations-evaluation processes, the next section provides a general analyze of the IoHT system as well as the AEN infrastructure for diagnosis of heart diseases considered within this research study. The evaluation phase for the IoHT system has included several approaches in the context of testing AEN and the IoHT system separately. The next sub-sections explain all evaluation tasks and the obtained findings accordingly. Journal Pre-proof In order to analyze success of the IoHT system well enough, the first task was to evaluate the AEN infrastructure. That was done by evaluating the AEN itself and also including it within a comparative evaluation. The next sub-sections discuss about the findings regarding the evaluation of the AEN. For determining exact state of how well AEN can be applied for diagnosing heart diseases, the success of classifying heart sounds with AEN has been examined. For this purpose, two different heart sound data set, such as PASCAL and PhysioNet were classified by using AEN. The obtained evaluation results for both databases are given in Table 3 . As it can be seen from Table 3 , the AEN has been successful enough against both datasets employed for both training and test tasks for the diagnosis infrastructure of the IoHT system. More evaluation including comparative approaches and analyze of both IoHT system and the AEN during real-time applications (real cases) are discussed within next paragraphs. In order to evaluate the obtained results, additional comparisons were made by considering alternative solutions used the same PASCAL and PhysioNet datasets. As similar to single run of the developed solution in this study, comparison findings were gathered by performing 20 runs for each method. The comparison data for PASCAL dataset were given in Table 4. This table contains widely employed five types of classification methods such as AEN, ANNs, SVM, CNN, and DNN. In the Table 4 , the bold-style values are for the best scores among the methods. As seen from Table 4 , classification studies for PASCAL dataset with AEN have the highest accuracy, sensitivity and specificity ratios according to the other classification methods. By achieving the 100% overall accuracy rate for PASCAL dataset, the proposed solution has the best performance in all of them. F-measurement is the harmonic mean of the classifier and its recall. In most cases, there is a trade-off between precision and recall. If you optimize the classifier to increase one and remove the other, the harmonic average decreases rapidly. However, when both sensitivity and recall are equal, it is the largest. The fact that the F-measure is 1 indicates that the classifier is in the best condition. As similar, the G-mean value was 1. In addition to the findings for the PASCAL dataset, the comparison data for PhysioNet dataset were given in Table 5 . In the Table 5 , the bold-style values are for the best scores among the methods considered. J o u r n a l P r e -p r o o f As seen from Table 5 , classification studies for PhysioNet dataset with AEN have the highest accuracy, sensitivity and specificity ratios according to other classification methods. Achieving the 99.8% overall accuracy rates for PhysioNet dataset, the proposed method has the best performance in all of them. In this classification study, F-measure were found %99.67 and G-mean %99.38 were found. The F-measure and G-means, the most common used evaluation metrics, show that the classification method is very successful for the precision and the recall. Achieving the 100% and 99.8% overall accuracy rates for the two most commonly used the data sets of heart sounds shows that the obtained results are not random. It is also seen that the number of categories in the output class does not affect the result for classification with AEN. In this study, the AEN model provided very good results in the classification phases performed separately for two different databases. But it is still open for alternative adjustments against different datasets of heart sounds. Being robust against possible change on output states, and achieving good results, which are not random, mean that the model can be adapted easily (and successfully) to alternative heart data. These results also point that a good classification can be made without using any wavelet methods or various segmentation methods (i.e. Shannon energy, re-sampled energy). Heart sounds can be easily classified by a well-designed AEN. Thus, clinical decision support systems, which use classification as a tool, are both reduced in workload and in terms of processing time and cost. Journal Pre-proof By considering the performances of each method for each dataset, it is also necessary to perform a validation tasks, in order to show that the obtained findings were not with a chance. In order to perform that, Giacomini-White Test [127] was employed in this study. The test was done to understand if the minimum mean accuracy rate for each method means that the related method is good at diagnosis-classification. Next to the pairwise-comparison performed over all methods, findings about which method had the better performance (in other words, outperforms the others statistically with the 5% significance level) are shown in Table 6 . In the table, more than one method means that there is an equivalence among the methods for the corresponding dataset. Significance level of 5% The related findings from the Giacomini-White Test confirms the successful performances by the AEN infrastructure. Additionally, the methods in [102] , and [110] took places in the best performance (with the AEN) for the PASCAL dataset while the method [103] had place in the best performance (with the AEN) for the PhysioNet dataset. Evaluation of the IoHT system has been done by considering four different perspectives as cost analysis, usability tests, and feedback as well as findings from real cases. In this way, it was aimed to analyze effectiveness and applicability of the system further in different environments and by doctors or even supportive medical staff. Evaluation phases were done thanks to a 4-month use of By considering optimum components to run the IoHT system developed in this study, it is possible to have a general cost analysis. By accepting that all doctors have smart phones to run mobile application, average costs of each component (by June 2020) can be summed for ensuring a cost on low, medium, and high-level scenarios. Table 7 provides three different cost analyses in this manner. Table 7 . General cost analysis of the IoHT system. As it is seen from the Table 7 , medium cost of the system is 1900$ for a medical environment with 5 doctors, and a 1-year use at total. Here, the medium cost will be acceptable for most of hospitals. The costs may be reduced to 1630$ by employing cheaper beacons (or similar sensors with less costs), and choosing a different cloud provider as Google Cloud. On the other hand, the costs may be high as 2390$ if beacons, central system, and the cloud provider are changed to higher levels. Also, it is possible to run the central system without employing a cloud. However, -as it was indicated before-especially use of cloud corresponds to a wider use of the system in the future with multi-hospitals at the same time. Journal Pre-proof For evaluating usability of the IoHT system as well as the AEN diagnosis solution, a usability test was done with the active contribution by 12 doctors. All doctors used DigiScope® as the digital stethoscope, and the environments were supported with FEASYCOM Mini Bluetooth 5.0 proximity beacons. Used smart phones were as follows (with total number of doctors using each): iPhone X (2), iPhone 8 (1), iPhone 8 Plus (1), iPhone 7 (1), iPhone 7 Plus (2), Samsung Galaxy S10 (2), Sony Xperia XZ (1), Xiaomi Redmi Note 8 (1), and Vestel Venus Z20 (1). The usability test prepared by including some tasks to do while using the system. In detail, average completion time for each task, completion rate (by considering limited time periods for each task), and average feedback by the doctors by indicating 1 if the task is easy, 2 if the task has medium difficulty, and 3 if the task is difficult. Each task was done respectively, and after each task, an evaluator noted completion time, completion state (successful if the task was completed within the limit), and the feedback by the user for the difficulty of the performed task ( Figure 12) . Table 8 provides all tasks as well as the other findings obtained at the end of the usability test. According to the Table 8 , the IoHT system has been considered as a practical, easy-to-use approach for the diagnosis of heart diseases. While doctors think that especially heart sound analyze and diagnosis tasks near to medium difficulty level, the whole system can be effectively and efficiently used by doctors, considering completion time, completion rate and difficulty feedback for all tasks. The related findings have been illustrated in also Figure 13 to 15, respectively. As it was indicated before, the IoHT system was used for around 4 months by a total of 12 doctors at 5 different hospitals. In addition to the usability tests done by those doctors, they have also wanted to give open feedback about their ideas on the used IoHT system. While around 98% of the ideascomments are positive, the most remarkable ones are as follows:  "That system allows me to save time and concentrate more on the treatment stage, rather than diagnosis."  "I would like to use that system in every medical environment I take place."  "Thanks to that system, it became easier to share diagnosis results and ideas with my colleagues."  "That system can be used for different medical cases and diagnosis tasks."  "It would be great if that system can be supported with also medical image analysis."  "The system may include an offline mode because GSM communication is weak in some places."  "It is very nice to use the system with my smart phone, without needing any further tool.  "With that system, I can diagnose heart sounds faster."  "This system is very practical and fast to use for analyzing heart sounds." Considering the 4-month use experience by the doctors at 5 different hospitals, a total of 479 real cases (real analyze-diagnosis from newly encountered heart sounds) were analyzed by using the IoHT system (The previously mentioned devices / components in usability tests were being used during that period). As the AEN infrastructure is effective on diagnosing normal, extrasystole, and murmur class-category from heart sounds, performance of the system was evaluated for each hospital, by considering the related cases. Table 9 provides findings about true-false diagnosis done for the real cases. As it can be seen from feedback by the doctors and also findings by real cases, the developed IoHT provides successful enough performance in real-time applications. It is remarkable here that the AEN infrastructure of the system is accurate in discriminating-classifying not only normal / abnormal heart sounds but also different kinds of abnormal heart sounds. It is also understood that there is not any vital communication-running problem among the technical components of the IoHT system. In detail, positive outcomes in even use of different mobile devices at different locations / environment set-ups show that the developed system has important potential for making it adapted to different conditions and components. But in order to cover every aspects of that research, the next sub-section is devoted to limitations and suggestions. J o u r n a l P r e -p r o o f Journal Pre-proof As the IoHT system developed in this study ensures multiple data security aspects (in terms of both secure communication and data storing), it was tested with some alternative security related attacks. The attacks were generally based on trying to manipulate the system data with synthetic data impute, and penetration tries via central system and mobile devices. A total of 32 different scenarios have been applied accordingly. Table 10 provides information regarding the attacks and the results. As it can be seen from Table 10 , the security side of the IoHT system seems robust against any possible malicious attacks with different ways. Unsuccessful attacks were because of strong encryption scheme as well as multi-authentication for communication and proof mechanism provided by the Tangle. One successful attempt with a specific vulnerability was associated with the Windows operating system on the central system and that was eliminated after latest updates. The developed IoHT system provided positive findings in terms of evaluation works with different perspectives. However, it is still possible to discuss about some limitations and derive ideas about alternative works to do by interested researchers. First of all, some limitations that may be associated with that research can be expressed briefly as follows:  Diagnosis performance of the developed system (withs its AEN infrastructure) was evaluated by considering two different datasets. It may be required to train the AEN J o u r n a l P r e -p r o o f Journal Pre-proof continuously with newer data / cases for making it adapted to even slight changes (in the heart disease diagnosis problem) and preventing it from rising bias.  In terms of IoHT architecture, some unexpected scenarios may be still experienced. For example, materials of buildings may cause interrupts / problems in wireless communication of beacons as well as mobile devices, and low-level technological resources of target places may cause negative using experiences. But further uses will probably allow eliminating such issues accordingly.  As there are many different types of mobile devices and hardware components to be used for the IoHT system, there may be need for more compatibility tests.  The system seems to be running well enough for different mobile devices with different operating systems (iOS, and Android), there will be still need for software updates to include specific mobile devices with unique features, and using functions.  If the developed system runs over a wider network of federate, similar systems of IoHT, further tests on i.e. resource use, scalability, and data security may be required.  Although the security side of the IoHT system seems successful, it will be always requiring to track latest hacking / attacking methods and keep the system up-to-date in terms of defensive, alternative approaches. Considering the obtained findings-results and the potential of the developed system, some suggestions for further research can be explained as follows:  Because the developed system seems to be blending some critical research points of medical: diagnosis, IoT usage, and data security, it has a great potential for long use. On the other hand, there is still opportunities for further, alternative research to contribute the associated literatures of smart technologies and the medical.  There is a great interest in using IoHT systems and it seems doctors / medical staff are ready to use such systems for improving their using experiences. So, it is important to focus more on developing IoHT systems under the wide umbrella of IoT.  Nowadays, there is a serious pandemic: COVID-19 so that research in medical has more importance for urgent solutions, thanks to smart technologies. The system developed in this study can be modified to be used for COVID-19 diagnosis. That can be achieved by adjusting only several features (i.e. processing medical image, optimizing AEN parameters / architecture). In this sense, IoHT systems have great importance for combating COVID-19.  Such systems of IoHT may need employment of some detailed using modules, which can make the system adaptive to different user characteristics and even work-load. Also, it may J o u r n a l P r e -p r o o f Journal Pre-proof be good to include Explainable Artificial Intelligence infrastructure for better variations of IoHT systems.  Except from the mentioned points, the system ensures many future work development potentials. These have been expressed in detail under the future works discussed in the next section. Characteristics of the PCG vary according to the state of the heart. When there is a problem with the heartbeat function, the heartbeat signal seems distorted. For this reason, classification studies ensure a preliminary diagnosis phase helping to determine if further examination is required or not. In this sense, roots of that research belong to the automatic classification of heart sounds. By considering past studies showing effectiveness and speed of deep learning, AEN was used for heart disease diagnosis, as in the context of a secure IoHT system. The IoHT approach was designed for providing a practical, real-time diagnosis tool for doctors. Furthermore, it was aimed to achieve a secure data communication infrastructure as today's IoT systems vitally require that. Thanks to the system infrastructure, it has been possible to improve effectiveness and efficiency of heart health related analyzes, in the context of a mobile, smart network of daily-life devices. In order to evaluate the whole IoHT system and the diagnosis infrastructure by the AEN, a comprehensive evaluation period was done. Firstly, the AEN model has been tested in two different heart sound datasets. Heart diseases classified in the Pascal dataset are normal, murmur, extrasystoles. On the other hand, Physio dataset classifies normal and abnormal heartbeats. Although the difference, the AEN model gave successful and effective results for two different heart sound data sets. The findings were also compared with different classification methods including techniques of AEN, ANNs, SVM, CNN, and DNN. The classification applications with AEN provided the highest accuracy, sensitivity and specificity rates among other classification methods used over the same, most commonly used data sets. That means the obtained results are not as a chance and it is also seen that the number of categories in the output class does not affect the results for the classification by AEN. Thus, it is clear that an AEN model can be used as a practical and efficient method for detecting heart conditions and classifying heart diseases for preliminary diagnosis. Following the evaluation works done for the AEN model, effectiveness of the IoHT system was evaluated by 12 doctors from different hospitals. That evaluation phase included usability-tests as well as the using experiences by doctors in real cases. Additionally, a brief cost analysis for the IoHT system was also provided accordingly. As general, findings from the usability-J o u r n a l P r e -p r o o f Journal Pre-proof tests pointed positive thoughts on effectiveness and success of the IoHT system. Except from the feedback for data security aspects, the IoHT system has been tested with some alternative attacks and the system was generally able to reject any data manipulations. Thanks to the positive results-findings achieved in this study, the authors have already planned some future works. In this context, additional improvements for building a modular IoHT system (as a more advanced clinical decision support system), which is able to diagnose all kind of diseases and employ additional tasks will be developed in the future. Also, adding alternative diagnostic and treatment methods (with especially deep learning techniques), and performing additional works to test security level are among other future works. It is also remarkable that contributive feedbackcomments by the doctors will be considered for further improvements over the IoHT system. Finally, as the COVID-19 issue was threatening the humankind while writing that content, the authors have decided to run additional future works including addition of accessibility features (i.e. voice command since the authentication already allows voice analyze), in order to ensure less physical interaction with the system. Furthermore, improvements for the data security side will be checked often as the near future seems to be rising a digital world with more sensitive data. World Health Organization (WHO), Cardiovascular diseases (CVDs) -fact sheet Cardiovascular diseases on the global agenda: The United Nations high level meeting, sustainable development goals, and the way forward Internet of health things-driven deep learning system for detection and classification of cervical cells using transfer learning Online heart monitoring systems on the internet of health things environments: A survey, a reference model and an outlook, Information Fusion An Internet of Healthcare Things (IoHT)-Based Healthcare Monitoring System Heart sound analysis for symptom detection and computer-aided diagnosis Classification of phonocardiogram signals based on envelope optimization model and support vector machine A survey of deep neural network architectures and their applications Deep Learning: Autoencoders Fundamentals and types Learning internal representations by error propagation The Organization of Behavior: A Neurophychological Study Workshop on Unsupervised and Transfer Learning, JMLR: Workshop and Conference Proceedings Alzheimer's Disease Neuroimaging Initiative. Latent feature representation with stacked auto-encoder for AD/MCI diagnosis Single-slice Alzheimer's disease classification and disease regional analysis with Supervised Switching Autoencoders Classification and diagnosis of the parkinson disease by stacked autoencoder Feature ensemble learning based on sparse autoencoders for diagnosis of Parkinson's disease, in: Computing, Communication and Signal Processing Type 2 diabetes data classification using stacked autoencoders in deep neural networks Comprehensive autoencoder for prostate recognition on MR images Unsupervised brain lesion segmentation from MRI using a convolutional autoencoder A deep stacked random vector functional link network autoencoder for diagnosis of brain abnormalities and breast cancer A Noninvasive Method to Detect Diabetes Mellitus and Lung Cancer Using the Stacked Sparse autoencoder Classification of kidney cancer data using cost-sensitive hybrid deep learning approach Classification of lung sounds using convolutional neural networks Automatic heart and lung sounds classification using convolutional neural networks Classification of Heart Sound Recordings using Convolution Neural Network Heart sounds classification using a novel 1-D convolutional neural network with extremely low parameter consumption Feature extraction and classification of heart sound using 1D convolutional neural networks Cardiac Murmur Classification in Phonocardiograms using Deep Recurrent-Convolutional Neural Networks Classification of heart sounds using convolutional neural network Heartbeat sound classification using Mel-frequency cepstral coefficients and deep convolutional neural network Automated heart sound classification system from unsegmented phonocardiogram (PCG) using deep neural network Automated pre-screening of arrhythmia using hybrid combination of Fourier-Bessel expansion and LSTM Classification of heart sounds using fractional Fourier transform based mel-frequency spectral coefficients and stacked autoencoder deep neural network Multi-modal Feature Based for Phonocardiogram Signal Classification Using Autoencoder A Semi-Supervised Approach for Identifying Abnormal Heart Sounds Using Variational Autoencoder The PASCAL Classifying Heart Sounds Challenge Components of a New Research Resource for Complex Physiologic Signals The IoT-based heart disease monitoring system for pervasive healthcare service An IoT-cloud based wearable ECG monitoring system for smart healthcare Heart rhythm monitoring system and iot device for people with heart problems An IoT based efficient hybrid recommender system for cardiovascular disease, Peer-to-Peer Networking and Applications HealthFog: An ensemble deep learning based Smart Healthcare System for Automatic Diagnosis of Heart Diseases in integrated IoT and fog computing environments an IoT framework for heart disease prediction based on MDCNN classifier Validating the robustness of an internet of things based atrial fibrillation detection system Health monitoring based on internet of medical things: architecture, enabling technologies, and applications Design of a smart safety measurement system using bluetooth beacon sensor nodes Robust and affordable retail customer profiling by vision and radio beacon sensor fusion Improving indoor localization using bluetooth low energy beacons, Mobile Information Systems Real-time livestock tracking system with integration of sensors and beacon navigation Indoor navigation with mobile augmented reality and beacon technology for wheelchair users Fast hardware implementation of ECDSA signature scheme Deterministic usage of the digital signature algorithm (DSA) and elliptic curve digital signature algorithm (ECDSA), Internet Engineering Task Force RFC IOTA-next generation block chain Iota Tangle: A cryptocurrency to communicate Internet of Things data Heart sound classification based on scaled spectrogram and tensor decomposition Developing Android Application with Support Vector Machines Intended for Classification of Extra Systole Effect of Filter Selection on Classification of Extrasystole Heart Sounds Via Mobile Devices Application of Information and Communication Technologies AICT Auto-association by multilayer perceptrons and singular value decomposition Deep autoencoder neural networks for gene ontology annotation predictions, Proceeding of BCB '14 Heart sound classification based on scaled spectrogram and tensor decomposition Classification of phonocardiograms with convolutional neural networks Analysis of PCG signals using quality assessment and homomorphic filters for localization and classification of heart sounds On extending f-measure and g-mean metrics to multiclass problems Classification of Normal/Abnormal Heart Sound Recordings: The PhysioNet/Computing in Cardiology Challenge Abnormal Heart Sounds Detected from Short Duration Unsegmented Phonocardiograms by Wavelet Entropy, in Computing in Cardiology Heart sounds classification using feature extraction of phonocardiography signal Classifying Heart Sounds Using Multi-Resolution Time Series Motifs: An Exploratory Study Improving the performance of cardiac abnormality detection from PCG signal An Integrated Framework for Cardiac Sounds Diagnosis Heart diseases diagnosis using intelligent algorithm based on PCG signal analysis, Circuits and Systems Classification of Segmented Heart Sounds with Autoencoder Neural Networks, VIII. International Multidisciplinary Congress of Eurasia (IMCOFE'2019) Classification of segmented phonocardiograms by convolutional neural networks Using Deep Gated RNN with a Convolutional Front End for End-to-End Classification of Heart Sound Normal / Abnormal Heart Sound Recordings Classification Using Convolutional Neural Network, in Computing in Cardiology Heart Sound Classification Using Deep Structured Features, in Computing in Cardiology A Multi-Modal Classifier for Heart Sound Recordings Classification of Normal and Abnormal Heart Sound Recordings through Robust Feature Selection Ensemble of Feature-based and Deep learning-based Classifiers for Detection of Abnormal Heart Sounds Tests of conditional predictive ability