ElGamal Based Homophorphic Encryption Using AT-BiGRU for Efficient Privacy Preserving Disease Prediction Scheme in Healthcare Data

Автор: Bhawana S. Dakhare, Lata L. Ragha

Журнал: International Journal of Computer Network and Information Security @ijcnis

Статья в выпуске: 4 vol.18, 2026 года.

Бесплатный доступ

Internet of Things (IoT) has revolutionized mobile healthcare applications, increases diagnosis speed and accuracy. Disease prediction systems (DPS) improve healthcare quality, but they raise privacy concerns due to sensitive data. These concerns include illegal sharing, misuse, and exposure of sensitive information. However, developing new techniques does not provide improved protection from attackers and fraudsters. This paper suggests an effective privacy-preserving strategy for patient healthcare data from IoT devices in order to anticipate diseases in the contemporary medical field. Heart failure prediction health data is utilized as an input in this proposed approach. Initially, elastic net (EN) is used to reduce the dimensionality of the input raw dataset. Hyper parameter in EN is optimally selected using the Zebra Optimization Algorithm (ZOA). After dimensionality reduction, data is encrypted using the ElGamal technique. During the encryption procedure, the True Random Number Generator-Pseudo Random Number Generator (TRNG-PRNG) encryption method is used to generate the secret key. These encrypted data is securely stored in cloud. Finally, Attention Mechanism based Bi-directional Gated Recurrent Unit (AT-BiGRU) technique is employed to predict heart disease. The ElGamal-TRPRNG method strengths privacy and security by achieving encryption and decryption times of 0.30 sec and 0.12 sec, respectively. The suggested model is evaluated and contrasted with current methods using encryption data performance measures. Model achieved 93.47% accuracy, 6.53% error, and 93.45% precision in encrypted data performance metrics. Therefore, this suggested method is the most effective way to effectively safeguard health care records.

Disease Prediction System, Elastic Net, Zebra Optimization Algorithm, ElGamal, Health care data, TRNG-PRNG, AT-BiGRU

Короткий адрес: https://sciup.org/15020545

IDR: 15020545   |   DOI: 10.5815/ijcnis.2026.04.11

Текст научной статьи ElGamal Based Homophorphic Encryption Using AT-BiGRU for Efficient Privacy Preserving Disease Prediction Scheme in Healthcare Data

Medical industry's rapid embrace of the IoT has led to the creation of new security vulnerabilities as well as an intensified threat landscape for existing ones. [1]. The data gathered from IoT devices raises privacy concerns because it may be used to identify people and determine their location, as well as to obtain other critical information. Since IoT gadgets run equipment or store sensitive data in their memory, data access is crucial to a safe system [2]. The biggest problem in IoT security is striking a balance between security solutions and IoT device performance. Safeguarding, security, and integrity are regulated by IoT security throughout deployment [3]. Numerous situations, such as the exchange of personal information, communications, and the recording of sensitive data, might give rise to privacy issues. In the IoT environment, the most important elements are personal information confidentiality, behavior, and communication security. To safeguard privacy, allow IoT device management and prevent superfluous access controls [4]. All data should be checked to avoid vulnerabilities from being exploited as a result of strategies for detecting

This work is open access and licensed under the Creative Commons CC BY 4.0 License.

misbehavior based on assumptions about component interactions [5].

Misbehavior identification at Internet of Things (IoMT) was difficult because of their limited computation, connectivity, power, and other resources [6]. Insider attacks could jeopardize the security of data transmission among IoMT devices and monitoring agents. To improved misbehavior detection, changes in data lead to higher false-positive rates and decreased detection method efficiency. Hence, IoMT devices need to be more effective and secured [7]. Despite several communication protocols addressing trust and security, there is still a shortage of privacy-preserving measures. Privacy issues may also arise when health monitoring services are outsourced to a semi-trusted cloud [8]. Hospitals must protect the clinical decision model's content, as it is important intellectual property with financial value. Additionally, clients need to safeguard their physiological characteristics and clinical judgments because unintentional disclosure might reveal their health status and cause major problems. As a result of technological developments, novel methods and algorithms have been created, potentially allowing attackers to obtain data with less processing power [9].

Machine learning with a focus on cryptography for privacy protection is being developed to address the challenges of hacking and cybercrime. Advanced Encryption Standard (AES), Rivest Shamir Adleman (RSA), SHA-512, and Elliptic Curve Cryptography (ECC) are popular cryptography algorithms used to provide security [10]. These techniques, however, may result in slower key generation, lengthy verification processes, increased computational difficulty, and processing delays. Prediction models are valuable resources that require their security and privacy to be maintained by disease prediction systems (DPS). DPSs need to learn predictive algorithms from a large amount of clinical input. This approach is crucial for preventing incorrect decisions and ensuring patient safety. Furthermore, classification techniques such as RF, KNN, SVM, ANN, DT, and DBN reduce the problems of inaccurate predictions, high error rates, and process delays, which affect the overall efficacy of the safety protocol. To address these issues, the study focuses on privacy-preserving disease prediction utilizing modified ElGamal encryption and AT-BiGRU techniques.

The following lists the primary goals of this suggested strategy:

  •    To reduce the dimensions of the input healthcare data, Zebra optimization (ZOA) based Elastic Net is used.

  •    To select the hyper parameters of Elastic Net optimally, ZOA is employed in this approach.

  •    For encrypting and reducing the noise in the homomorphic encryption, ElGamal based homomorphic encryption algorithm is employed.

  •    For generating key in the encryption algorithm, TRNG-PRNG key generation algorithm is utilized.

  •    To reduce memory overhead and detect heart disease from encrypted data, an attention mechanism based Bidirectional Gated Recurrent Unit (Bi-GRU) is used.

  • 2.    Literature Review

The rest of the article is organized as follows: Technical limitations and a review of the state of the art are discussed in Section 2. Section 3 provides a thorough explanation of the introduced framework. The performance of the suggested system is examined and assessed in Section 4. The conclusion and future scope are examined in Section 5.

The healthcare industry has benefited from advancements like IoTs, sensors, and electronic applications, but security, privacy, and assurance remain a concern. To evaluate the security and privacy issues that are now present in health care facilities, numerous research have been carried out in recent years. In this section, several of the prior pieces are reviewed.

Ma et al., [11] developed a random forest (RF) method, called PHP. PHPR was capable of making precise predictions and safely training on medical data from various data owners. The system performs real-time handling of outsourced processes and guarantees calculation correctness. Without compromising privacy, the original data and computed results may be processed and kept safely on the cloud. Experiments utilizing real-world datasets demonstrate that PHPR retains the same prediction accuracy as the original classifier even over ciphertexts. However, there was an excessive communication overhead.

Padinjappurathu Gopalan et al., [12] provided a method for gathering patient health data from Internet of Things devices in a way that protects privacy in order to anticipate sickness in a contemporary healthcare system. Through the use of LR-ECC communication, qualified healthcare personnel can safely extract patient information from the system. An EHGA-DLNN based on the Herding Genetic Algorithm was used to evaluate the data for sickness prediction. In comparison to previous approaches, the experimental findings reveal better prediction accuracy, privacy, and security. Security rating was 98.87%. However, these classifiers lack security, a substantial risk of exposing the prediction model to outsiders.

Zhu et al., [13] created CREDO which was an extensive medical pre-diagnosis technique that protects privacy and is based on multi-label KNN. It guarantees the security of sensitive health information belonging to medical users while enabling service providers to offer high-efficiency services without disclosing pre-diagnosis model data. ML-KNN classification was used by the service provider to determine medical occurrences and deliver services. The customer is only person which can get the pre-diagnosis result since the request vector was encrypted before to sending. CREDO has less computational complexity. However, medical users can simultaneously infect multiple diseases.

Alabdulkarim et al., [14] established a clinical decision-support system that protects patient privacy by utilizing an innovative single decision tree algorithm. To safeguard user data, the system employs nonces to thwart unauthorized parties' decoding and a homomorphic encryption cipher. The approach performs 46.46% better than the Naïve Bayes algorithm, according to simulation findings, even after controlling for key value and size. The frequency of attribute values, identified symptoms, and the model's compliance with hospital dataset privacy regulations serve as validation points. Sharing data privacy raises serious concerns as it may compromise patients' privacy.

Jayaram and Prabakaran [15] suggested a cloud-based, edge-centric healthcare system design with security features. Edge-level progressive homomorphic security that preserves privacy is recommended for secure processing of data and non-sensitive information filtering. Through the filtering and offloading algorithms, the system reduces response time and network capacity use. An adaptable stacked probabilistic classification model was suggested for remote rehabilitation of patients and aboard disease prediction in contrast with present techniques, which boost prediction accuracy and speed. The dataset on Parkinson's disease was empirically evaluated to illustrate the SECHS. However, cloud database's medical data was not adequately protected.

Based on the research mentioned above, several security and privacy concerns to healthcare systems techniques that are currently in use have various drawbacks as, there was too much overhead in communicating [11], classifiers are not secure, which poses a serious danger [12], multiple diseases can be concurrently contracted by medicinal users [13], sharing data privacy exposes patients' privacy at risk [14] and inadequate security for health information kept in cloud databases [15]. All of these approaches have lower levels of data security and confidentiality. Furthermore, redicting reliability and efficacy are typically poor. Thus resolves the aforementioned issue by using AT-BiGRU techniques and modified ElGamal encryption for privacy-preserving disease prediction.

3.    Proposed Methodology

Internet of Things (IoT) technologies in healthcare makes life easier for patients and medical professionals by proactively analyzing health data to prevent sickness. However, privacy problems occur as an outcome of the usage of patient information and medical data, which can cause treatment delays and perhaps endanger a patient's life. Disease prediction systems are critical in forecasting disease risks, and the expansion of data mining techniques has led to the development of such systems using machine learning algorithms. Despite their potential, these systems have challenges such as information security and prediction efficiency, which restrict their practical application. As a result, attaining reliable disease prediction without sacrificing precision is a difficult undertaking. In this paper, ElGamal with TRNG-PRNG based encryption and modified BiGRU is developed for privacy preserving disease prediction. The overall workflow of this approach is shown in Figure 1.

Healthcare data

Dimensionality reduction

Zebra Optimization

Encryption Й?1

Disease Prediction model

Attention mechanism based Bidirectional Gated Recurrent Unit (AT-BiGRU)

Cloud Storage

Fig. 1. Overview of the Secure Data Processing and Heart Disease Prediction.

Medical records are regarded as private inputs for disease prediction in this framework which protects patient privacy. Using the Elastic Net, the dimension of an input raw data set is first decreased without sacrificing the information itself. An Elastic Net's hyper parameters may be optimally selected through a technique called Zebra Optimization Algorithm (ZOA). After dimensionality reduction, the selected data are encrypted using homomorphic encryption called ElGamal approach. In the encryption algorithm, the secret key is generated using True Random Number Generator-Pseudo Random Number Generator (TRNG-PRNG) encryption algorithm. Next, data is transformed into ciphertext using homomorphic functions including addition, multiplication, and rescaling. This enables data to be used and examined as though it were still in its original format. These data is encrypted and kept in the cloud. After that, Attention mechanism based Bi-directional Gated Recurrent Unit (AT-BiGRU) approach is utilized to predict the heart disease.

  • 3.1.    Dimensionally Reduction

  • 3.1.1.    Elastic Net

One technique for converting high-dimensional data into low-dimensional representations is called "dimensionality reduction." As HDDs have grown in popularity, several DRTs are now widely used in many applications. DRTs solve the problem of the curse of dimensionality by transforming the data into a low-dimensional representation while maintaining the original semantics of the data. Low-dimensional data is a useful tool in many disciplines since it is simpler to handle, evaluate, and visualize. To reduce the dimensions of the input healthcare data, the Zebra optimization (ZOA)-based Elastic Net is applied.

Large datasets with more predictors (features-N) than observations (subjects-K) are typically better suited for the LASSO model. Because of the strong correlations among the predictors, it is not resilient. A novel feature selection technique called Elastic Net (EN) often performs better than LASSO. The EN technique balances the L1 and L2 regularization norms, while the LASSO method solely considers the L1 norm of в. When there are many more predictors (features) than observations, this approach performs exceptionally well [16].

The problem is solved for non-negative Л values by the EN by introducing a penalty term depending on a, with a value of 0 < a < 1,

% 1п^1Ёу 1 - ^ -хГ/?)2+ w ^)>

Where,

Da (p} = 1^a^p^2 + a\p^i

Between the square of the L2 norm of в and the L1 norm, the penalty term Da(p) interpolates. The best hyperparameter is chosen using ZOA in order to minimize error. Zebra Optimization Algorithm

Zebras are equestrian creatures native to eastern and southern Africa, notable for their black-and-white striped coats. It helps to hide from attackers and discourage biting insects since these stripes are positioned vertically on the neck and body. Zebras range in size from 110 to 160 cm in the shoulders, 210–300 cm in the body, and 175–450 kg in the tail. Their head is made to consume grass, while they possess long, skinny legs, a single toe on every foot, and a lengthy neck. Zebras engage in two primary social behaviors: foraging and predator protection. By leading the herd across the plains, a pioneer zebra makes room for additional zebras to migrate and graze [17]. Zebras' primary defense against predators is to flee in a zigzag manner. However, they might group to mislead or intimidate the predator. The ZOA design depends on computational simulations of two forms of smart zebra behavior: the zebras' protection mechanism against predator assaults and their foraging activity.

Mathematical model for the Zebra Optimization is given below:

Step1: Initialization

The population of the ZOA has been replaced with hyperparameter alpha. Equation (3) provides the necessary formula to represent the initialized procedure.

a = {ai,«2 ,^,an)

Where, a represents the alpha it controls the strength of regularization.

Step 2: Fitness Function

The error is calculated in order to assess the fitness value. -It's conceptual representation is shown in equation (4).

fitriess functiоn = minimise (E)

E = 1Ё(у"-2")2 n=l

Where E denotes Mean Squared Error (MSE), zn as actual value, and yn is the displayed value.

Step 3: Updation

The value is changed for every population member’s position until it reaches an ideal value. Thus, zebras' positions are updated by two of their normal actions, such as foraging and predator-defence maneuvers.

Zebra positions during the foraging phase can be updated mathematically by employing equations (6) and (7).

' = = x^ + r.^Zf-Lx^

{ nn ew ,P 1    new,P 1      ,

, г i г if

Xt ,e Is e,

In this case, х™™1 1 is the ith zebra's new position based on the first phase. ZZ is the initial zebra, regarded as the most superior member. ZZj is their jth dimension. r is an arbitrary number in the interval [0, 1]. I = round (1 + rand ), where rand is a random value in the interval [0, 1]. Its objective function value is represented as peew,p i_. Thus,/ £ {1,2} as a result, and there are much more variations in population movement if parameter / = 2.

Using equations (8) and (9), the location of the ZOA population is updated by the use of zebra defensive mechanisms against predator assaults.

I .(1-^.XlJ, Р^Ы.

{Si xtj + r. (A Zj - I. Xij), eIse,

■new,P2    new,P2     t-*

, ^i         < ^ if

,             ,

={

Fig. 2. Process Flow of the Zebra Optimization Algorithm.

In this case, t represents the iteration form, T represents the maximum amount of iterations, R represents a constant value of 0.01, Ps represents the probability of selecting one of two randomly generated strategies in the interval [0, 1], AZ represents the targeted zebra's status, and AZ j represents the jth dimension value. x"™ 2 2 represents the ith zebra's new state from the second phase.

Step 4: Termination

The process of selecting options ends after the best choice has been determined. After dimensionality reduction, the selected data are encrypted using homomorphic encryption called ElGamal approach. The flow chart for ZOA algorithm is given in Figure 2.

  • 3.2.    Encryption process

The process of converting plain text data (plaintext) into something that seems random and meaningless (ciphertext) is known as encryption. For encrypting the selected features, ElGamal based homomorphic encryption algorithm is employed.

Data in Secure

Cloud

Fig. 3. Architecture for the Encryption Model.

The Figure 3 shows a secure encryption process where plain text is fragmented using a magic number, split, and then encrypted using homomorphic encryption with a public key and randomizing term. This encrypted data is securely stored in the cloud, enabling privacy-preserving computation without exposing the original information.

  • 3.2.1.    ElGamal based homomorphic encryption

An FH encryption technique with unlimited homomorphic additions and multiplications is presented in this section. The two components of the method, which use El-Gamal encryption principles, are a multiplicative encryption scheme for multiplicative property and a linear encryption strategy for homomorphic addition [18]. El-Gamal encryption uses generator g, independent of public key у , and random number r . Power of g equals m , speeding up the power computation of large integers.

While homomorphic multiplication is possible with RSA, El-Gamal is the main emphasis because of its message integrity characteristic. El-Gamal has m + m' on both sides, hence in order to decode the second component, the first section must first be decrypted. Private canals present a major sharing challenge for symmetric FHE schemes, notwithstanding their efficiency in accelerating and allocating resources. By tackling the problem of lengthy encryption durations brought on by exponentially complicated computation, the MNF-G technique seeks to simplify and allocate resources in asymmetric FHE. For safe and lightweight protection, the scheme's main goal is to provide linear cyclic asymmetric encryption.

c = Qm + r x pymod n (10)

Where = = p X q. Equation (10) are improved to mitigate the vulnerability to plain text assaults and other forms of attacks.

c = Qmxk + r x p )mo d n

Elgamal's El-Gamal encryption mode originated from this method, but Equation (11) is weak as obtaining two plain texts can lead to the recovery of all ciphered entities. The proposed encryption scheme hides plain text by randomly fragmenting m into m' and mm making it difficult for attackers to extract p, using the following equation (12).

c = Qm + m" x k + r x p)mod n

Verification of homomorphic multiplication is challenging due to k2 multiplication. Encryption involves ciphered text c+ and cx. The Diffie-Hellman key exchange is the foundation of the safe and effective El-Gamal cryptosystem. It generates keys using a finite cyclic group, encrypts using a random integer, and decrypts using a one-way function. Variations include quotient rings, classical, Z n, Gaussian integers, and bilinear encryption for data aggregation that protects privacy.

  • i)    Fundamental elements for the FHE method design

MNF-G (Magic Number Fragmentation and El-Gamal encryption) shall be covered in entirely in the subsection that follows. The cyclic group Zp = Z/p Z = {0,1,..., p — 1} and the primitives P,C,K, Enc(), Dec() are considered.

  •    P as a simple text ring Zp

  • •   C representing an encrypted text ringZn

  •    K the pivot ring

  •    Utilizing kk E К and encrypting data with enc(),Encpk: - — C

  •    Dec() as the decrypt method Decsk: - -p P wiih Sк К К

Fully homomorphic encryption approach that is consists of three steps:

  • •   KeyGen: yields a public key p к and a secret key sk , respectively, (sk, pk) = (k,k + r x p, g ).

  • •   Enc(m): a plain text m e P employs the public key for encryption pk,c + = (m, + m" x pk)mod n, cx =

(m x gm)mpd n

  •    Dec(c): Using the secret key kk , a ciphered text is decoded, m = kc+mpkp)modkk— 1), m = cx x (g m)1 1mo d p

Two main topics of this proposal are the magic fragmentation of m and the difficulties of the number factorization.

Encryption

The proposed scheme uses asymmetric encryption to send ciphered text to Bob using a shared public key. The encryption process involves a shared public key, with m- k - x cmdkp = m, + (m" x k)mdkp and m" k - -> (m" x к x к1 Jmppp = m".

Decryption

The text explains how to decipher a complex number using the formula c = c+, cx and c+ = m, + m" x k + r x p.

It is first extracted from c+, then c+mdpp = m’ + ТП" x к , and since m x kmddkk — 1) = m hen Dec (c+) = m.

  • ii)    Homomorphic additive property

Enc (mJ + Ппскт)) = ml + ml xp к + m+ +m^p k = = (ml + mJ + (ml + mJ xp к = E (m1 + m2 ) and c = c1 + c2 + —+ c = (ml + ml x pkJ + (m’2 +m2x kk) + —+ (m; + mx x pk) = (ml + m’2 + —+ m’+ +

(m’l +m2 + —+ mJ xp = = m- m nv x p к , where m’ +mn k p from encryption and decryption. Hence D ec (c) = m± + m2 + — mi = m. Typically, acquire

,c

Enc(mJ = Ппск /   mJ

  • iii)    Homomorphic multiplicative property

Let Ca and c2 be two encrypted characters with ciphers from m1 = ml + ml and m2 = m2+m:2, respectively. Enc (mJ x Enc (m2) = (ma x gmi xm2x gm2) = (ma xm2 x gmi x mm2) = (ma xm2x mmmmJ = (mx gj where =    +   . To ensure the property of multiplication, it is necessary to guarantee the decryption of x , which can be achieved by adding the first part, resulting in     (   ) x (   ) = (    +    , x x        .

П 1= innckmj = ПпскП 1= mJ

The private key is created using the TRNG-PRNG key generation mechanism.

Key Generation Using TRNG-PRNG Module

To increase security, every cycle of the clock and empty text character creates a key value for this TRNG-PRNG module. Figure 3 shows the general design with 80-bit key generation system. Typically, digital circuits are used in the construction of the TRNG to provide real randomness through unexpected effects. Here, the $random function is used to produce the TRNG. Additionally, the general circuit architecture that generates the 80-bit key is known as PRNG [19].

Fig. 4. Architecture of TRNG-PRNG module.

The following steps are involved in the key generation process.

  • a.    TRNG-PRNG module first generates the actual random number, represented as RN0, which is an 80-bit value. Next, four 20-bit values, T1, T2, T3, and T4, are created by truncating this 80-bit RN0 value, which is shown in equation (15).

T 1 = RN0[0:19] Т 2 = RN0[20:39] Т 3 = R М0[40:59] Т 4 = R М0[б0:79]

  • b.    Equation (16) illustrates the selection line is used to operate the MUX's output.

М 1=М ХХ( 11,22)                                 (16)

М 2 = М UX1 13,14)

Where M1 and M2 stand for the MUX function levels within the pairs of T1-T2 and T3-T4, correspondingly.

  • c.    Equation (17) states that X1 and X2, accordingly, reflect the XOR action involving the pairings of M1-T1 and

M2-T4.

X1 =X OR (Ml, 11)

X 2 =X RR {М2, 44)

  • d.    One TRNG is used in the procedure for creating keys to generate four 20-bit values, which are subsequently added by four different adders, as shown in equation (18).

A1=X1+RN 1

A2=M1+RN 2

A3=X2+RN 3

A4=M2+RN4

  • e.    As shown in equation (19), the numbers of A1-A2 and A3-A4 are processed using the XNOR procedure following the addition for both pairs.

X3=XNOR (A 1, A 2)

X4=XNOR (A 3, A 4)

  • f.    The MUX operation uses four inputs, with output determined by countervalues. The output is A1 when counter value is 0, X3, A4, and X4.

  • g.    The TRNG-PRNG module's result is used in the encryption procedure, an 80-bit key for kdat1 through a concatenation operation between X3, M3, X4, and A4, as input for the encryption process.

  • 3.3.    Classification

In order to achieve high operating frequency and low space use, the PRESENT architecture optimizes hardware components utilizing DROM. A stronger defense against attackers is provided by key creation for every round and plaintext, because of this, it is challenging to decode the initial plain text without understanding the key value. These data are encrypted and stored in the cloud. Using these encrypted data, the heart disease is detected by attention mechanism based Bi-directional Gated Recurrent Unit (Bi-GRU).

GRU must be configured to function with the recursive network architecture by modifying the standard GNU memory unit to accept the input from two child nodes. From now on, researchers will refer to this increased dual-input GRU as BiGRU [20]. Given a BiGRU node unit j , its output is ℎ j , and its left and right child nodes' outputs are ℎ f and R , respectively. An example of the ℎ j calculating method is given in equation (20).

ℎi=(wL ℎf+ aR ℎR)+(1-zi )ℎ i (20)

In this case, 0)L + (j)R =1, wL and wR indicate the weights for both of the GRU unit's top and bottom nodes, respectively.

For BiGRU node j is Zj as the update function. As it primarily controls whether the BiGRU is updated, its purpose resembles to a command gate's, hence it is additionally referred to as a change gate at times. A child node's output ℎ f ,ℎR is determined by the input vector Xj . The gate used for updating determines if it needs to modify the cell's internal state. An example of the exact method used to determine the update gate Zj of the BiGRU is provided by equation (21).

ZJ =(Wzxj + Uz (шь ℎR+ шк ℎR)) (21)

BiGRU node j candidate output, ℎ̃ j is computed as shown in equation (22). Here, W and U are parameter matrices, Xj Rd denotes a term represented as a d-dimensional vector, and f stands the gaussian curve. is the symbol for the multiplying of dots.

ℎ̃ i=(WhXj + Uk ( ri ⨀(wL ℎi+ wR ℎf)))

Mainly controlling whether or not restore gateway resets the data storage unit ri . In order to avoid permanent dependency, the GRU is capable of ignore previous data whenever the restore function's output is close to zero. Equation (23) illustrates this specific computation of the resetting function:

rJ =(WzXj + Ur (шьℎ■ + шкℎR))

For the nonlinear function (J , one often uses the tan ℎ function. When the dimensions of the input word vector are ℎ j , rj , ZJ Rd and d , it is feasible to predict emotion information using softmax for the BiGRU.

It is acceptable to assume that the source in this attention mechanism consists of many data pairs. Value, key, and query are the three fundamental components of queries. The following is a summary of the way the attention value is determined. Equation (24) can be used to characterize the basic concept of the attention mechanism as the conversion of a query into a series of keys and values:

Attention (Query, Source)=∑Similarity (Query, key,)∗Value t i=l

Where ^X =‖ Source ‖ is the total length from the data source. AT-BiGRU model's detailed design is shown in Figure 4.

Output

Attention layer 1

Attention layer 2

I Softmax loo --- о ol Concatenate layer

Bi-GRU

Bi-GRU

Fig. 5. Architecture of the Attention Mechanism Based Bi-Directional Gated Recurrent Unit.

The specialized calculation approach of the attention mechanism may be abstracted in three phases. Based on the association among each Query and each Key, this initial stage calculates the amount of weight factor for every Feature that matches the Quantity. The subsequent stage uses the identical softmax function to emphasize the weights of important components and equalize the weights. Equation (25) presents the specific computation for the weight coefficient associated with Value, denoted by Щ .

a, =    max( Simt )=

gSimt

'Lx pSim; 7=1 e

In the final step, the weight and the corresponding key score are combined to produce the final attentive value. Therefore, AT-BiGRU is developed for privacy preserving disease prediction. The Pseudo code of this privacy preserving disease prediction method is given in Algorithm 1.

Algorithm 1 . Pseudocode for privacy preserving disease prediction

  • # Encryption process

{

EG = ElGamal based homomorphic encryption (EN) // For encrypting the selected data

TRNG-PRNG = True Random Number Generator-Pseudo Random Number Generator (EG)// For generating key in the encryption algorithm }

#Classification

{

AT-BiGRU = Attention- Bidirectional Gated Recurrent Unit (EG) // To detect the heart disease from encrypted data

}

Output: privacy preserving disease prediction

End

4.    Result and Discussions

Cloud-based healthcare services have grown in popularity as a result of centralized electronic healthcare records (EHR) and remote patient services. However, the expanding Healthcare 4.0 business necessitates the maintenance of security and privacy. In order to overcome these issues, the proposed system uses an efficient and privacy-preserving classification scheme for the health monitoring system. Healthcare data are considered to be input private data. Initially, input raw data are reduced using dimensionally reduction technique called elastic net. The Zebra Optimization Algorithm (ZOA) is used to optimize Elastic Net’s hyper parameter. The ElGamal approach is used for encrypting selected data, were secret key is generated using the TRNG-PRNG encryption algorithm. The secured info are given into AT-BiGRU to detect the heart disease. The entire model is designed and implemented in the python software, and an NVidia GeForce GTX 1650 GPU, an Intel Core i5 CPU, a 16-bit operating system, and 16GB of RAM are among the system specifications.

  • i)    Dataset 1

Heart failure prediction dataset are collected from Kaggle dataset [21]. Cardiovascular diseases are the main cause of mortality globally, accounting for 17.9 million fatalities per year. Heart attacks and strokes are prevalent causes, accounting for one-third of early deaths in those under the age of 70. A dataset including 11 indicators can predict cardiac disease, allowing for early identification and care in high-risk patients. Records include the patient's age, sex, kind of chest pain, resting blood pressure, cholesterol, blood sugar levels after fasting, findings of the resting ECG, exercise-induced angina, ST_Slope, and heart disease.

  • ii)    Dataset 2

The dataset, collected over a 2-month period in India, consists of 400 rows and 25 features, including red blood cells, pedal edema, sugar levels, and more. The objective is to classify whether a patient has chronic kidney disease (CKD) or not, based on the "classification" attribute, which can either be 'ckd' (chronic kidney disease) or 'notckd'. Data cleaning was performed, including mapping textual values to numerical ones and other necessary transformations. Exploratory Data Analysis (EDA) was conducted to better understand the dataset. After splitting the data into training and testing sets, machine learning models were applied. The initial results were not satisfactory. Instead of dropping rows with missing (NaN) values, a lambda function was used to replace them with the mode of each respective column [22]. The dataset was split into training and testing sets, with 320 rows used for training and 80 rows for testing. The process was repeated, and the models were applied again. The results significantly improved, with Random Forest and Decision Tree models emerging as the top performers, achieving an accuracy of 1.0 and zero misclassifications. Model performance was assessed using the confusion matrix, classification report, and accuracy metrics. The dataset is 48.55 KB in size.

  • iii)    Dataset 3

The dataset contains comprehensive health information for 2,149 patients, each identified by unique patient IDs ranging from 4751 to 6900. A total of 1,709 rows were used for training the model, and 430 rows were used for testing. It includes demographic details, lifestyle factors, medical history, clinical measurements, cognitive and functional assessments, symptoms, and a diagnosis of Alzheimer's Disease [23]. The dataset is ideal for researchers and data scientists aiming to explore factors associated with Alzheimer's, develop predictive models, and conduct statistical analyses.

  • iv)    Dataset 4

The UCI Heart Disease dataset is a widely used medical dataset designed to predict the presence of heart disease in patients based on 14 key clinical attributes such as age, sex, chest pain type, resting blood pressure, cholesterol levels, fasting blood sugar, electrocardiographic results, maximum heart rate, exercise-induced angina, ST depression, slope of the ST segment, number of major blood vessels, and thalassemia status [24]. The target variable indicates whether a patient has heart disease, often simplified into a binary classification of presence or absence.

  • v)    Dataset 5

The MIMIC-III dataset is a large, publicly available clinical database containing detailed information from over 61,000 intensive care admissions, including 47 features related to demographics, vital signs, and lab results of sepsis patients. This project explores the use of offline deep reinforcement learning (RL) to develop a Clinical Decision Support System aimed at optimizing sepsis treatment strategies in emergency care[25].

Table 1. Parameters of zebra Optimization.

Hyperparameter

Selection

Max.Iteration

100

Searching agent

10

Lower bound

0

Upper bound

1

Table 2. Specifications of AT-BiGRU.

Hyper parameter

Selection

Learning rate

0.001

Optimizer

RMSprop

GRU

20 layers

Attention

1 layer

Activation

Sigmoid for all layer

Simulation parameters of Billiards optimization algorithm is given in Table 1. For ZOA, the number of iterations was varied between 50 and 200 in increments of 25. Results showed that performance improvements plateaued around 100 iterations, beyond which computational cost increased without significant gains. Thus, 100 iterations were selected as the optimal value, balancing efficiency and optimization quality. Likewise, the classification algorithms AT-BiGRU, is given in Table 2. In the case of the GRU layers, configurations ranging from 5 to 25 layers were tested. The highest classification accuracy and precision were achieved at 20 layers. Fewer layers resulted in underfitting, while additional layers introduced overfitting and increased training time without performance benefits. Regarding the learning rate, a range of values including 0.01, 0.005, 0.001, and 0.0005 were explored using the RMSprop optimizer. A learning rate of 0.001 provided the most stable convergence and optimal predictive accuracy. Higher rates led to unstable training, while lower rates significantly slowed convergence with minimal accuracy improvement. These findings confirm that the chosen hyperparameters (ZOA iterations = 100, GRU layers = 20, learning rate = 0.001) represent the most effective configuration for the proposed system, ensuring both reliable performance and practical training efficiency.

Plain Data

(a)

Fig. 6. Confusion metrics for plain data and encrypt data.

Encrypt Data

(b)

The confusion metrics for the proposed plain data model is shown in Figures 6 (A). It is used to ascertain if a classification machine can distinguish between predictions that are correct and those that are not. For classes 0 and 1, the estimated plain data is 70 and 102. Figure 6 (B) shows the confusion matrix for the encrypt data. Based on the given data, the technique's class categorization contains both successful and inaccurate classifications. The anticipated values for classes 0 as and 1 are 72, and 103, respectively.

Plain Data

Encrypt Data

  • Fig. 7.    ROC plot.

The ROC curve for the suggested model is displayed for both plain and encrypted data in Figures 7 (a) and 6 (b). The receiver operating characteristic curve is a plot that illustrates the performance of a classification model. The link among the percentage of FPR and TPR can be represented using ROC curves in a prediction model with different probability thresholds used.

  • Fig. 8.    Graph of convergence for the ZOA algorithm.

Figure 8 shows the convergence graph of the optimization technique. The zebra optimization's fitness value is measured using mean square error. It measures difference between expected and actual values of the entire training set. In the hundredth iteration, the zebra optimization's fitness is 0.1%.

- 31)0

-200

Predicted Label

  • Fig. 9.    Confusion matrix of the Dataset 2.

  • Fig. 10.    Confusion metrix of the Dataset 3.

  • 4.1.    Performance analysis of encryption process

Dataset 2 is used to represent chronic kidney disease (CKD) cases. It consists of two classes: class 0 (146 instances) represents not in the diseases, class 1 representst he kidney disases 383 instances) in the figure 9.Figure 10 represents the confusion matrix for Alzheimer's disease prediction. It includes two classes: 1,350 instances of individuals not affected by Alzheimer's disease and 738 instances of individuals diagnosed with Alzheimer's disease.

The ElGamal- True Random Number Generator-Pseudo Random Number Generator (ElGamal-TRPRNG) is compared with some existing post quantum cryptography algorithms. fully homomorphic encryption (FHE) [26], threshold fully homomorphic encryption (TFHE) [27], Quasi Oppositional Sail Fish Optimizer with Homomorphic Encryption (QOSFO-HE) [28], and Cheon-Kim-Kim-Song (CKKS) [29] are the existing approaches used to compare performance. The statistics used to compare the models' efficiencies are encryption time, and decryption time.

  • Fig. 11.    Evaluation of encryption time.

  • Fig. 12.    Evaluation of decryption time.

An analysis in encryption times for various encryption techniques is presented in Figure 11. An encryption time of 0.30 sec is produced by the ElGamal-TRPRNG. It takes less time to encrypt data than other techniques as the FHE, TFHE, QOSFO-HE, and CKKS algorithms, which require 0.37, 0.46, 0.42, and 0.51 sec. Decryption time data for various encryption algorithms are also compared in Figure 12. The decryptions are generated at 0.12 sec, 0.16 sec, 0.17 sec, 0.18 sec, and 0.21 sec, by ElGamal-TRPRNG, FHE, TFHE, QOSFO-HE, and CKKS

Fig. 13. Evaluation of the Proposed and Current Algorithms in Computational Time.

The figure 13 compares the computational time of five algorithms. AT-BRU is the fastest at around 35 seconds, while MT-CNN is the slowest at about 63 seconds. EHGA-DLNN, ML-KNN, and SVM.

Fig. 14. Evaluation of the Proposed and Current Algorithms in throughput.

The figure 14 shows that AT-BRU has the highest throughput at about 128 Mbps, outperforming MT-CNN, ML-KNN, EHGA-DLNN, and SVM. SVM has the lowest throughput around 75 Mbps, making AT-BRU the most efficient method among the five. It demonstrating its superior capability to manage large-scale data processing with minimal latency.

  • 4.2.    Comparison analysis for proposed model

A number of metrics were used to calculate the proposed prediction system's performance. The evaluation includes the following metrics: false negative rate (FNR), accuracy, recall, precision, specificity, memory overhead and error. Attention- Bidirectional Gated Recurrent Unit (AT-BiGRU) technique are compared with various existing strategies like, MT-CNN [30], EHGA-DLNN [12], ML-KNN [13], and (SVM [31].

Fig. 15. Evaluation the accuracy.

Fig. 16. Evaluation the error of plain and encrypted data.

Evaluation of plain and encrypted data for both proposed and existing systems is shown in Figure 15. Accuracy in the assessment dataset is the proportion of properly categorized individuals. By comparing the AT-BiGRU with the existing MT-CNN, EHGA-DLNN, ML-KNN and SVM, the accuracy of the approach is evaluated. The plain data accuracy values for AT-BiGRU, MT-CNN, EHGA-DLNN, ML-KNN and SVM are 95.10%, 89.40%, 84.64%, 79.89% and 68.47%, in that order. Likewise, the accuracy values for encrypted data for AT-BiGRU, MT-CNN, EHGA-DLNN, ML-KNN and SVM are 93.47%, 86%, 80.57%, 75.71% and 66.36%. The AT-BiGRU offers higher plain data accuracy than encrypted data, despite the importance of encryption for healthcare data security. Figure 16 illustrates the error testing process for the AT-BiGRU strategy with the existing algorithms for both plain and encrypted data. For AT-BiGRU, MT-CNN, EHGA-DLNN, ML-KNN and SVM, the plain data error values are 4.9%, 10.6%, 15.36%, 20.11%, and 31.53%, respectively. Similarly, the error values for AT-BiGRU, MT-CNN, EHGA-DLNN, ML-KNN and SVM with encrypted data are 6.53%, 14%, 19.43%, 24.29%, and 33.61%. The AT-BiGRU has a lesser obtained error when compared to existing methods.

Fig. 17. Evaluation of the precision.

Fig. 18. Evaluation of the recall.

Fig. 19. Evaluation of the FNR.

Fig. 20. Evaluation of the specificity.

Fig.21. Evaluation of the FPR.

Figure 17 shows the results of the precision evaluation of plain and encrypted data for both the suggested and current approaches. The precision of the AT-BiGRU model is assessed by contrasting it with the cutting-edge methods MT-CNN, EHGA-DLNN, ML-KNN and SVM. The precision values for the AT-BiGRU, MT-CNN, EHGA-DLNN, ML-KNN and SVM derived from the plain data are 95.05%, 87.44%, 82.22%, 83.17% and 71.29%, respectively, while for the encrypted data are 93.45%, 84.39%, 80.09%, 79.43%, and 69.15%. The recall evaluation of existing and proposed approaches is shown in Figure 18. By comparing the AT-BiGRU with the existing techniques MT-CNN, EHGA-DLNN, ML-KNN and SVM, recall is estimated. The plain data yielded recall values of 94.88%, 85.58%, 87.29%, 81.60% and 73.06% for the AT-BiGRU, MT-CNN, EHGA-DLNN, ML-KNN and SVM, respectively. 93.12%, 83.15%, 81.01%, 78.40%, and 71.04% are the recall values that were discovered for encrypted data.

Figure 19 shows the False Negative Rate (FNR) analysis of the proposed and existing approaches. The AT-BiGRU is compared with MT-CNN, EHGA-DLNN, ML-KNN and SVM, in order to determine the FNR. The obtained FNR value for plain data of AT-BiGRU is 5.12%, 14.42%, 12.71%, 18.4% and 26.94%, respectively, for the existing techniques, MT-CNN, EHGA-DLNN, ML-KNN and SVM. For encrypted data, the FNR values found are 6.88%,

16.85%, 18.99%, 21.6%, and 28.96%. The AT-BiGRU which applies to both plain and encrypted data, is shown in Figure 20. Plain data specificity values for AT-BiGRU, MT-CNN, EHGA-DLNN, ML-KNN and SVM are 94.85%, 88.24%, 82.54%, 86.34%, and 68.31%, respectively. Comparable specificity values of 93.11%, 83.80%, 80.26%, 81.94%, and 66.11% are found for AT-BiGRU, MT-CNN, EHGA-DLNN, ML-KNN and SVM with encrypted data. Compared to existing approaches, the AT-BiGRU has a higher degree of specificity for both plain and encrypted data.

DLNN

Fig. 22. Evaluation of the FDR.

The AT-BRU method shows the lowest FPR (around 5% for plain data and 7% for encrypted), while SVM has the highest FPR (around 32% for plain and 35% for encrypted). The other methods have intermediate values, with FPR increasing noticeably when encryption is applied in figure 21The figure 22 shows that all methods have higher false detection rates (FDR) with encrypted data compared to plain data. AT-BRU has the lowest FDR, while SVM has the highest. Encryption increases false detections across all methods.

Fig. 23. Memory overhead analysis.

Figure 20 illustrates that the memory overhead stabilizes once the data is stored in memory. It is anticipated that the batch size ranges from 40 to 120. Memory overhead decreases with higher batch size values. At batch size 100, the AT-BRU method achieves 55 mb. Compared with existing techniques like MT-CNN, EHGA-DLNN, ML-KNN and SVM, AT-BRU takes low overhead ratio.

Table 3. Ablation Analysis Based on Model.

Accuracy

Precision

Recall

FNR

Elastic Net+ BiGRU

88.9

88.60

87.5

11.04

Elastic Net+ Encryption+ BiGRU

91.63

90.5

90.7

8.55

Elastic Net+ Encryption

88.6

88.5

86

9.6

Elastic Net+Zebra Optimization+ +Encryption+AT-BiGRU

93.47

93.45

93.12

6.88

The ablation study shows that each added component improves model performance in table 3. Starting with Elastic Net + BiGRU, the addition of encryption enhances recall and reduces the false negative rate. Removing BiGRU leads to lower accuracy, confirming its importance in handling sequential data. The best results are achieved when both Zebra Optimization and an attention mechanism are added, leading to the highest accuracy (93.47%) and lowest FNR (6.88%).

Table 4. Comparison of the Suggested and Existing System of the State of Art.

Comparison of Proposed and Existing System for Encryption

Author

Techniques

Performances Analysis

Proposed

ElGamal-TRPRNG

Encryption:0.30ms

Decryption times:0.53ms

Ma et al., [32]

Privacy-preserving and high-accurate outsourced disease predictor on random forest, called PHPR. PHPR system can perform secure training data.

Encrypted:7.54ms

Decrypted : 7.70ms

Yin et.al[33 ]

Decentralized ciphertext-policy attribute-based encryption (DCP-ABSE)

Encryption: 15 ms

Decryption: 12 ms

Mahajan et.al[34]

Lightweight cryptography

Encryption:3.25 ms

Decryption times:2.0ms

Comparison of Proposed and Existing System for Classification

Author

Techniques

Performances Analysis

Proposed

AT-BRU

specificity

precision

Elsedimyet. Al[35]

Quantum-behaved particle swarm optimization (QPSO) algorithm and support vector machine (SVM)

93.56%

94.23%

Dubey et.al[36]

Crow Search Optimization Algorithm (CSOA) with Deep learning

-

91%

Ramesh et.al[37]

Optimal Scrutiny Boosted Graph Convolutional LSTM (O-SBGC-LSTM) with Eurygaster Optimization Algorithm (EOA)

-

89%

Table 4 illustrates the comparison between the proposed system and the state-of-the-art methods in encryption and classification. In encryption, for lightweight cryptography, the encryption time is 325 ms and the decryption time is 20 ms. In classification, the existing systems include the Quantum-behaved Particle Swarm Optimization (QPSO) algorithm and the Support Vector Machine (SVM). The specificity value for these existing systems is 93.56%, and the precision value is 94.23%. The proposed system achieves a specificity value of 95.05%.

Table 5. Proposed and Existing System of the Dataset 2 , Dataset 3, Dataset 4 and Dataset 5.

Methods

Accuracy

Precision

Recall

Specificity

FNR

F1-Score

Dataset 2

AT-BRU(Proposed)

96.1%

94.2%

96.5%

96.5%

3.4%

95.3%

MT-CNN

94%

90%

89%

84%

2.3%

93%

EHGA-DLNN

91%

85%

90%

89%

1.2%

84%

ML-KNN

93%

89%

85%

90%

3%

92%

SVM

89%

84%

79%

85%

2.1

86%

Dataset 3

AT-BRU(Proposed)

97.1%

96.2%

97.1%

96.1%

2.8%

96.6%

MT-CNN

93%

94%

91%

82%

3.1%

87%

EHGA-DLNN

90%

87%

82%

85%

3.5%

88%

ML-KNN

93%

89%

85%

90%

3%

92%

SVM

91%

75%

90%

89%

1.2%

84%

Dataset 4

AT-BRU(Proposed)

96.4%

89%

85%

90%

3%

92%

MT-CNN

89%

84%

79%

94.2%

96.5%

96.5%

EHGA-DLNN

90%

89%

84%

ML-KNN

89%

84%

79%

94.2%

96.5%

96.5%

SVM

90%

89%

84%

96.5%

96.5%

85%

Dataset 5

AT-BRU(Proposed)

96.3%

89%

84%

79%

96.5%

96.5%

MT-CNN

89%

84%

79%

EHGA-DLNN

94.2%

96.5%

96.5%

ML-KNN

90%

89%

84%

SVM

89%

84%

79%

94.2%

96.5%

96.5%

Table 5 presents a comparison between the proposed and existing systems for Dataset 2 ,Dataset 3 ,dataset 4,dataset 5 Dataset 2, which contains chronic kidney disease data, shows that the proposed system achieves an accuracy of 96.1%, precision of 94.2%, recall of 96.5%, specificity of 96.5%, FNR (False Negative Rate) of 3.4%, F1-Score of 95.3%, and .Dataset 3 shows the Alzheimer diseases prediction compares the current systems, including MT-CNN, EHGA-DLNN, ML-KNN, and SVM, with the proposed system, AT-BRU, which achieves an accuracy of 97.1%.

Table 6. Model of the statistical test in the dataset.

Dataset

Friedmanchisquare

Wilcoxon

Statistic

P-Values

Statistic

P-Values

Dataset 1

4.0

0.4060

10.0

0.0625

Dataset 2

4.1

0.5171

10.4

0.2736

Dataset 3

4.23

0.6891

10.6

0.3695

Dataset 4

4.20

0.6728

10.5

0.3294

Dataset 5

4.19

0.6625

10.3

0.3394

The statistical tests in the dataset shown in table 6 are as follows: Dataset 1,dataset 2,dataset 3,datset 3,dataset 4, dataset 5. In dataset 1, the Friedman chi-square statistic is 4.0 with a p-value of 0.4060, and the Wilcoxon statistic is 10.0 with a p-value of 0.0625. In dataset 2, the Friedman chi-square statistic is 4.1 with a p-value of 0.5171.

Table 7. Analysis of the proposed Model with various attack.

Side –Channel Attack

Key Leakage Attack

Unauthorized Access

Replay Attack

Proposed

3.7 ms

0.99

-

-

FHE

13.2 ms

0.94

3.7%

94%

TFHE

11.2 ms

0.95

2.8%

95%

QOSFO-HE

9.7 ms

0.97

1.7%

98%

CKKS

12.4

0.93

2.3%

97%

Table 7 shows that the proposed model outperforms other HE schemes with the fastest side-channel response (3.7 ms), highest key leakage protection (0.99), and complete resistance to unauthorized access and replay attacks. In contrast, other methods are slower and vulnerable to multiple security threats.

  • 4.3.    Discussion

  • 5. Conclusion

The proposed model effectively addresses several critical security threats commonly encountered in IoT-based healthcare systems. Side-channel attacks, which exploit physical information leakage such as timing or power consumption during cryptographic operations, are mitigated by employing the ElGamal encryption scheme with carefully designed operations that minimize data-dependent timing variations, thereby reducing vulnerability to such exploits. Key leakage attacks, often arising from weak or predictable key generation, are countered through the use True Random Number Generator-Pseudo Random Number Generator (TRNG-PRNG) approach, which produces highly unpredictable and robust encryption keys, significantly lowering the risk of key compromise. Additionally, the model safeguards against unauthorized data access whether the external attackers or malicious insiders by encrypting sensitive patient data before storage in the cloud, ensuring that data remains unintelligible without the appropriate keys. Furthermore, to reduce the potential attack surface presented by high-dimensional datasets, the model integrates an optimized Elastic Net dimensionality reduction method that condenses data complexity while preserving critical information. Collectively, these components provide a comprehensive defense mechanism that secures patient healthcare data against a range of sophisticated attacks, all while maintaining high predictive accuracy and operational efficiency in the healthcare environment.

Modern healthcare systems have considerably increases life expectancy by utilizing medications, medical services, and patient health data management. However, issues like as insufficient medical information, avoidable mistakes, data breaches, misdiagnosis, and delayed transmission continue. Computerized medical information systems, such as CDSS, EHR, and DPS, are critical for early detection and decision-making. The significance of clinical decision support systems has grown as a result of medical sensors and IoT. However, IoT-based healthcare systems face security and privacy challenges, as they collect and transmit personal information over open networks. Privacy issues occur as a result of the possible physical, psychological, and financial consequences of disclosing personal information during data gathering and dissemination, necessitating strict data protection measures. Personal information can be effectively protected by encryption-based privacy protection techniques, but they are less appropriate for Internet of Things applications because of their complexity of computation and data functionality. To address the aforementioned problems, an efficient privacy preserving disease prediction system using machine learning algorithms are developed. By employing this, patients can get privacy preserving disease prediction services. Healthcare data were employed as an input here. Initially, input raw data dimensionality was reduced by Elastic Net. The hyper parameters were optimized using the Zebra Optimization Algorithm (ZOA). Reduced data were then encrypted using the ElGamal approach, which generated secret key as TRNG-PRNG encryption. These encrypted data was then stored in the cloud. The Attention Mechanism-Based Bi-directional Gated Recurrent Unit (AT-BiGRU) approach was then employed to predict heart disease. The system's efficiency was compared using performance analysis for both classification and secure data transmission. The ElGamal-TRPRNG performance is initially assessed against existing FHE, TFHE, QOSFO-HE, and CKKS algorithms in terms of encryption time 0.30 seconds and decryption time of 0.12 seconds. The suggested AT-

BiGRU classifier was then validated and compared to various techniques, including MT-CNN, EHGA-DLNN, ML-KNN, and SVM, for both plain and encrypted information. 93.47% accuracy, 93.11% specificity, 6.53% error, 6.88% FNR, 93.12% recall, and 93.45% precision are the outcomes for the suggested encryption model. The results of the experiment show that the recommended approach outperforms current disease prediction techniques and offers superior privacy and security. Future work will focus on creating a privacy-aware model that maintains security features while predicting diseases at minimal computational and communication costs.

All the Declarations and StatementsAuthor Contributions Statement

Bhawana S. Dakhare performed Conceptualization, Methodology, Formal analysis, Data curation, Funding acquisition, Project administration; Resources; Software, Validation; Visualization, Roles/Writing - original draft; Writing.

Lata L. Ragha performed Supervision, Investigation, Writing - Original Draft, Reviewing and Editing.

All authors have read and agreed to the published version of the manuscript.

Conflict of Interest Statement

The authors declared that they have no conflicts of interest to this work. We declare that we do not have any commercial or associative interest that represents a conflict of interest in connection with the work submitted.

Funding Declaration

The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.

Data Availability Statement

Not Applicable.

Ethical Declarations

This article is a completely original work of its authors; it has not been published before and will not be sent to other publications until the journal’s editorial board decides not to accept it for publication.

Acknowledgments

We sincerely thank the experts for their professional evaluation and valuable recommendations, which have contributed to improving the quality of the experiment and the reliability of its results.

Declaration of Generative AI in Scholarly Writing

Not Applicable.

Abbreviations

The following abbreviations are used in this manuscript:

IoT - Internet of Things

IoMT - Internet of Medical Things

DPS - Disease Prediction System

EN - Elastic Net

ZOA - Zebra Optimization Algorithm

TRNG - True Random Number Generator

PRNG - Pseudo Random Number Generator

TRNG-PRNG - True Random Number Generator–Pseudo Random Number Generator

AT-BiGRU - Attention Mechanism based Bi-directional Gated Recurrent Unit

BiGRU - Bi-directional Gated Recurrent Unit

GRU - Gated Recurrent Unit

AES - Advanced Encryption Standard

RSA - Rivest–Shamir–Adleman

ECC - Elliptic Curve Cryptography

RF - Random Forest

KNN - K-Nearest Neighbor

SVM - Support Vector Machine

ANN - Artificial Neural Network

DT - Decision Tree

DBN - Deep Belief Network

ML - Machine Learning

HE - Homomorphic Encryption

CPU - Central Processing Unit

AI - Artificial Intelligence

CNN - Convolutional Neural Network

RNN - Recurrent Neural Network

TP - True Positive

TN - True Negative

FP - False Positive

FN - False Negative