Skip to main content
. 2024 Sep 14;26(9):787. doi: 10.3390/e26090787
Algorithm 1 Modulation and Encryption of ECG Signal
Input Biomedical signal ECG, Chaotic signal cS, Modulation order M
Output Modulated signal mS
  •   1:

    procedure Preprocess_Encrypt_Signal

  •   2:

        def M=n-QAM

  •   3:

        eSECG+cS                                                                                                             ▹ ECG signal combined with chaotic signal

  •   4:

        sN[]                                                                        ▹ Initialize the normalized signal array according to the n-QAM order

  •   5:

        for each eSi in eS do

  •   6:

            sNeSimin(eS)max(eS)min(eS)

  •   7:

        end for

  •   8:

        return sN

  •   9:

        sD[]                                                                                                                               ▹ Initialize the discretized signal array

  • 10:

       for each sNi in sN do

  • 11:

            sDfloor(sNi·(M1)2)                                                                      ▹ Signal rounding and conversion to complex signal

  • 12:

        end for

  • 13:

        return sD

  • 14:

        ECG_ds ← {real(sD), imag(sD)}                                                                                                    ▹ Decomposition of the signal

  • 15:

        mSn-QAM(ECG_ds,M)                                               ▹ Modulation of the encrypted signal based on the n-QAM order

  • 16:

        return mS

  • 17:

    end procedure