Next Article in Journal
Random “Decision and Experienced Utility”, Adaptive “Consumer Memory and Choice”: The Impact of Mind Fluctuations and Cognitive Biases on Consumption and Classification
Next Article in Special Issue
Graph Generation for Quantum States Using Qiskit and Its Application for Quantum Neural Networks
Previous Article in Journal
Targeting Monoamine Oxidase B for the Treatment of Alzheimer’s and Parkinson’s Diseases Using Novel Inhibitors Identified Using an Integrated Approach of Machine Learning and Computer-Aided Drug Design
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Heart Failure Detection Using Instance Quantum Circuit Approach and Traditional Predictive Analysis

1
Department of Computer Science, College of Computer Engineering and Sciences, Prince Sattam Bin Abdulaziz University, Al-Kharj 11942, Saudi Arabia
2
Department of Software Engineering, College of Computer Engineering and Sciences, Prince Sattam Bin Abdulaziz University, Al-Kharj 11942, Saudi Arabia
3
Department of Mathematics, University of Leicester, Leicester LE1 7RH, UK
*
Author to whom correspondence should be addressed.
Mathematics 2023, 11(6), 1467; https://doi.org/10.3390/math11061467
Submission received: 15 February 2023 / Revised: 3 March 2023 / Accepted: 13 March 2023 / Published: 17 March 2023
(This article belongs to the Special Issue Advances in Quantum Computing and Applications)

Abstract

:
The earlier prediction of heart diseases and appropriate treatment are important for preventing cardiac failure complications and reducing the mortality rate. The traditional prediction and classification approaches have resulted in a minimum rate of prediction accuracy and hence to overcome the pitfalls in existing systems, the present research is aimed to perform the prediction of heart diseases with quantum learning. When quantum learning is employed in ML (Machine Learning) and DL (Deep Learning) algorithms, complex data can be performed efficiently with less time and a higher accuracy rate. Moreover, the proposed ML and DL algorithms possess the ability to adapt to predictions with alterations in the dataset integrated with quantum computing that provides robustness in the earlier detection of chronic diseases. The Cleveland heart disease dataset is being pre-processed for the checking of missing values to avoid incorrect predictions and also for improvising the rate of accuracy. Further, SVM (Support Vector Machine), DT (Decision Tree) and RF (Random Forest) are used to perform classification. Finally, disease prediction is performed with the proposed instance-based quantum ML and DL method in which the number of qubits is computed with respect to features and optimized with instance-based learning. Additionally, a comparative assessment is provided for quantifying the differences between the standard classification algorithms with quantum-based learning in order to determine the significance of quantum-based detection in heart failure. From the results, the accuracy of the proposed system using instance-based quantum DL and instance-based quantum ML is found to be 98% and 83.6% respectively.

1. Introduction

Heart Disease is considered to be one of the significant causes of death and early detection assist in mitigating the mortality rate considerably [1]. The complexities in data and correlations that occur during prediction are challenging tasks in traditional approaches. Historical medical information has been utilized for predicting the disease with the numerous traditional ML and DL approaches [2]. Similarly, the recommended research [3] has utilized three different supervised learning algorithms such as support vector machine (SVM), Naïve Bayes (NB) and decision tree (DT) for the exploration of correlations in heart disease data which have assisted in the enhancement of prediction. This considered approach has used the African heart disease dataset with a total of 462 instances and smart systems have performed a 10-fold cross-validation [4]. The real-time monitoring of patients with smart devices reduces the progress of the disease. However, the lack of effective data streaming and processing with the huge amount of real-time data has experienced difficulty with the need for appropriate timely diagnosis. The suggested approach [5] has used a 5 G-enabled monitoring mechanism in which the Flink-based streaming of data computation framework has been applied for accessing electrocardiography (ECG) data [6]. It also has been assisted with convolutional neural networks (CNN) and long short term memory) (LSTM) for obtaining automatic prediction of patient health [7].
The difficult blood circulation due to the build up of plaque within arteries is required to be detected at an earlier stage for avoiding serious progression. The considered research [8] has provided the DL technique with a stacked-sparse auto-encoder for achieving effective feature learning. The network consisted of multiple forms of autoencoders and also with softmax-based classifiers. In addition to that, the parameters of the algorithm have been optimized for enhanced performance [9]. Particle swarm optimization (PSO) is the computational method used for tuning the parameters of the stacked encoder. The optimization of the algorithm has been improved with the classification undertaken with smart encoders. The multiple-layer frameworks have led to an internal covariate mechanism which impacts the generalization capability. The process of batch normalization has been utilized for preventing complications. The accuracy has been improved with the experimental evaluations with ML in healthcare particularly in enhancing the time factor in diagnosis. The heart disease prediction in health care data with the utilization of ML algorithm has analysed vast amounts of patient data for attaining significant information in making decisions for prevention accordingly. To this purpose, the recommended study in [10] has developed a multilayer perceptron (MLP) training method for detection and performance evaluation findings have inferred that the diagnosis has been performed effectively with prediction accuracy. ML has the advantage of predicting outcomes based on previous data. The system holds the capacity of predicting the patterns from existing data and then it applies the inferred knowledge to the unknown dataset for the prediction of the outcome. Classification is considered to be a powerful mechanism in ML techniques utilized for prediction. Certain mechanisms have attained satisfactory accuracy while others have limited accuracy. For enhancing the accuracy of the weaker algorithms, the suggested research [11] has used ensemble-based classification with numerous classifiers. Its utility in the prediction of the disease at an earlier stage and satisfactory performance has been obtained in the identification of the risk of the disease. Ensemble mechanisms such as boosting and bagging are a significant improvement in prediction [12]. In order to achieve better performance with the traditional medical decision support mechanisms, the considered research [13] has designed a classifier-based ensemble model based on a bagging strategy with the multiple-weighted voting method for cardiac disease prediction. The integration of five different classifiers such as linear regression, instance-based learning mechanisms, SVM, discriminant analysis and NB with various datasets for experimentation and validation of the system. The datasets have been acquired from repositories. The prediction results have been assessed with the analysis of variance (ANOVA) based on statistical analysis and 10-fold cross-validation. The analysis has achieved improved accuracy in diagnosis with different types of attributes. ML and DL are considered to be effective methodologies for solving real-time problems. In addition to this, quantum-based networks have been arriving for enhancing the prediction accuracy of diseases with healthcare data. quantum neural networks have contained data from natural quantum systems or smart systems. The relation between the attributes in determining the disease has performed better with the quantum ML. The suggested technique in [14] has analysed the symptoms of the disease QML which has been identified with higher accuracy. The identification of the relation in disease occurrence is high through the suggested approach.
The Neural Network (NN) based classification with the convolutional layers has significantly differentiated the imbalanced medical data classes. The information has been gathered from the Nutritional and Health Examination database for the prediction of heart disease existence [15]. Even after adjustments made with weights, the traditional mechanisms have found difficulty with the vulnerability of data. The recommended research [16] has designed a simpler double-layer CNN which has exhibited resilience to the unbalancing data classes. Due to the increased scalability of the dataset with unbalanced data, it is challenging for acquiring a higher rate of prediction with true 1 and false 0 accuracy. In the first layer of implementation, assessment with feature-weights using least absolute shrinkage and selection operator (LASSO) [17]. It has performed a voting method for the identification of significant features which has been homogenized with the fully-connected layer. This process iteration has repeated for every feature for the successive stages of convolution. The training process per epoch with simulated annealing has been initiated for boosting the accuracy in classification. Despite the imbalanced data features in the dataset, the presence and absence of heart disease have been classified through testing and validation of the data [18]. Even though conventional studies have provided many methodologies and techniques for the earlier prediction of heart diseases in order to mitigate the rate of mortality, accuracy enhancement is still required in medical therapies for the early recovery of patients. Moreover, the identification of disease alone has not assisted clinicians in taking decisions, classification of patients with and without heart disease accurately demands effective algorithms to aid in clinical therapies. For this purpose, instance-based quantum ML and DL algorithms are being utilized in the present research for enhancing accuracy. Most of the existing studies have used binary classifications and they possess several drawbacks such as lesser accuracy, time-consuming and possess difficulties in performing complex data. In the present study, instance-based quantum ML and DL methods have been used to obtain promising results with improved accuracy. The proposed method has wider applications in the area of quantum computing, especially in data classification and prediction. The foremost intention of the proposed study is to address the challenges in the existing studies while attaining effective prediction of heart diseases. Based on the analysis made from various approaches, the aim and objective of the present system are being framed as follows:
  • To predict heart disease with the data of the patients collected from the Cleveland heart dataset and performs pre-processing.
  • To perform classification with the SVM, DT and RF and prediction accuracy for algorithms is computed individually.
  • To execute a classification of diseases with the implementation of instance quantum-based ML and DL algorithms and validated the accuracy level of the system.
  • To evaluate the effective classification algorithms through comparison of performance metrics such as accuracy, precision, recall and f-score for exhibiting the effectiveness of the proposed model.
In addition to the above, the present study offers a wide range of knowledge regarding instance-based quantum-enhanced ML and DL algorithms; instance-based quantum ML and DL algorithms have been used for the classification of heart diseases to improve the accuracy rate.
In the big-data era, huge data amounts arrive from various sources. A stage may be reached when supercomputers can be overwhelmed with big data. In this situation, training the neural network is a complex undertaking due to the dimension and size of big data. In addition, several parameters have to be utilized and optimized in a network for learning the patterns, thereby, assessing the data. To resolve this issue, quantum computing has evolved as an active research area as the quantum computer could represent data in various forms with qubits. The qubits on the quantum computers could be employed for detecting hidden data patterns that are complex for a traditional computer to find. Hence, considering the innate merits of quantum computing, this study has intended to make use of quantum based ML and DL for heart failure detection. In the proposed work, quantum ML and DL utilized quantum gates as well as the operations which seem to differ from traditional ML. Quantum computing also possesses the potential for providing faster speeds to ML and DL algorithms concerning search problems and large-scale optimization. Moreover, q quantum ML and DL algorithms are typically more scalable than conventional ML algorithms by using complex features. Overall, quantum-based ML and DL possess benefits such as improved runtime, better learning and capacity. Moreover, the study has considered the use of instance-based quantum based as it possesses the capability for adapting its model to unseen data. These advantages have motivated the present study to consider this approach as a novelty of the study.
The proposed research paper is organized as follows. Section 2 shows the review made on several existing studies related to the prediction of heart diseases through various ML and DL techniques. Section 3 outlines the proposed prediction analysis with the classification algorithm utilized in the study. Section 4 provides performance analysis and internal comparative assessment with other algorithms. Finally, the proposed work is concluded in Section 5.

2. Literature Review

The following section discusses the various methods and algorithms utilized in the prediction of heart-related irregularities [19] and the earlier techniques of assessing the heart disease diagnosis to assist in lowering the risk of progression. The suggested method [20] has constructed a hybrid technique based on DL for finding out whether a person has been affected by cardiac disease using CNN with Bi-LSTM. It has solved the complications of imbalanced and missed data values in a dataset with the utilization of data processing methodology. It also has used additional tree-based classifiers for the process of feature selection and classification [21]. The expected accuracy has been achieved through analysis with performance metrics such as precision, recall, f-score and accuracy. The dynamic detection framework has been handled with multiple periodic data with various intervals and larger-scale patient records have been effectively utilized for improving the performance of the considered system [22]. The LSTM structure for the prediction of the disease has utilized irregular time intervals which have been smoothed for obtaining the time parameterized vector which has been utilized for the input for the forget gate of LSTM which has overcome the prediction difficulties [23]. The experimental evaluations have shown classification outcomes with the smoothing-based irregular periodical time within various stages in medical diagnosis for obtaining a temporal-based feature vector. The DL architecture has exhibited a development as the investigative tool for enhanced clinical treatment and lower level of diagnosis cost with the incorporation of smart medical care systems.
The leading root cause behind mortality due to cardiac ailments has been primarily due to the delayed detection of illness and also by improper diagnosis [24]. Failure in the heart has to be accurately classified through effective training and fine-tuning of parameters in algorithms [25]. Several intelligent mechanisms developed for the automatic detection of cardiac failures have faced the over-fitting issue which drastically affects the accuracy of the system. The suggested methodology [26] has compromised accuracy performance on both testing and training data. The considered diagnostic strategy has utilized a random search technique for the selection of appropriate features in the prediction of the disease. The algorithm has been optimized using the grid-search method. The precision metric has been evaluated using two kinds of experiments [27]. The first experimentation has been performed with the RF model and the second one applied a random searching process to the RF model and has tested over with the Cleveland dataset. The complexity has been observed to be lower and has achieved higher accuracy compared to the traditional method. Eleven different algorithms have been compared for determining the efficacy of the system [28].
Medical practices are involved with the collection of various kinds of patient data which has helped clinicians in the proper diagnosis of the health status of patients [29]. Such health information has been provided with the symptoms detected from patients and primary diagnosis performed by the physicians along with the detailed laboratory results which could assist in the prediction of cardiac irregularities [30]. Such data has been utilized for analysis in confirming the disease by expert doctors. The accurate identification and classification have been done with the suggested research [31] with the deployment of AI-based algorithms such as NB and RF classification algorithms to classify whether the patient has been affected or not [32]. The simulation outcome obtained from the comparison performed on two algorithms has exhibited efficiency even with the complex nature of the dataset taken from the online repositories. The recommended study [33] has utilized the UCI heart disease-based dataset with the voting-based mechanism for enhancement of the classifiers. Though ML tools are effective in analysing the huge volume of a dataset, they also contain irrelevant and redundant features which drastically affect the accuracy in classification and computational speed. The considered research [34] has utilized a feature selection process for the elimination of unrelated and unwanted data features. The wrapper-based feature selection mechanism has determined the optimal subset in the diagnosis of heart-related diseases. It has performed prediction with grey wolf optimization (GWO) for the selection of the best features from the dataset [35]. Moreover, the fitness of the algorithm has been evaluated with the utilization of an SVM classifier, Cleveland dataset has been taken for validating the system performance in which the prediction rate is satisfactory compared to other existing techniques [36].
The process of data mining has been effectively applied in the suggested medical analysis. The pre-processing method has eliminated the correlated columns and filled the data with the missing values [37]. An equal level of accuracy has been observed from the two types of classifiers applied to the dataset [38]. Identification of cardiac problems is included blood vessel blockages and contractions in the heart [39]. It affects both children and adults of all ages. The algorithms used for detection have to be intuitive in learning the clinical datasets in the identification of attributes and relationships between the health information of patients [40]. The recommended strategy [41] has obtained heart-related data from UCI based repository for classification analysis [42]. It has performed an analysis of the four different kinds of tree-based classification methods for the determination of precision, accuracy and sensitivity of the algorithms. The RF, M5P and reduced error pruning tree mechanisms are the various kinds of tree structures which has performed classification after the feature selection performed on the dataset [43]. Three features-related algorithms have been utilized in the suggested strategy [44] such as recursive features elimination, Lasso-based regularization and Pearson correlation for a better level of prediction [45]. These three feature selection techniques have been applied separately with four tree-based classifications and performance analysis has been computed and evaluated and identified that the combination of Pearson with Lasso has achieved a greater level of accuracy compared to other methods [46].
The better outcomes have shown the effectiveness of the algorithms. ML has provided numerous solutions for reducing and understanding disease symptoms [47]. The considered technique [48] has provided a dimensionality reduction mechanism and has applied a feature selection method in which analysis has been performed from UCI based heart disease repository [49]. It has contained 74 features through which validation has occurred with six various ML-based classifiers. From the inference obtained, it has been found that chi-square combined with principal component analysis (PCA) along with RF has gained satisfied accuracy [50]. The derived features have considered physiological based and anatomical relevance such as chest pain, heart rate, depression in heart vessels and cholesterol level for the detection of cardiac failures [51]. The evaluations have discovered that the integration of PCA with chi-square has provided better outcomes [52]. The utilization of PCA with the raw data from the dataset has obtained lower results and has improved with the higher dimensionality outcomes [53]. In order to imply the technical advantages of quantum-based computing, the development of noisy related intermediate scale-based quantum paradigm has been utilized for speeding up the supervised ML algorithm specifically with the k-means clustering technique [54]. The quantum circuit in the recommended research [55] has performed distance calculation for the process of clustering. The collaborative data mining technique with the quantum-related computation [56]. The extracted input data from the dataset has been pre-processed and classification with the quantum methodology has been applied to the k-means clustering concept [57]. The comparative analysis performed between the classical method of clustering with the quantum idea has revealed the potential of quantum-based learning in terms of accuracy in the identification of heart syndrome [58].
The review made on existing studies has utilized many intelligent prediction methods in artificial intelligence (AI) based classifiers for effective detection of heart disease with health-oriented data collected from the medical dataset. The common limitations concerning the validation of prediction have been analyzed from the existing literature and are listed as follows
  • Effective feature selection strategies such as SVM and GWO have predicted the occurrence of heart problems but can be integrated with classifiers to enhance the accuracy of outcomes and also to obtain the robustness of the approach [33].
  • The fat quality determines the risk of heart disease. Therefore, the explorations on added dietary attributes and clinical predictor variables can provide further insights into the accurate diagnosis. NN-based learning can solve the imbalanced positive and negative form of classification that occurs in similar medical datasets and thereby improves the prediction accuracy greatly [15].

3. Proposed Methodology

The proposed classification method utilizes quantum-based learning with ML and DL technique for obtaining changes in the health data acquired from the dataset for predicting heart disease in patients at an earlier stage which assists in the faster recovery of patients. The particular patient who has been affected needs to be isolated and classified accordingly to mitigate the progression of the disease and also to follow up on the appropriate clinical treatment. The proposed methodology mainly focuses on reducing the rate of mortality through an earlier detection approach. However, existing studies have suffered with the prediction accuracy, the proposed model is being designed on enhancing the level of accuracy with the utilization of instance-based quantum ML and DL techniques. The architecture diagram of the model is illustrated in Figure 1.
The entire working process of the proposed prediction system is given in Figure 1 in which the process is segregated into pre-processing and classification. The input dataset taken for the proposed analysis is the Cleveland heart disease dataset. The input data in the database are taken from the patient’s health-oriented test results with different predictor attributes. The collected data are then pre-processed with the checking of missing values and complexities in the structure of data are minimized by the dimensionality reduction. Followed by that, the process of training and test split of input data is being performed accompanied by classification which is being implemented with two stages. The first stage performs the prediction of disease with three kinds of individual classifiers such as DT, RF and SVM separately and the outcome is computed accordingly. The second stage of computation is being performed with the proposed instance-based quantum ML and DL technique for analyzing the input data. It effectively identifies the patterns based on the correlation between features. The proposed quantum model gains accuracy and enhances the classification efficiency compared to other classification methodologies.

3.1. Classification with SVM

SVM is considered to be the significant learning algorithm utilized for classification purposes in ML. It has the potential of creating an effective decision-based boundary that segregates dimensional space into different classes which can classify the newly entered data into the appropriate category. The best boundary is referred to as the hyper-plane. It figures out the extreme level of points or vectors which assist in creating a hyper-plane. Such extreme vectors are called support vectors. Whether the patient is affected with heart disease or not is determined by two categories which are classified with the hyper-plane in the algorithm. The step-by-step operation of SVM is given in Algorithm 1.
Algorithm 1: Support Vector Machine
Input :
N inp _ v   ( number   of   input   vectors ) ,
N sv   ( number   of   support   vectors ) ,
N f _ sv   ( number   of   features   in   support   vector ) ,
SV [ N sva ]   ( denoted   as   support   vector   array )
IN [ N ina ]   ( as   input   vector   array ) ,
bi ( bias )
Output :
1 D 1 ,   D 2 ( Decision   function   outputs )
f o r   i   1   to   N inp _ v   by   2   d o
1 D 1 = 0 , D 2 = 0
for   j   1   to   N sv   by   1   d o
dist 1 = 0 ,   dist 2 = 0
  for   k   1   to   N f _ sv   by   1   d o  
dist 1 + = ( SV [ j ] . feature [ k ] IN [ i ] . feature [ k ] ) 2
dist 2 + = ( SV [ j ] . feature [ k ] IN [ i + 1 ] . feature [ k ] ) 2
e n d  
k 1 = exp ( γ   × dist 1 )
k 2 = exp ( γ   × dist 2 )
D 1 + = SV [ j } . a × k 1
D 2 + = SV [ j } . a × k 2
e n d
D 1 = D 1 + b
D 2 = D 2 + b
e n d
From Algorithm 1, it is clear that every element of the support vector is being accessed sequentially and utilized for the computation with the appropriate element of the input vector. The variable N inp _ v is denoted as the input vectors, N sv as the support vectors, N f _ sv represents the features and SV [ N sva ] as the array of support vectors. The attribute bi is depicted as bias. The number of features taken for analysis is represented as a feature [k] with D1 and D2 being the outputs of decision functions. When the first feature is received, the hierarchical on-chip-based cache searches for the data. If the cache does not hold the data, the request for the information is sent to the main memory since it possesses a group of support vectors. The requested information is being encompassed as a block to the cache. That specific block is grouped in the cache and the required element is taken from the register. When the second feature is obtained from the next level of iteration with a k-loop, the cache block is capable of holding multiple different vectors and every block is read from memory for accessing all elements of the support vector. Thus the input vectors are computed simultaneously and optimally to classify the disease-affected patients. The performance of SVM is tested with metrics such as accuracy, precision, recall and F1-score for determining the efficacy of the classification structure.

3.2. DT (Decision Tree) Classification Algorithm

DT is increasingly utilized for the classification of disease problems and performs the task of deploying mathematical formulations for predicting the variable and its corresponding thresholds for the splitting up of input data into various subgroups. It is repeatedly performed at every leaf node until the entire tree is constructed. It is easier due to its hierarchical nature. It is also capable of modelling complex functions. DT classifiers are built with two phases as growth and pruning phase. The first stage of the algorithm is being developed with the construction of recursive splitting up of training dataset based on effective criterion until data belongs to every partition having a similar class-label [59]. The generic functioning of the DT is given in Algorithm 2.
Algorithm 2: Decision Tree
GenDecTree ( sample   S ,   Features   F )
Step   1 .   Ifstopping   _ condition ( S , F ) = true then
a .   Leaf = createNode ( )
b .   leafLabel = classify ( s ϵ S )
c . return leaf
Step   2 .   root = createNode ( )
Step   3 .   root . tes   _ condition =findBestSpilt(S,F)
Step   4 .   V = { v   | v   a   possible   outcome test condition }
Step   5 . For   every   value   v ϵ V :
a .   S v = { s   |   root . test _ condition ( s ) =   v   and   s ϵ S } ;  
b .   Child = TreeGrowth   ( S v , F ) ;
c .   Add   child   as   descent   of   root   and   label   the   edge   { root   child }   as   v
Step   6 .   return   root
DT working operation as indicated in Algorithm 2 illustrates that it follows a hierarchical tree-based structure consisting of a root node with the function of createNode(), internal node, branches and leaf nodes with leafLabels performing the classification using classify(s). The variable S is denoted as samples and F is represented as features. The pruning stage minimizes the over-fitting by reducing the simultaneous branches in order to sufficiently build the tree for generalizing the framework. The process of pruning is involved with the bottom-up or vice versa traversal of DT while eliminating the outliers and noisy nodes which enhances significant criteria in the tree. It effectively prunes by mitigating errors, descriptive message lengths and critical values. The classification accuracy is efficiently enhanced in the pruning process. The DT classifier iteratively computes and predicts the outcome finally at the root node. The efficiency of DT is being validated through performance metrics for examining the classification model.

3.3. Random Forest

RF is a supervised MLbased classification model consisting of numerous decision trees. It utilizes the bagging and random feature adoption while constructing every individual tree which tries in creating an uncorrelated group of trees as a forest in which prediction by the group is more accurate than individual trees. It performs the information gain and entropy-based classification for selecting the significant feature and utilizes it for branching. It limits the complication of over-fitting. The working operation of RF is illustrated in Algorithm 3.
Algorithm 3: Random Forest
1 :   Select   randomly   Rfeatures   from   the   feature   set .
2 .   For   each   x   in   R
a .   calculate   the   information   Gain
Gain ( t , x ) = G ( t ) G ( t , x )
G ( t ) = i = 1 c p i   log 2 P i
G ( t , x ) = c X P ( c ) G ( c )
Where   E ( t ) is   the   entropy   of   the   two   classes   ,   G ( t , x )   is   the  
entropy   of   features   x .
b .   select   the   node   d   which   has   the   highest   information   gain
c .   split   the   node   into   sub nodes
d .   repeat   steps   a ,   b   and   c   to   construct   the   tree   until   reach
    minimum   number   of   samples   required   to   split
3 .   Repeat   steps   1   and   2   for   K   times   to build forest of K trees
From Algorithm 3, it is clear that RF executes in two phases in which the first phase randomly generates the forest by the combination of N number of decision trees and the second phase is to create predictions for every tree generated in the initial phase. Initially, the algorithm randomly selects the R number of data features from the dataset. Based on the selected features, the DT is being built and chooses the N number of trees. Steps 1 and 2 are repeated k number of times to build the tree k number of trees. The information gain is being formulated using the function Gain (t, x) where E (t) is considered to be the entropy of different classes. When a new data feature enters, the algorithm performs prediction for every DT and assigns the new data points to the appropriate category that wins out the majority votes. The dataset is segregated into subsets and provided to every DT created. During the training process, every DT produces a prediction outcome and when new input arrives, based on the majority of results, RF predicts the final result. K number of trees are utilized for predicting the class label and then majority voting is performed for deciding on the final label. Thus, the RF classifier performs classification and performance is evaluated with metrics.

3.4. Proposed Instance-Based Quantum ML and DL Approach

The conventional ML and DL techniques through subsets of supervised and unsupervised learning have assisted in the identification and classification of patterns from a wide range of data. However, there occurs the need for managing, organizing and classifying diverse data effectively with higher accuracy in numerous organizations and different fields. In order to eradicate the limitations, an instance-based quantum learning approach is used in the proposed work for effective prediction outcomes based on learning techniques in different input data. It is considered to be versatile and the adaptive learning technique of the proposed method autonomously predicts the possible group of patterns and behaviours for solving complex problems. Even though conventional algorithms have been observed to be efficient in mapping patterns, still certain complexities exist which affect the accuracy of the model. It is being solved through quantum learning in which the input data is shown for preparing the model where both unitary and complexity system is being developed. After the development, feature extraction is accomplished. Followed by that instance-based quantum ML algorithms are applied for predicting the outcome. The architecture model of the proposed framework is depicted in Figure 2.
The classification process in the proposed research is being implemented with two phases as given in Figure 2. The first phase involves three kinds of classifiers such as DT, SVM and RF. The three models are evaluated individually for validating the efficiency of each classifier. The other phase is the proposed classification technique performed with instance-based quantum ML and DL approach and it is also validated for determining the efficiency of the proposed model. Quantum computation manipulates information using quantum theory and is considered to be the group of assertions which can be executed on systems. The quantum algorithms designed with NN and graphical frameworks relied on Grover search which increases the speed of unordered datasets. It effectively reduces the training time and handles the topology of the complex network. It also automatically fine-tunes the hyper-parameters and performs the complex tensor and matrix formulation at a higher speed and used quantum-based tunnelling to achieve the functional objective. The proposed model in the health care field concentrates on predicting heart disease from patient data which is being formulated with quantum physics that enables the computers for processing the data more quickly. Moreover, qubits (quantum bits) are being included with quantum computing in which data units exist in an ON state or OFF state with quantum superposition which allows the particles to exist in various states and provides enormous flexibility and power for solving complex issues. It also provides the quantum gate which acts as the group of quantum states referred to as basis states that produce the desired outcome. ML and DL algorithms are used with computing resources for interpreting and analysing the input data. The interpretation of medical information assists in training the algorithm with quantum manipulation for detecting abnormal discoveries with higher precision. The proposed work provides earlier, highly accurate and fine granular forecasting in which the quantum-based classification aids in the detection of patterns and discovery of abnormal health data and benefits in the prevention of disease progression and for further clinical treatment.

3.4.1. Proposed QML (Quantum Machine Learning) Architecture

The main intention of the proposed work is to investigate the potential of quantum ML for the prediction of heart diseases. It is being dealt with in the Cleveland dataset which uses the bits of 0′s and 1′s as the fundamental element of circuits. It employs the qubit which simultaneously occupies two different states such as 0 and 1 at a similar time. The superposition of different states allows the operation to run in both a parallel and sequential manner which reduces the number of functions in the algorithm. Moreover, quantum computers allow the particles in gaining a robust correlation with the connection of properties with other significant particles. Inspire by larger distances, qubits are correlated which speeds up the task of prediction. The architecture diagram of quantum-based ML is given in Figure 3.
The instance-based quantum classifier is illustrated in Figure 3, in which supervised learning employs circuits for performing the task of classification. In this approach, the data is mapped into the quantum state with the utilization of a feature map circuit along with the implication of parameterized circuit to the feature state. The feature vectors are being mapped into the quantum spaces with the utilization of feature maps consisting of two qubits. After the process of fitting the classifier with training data features and performing testing with the framework using test data, binary value measurements perform decoding of quantum data into the classic values of 0 and 1.

3.4.2. Proposed Quantum Deep Learning (QDL) Architecture

Quantum NN follows the method of feedforward networks in which the model takes the input data from a single layer of qubits and passes it on to the other qubit layers which evaluate the data and passes on to the output of the next layer which eventually leads the path to the final layer. It does not hold an equal number of qubits before and after. The structure is being trained in the path of ANN with quantum computation with classical input data. The proposed QDL is depicted in the following Figure 4, wherein q denotes qubits and R denotes functional gates.
The operation of QDL is illustrated in Figure 4 which indicates that after the process of encoding input data features into a specific quantum state, instance based parameterized quantum-oriented circuit is applied in order to execute a sequence of linear transformations. Generally, n-qubit is represented as
UG PQC ( θ ) | φ in = ( i = 0 m 1 UG i ( θ i ) | φ in ,
In which UG PQC ( θ ) holds the unitary-gates and UG i ( θ i ) consists of parameters where m is the representation of the number of quantum gates,   PQC denotes the parameterized quantum circuit, φ in denotes the input state. During the process of learning, parameters are optimized with the conventional adam-optimizer since the initial form of states evolves to the desired state through the operation of the circuit. Two kinds of unitary gates are considered in such a way of parameterized based quantum-gates as
UG i ( θ i ) = exp ( i θ i Z j Z k )
In which it acts on qubits j and k. Since it is not recommended as the universal gate, every element is being decomposed into the constant form of an elementary level gate-set. From Equation (2), every UG i ( θ i ) is being decomposed into two different CNOT gates and a single rotational form of Z level gate with the angle representation of 2 θ i . The instance circuit is considered to be a significant part of the quantum circuit for performing the manipulation. The QDL holds the potential of disentangling the input state even with the limited amount of quantum gates. The group of quantum gates with various parameters is being computed on every pair of nearest-neighbour range of qubits which allows the process of capturing the quantum correlations on a particular scale of a similar layer on the network. In the input level of the state, the data is embedded into the quantum-based subsystem. The quantum-based computation extracts the hidden information efficiently. The important purpose of utilizing the unitary gate is to eradicate the superposition in the quantum-oriented data by leaving the data containing label. Post-level processing is implied for extracting significant information. The quantum-based NN includes the operation of the normal workflow of tasks in quantum information preparation, the embedding of data, training the network, optimization of parameters and achieving probability as the outcome. For the calculation of the entanglement with the quantum-oriented NN, the focus lies on detecting and quantifying the measure of whether the state of the quantum is continuous or discrete. A discrete QNN is considered to be the quantum of circuits with quantum designed perceptron which is arranged into several hidden layers with different unitary operations and acts upon the input level of quantum conditions and yields an appropriate output in the form of quantum states. The individual qubit register is utilized in the network for parameterized quantum circuits with input and output and represents quantum-based neurons as the map. Based on the implementation of artificial neuron implementation in quantum-oriented circuits, the computation in quantum needs training through efficient back-propagation resembling method. The output of the network is represented as the configuration of a series of layer-by-layer transition maps.
ρ out = ϑ out ( ϑ L ( ϑ 2 ( ϑ 1 ( ρ in ) ) ) )
where   ϑ l ( ρ ) = tr l 1 ( j = ml 1 U j l ( ρ | 0 .0 > l < 0 0 | ) j = ml 1 U j l )
UG PQ ( θ ) | φ in = ( i = 0 m 1 UG i ( θ i ) | φ in ,
In which U j l is considered to be the number of quantum neurons operating on layers and UG PQ ( θ ) | φ in represents the proposed parity bit for instance-quantum circuits. The continuous type of quantum variable system is used for defining perceptron in which the architecture of QDL is being optimized in the construction of Tensor-Flow of the backend with strawberry fields through the quantum photonic organization for providing quantum-oriented solutions. Generally, the QNN with a continuous variable is being built with numerous layers contained with the series of gates such as,
ϕ D U 2 S U 1   UG i ( θ i )
where equation 4 represents the both single and double mode of combinational-rotational gate denoted as U 1 and U 2 along with UG i ( θ i )   parameterized   gates   and S as the squeezing form of the transformational gate and D as the displacement gate. The variable ϕ signifies the non-Gaussian gate from the right to the left side of the equation respectively in defining the Gaussian system as D U 2 S U 1 which illustrates the bias and weight transformation from traditional NN to quantum NN. The quantum circuits that measure the quantum state are capable of returning numbers randomly at the same time. The interference of quantum in preparing states and loading regular data into states solves the complexities of state-level collapse. Hence, it is being found to be flexible in inputting, measuring and simulating QNN. The final layer of QNN output is achieved through measurements of final states and sent to computers. The discrete form of variable in QNN utilizes positive operator valued measurement (POVM) and homodyne detection operator (HDO) is used for the continuous variable QNN.

4. Results and Discussion

The performance of the proposed model is evaluated with the rate of prediction computed with the classification algorithms. The following section describes the computation result with the internal comparison and comparative analysis being performed with other algorithms to predict the effectiveness of the proposed structure with respect to evaluation metrics such as accuracy, precision, recall and F1-score.

4.1. Dataset Description

The Cleveland heart disease is the dataset from the UCI repository utilized in the proposed model which is considered to be the collection of health-related patients records with multivariate characteristics and its primary intention is to predict the presence and absence of disease through changes in heart functional attributes in the form of csv files. The Cleveland dataset consists of 76 attributes in all 303 cases. The dataset contains information on the patients such as their age, patient identification number, and location, variety of health data, type of chest pain, ECG readings, and measurement of blood pressure, fasting blood sugar and cholesterol level. Though the Cleveland dataset [60] has 76 attributes, only 14 attributes are used by most of the researchers. The dataset is available at https://archive.ics.uci.edu/ml/datasets/heart+disease (accessed on 2 January 2023).

4.2. Experimental Results

The dataset utilized for the proposed work is Cleveland heart disease data and the computational result obtained from each algorithm is illustrated in this section. The simulation outcomes in terms of a correlation matrix, confusion matrix and receiver operating curve (ROC) which is measured for the classification problems at different threshold values exhibit the capability of the model in the process of distinguishing between the classes. The proposed prediction mechanism is being analyzed through the correlation matrix depicted in Figure 5.
The correlation coefficients within the variables are depicted in Figure 5. The darker portions determine the higher level of correlation in confirming the cardiac disease and the lighter portions signify a lower correlation which depicts the absence of disease occurrence in patients. The rate of prediction and classification is illustrated in the following Figure 6.
Based on the level of heart rate as mentioned in Figure 6, the proposed quantum learning efficiently classifies the patients in the dataset with heart disease and non-affected cases accurately at all age groups. It exhibits the significance of the proposed model in the medical field for the prediction of cardiac irregularities. The classification performed with three different algorithms is evaluated individually and then compared with the proposed model for determining the accuracy efficiency of the proposed quantum system.

4.2.1. Support Vector Classifier

The experimentation with the SVM classification algorithm for the prediction of disease related to the heart is being evaluated with a confusion matrix and ROC graph as follows.
The combination of actual and predicted values is illustrated in Figure 7. From the positive and negative classes, the number of actual predictions was found to be high which shows the better accuracy of the system. The ROC for the SVC is given in Figure 8.
The ROC value obtained with the SVC technique given in Figure 8 illustrated that an area value of 0.699 acquired from the classification framework provides that the system is efficient and it has the ability for diagnosing patients with and without heart disease based on the classification evaluation.

4.2.2. Decision Tree

The ROC and confusion matrix measurement for the prediction of cardiac failure with the utilization of DT classifiers is evaluated for estimating the efficiency of the system. The confusion matrix for DT is given in Figure 9.
Figure 9, clearly indicates the predicted and actual values obtained from the classifier in which the analysis from true and false values, the actual prediction values are higher exhibiting the effectiveness of the classifier. The ROC graph for DT is illustrated in Figure 10.
The graph analysis in Figure 10 for ROC with DT obtains a value of 0.633 from the classification analysis which exhibits the potential of the classifier in differentiating the affected and non-affected patients through the computation of the algorithm.

4.2.3. Random Forest

The performance of the RF classifier is calculated using the confusion matrix and ROC from the obtained classification outcome for detecting the significance of the model. The representation of the confusion matrix with RF values is given in Figure 11.
From Figure 11, the actual results along with predicted value estimation are manipulated which determines the satisfied accuracy level of the system ad ROC for RF is provided in Figure 12.
The estimation of ROC obtained with the RF technique given in Figure 12 indicates that an area value of 0.787 obtained from the classification provides that the model has efficiency in classifying the patients affected with heart disease.

4.2.4. Proposed Quantum Learning Evaluation

The estimated results obtained from the three kinds of classifiers have shown classification accuracy. However, the implication of the quantum-based learning technique exhibits a higher level of accuracy which is being analysed through ROC and confusion matrix.
The matrix values of predicted and actual observations depicted in Figure 13 show that in the analysis made from true positive and true negative classes, the actual detected values are significantly high compared to the three classifiers. The ROC graph for the quantum learning process is given in Figure 14.
The graph observation in Figure 14 shows that the area value of 0.983 acquired from the proposed classification that the quantum model is efficient through a greater level of accuracy obtained in accurate diagnosis and distinguishing heart disease-affected patients from the dataset.

4.3. Performance Analysis

The efficiency of the proposed work is estimated for the evaluation of the system with different performance metrics such as accuracy, precision, recall, specificity, sensitivity and F1 score. The following section describes the analysis made with the experimentation of the system and the comparative analysis being performed. The systematical assessments and evaluations obtained from the existing and proposed classification presented in the next section.

4.3.1. Internal Evaluation

The internal assessment of the classification algorithms and proposed quantum learning algorithms are performed for identifying the efficiency of the proposed work. RF-based validation is given in Table 1.
From Table 1, it is evident that the RF classification achieved a 0.79 value of accuracy, with a precision of 0.79. The recall and F1-score were also observed to be 0.79. The values obtained through SVC are given in Table 2.
The process of classification performed with the SV classifier is being evaluated and the obtained values are given in Table 2 and reveal that it achieved an accuracy value of 0.70, a precision of 0.71, recall values and F1-score values acquired are 0.70 respectively. The DT classification analysis is given in Table 3.
The observations obtained from Table 3 indicate that the DT classifier has attained an accuracy value of 0.62, a precision of 0.65, recall values recorded as 0.63 and the F1-score is found to be 0.61. The performance evaluation of the algorithms has shown their ability in the prediction of heart diseases. The following evaluation depicts the performance of the proposed quantum learning model. The QML validation is provided in Table 4.
From Table 4, it is clear that the proposed system is highly efficient through an observed accuracy value of 0.836, precision of 0.838, recall values of 0.82 and F1-score value of 0.8374. It illustrates the efficiency of the proposed framework in predicting the disease accurately. The graphical analysis of the quantum ML strategy is given in Figure 15.
The graphical analysis depicted in Figure 15 explains that the proposed work attains a greater level of evaluation metrics which determines the efficiency of the quantum model. The metrics achieved with the QDL representation during the process of classification are given in Table 5.
The proposed QDL-based classification is evaluated, and values obtained in Table 5 show that the proposed QDL achieved a 0.98 value for accuracy, recall, precision and F1-score value. The observed values indicate that the proposed quantum computation in classification is found to be efficient. The graphical view of QDL is depicted in Figure 16.
From Figure 16, it is evident that the proposed work is found to be efficient in the accurate prediction of heart diseases and the proposed QNN-based accuracy with qubit representation is given in Table 6.
The recorded values illustrated in Table 6 provide the qubit computation representation of the proposed work achieves a higher level of accuracy with an increase in the qubit values. The internal comparative analysis indicates that the proposed system is efficient in terms of accurate detection and classification of heart diseases from the patients in the dataset. Additionally, K-fold validation has been used in the present study to ensure that each observation present in the original dataset has appeared in the training and test set. Accordingly, the results for K-fold validation are shown in Table 7.
From Table 7, when 5, 10, 15, 20-fold are given for quantum ML heart disease prediction and quantum DL heart disease prediction dataset, it is found that the values of the accuracy have been changed considerably.

4.3.2. External Comparison

The efficiency of the quantum learning method is exhibited through comparative analysis made with the existing classification algorithms [44]. The comparison performed with traditional algorithms [44] is tabulated in Table 8.
The analysis made from the comparative study in Table 8 indicates that the proposed classification process of quantum-based ML and DL strategy achieved greater values of performance metrics compared to the existing classification methodology. The values obtained from the analysis indicate the classification effectiveness of the proposed work. The present study is found to be efficient in terms of classification accuracy and prediction of data with cardiac disease concerning all metrics such as f1 score, recall, and accuracy and precision. Moreover, the classification procedure involved in the traditional approach [61] is also compared to the proposed model and the observed values are tabulated in the given Table 9.
From Table 9, it is clear that the classification efficiency attained from the existing algorithm is being recorded an accuracy value of 92%, precision at 89% and f1-scores of 87% for the existing work. The proposed quantum model achieves 98% of all the considered metrics and from the comparative analysis, it is evident that the proposed classification system is efficient in all aspects and hence holds the potential of providing better classification results. Additionally, the classification accuracy of the proposed algorithm with the various traditional approaches [62] is compared and tabulated in Table 10.
From Table 10, it is clear that the proposed model is efficient in terms of accuracy when compared to existing methodologies of classification. The prediction of input data with affected and not affected categories is classified based on classification accuracy. Both categories are classified with an accuracy level of 98% with the proposed technique which is considered to be greater compared to other existing techniques. In addition, the comparison has been undertaken with conventional approaches [63] with regard to accuracy and the results are shown in Table 11.
From Table 11, the accuracy value of conventional algorithms such as RNN is 92%, while other algorithms such as SVM have scored 84.12%, and CNN and DT have shown 82%. Conversely, the proposed work has a high accuracy of 98%. In addition, analysis has been performed with existing works [64] in accordance with accuracy. The corresponding results are shown in Table 12.
From Table 12, the accuracy rate of conventional approaches such as the risk factor-based approach has been shown to be 86.7%, while, the existing approach [64] has revealed 97% accuracy. Conversely, the proposed approach is 98%, which is higher than existing works. As the proposed system relies on quantum computing, it possessed an innate ability to perform effective learning that has made it accomplish better outcomes than existing works. The accuracy comparison of the proposed work with the existing methodologies shows that the proposed study is efficient in terms of accuracy. The higher the prediction rate of the system, the greater its utility in detecting heart diseases through changes in heart attributes. The quantum-based classification has achieved higher earlier detection accuracy. The proposed research significantly contributes to the healthcare industry. The advantage of the proposed framework is its classification accuracy and the quality of making effective and faster classification of patients with cardiac diseases that assists the patients in taking further clinical procedures for recovery and reduces the rate of mortality considerably.

5. Conclusions

Heart Disease is one of the dreadful diseases affecting various individuals globally. Hence, early detection has become crucial to assist in minimizing the death rate. This study claims that quantum-based ML and DL would assist in predicting heart failure. The proposed prediction model utilized the classification techniques of SVM, DT and RF for predicting the likelihood of heart disease in patients and also performed classification with the proposed quantum-based ML and DL. All the classifier methodology was evaluated individually and compared internally and along with the other traditional algorithms. Based on the results obtained, the proposed technique with quantum systems for the prediction of diseases gained efficiency in terms of accuracy, precision, recall and F1 score. Among the other conventional algorithms, the proposed instance-based quantum algorithms were considered to be efficient in the prediction of heart diseases as quantum-based ML shows an 83.6% accuracy rate, while quantum-based DL showed a 98% accuracy rate. From the experimental evaluation performed on each algorithm, it was found that the proposed work is efficient in accurate prediction compared to other classification algorithms. The computational time (O log n) assists in the efficient running of the proposed method and is more suitable for complex problems. The properties of the quantum-based ML and DL improved the performance of the system by using significant computational acceleration based on complexity at run-time. The earlier stage detection on patients can reduce the computational overhead in future in order to make effective real-time implementation. In future, it would be optimal to use other quantum-based ML and DL approaches to enhance the performance.

Author Contributions

Conceptualization, S.A., A.A., A.B., M.S., A.G. and S.W.; methodology, S.A., A.A., A.B., M.S., A.G. and S.W.; software, S.A., A.A., A.B., M.S., A.G. and S.W.; validation, S.A., A.A., A.B., M.S., A.G. and S.W.; formal analysis, S.A., A.A., A.B., M.S., A.G. and S.W.; investigation, S.A., A.A., A.B., M.S., A.G. and S.W.; resources, S.A., A.A., A.B., M.S., A.G. and S.W.; data curation, S.A., A.A., A.B., M.S., A.G. and S.W.; writing—original draft preparation, S.A., A.A., A.B., M.S., A.G. and S.W.; writing—review and editing, S.A., A.A., A.B., M.S., A.G. and S.W.; visualization, S.A., A.A., A.B., M.S., A.G. and S.W.; supervision, S.A., A.A., A.B., M.S., A.G. and S.W.; project administration, S.A., A.A. and A.B.; funding acquisition, S.A., A.A., A.B., M.S. and A.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Acknowledgments

The authors extend their appreciation to the Deputyship for Research & Innovation, Ministry of Education in Saudi Arabia for funding this research work through the project number (IF2/PSAU/2022/01/22904).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Shah, S.M.S.; Shah, F.A.; Hussain, S.A.; Batool, S. Support vector machines-based heart disease diagnosis using feature subset, wrapping selection and extraction methods. Comput. Electr. Eng. 2020, 84, 106628. [Google Scholar] [CrossRef]
  2. Porumb, M.; Iadanza, E.; Massaro, S.; Pecchia, L. A convolutional neural network approach to detect congestive heart failure. Biomed. Signal Process. Control. 2020, 55, 101597. [Google Scholar] [CrossRef]
  3. Assegie, T.A. A support vector machine based heart disease prediction. J. Softw. Eng. Intell. Syst. 2019, 4, 111–116. [Google Scholar]
  4. Ali, L.; Niamat, A.; Golilarz, N.A.; Ali, A.; Xingzhong, X. An expert system based on optimized stacked support vector machines for effective diagnosis of heart disease. IEEE Access 2019, 4, 2169–3536. [Google Scholar]
  5. Tan, L.; Yu, K.; Bashir, A.K.; Cheng, X.; Ming, F.; Zhao, L.; Zhou, X. Toward real-time and efficient cardiovascular monitoring for COVID-19 patients by 5G-enabled wearable medical devices: A deep learning approach. Neural Comput. Appl. 2021, 1–14. [Google Scholar] [CrossRef]
  6. Mienye, I.D.; Sun, Y.; Wang, Z. An improved ensemble learning approach for the prediction of heart disease risk. Inform. Med. Unlocked 2020, 20, 100402. [Google Scholar] [CrossRef]
  7. Dutt, V.; Chandrasekaran, S.; García-Díaz, V. Quantum neural networks for disease treatment identification. Eur. J. Mol. Clin. Med. 2020, 7, 57–67. [Google Scholar]
  8. Mienye, I.D.; Sun, Y. Improved heart disease prediction using particle swarm optimization based stacked sparse autoencoder. Electronics 2021, 10, 2347. [Google Scholar] [CrossRef]
  9. Fitriyani, N.L.; Syafrudin, M.; Alfian, G.; Rhee, J. HDPM: An effective heart disease prediction model for a clinical decision support system. IEEE Access 2020, 8, 133034–133050. [Google Scholar] [CrossRef]
  10. Al Bataineh, A.; Manacek, S. MLP-PSO hybrid algorithm for heart disease prediction. J. Pers. Med. 2022, 12, 1208. [Google Scholar] [CrossRef]
  11. Latha, C.B.C.; Jeeva, S.C. Improving the accuracy of prediction of heart disease risk based on ensemble classification techniques. Inform. Med. Unlocked 2019, 16, 100203. [Google Scholar] [CrossRef]
  12. Nayak, S.; Gourisaria, M.K.; Pandey, M.; Rautaray, S.S. Prediction of heart disease by mining frequent items and classification techniques. In Proceedings of the 2019 International Conference on Intelligent Computing and Control Systems (ICCS), Madurai, India, 15–17 May 2019; pp. 607–611. [Google Scholar]
  13. Bashir, S.; Qamar, U.; Khan, F.H. BagMOOV: A novel ensemble for heart disease prediction bootstrap aggregation with multi-objective optimized voting. Australas. Phys. Eng. Sci. Med. 2015, 38, 305–323. [Google Scholar] [CrossRef] [PubMed]
  14. Subhadra, K.; Vikas, B. Neural network based intelligent system for predicting heart disease. Int. J. Innov. Technol. Explor. Eng. 2019, 8, 484–487. [Google Scholar]
  15. Dutta, A.; Batabyal, T.; Basu, M.; Acton, S.T. An efficient convolutional neural network for coronary heart disease prediction. Expert Syst. Appl. 2020, 159, 113408. [Google Scholar] [CrossRef]
  16. RSarra, R.; Dinar, A.M.; Mohammed, M.A.; Ghani, M.K.A.; Albahar, M.A. A Robust Framework for Data Generative and Heart Disease Prediction Based on Efficient Deep Learning Models. Diagnostics 2022, 12, 2899. [Google Scholar]
  17. Rani; Kumar, R.; Ahmed, N.M.; Jain, A. A decision support system for heart disease prediction based upon machine learning. J. Reliab. Intell. Environ. 2021, 7, 263–275. [Google Scholar] [CrossRef]
  18. Rustam, F.; Ishaq, A.; Munir, K.; Almutairi, M.; Aslam, N.; Ashraf, I. Incorporating CNN Features for Optimizing Performance of Ensemble Classifier for Cardiovascular Disease Prediction. Diagnostics 2022, 12, 1474. [Google Scholar] [CrossRef]
  19. Biamonte, J.D.; Morales, M.E.; Koh, D.E. Entanglement scaling in quantum advantage benchmarks. Phys. Rev. A 2020, 101, 012349. [Google Scholar] [CrossRef] [Green Version]
  20. Shrivastava, K.; Sharma, M.; Kumar, A. HCBiLSTM: A hybrid model for predicting heart disease using CNN and BiLSTM algorithms. Meas. Sens. 2022, 25, 100657. [Google Scholar] [CrossRef]
  21. Nadeem, M.W.; Goh, H.G.; Khan, M.A.; Hussain, M.; Mushtaq, M.F.; Ponnusamy, V.A. Fusion-based machine learning architecture for heart disease prediction. Comput. Mater. Contin. 2021, 67, 2481–2496. [Google Scholar]
  22. Junwei, K.; Yang, H.; Junjiang, L.; Zhijun, Y. Dynamic prediction of cardiovascular disease using improved LSTM. Int. J. Crowd Sci. 2019, 3, 14–25. [Google Scholar] [CrossRef] [Green Version]
  23. Deenathayalan, D.; Narayanan, B. Predicting Heart Disease Using FTGM-PCA Based Informative Entropy Based-Random Forest. Curr. Appl. Sci. Technol. 2023, 23, 1–21. [Google Scholar] [CrossRef]
  24. Rao, J.N.; Prasad, D.R.S. An Enhanced Novel Dynamic Data Processing (ENDDP) Algorithm for Predicting Heart Disease in Machine Learning. Int. J. Sci. Res. Comput. Sci. Inf. Technol. 2021, 7, 2456–3307. [Google Scholar] [CrossRef]
  25. Prabhu, S.A.; Parthipan, V. A Novel Approach for Prediction of Human Disease using Symptoms by Multilayer Perceptron Algorithm to Improve Accuracy and Compared with Random Forest Algorithm. J. Pharm. Negat. Results 2022, 13, 700–705. [Google Scholar] [CrossRef]
  26. Javeed, A.; Zhou, S.; Yongjian, L.; Qasim, I.; Noor, A.; Nour, R. An intelligent learning system based on random search algorithm and optimized random forest model for improved heart disease detection. IEEE Access 2019, 7, 180235–180243. [Google Scholar] [CrossRef]
  27. Mishra, S.; Dash, A.; Ranjan; Jena, A.K. Enhancing heart disorders prediction with attribute optimization. In Advances in Electronics, Communication and Computing; Springer: Berlin/Heidelberg, Germany, 2021; pp. 139–145. [Google Scholar]
  28. Bharti, R.; Khamparia, A.; Shabaz, M.; Dhiman, G.; Pande, S.; Singh, P. Prediction of heart disease using a combination of machine learning and deep learning. Comput. Intell. Neurosci. 2021, 2021, 8387680. [Google Scholar] [CrossRef]
  29. Zhang, B.; Ren, J.; Cheng, Y.; Wang, B.; Wei, Z. Health data driven on continuous blood pressure prediction based on gradient boosting decision tree algorithm. IEEE Access 2019, 7, 32423–32433. [Google Scholar] [CrossRef]
  30. Tamal, M.A.; Islam, M.S.; Ahmmed, M.J.; Aziz, M.A.; Miah; Karim, M.R. Heart disease prediction based on external factors: A machine learning approach. Int. J. Adv. Comput. Sci. Appl. 2019, 10, 446–451. [Google Scholar] [CrossRef] [Green Version]
  31. Jackins, V.; Vimal, S.; Kaliappan, M.; Lee, M.Y. AI-based smart prediction of clinical disease using random forest classifier and Naive Bayes. J. Supercomput. 2021, 77, 5198–5219. [Google Scholar] [CrossRef]
  32. Ali, L.; Khan, S.U.; Golilarz, N.A.; Yakubu, I.; Qasim, I.; Noor, A.; Nour, R. A feature-driven decision support system for heart failure prediction based on statistical model and Gaussian naive bayes. Comput. Math. Methods Med. 2019, 2019, 6314328. [Google Scholar] [CrossRef] [Green Version]
  33. Javid, I.; Alsaedi, A.K.Z.; Ghazali, R. Enhanced accuracy of heart disease prediction using machine learning and recurrent neural networks ensemble majority voting method. Int. J. Adv. Comput. Sci. Appl. 2020, 11, 540–551. [Google Scholar] [CrossRef] [Green Version]
  34. Pandey, A.C.; Rajpoot, D.S. Feature selection method based on grey wolf optimization and simulated annealing. Recent Adv. Comput. Sci. Commun. 2021, 14, 635–646. [Google Scholar] [CrossRef]
  35. Spino, S.; Sathik, M.M.; Nisha, S.S. The Prediction of Heart Disease using Naive Bayes Classifier. Int. Res. J. Eng. Technol. 2019, 6, 373–377. [Google Scholar]
  36. Awan, S.E.; Bennamoun, M.; Sohel, F.; Sanfilippo, F.M.; Dwivedi, G. Machine learning-based prediction of heart failure readmission or death: Implications of choosing the right model and the right metrics. ESC Heart Fail. 2019, 6, 428–435. [Google Scholar] [CrossRef] [PubMed]
  37. Li, R.; Shen, S.; Zhang, X.; Li, R.; Wang, S.; Zhou, B.; Wang, Z. Cardiovascular disease risk prediction based on random forest. In Proceedings of the International Conference on Healthcare Science and Engineering, Guilin, China, 10–12 September 2018; pp. 31–43. [Google Scholar]
  38. Sharma, S.; Parmar, M. Heart diseases prediction using deep learning neural network model. Interna-Tional. J. Innov. Technol. Explor. Eng. (IJITEE) 2020, 9, 124–137. [Google Scholar] [CrossRef]
  39. Alam, M.Z.; Rahman, M.S.; Rahman, M.S. A Random Forest based predictor for medical data classification using feature ranking. Inform. Med. Unlocked 2019, 15, 100180. [Google Scholar] [CrossRef]
  40. Ananey-Obiri, D.; Sarku, E. Predicting the presence of heart diseases using comparative data mining and machine learning algorithms. Int. J. Comput. Appl. 2020, 176, 17–21. [Google Scholar] [CrossRef]
  41. Yadav, D.C.; Pal, S. Prediction of heart disease using feature selection and random forest ensemble method. Int. J. Pharm. Res. 2020, 12, 56–66. [Google Scholar]
  42. Rahman, M.M.; Rana, M.R.; Alam, M.; Khan, M.S.I.; Uddin, K.M.M. A web-based heart disease prediction system using machine learning algorithms. Netw. Biol. 2022, 12, 64–80. [Google Scholar]
  43. Guo, C.; Zhang, J.; Liu, Y.; Xie, Y.; Han, Z.; Yu, J. Recursion enhanced random forest with an improved linear model (RERF-ILM) for heart disease detection on the internet of medical things platform. IEEE Access 2020, 8, 59247–59256. [Google Scholar] [CrossRef]
  44. Kumar, Y.; Koul, A.; Sisodia, P.S.; Shafi, J.; Verma, K.; Gheisari, M.; Davoodi, M.B. Heart failure detection using quantum-enhanced machine learning and traditional machine learning techniques for internet of artificially intelligent medical things. Wirel. Commun. Mob. Comput. 2021, 2021, 1616725. [Google Scholar] [CrossRef]
  45. Ghiasi, M.M.; Zendehboudi, S.; Mohsenipour, A.A. Decision tree-based diagnosis of coronary artery disease: CART model. Comput. Methods Programs Biomed. 2020, 192, 105400. [Google Scholar] [CrossRef] [PubMed]
  46. Budholiya, K.; Shrivastava, S.K.; Sharma, V. An optimized XGBoost based diagnostic system for effective prediction of heart disease. J. King Saud Univ. -Comput. Inf. Sci. 2020, 34, 4514–4523. [Google Scholar] [CrossRef]
  47. Venkatesh, R.; Balasubramanian, C.; Kaliappan, M. Development of big data predictive analytics model for disease prediction using machine learning technique. J. Med. Syst. 2019, 43, 272. [Google Scholar] [CrossRef]
  48. Gárate-Escamila, A.K.; El Hassani, A.H.; Andrès, E. Classification models for heart disease prediction using feature selection and PCA. Inform. Med. Unlocked 2020, 19, 100330. [Google Scholar] [CrossRef]
  49. Nagarajan, S.M.; Muthukumaran, V.; Murugesan, R.; Joseph, R.B.; Meram, M.; Prathik, A. Innovative feature selection and classification model for heart disease prediction. J. Reliab. Intell. Environ. 2022, 8, 333–343. [Google Scholar] [CrossRef]
  50. Jalali, S.M.J.; Karimi, M.; Khosravi, A.; Nahavandi, S. An efficient neuroevolution approach for heart disease detection. In Proceedings of the 2019 IEEE international conference on Systems, Man and Cybernetics (SMC), Bari, Italy, 6–9 October 2019; pp. 3771–3776. [Google Scholar]
  51. Maheswari, S.; Pitchai, R. Heart disease prediction system using decision tree and naive bayes algorithm. Curr. Med. Imaging 2019, 15, 712–717. [Google Scholar] [CrossRef]
  52. Amin, M.S.; Chiam, Y.K.; Varathan, K.D. Identification of significant features and data mining techniques in predicting heart disease. Telemat. Inform. 2019, 36, 82–93. [Google Scholar] [CrossRef]
  53. Muhammad, Y.; Tahir, M.; Hayat, M.; Chong, K.T. Early and accurate detection and diagnosis of heart disease using intelligent computational model. Sci. Rep. 2020, 10, 19747. [Google Scholar] [CrossRef]
  54. Alotaibi, F.S. Implementation of machine learning model to predict heart failure disease. Int. J. Adv. Comput. Sci. Appl. 2019, 10, 261–268. [Google Scholar] [CrossRef] [Green Version]
  55. Kavitha, S.; Kaulgud, N. Quantum K-means clustering method for detecting heart disease using quantum circuit approach. Soft Comput. 2022, 1–14. [Google Scholar] [CrossRef] [PubMed]
  56. Ali, F.; El-Sappagh, S.; Islam, S.R.; Kwak, D.; Ali, A.; Imran, M.; Kwak, K.-S. A smart healthcare monitoring system for heart disease prediction based on ensemble deep learning and feature fusion. Inf. Fusion 2020, 63, 208–222. [Google Scholar] [CrossRef]
  57. Kaur; Kumar, R.; Kumar, M. A healthcare monitoring system using random forest and internet of things (IoT). Multimed. Tools Appl. 2019, 78, 19905–19916. [Google Scholar] [CrossRef]
  58. Khourdifi, Y.; Bahaj, M.; Bahaj, M. Heart disease prediction and classification using machine learning algorithms optimized by particle swarm optimization and ant colony optimization. Int. J. Intell. Eng. Syst. 2019, 12, 242–252. [Google Scholar] [CrossRef]
  59. Alsagheer, R.H.; Alharan, A.F.H.; Al-Haboobi, A.S. Popular decision tree algorithms of data mining techniques: A review. Int. J. Comput. Sci. Mob. Comput. 2017, 6, 133–142. [Google Scholar]
  60. Sarra, R.R.; Dinar, A.M.; Mohammed, M.A.; Abdulkareem, K.H. Enhanced heart disease prediction based on machine learning and χ2 statistical optimal feature selection model. Designs 2022, 6, 87. [Google Scholar] [CrossRef]
  61. Al-Yarimi, F.A.M.; Munassar, N.M.A.; Bamashmos, M.H.M.; Ali, M.Y.S. Feature optimization by discrete weights for heart disease prediction using supervised learning. Soft Comput. 2021, 25, 1821–1831. [Google Scholar] [CrossRef]
  62. Abdulsalam, G.; Meshoul, S.; Shaiba, H. Explainable Heart Disease Prediction Using Ensemble-Quantum Machine Learning Approach. Intell. Autom. Soft Comput. 2023, 36, 761–779. [Google Scholar] [CrossRef]
  63. Kishore, A.; Kumar, A.; Singh, K.; Punia, M.; Hambir, Y. Heart attack prediction using deep learning. Int. Res. J. Eng. Technol. 2018, 5, 2395. [Google Scholar]
  64. Mehmood, A.; Iqbal, M.; Mehmood, Z.; Irtaza, A.; Nawaz, M.; Nazir, T.; Masood, M. Prediction of heart disease using deep convolutional neural networks. Arab. J. Sci. Eng. 2021, 46, 3409–3422. [Google Scholar] [CrossRef]
Figure 1. The overall architecture of the proposed system.
Figure 1. The overall architecture of the proposed system.
Mathematics 11 01467 g001
Figure 2. Architectural framework of the proposed classification algorithm.
Figure 2. Architectural framework of the proposed classification algorithm.
Mathematics 11 01467 g002
Figure 3. Block Diagram of Quantum-based ML algorithm.
Figure 3. Block Diagram of Quantum-based ML algorithm.
Mathematics 11 01467 g003
Figure 4. QDL Functional Diagram.
Figure 4. QDL Functional Diagram.
Mathematics 11 01467 g004
Figure 5. Correlation matrix representation.
Figure 5. Correlation matrix representation.
Mathematics 11 01467 g005
Figure 6. Classification of patients with heart disease.
Figure 6. Classification of patients with heart disease.
Mathematics 11 01467 g006
Figure 7. Confusion matrix for SVC.
Figure 7. Confusion matrix for SVC.
Mathematics 11 01467 g007
Figure 8. ROC graph for SVC.
Figure 8. ROC graph for SVC.
Mathematics 11 01467 g008
Figure 9. DT evaluation with the confusion matrix.
Figure 9. DT evaluation with the confusion matrix.
Mathematics 11 01467 g009
Figure 10. ROC estimation for DT Classifier.
Figure 10. ROC estimation for DT Classifier.
Mathematics 11 01467 g010
Figure 11. RF assessment with the confusion matrix.
Figure 11. RF assessment with the confusion matrix.
Mathematics 11 01467 g011
Figure 12. ROC analysis for RF.
Figure 12. ROC analysis for RF.
Mathematics 11 01467 g012
Figure 13. Proposed confusion matrix representation.
Figure 13. Proposed confusion matrix representation.
Mathematics 11 01467 g013
Figure 14. ROC analysis for proposed quantum approach.
Figure 14. ROC analysis for proposed quantum approach.
Mathematics 11 01467 g014
Figure 15. Graphical performance analysis of proposed QML.
Figure 15. Graphical performance analysis of proposed QML.
Mathematics 11 01467 g015
Figure 16. Graphical Representation of the Proposed QDL.
Figure 16. Graphical Representation of the Proposed QDL.
Mathematics 11 01467 g016
Table 1. Evaluation with RF Classifier.
Table 1. Evaluation with RF Classifier.
MetricsRandom Forest
Accuracy0.79
Precision0.79
Recall0.79
F1-Score0.79
Table 2. SVC-based Performance Evaluation.
Table 2. SVC-based Performance Evaluation.
MetricsSVC
Accuracy0.70
Precision0.71
Recall0.70
F1-Score0.70
Table 3. Assessment with DT classification.
Table 3. Assessment with DT classification.
MetricsDecision Tree
Accuracy0.62
Precision0.65
Recall0.63
F1-Score0.61
Table 4. Performance evaluation of proposed quantum-based machine learning.
Table 4. Performance evaluation of proposed quantum-based machine learning.
MetricsInstance-Based Quantum Machine Learning
Accuracy0.836065574
Precision0.8385
Recall0.8274
F1-Score0.8374
Table 5. Proposed QDL performance evaluation.
Table 5. Proposed QDL performance evaluation.
MetricsInstance-Based Quantum Deep Learning
Accuracy0.98
Precision0.98
Recall0.98
F1-Score0.98
Table 6. QNN based on Qubit analysis with accuracy.
Table 6. QNN based on Qubit analysis with accuracy.
Proposed Instance Neural Network Accuracy
Umber of Qubits = 3Umber of Qubits = 4Umber of Qubits = 5
Number of layers345345345
Accuracy94.5295.6395.8796.0296.8397.3197.6998.2198.36
Table 7. K-fold Cross Validation.
Table 7. K-fold Cross Validation.
QML Heart Disease Prediction DatasetQDL Heart Disease Prediction Dataset
K = 5K = 10K = 15K = 20K = 5K = 10K = 15K = 20
0.836060.820.820.80.980.970.970.96
Table 8. Comparative assessment with the classification techniques [44].
Table 8. Comparative assessment with the classification techniques [44].
ModelAccuracyPrecisionRecallF1_score
IBM-Q and D-Wave0.860.740.710.71
SMO_NB0.790.840.80.81
SVM0.830.880.810.85
Decision Tree0.850.880.850.86
Existing0.890.880.930.88
Proposed0.980.980.980.98
Table 9. Comparison of the Proposed Model with the Existing Algorithm [61].
Table 9. Comparison of the Proposed Model with the Existing Algorithm [61].
ModelAccuracyPrecisionf1_Score
FODW92%89%87%
Proposed98%98%98%
Table 10. Comparative Evaluation [62].
Table 10. Comparative Evaluation [62].
ModelAccuracy
Majority vote model85.48
PSO85.71
ANN87.37
Hoeffding Tree86.94
Quantum-enhanced ml algorithms89
Existing90.16
Proposed98
Table 11. Analysis with regard to Accuracy [63].
Table 11. Analysis with regard to Accuracy [63].
Technique UsedAccuracy
CNN & Decision Tree82%
SVM84.12%
Naïve Bayes86.53%
KSOM (Kohonen Self-Organizing Map)88.90%
C4.5 MAFIA K-means Cluster89%
DBN (Deep Belief Network)90%
RNN (Recurrent Neural Network)92%
Proposed model98%
Table 12. Analysis in accordance with Accuracy [64].
Table 12. Analysis in accordance with Accuracy [64].
Authors/TechniqueAccuracy
Risk factor-based approach86.7
Rmonto ontology-driven data mining approach90
ANN-based attribute extraction technique94.7
Decision Tree-based approach95.5
Existing approach [64]97
Proposed approach98
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alsubai, S.; Alqahtani, A.; Binbusayyis, A.; Sha, M.; Gumaei, A.; Wang, S. Heart Failure Detection Using Instance Quantum Circuit Approach and Traditional Predictive Analysis. Mathematics 2023, 11, 1467. https://doi.org/10.3390/math11061467

AMA Style

Alsubai S, Alqahtani A, Binbusayyis A, Sha M, Gumaei A, Wang S. Heart Failure Detection Using Instance Quantum Circuit Approach and Traditional Predictive Analysis. Mathematics. 2023; 11(6):1467. https://doi.org/10.3390/math11061467

Chicago/Turabian Style

Alsubai, Shtwai, Abdullah Alqahtani, Adel Binbusayyis, Mohemmed Sha, Abdu Gumaei, and Shuihua Wang. 2023. "Heart Failure Detection Using Instance Quantum Circuit Approach and Traditional Predictive Analysis" Mathematics 11, no. 6: 1467. https://doi.org/10.3390/math11061467

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

Article Metrics

Back to TopTop