1. Introduction:
Artificial intelligence (AI) and the Internet of Things (IoTs) are developing domains wherever researchers are emerging technologies and methods for minimizing human involvement. While IoT depends on sensors, data processing methods, and communication technology [1]; classification techniques are employed for identifying a concealed sample in the input data and detecting the types where it belongs. It has the potential to implement this technology in areas like meteorology, agriculture, industry, and the medical field [2]. For example, a medical cyberphysical system (MCPS) is a notion wherever networks, software, and sensors interconnect with physical human signals to improve the efficiency of a patient's treatment [3]. In such a manner, the sensor detects biological signals and transmits them over a network, which is processed by software techniques to extract valuable data and proceed with a decision namely producing an alert, analysis, or even offering treatment to simply enhance the patient's medical help [4]. Because of the great expenses related to hospitalization, options containing assisted living, physical activity monitoring, home care, and telemedicine are defined as major attention. Similarly, home and mobile monitoring of important indications and physical activities permit health that can be remotely accessible at any time [5].
Alternatively, cardiovascular disease (CVD) is the major reason of death with an estimated 32% of every death around the world as per the World Health Organization (WHO) [6]. Cardiac arrhythmia is a category of CVDs, that threatens billions of humans and survives worldwide. IoT devices are designed and utilized in several devices for communicating, monitoring, and improving targets. Additionally, it offers data at the correct time without specialist consultation which can be very efficient in rural areas [7]. Arrhythmia cases are diagnosed by aggregating the signals and calculating them by using analytical tools. The simplest method to detect arrhythmia is to implement a manual analysis on 24 - 72 hours of ECG. Conventionally, in methods like extended-time ECG recordings, patients are required to wear Holter Monitor for a continuous time, which can be a more unpleasant experience [8]. The fast development of IoT approaches has created new methods such as Fitbit, Android Wear, or Apple Watch, for monitoring the conditions of the heart. Conversely, the ubiquity of IoT-based devices has also led to a significant rise in ECG data [9], causing an important challenge to ECG analysis. Manual analyses have been time-saving and errorprone which is no more potential. An automatic technique can be extremely required for providing a low-cost analysis for arrhythmia and permitting at-risk patients to receive early treatments [10].
This article presents an Internet of Things Enabled Based Arrhythmia Classification using the Dandelion Optimization Algorithm with Ensemble Learning (AC-DOAEL) method. For the arrhythmia detection and classification process, the AC-DOAEL technique follows an ensemble learning algorithm such as long short-term memory (LSTM), autoencoder (AE), and bidirectional LSTM (BLSTM) models. To improve the recognition rate of the ensemble models, the AC-DOAEL technique uses DOA as a hyperparameter optimizer. The simulation values of the ACDOAEL methodology are well-studied on the benchmark ECG database.
2. Related Works
Chen et al. [11] established a VANet architecture for ECG-based application, a small-scale DL-based real-world inference results for VA identification. VANet attains a milli-seconds scale inference rate on diverse architectures. VANet leverages optimizer approaches namely residual links, and framework designs, such as RNNs and transformers, for improving NN effectiveness and reducing storage and computational costs. In [12], an automatic ECG beat classification algorithm depends on the DNN method. This collected data can be analyzed utilizing the DL method, and the outcomes are shared with the chief physician. Abdalla et al. [13] suggested a new approach for automatically classifying 10 various kinds of arrhythmia depending on the DL technique. Therefore, the popular CNN algorithm is modified for classifying various categories of arrhythmia. The framework of this developed method contains eleven layers allocated in this way: a 4-layer as convolution transferred with other 4-layers of max-pooling and the last three are effectively interconnected layers.
In [14], the CAD technique for automatically diagnosing ECG, which comprises adapted DL-NNs to categorize ECG signals into 3 types: normal sinus rhythm, arrhythmia, and congestive heart failure. In this study, the NNs employed such as GoogLeNet and AlexNet. The ECG signals are gathered from virtual sources and later transformed into a scalogram. Thanka et al. [15] introduced an efficient ensemble method with a network-in-network framework that depends on LSTM and CNN for correctly diagnosing arrhythmias in ECG signals. Previously, resampling is established to stabilize the information to prevent the method from the presence of under-fit and over-fit. The ensemble method carried out higher validation data. Hammad et al. [16] focused on offering a lightweight multi-model depending on CNNs, which transferred knowledge from several lightweight DL methods and is transferred into one method to support the detection of arrhythmia through ECG signals. Hence, the method achieved a multi-model ability for classifying arrhythmia from ECG signals.
Bhukya et al. [17] suggested AI techniques for detecting and classifying different cardiac arrhythmia categories employing diverse approaches containing DM, ECG signal analysis, and the NBs method. An NB method to control heart arrhythmias is a supportable tool for medical specialists in detecting and treating the condition. This developed method employed DT-based cardiac arrhythmias for diagnosing and classifying methods. Akhila Naz et al. [18] recommended a dependable and new arrhythmia classification method by applying DL approaches. A DNN with 3hidden layers is designed for classifying arrhythmia through the MIT-BIH arrhythmia dataset.
3. The Proposed Model
In this article, we have mainly developed an automatic arrhythmia classification algorithm, named AC-DOAEL method on the IoT environment. The presented AC-DOAEL method utilizes IoT-based data collection with an ensemble learning-based classification process. It comprises IoT data collection, ensemble classification, and hyperparameter tuning using DOA. Fig. 1 signifies the workflow of the AC-DOAEL algorithm. A. IoT Module IoT network uses a collection of devices including smartwatches, smartphones, sensors, laptops, etc., to promote data exchange and communication between them [19]. The fundamental role is that it is no longer necessary for human interference to exchange data. It chiefly consists of x, the amount of IoT nodes, main station, and cluster heads (CHs). The IoT is signified as Vm, where the x node communicates uniformly within the fa and fb distributed range. IoT node receives a unique ID and the node is collected together and forms a cluster. The cluster made by the IoT node is transferred to the corresponding CHs and the CHs are characterized by the aspect Wz. π’ shows the amount of CHs and is represented as (1 β€z β€u). The existing BS from the IoT architecture receives the information from the CHs. the distance between the CHs and BSs is denoted by Dzj and Diz signifies the distance between CHs and IoT nodes. The performance measurement is considered while designing the IoT framework because it is impossible to restore the node existing in the network. Yw characterizes the energy existing at the primary level. Some energy is disseminated while the transmission occurs between the CH nodes and BS. The power dissipation was defined by the energy and the radio electronics transferred via the IoT node are upgraded at BS. At first, the information was attained from the ECG signals through the IoT device that is saved in the BSs. Then, the information from BS is pre-processed and the classification can be implemented.
1) LSTM Model
The RNN produces improved accuracy in modelling the hidden series pattern of time-sequence data [20]. However, during the backpropagation process, the gradient disappearing problems hinder an update of network parameters. Usually, it can be solved by the two different variations of RNN: LSTM and GRU. In theory, the LSTM architecture is similar to RNN; on the other hand, a memory cell was introduced to replace the updating process of RNNs. The memory unit preserves data for a longer time. Assume the present input vector π₯π‘, the last memory cell state ππ‘β1, and the last hidden layer (HL) βπ‘β1, the succeeding expressions are used for executing the LSTM model:
Now the input gate, forget gate, memory unit, and output gate at π‘ time are represented as π, π, π, and 0 signify. The sigmoid activation function is represented as π. The weight and bias vector is indicated by π and π.
2) BiLSTM Model
The BiLSTM model is an RNN layer that learns bi-directional long-term dependencies between time steps. Consider historical and future video contexts. Hence, the Bi-LSTM is a convenient alternative in video classification as it retains the information in two directions.
π) and backward HL (βπ‘
π) are the two HLs in BLSTM. The backward HL βπ‘
Forward HL (βπ‘ π consider input vector π₯π‘ in increasing order viz., t = 1,2,3, β¦ , T. To sum up, the output π¦π‘ is produced by merging βπ‘ π outcomes. To implement the BiLSTM model, the following equations are used:
3) AE Model
The AE is an unsupervised feature representation-learning technique that aims to learn an approximate representation of input by the encoding and decoding layers [21]. Recently, AE has been actively adopted as a multiβlabel classification model and the most successful DNN. Assume the input as [π₯1, π₯2 β¦ , π₯πβ¦ , π₯π], where π₯πββπ, the AE attempts to learn an approximate output βπ,π(π₯) βπ₯. Especially, the AE comprises one encoding and decoding layer correspondingly. In the encoding layer, the input is encoded to multiple hidden layers, and later the hidden layer is decoded to the output as π. The encoding and decoding layer in AE that consists of one HL is formulated as follows:
Where π1 ββπΓπ and π2 ββπΓπ denote the weight matrix, π1 ββπΓ1 and π2 ββπΓ1 are the bias vectors, πβ βπΓ1 show the output of HL, π, and π shows the non-linear activation function of encoding and decoding layers correspondingly. The original input dataset is represented as {π₯π}π=1 π, thereby the reconstructed error is represented as β β π π=1 π₯Μπβπ₯πβ2 The main problem of the AE is to minimize the reconstructed error through the parameter learning about π1, π2, π1, and π2 that is given below:
C. DOA-based Hyperparameter Tuning For the hyperparameter selection process, the DOA can be used in this study. The DOA approach has been developed based on the lifecycle of the dandelion plant [22]. The dandelion seed (DSs) is spread through longer distances by the wind. Due to the vortexes above it, the seed structure allows it to travel along the wind that carries the seeds, which lift the DSs during the rising phase. The DSs land in dissimilar locations and gain more weight once the humidity increases or the rain occurs. Few landed seeds might be replanted and used for generating a new generation. The same idea is used for tracking the better outcome of the optimization problem. The ascending, mutation, and selection are three stages of DOA. The aim is to model 3 stages and employ them to search for optimal solutions to optimizer issues.
The optimization method is used to maximize the accuracy of the classification process. The accuracy value is the foremost condition exploited for designing an FF.
Where ππ and πΉπ are the true and the false positive values. Dandelion is categorized into two classes: assistant dandelions (ADs) and core dandelions (CDs). The CD has the maximum quantity of power (πmax), whereas the ADs are the remaining dandelions.
The mathematical modelling for the breeding cycles of DS is given as follows.
1) Rising Stage
Based on the humidity and the wind speed, a lift force is formed due to the vortices above the DSs, which carry the seed for a distance. The sowing radius of CD signifies the dandelion radius, and it is attained using the following expression.
In Eq. (14), π and π denote the fade and growth factors, correspondingly, the upper and lower limitations of search space are represented as π and πΏ, and π show the factor named the cross trend that is evaluated by.
In Eq. (15), π max π‘ denote the maximal power at prior and existing iterations, correspondingly. π indicates the tolerance to avoid a denominator being zero.
π‘ indicate the position of πΆπ· and π΄π· of searching agent π at π‘ iteration, correspondingly, π shows the weight factor which enhances the stability of the searching agent, and it is attained as follows:
In Eq. (16), ππΆπ·
In Eq. (17), ππΈπππ₯ indicates the overall call counts to the global function throughout the iteration. ππΈ denotes the ratio of the call counts to the objective function to the overall call counts. The inertia factor value given in Eq. (12), begins with 1.0 and slowly drops to 0 if ππΈ= ππΈmax. The inertia factor improves the effects of prior radius of AD on the present radius, slowly decreasing these effects, and making it dependent on the difference between the locations of π΄π· and CD.
2) Mutation Sowing
The search particle of AD moves toward the CD-searching agents that search for GP. The mutation method must be applied with the ability of the searching agent to be stuck in the local optima or the CD to avoid premature convergence. Based on the Levy flight, this mutation strategy can be implemented as follows:
In Eq. (18), Levy () refers to duty ratio values randomly obtained from the LF distribution with π½=1.5.
3) Selection Stage Based on the fitness value, the searching agent must be estimated. In the next iteration, a selection strategy is applied for selecting the searching agent (seeds), and the seeds are detached from the searching agentsβ swarm size.
Choosing search agents with lower and higher probabilities and eliminating search agents with medium probability to prevent getting stuck in local optima and enhance the DOA's exploration performance. This approach is highly efficient at initial optimizer to enhance exploration and then capturing the location of πΊπ, it eliminates the searching agents with lower probability to optimize the exploitation of DOA. Fig. 2 defines the steps included in DOA.
4. Results and Discussion
The ECG-based arrhythmia classifier outcomes of the AC-DOAEL approach are tested on the PhysioNet dataset [23], involving 12500 samples with the following classes: Normal N (Class-N), Right Bundle Branch Block Beat R (Class-R), Left Bundle Branch Block Beat L (Class-L), Premature Ventricular Contraction V (Class-V), Atrial Premature Beat A (Class-A) as represented in Table 1.
The classifier outcomes of the AC-DOAEL algorithm are investigated at 80:20 of the TRST/TSST as shown in Table 2 and Fig. 4. The result highlights the proficient detection of five class labels by the AC-DOAEL technique. With an 80% TRST, the AC-DOAEL method provides an average ππππ’π¦ of 98.94%, πππππ of 97.34%, π πππ π¦ of 97.34%, π ππππ¦ of 99.34%, and πΉπ ππππ of 97.34%. Besides, with a 20% TSST, the AC-DOAEL method obtains an average ππππ’π¦ of 99.01%, πππππ of 97.55%, π πππ π¦ of 97.52%, π ππππ¦ of 99.38%, and πΉπ ππππ of 97.53%.
Figure 4: Average of AC-DOAEL method on 80:20 of TRST/TSST The classifier outcome of the AC-DOAEL system is examined at 70:30 of the TRST/TSST as shown in Table 3 and Fig. 5. The outcome depicted the proficient detection of five class labels by the AC-DOAEL method. With a 70% TRST, the AC-DOAEL system achieves an average ππππ’π¦ of 99.34%, πππππ of 98.36%, π πππ π¦ of 98.35%, π ππππ¦ of 99.59%, and πΉπ ππππ of 98.35%. Besides, with a 30% TSST, the AC-DOAEL method obtains an average ππππ’π¦ of 99.42%, πππππ of 98.56%, π πππ π¦ of 98.57%, π ππππ¦ of 99.64%, and πΉπ ππππ of 98.57%.
Table 3: Classifier outcomes of AC-DOAEL method on 70:30 of TRST/TSST Class Labels π¨ππππ π·ππππ πΊππππ πΊππππ ππΊππππ TRST (70%) Class-N 99.43 98.77 98.31 99.70 98.54 Class-L 99.31 97.62 98.97 99.40 98.29 Class-R 99.20 98.39 97.60 99.60 97.99 Class-A 99.35 98.34 98.39 99.59 98.36 Class-V 99.42 98.67 98.50 99.65 98.59 Average 99.34 98.36 98.35 99.59 98.35 TSST (30%) Class-N 99.33 98.85 97.97 99.70 98.40 Class-L 99.44 98.04 99.21 99.50 98.62 Class-R 99.39 99.19 97.74 99.80 98.46 Class-A 99.36 98.17 98.68 99.53 98.42 Class-V 99.60 98.57 99.28 99.67 98.93 Average 99.42 98.56 98.57 99.64 98.57
Fig. 6 defines the ππ _ππππ’π¦ and ππΏ_ππππ’π¦ of the AC-DOAEL algorithm at 70:30 of the TRST/TSST. The ππΏ_ππππ’π¦ is calculated by assessing the AC-DOAEL system on the TR dataset while the ππΏ_ππππ’π¦ is determined by the estimation of the performance on a testing dataset. The outcomes display that ππ _ππππ’π¦ and ππΏ_ππππ’π¦ increased with the increasing number of epochs. Consequently, the performance of the AC-DOAEL technique gets enhanced on the TR and TS datasets with an upsurge in epochs.
Figure 6: π΄πππ’π¦ curve of AC-DOAEL method on 70:30 of TRST/TSST In Fig. 7, the ππ _πππ π and ππ _πππ π outcome of the AC-DOAEL technique on 70:30 of the TRST/TSST is exposed. ππ _πππ π determines the error among the original values and predictive outcomes on the TR dataset. The ππ _πππ π represents the performance measure of the AC-DOAEL system on validation data. The outcome demonstrates that ππ _πππ π and ππ _πππ π tend to decrease with rising epochs. It depicted the better outcome of the AC-DOAEL technique and its capability to create an accurate classification. The minimal value of ππ _πππ π and ππ _πππ π illustrates the greater solution of the AC-DOAEL technique for capturing relationships and patterns.
In Fig. 9, a ROC analysis of the AC-DOAEL system is defined at 70:30 of the TRST/TSST. The simulation value demonstrated that the AC-DOAEL system led to superior values of ROC. Afterward, it can be clear that the ACDOAEL method achieves higher performances of ROC on 5 classes.
Figure 9: ROC of AC-DOAEL method on 70:30 of TRST/TSST The comparative results of the AC-DOAEL approach on the arrhythmia classification are given in Table 4 [19, 24]. The results indicate that the deep LSTM, LSTM, BiLSTM, and DCNN models have portrayed ineffectual classification results. Along with that, the Deep 1D-CNN model has shown moderate outcomes over earlier models. Although the HCAD-M-DL model reaches near-optimal results, the AC-DOAEL technique surpassed the existing ones with maximum ππππ’π¦, πππππ, π πππ π¦, π ππππ¦, and πΉπ ππππ of 99.42%, 98.56%, 98.57%, 99.64%, and 98.57% correspondingly. These outcomes highlighted the effectual classification of the AC-DOAEL method.
AC-DOAEL 99.42 98.56 98.57 99.64 98.57
5. Conclusion
In this article, we have mainly developed an automatic arrhythmia classification approach, named AC-DOAEL technique on the IoT platform. The presented AC-DOAEL method utilizes IoT-based data collection with an ensemble learning-based classification process. It comprises IoT data collection, ensemble classification, and hyperparameter tuning using DOA. For the arrhythmia detection and classification process, the AC-DOAEL technique follows an ensemble learning approach comprising LSTM, AE, and BiLSTM models. To improve the recognition rate of the ensemble models, the AC-DOAEL technique uses DOA as a hyperparameter optimizer. The simulation outcomes of the AC-DOAEL method are well-studied on benchmark ECG data. The simulation values showed the great outcomes of the AC-DOAEL technique with other models. In the upcoming work, the performance of the AC-DOAEL method is increased by the metaheuristic feature selection approach.
Funding: βThis research received no external fundingβ
Conflicts of Interest: βThe authors declare no conflict of interest.β
References
- Obayya, M., Nemri, N., Alharbi, L.A., Nour, M.K., Alnfiai, M.M., Al-Hagery, M.A., Salem, N.M. and Al Duhayyim, M., 2023. Improved Bat Algorithm with Deep Learning-Based Biomedical ECG Signal Classification Model. Computers, Materials & Continua, 74(2).
- Ahmed, A.A., Ali, W., Abdullah, T.A. and Malebary, S.J., 2023. Classifying cardiac arrhythmia from ECG signal using 1D CNN deep learning model. Mathematics, 11(3), p.562.
- Ullah, W., Siddique, I., Zulqarnain, R.M., Alam, M.M., Ahmad, I. and Raza, U.A., 2021. Classification of arrhythmia in heartbeat detection using deep learning. Computational Intelligence and Neuroscience, 2021, pp.1-13.
- Mohana, J., Yakkala, B., Vimalnath, S., Benson Mansingh, P.M., Yuvaraj, N., Srihari, K., Sasikala, G., Mahalakshmi, V., Yasir Abdullah, R. and Sundramurthy, V.P., 2022. Application of internet of things in the healthcare field using convolutional neural network processing. Journal of Healthcare Engineering, 2022.
- Pushparaj, A.K. and Saini, G., 2023. AI-Based ECG Signal Monitoring System for Arrhythmia Detection Using IoMT. AI for Big Data-Based Engineering Applications from Security Perspectives, p.85.
- Rajeshwari, M.R. and Kavitha, K.S., 2022. Arrhythmia ventricular fibrillation classification on ECG signal using ensemble feature selection and deep neural network. Cluster Computing, 25(5), pp.3085-3102.
- Choubey, D.K., Jha, C.K., Kumar, N., Kumari, N. and Soni, V., 2023. Detecting Heart Arrhythmias Using Deep Learning Algorithms. Convergence of Cloud with AI for Big Data Analytics: Foundations and Innovation, pp.331-385.
- Almazroa, A. and Sun, H., 2021, April. An internet of things (iot) homecare management system using cardiac arrhythmia classification. In 2021 11th IFIP International Conference on New Technologies, Mobility and Security (NTMS) (pp. 1-5). IEEE.
- Rahman, A.U., Asif, R.N., Sultan, K., Alsaif, S.A., Abbas, S., Khan, M.A. and Mosavi, A., 2022. ECG classification for detecting ECG arrhythmia empowered with deep learning approaches. Computational intelligence and neuroscience, 2022.
- Ang, G.J.N., Goil, A.K., Chan, H., Lee, X.C., Mustaffa, R.B.A., Jason, T., Woon, Z.T. and Shen, B., 2023. A novel application for real-time arrhythmia detection using YOLOv8. arXiv preprint arXiv:2305.16727.
- Chen, T., Gherardi, A., Das, A., Li, H., Xu, C. and Xu, W., 2023. VANet: An intuitive light-weight deep learning solution towards Ventricular Arrhythmia detection. Smart Health, 28, p.100388.
- Varghese, A., Muraleedharan Sylaja, M. and Kurian, J., 2022. Conception and realization of an IoT-enabled deep CNN decision support system for automated arrhythmia classification. Journal of Intelligent Systems, 31(1), pp.407-419.
- Abdalla, F.Y., Wu, L., Ullah, H., Ren, G., Noor, A., Mkindu, H. and Zhao, Y., 2020. Deep convolutional neural network application to classify the ECG arrhythmia. Signal, Image and Video Processing, 14, pp.1431-1439.
- Krishnakumar, S., Yasodha, M., Priyadharshini, J.V., Janney, J.B., Divakaran, S. and Christy, V.L., 2021, October. Detection of arrhythmia and congestive heart failure through classification of ECG signals using deep learning neural network. In 2021 International conference on advancements in electrical, electronics, communication, computing and automation (ICAECA) (pp. 1-7). IEEE.
- Thanka, M.R., Gandu, S.P., Manaswini, B., Snehitha, T.R.B., Reddy, M.N. and Nandini, K., 2023, April. An Ensemble Approach for Cardiac Arrhythmia Detection using Multimodal Deep Learning. In 2023 International Conference on Inventive Computation Technologies (ICICT) (pp. 1731-1736). IEEE.
- Hammad, M., Meshoul, S., DziwiΕski, P., PΕawiak, P. and Elgendy, I.A., 2022. Efficient lightweight multimodel deep fusion based on ECG for arrhythmia classification. Sensors, 22(23), p.9347.
- Bhukya, R., Shastri, R., Chandurkar, S.S., Subudhi, S., Suganthi, D. and Sekhar, M.S.R., 2023. Detection and classification of cardiac arrhythmia using artificial intelligence. International Journal of System Assurance Engineering and Management, pp.1-8.
- Akhila Naz, K.A., Jeena, R.S. and Niyas, P., 2021. Deep neural network based multi-class arrhythmia classification. In Intelligent Systems, Technologies and Applications: Proceedings of Sixth ISTA 2020, India (pp. 223-235). Springer Singapore.
- Kumar, A., Kumar, M., Mahapatra, R.P., Bhattacharya, P., Le, T.T.H., Verma, S., Kavita and Mohiuddin, K., 2023. Flamingo-Optimization-Based Deep Convolutional Neural Network for IoT-Based Arrhythmia Classification. Sensors, 23(9), p.4353.
- Yousaf, K. and Nawaz, T., 2022. A deep learning-based approach for inappropriate content detection and classification of youtube videos. IEEE Access, 10, pp.16283-16298.
- Zhu, Y., Yang, Y., Li, Y., Qiang, J., Yuan, Y. and Zhang, R., 2021. Representation learning with dual autoencoder for multi-label classification. IEEE Access, 9, pp.98939-98947.
- Eltamaly, A.M., Almutairi, Z.A. and Abdelhamid, M.A., 2023. Modern Optimization Algorithm for Improved Performance of Maximum Power Point Tracker of Partially Shaded PV Systems. Energies, 16(13), p.5228.
- Goldberger, A.L.; Amaral, L.A.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Mietus, J.E.; Moody, G.B.; Peng, C.K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation 2000, 101, e215βe220.
- Irfan, S., Anjum, N., Althobaiti, T., Alotaibi, A.A., Siddiqui, A.B. and Ramzan, N., 2022. Heartbeat classification and arrhythmia detection using a multi-model deep-learning technique. Sensors, 22(15), p.5606.