Machine Learning-Enabled Secure Unified Framework for Remote Electrocardiogram Monitoring via a Multi-Level Blockchain System
Abstract
1. Introduction
2. Related Works
2.1. AI-Assisted ECG Monitoring and Classification Within Low-Power Edge Devices
2.2. Blockchain-Based Multi-Layered Security Architectures for Securing and Managing Medical Data
3. System Architecture and Methodological Framework
3.1. ECG Monitoring and Classification
| Algorithm 1: ECG monitoring and classification at patient nodes |
| Input: Raw ECGs from wireless body area sensor network (SRaw(t)) Output: Urgency level of patient (ULevel) Step 1: ECG signal acquisition; SRaw(t) = {s1, s2, s3, … ,sn} SRaw(t) is a vector of sensor readings from each sensor [s1, s2, s3, … ,sn] Step 2: Denoising ECG signals; ŜDenoised(t) = Ω(SRaw(t)) Ω ← Denoising function ŜDenoised(t) ← Denoised ECGs Step 3: ECG feature extraction with function FExtract; F(t) = FExtract (ŜDenoised(t)) F(t) ← {AMR, AMT, AMP, TDR, TDT, TDP, TDRR, HR}; A vector of ECG features AMx ← Amplitudes of R, T, and P waves TDx ← Time durations of R, T, and P waves TDRR ← R peak to R peak interval HR ← Heart rate Step 4: Real-time ECG signal classification; ULevel = CKNN (F(t)) CKNN ← KNN model with a moderate K value CCx ← Colour code U1 ← CCRed & “Life-Threatening” U2 ← CCOrange & “Severe” U3 ← CCYellow & “Moderate” U4 ← CCBlue & “Mild” U5 ← CCGreen & “Normal” |
3.2. Differentiated Communication Strategy (DCS)
| Algorithm 2: Differentiated Communication Strategy |
| Inputs: ULevel, Real-time data (DRT), Patient RSA private key (KPrv) Output: Differentiated and secured data package transmission Step 1: Determine data transmission priority and data volume based on ULevel switch (ULevel) case ‘U1’ DFull = {CCRed, U1, ts(Time stamp), TBC_ID(Target blockchain ID), Wα(ECG segment with U1 anomaly), F(t), PHistory(Patient history), PMedications(Recommended medications), PAllergies(Specific allergies), PLocation(Patient location)} case ‘U2’ DCritical = {CCOrange, U2, ts, TBC_ID, Wβ(ECG segment with U2 anomaly), F(t), PHistory, PMedications, PAllergies, PLocation} case ‘U3’ DStandard = {CCYellow, U3, ts, TBC_ID, Wγ(ECG segment with U3 anomaly), F(t), PAllergies, PLocation} case ‘U4’ DMeta = {CCBlue, U4, F(t), ts, TBC_ID} case ‘U5’ Send data on demand (e.g., for routine checkups) end Step 2: Data encryption using AES-128 bits protocol (ENAES) DEN = ENAES(D); DEN ← Encrypted data Step 3: Generate hash digest (H); H = SHA256(DEN) Step 4: Generate digital signature (S); S = ENRSA(H, KPrv) Step 5: Transmit to MLBN via wireless gateway (WLGate); WLGate (DEN, H, S, TBC_ID) Step 6: If access granted, wait for acknowledgment (ABC) from TBC_ID while ABC = “Further Inquiry” DRT_EN = ENAES(DRT): Encrypt real-time (RT) ECG signals HRT = SHA256(DRT_EN): Generate hash digest SRT = ENRSA(HRT, KPRV_U): Generate digital signature WLGate (DRT_EN, HRT, SRT, TBC): Transmit RT data ABC ← Get new acknowledgment end |
3.3. Multi-Level Blockchain Network (MLBN) Architecture
| Algorithm 3: Cross-Chain Communication Bridge for Exchanging ECG Data between Blockchain Layers in MLBN |
| Step 1: Setting up ECG data package to be transmitted at nth Blockchain (BC) Step 2: Encrypt packaged ECG data using relevant AES encryption key of header account in nth BC Step 3: Generate hash digest Step 4: Create digital signature Step 5: Release secured ECG data package from nth BC to (n + 1)th or (n − 1)th BC Step 6: Activate relevant cross-chain bridge Step6.1: Confirm connectivity between adjacent BCs Step 6.2: Authorize header accounts in both BCs Step 6.3: Continuously monitor for events Step 6.4: Detect patient data packs from nth BC Step 6.5: Securely record data in (n + 1)th or (n − 1)th BC |
Adaptive Security Mechanisms Within the MLBN
- •
- Adaptive Cardiac Authorization Framework
| Algorithm 4: Adaptive Cardiac Authorization Framework |
| Inputs: ULevel, Incoming ECG data package (DR), Digital Signature (S), RSA public key of patient node (KPub) Output: Authenticity of patient node Step 1: Conduct Primary Authorization (PA) HR = SHA256(DR): Generate hash digest SDE = DERSA(S, KPub): Decrypt digital signature (SDE) Step 2: Verify authenticity through PA mechanism HR = SDE → “Authorized from PA” HR ≠ SDE → “Unauthorized from PA” Step 3: Adaptive authentication rules based on ULevel switch (ULevel) case (U1 & U2) PA → True → Immediate Processing (IP) PA → False → Secondary Authorization (SA) SA → Callback Authorization → True → IP & Notify Security Team (NST) case U3 PA → True → Expedite Processing (EP) PA → False → SA → Massage Authorization SA → True → EP → NST case U4 PA → True → Standard Processing case U5 PA → True → Routine Processing end |
- •
- Dynamic Healthcare Stakeholder Permission-Granting Mechanism
| Algorithm 5: Dynamic Healthcare Stakeholder Permission-Granting Mechanism for Cardiovascular Care via MLBN |
| Inputs: ULevel, User information (Ux): [Role (URole), Region (URegion), Permitted action (UAction), Purpose (UPurpose), License type (ULicence), Consent (UConsent)] Output: Priority based accessibility Step 1: Define access control rules (ACR) ACRRole ← {Patient, Physician, Cardiologist, Nurse, Researcher} ACRRegion ← {City, Medical Zone} ACRAction ← {Read, Write, Update, Share} ACRPurpose ← {Classification, Treatment, Checkup, Research} Step 2: Define access control conditions (ACC) ACCLicence ← {True, False}: Medical license/National ID ACCConsent ← {True, False}: Patient consent for treatments Step 3: Standard criterion (SC) for access [(URole∈ ACRRole) ∩ (URegion ∈ ACRRegion) ∩ (UAction ∈ ACRAction) (UPurpose ∈ ACRPurpose) ∩ (ACCLicence: True ∪ ACCConsent: True)] → “Access Granted” Step 4: The dynamic criterions based on patient priority switch (ULevel) case (U1 & U2) Assess → (UConsent & ACCLicence) case U3 Assess → (UConsent, ACCLicence & ACRPurpose) case U4 Assess → (UConsent, ACCLicence, ACRPurpose & ACRRegion) case U5 Assess → SC end |
- •
- Priority-Driven Voting Mechanism
| Algorithm 6: Priority-Driven Voting Mechanism for Efficient ECG Data Processing and Blockchain Updates |
| Inputs: ULevel, Total number of medical stakeholder nodes in a blockchain layer (NT), Required majority voting percentage (M) Output: Medical community agreement Step 1: Define M for each ULevel U1 → M = 10% U2 → M = 20% U3 → M = 30% U4 → M = 40% U5 → M = 50% Step 2: Broadcast patient information to all nodes in nth BC Step 3: Conduct priority-driven voting mechanism for each medical stakeholder node in nth BC: V = V + 1: Increment total votes if node accepts patient data Step 4: Check for majority voting condition ; True → Accept Data, False → Reject Data |
4. Simulation Results and Analysis
4.1. ECG Classification and Differentiated Communication Strategy
4.1.1. Dataset Description
4.1.2. ECG Signal Pre-Processing and Denoising
4.1.3. ECG Feature Extraction
4.2. Simulations for MLBN Architecture and Cross-Chain Communication Bridge
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| CVD | Cardiovascular disease |
| ECG | Electrocardiogram |
| ML | Machine Learning |
| DCS | Differentiated Communication Strategy |
| MLBN | Multi-Level Blockchain Network |
| AI | Artificial Intelligence |
| IoT | Internet of Things |
| IoMT | Internet of Medical Things |
| KNN | K-Nearest Neighbor |
| TinyML | Tiny Machine Learning |
| FPGA | Field-Programmable Gate Array |
| RNN | Recurrent Neural Networks |
| PLCM | Piecewise Linear Chaotic Map |
| IPFS | Interplanetary File System |
| RDA | Random Deoxyribonucleic Acid |
| AES | Advanced Encryption Standard |
| RSA | Rivest Shamir Adleman |
| SHA | Secure Hash Algorithm |
| LBAC | Lattice-Based Access Control |
| EVM | Ethereum Virtual Machine |
| TMIS | Telecare Medical Information Systems |
| OPE | Order-Preserving Encryption |
| WCP | Wireless Communication Protocol |
| NB-IoT | Narrowband IoT |
| ACAF | Adaptive Cardiac Authorization Framework |
References
- Moreno-Sánchez, P.A.; García-Isla, G.; Corino, V.D.; Vehkaoja, A.; Brukamp, K.; Van Gils, M.; Mainardi, L. ECG-based data-driven solutions for diagnosis and prognosis of cardiovascular diseases: A systematic review. Comput. Biol. Med. 2024, 172, 108235. [Google Scholar] [CrossRef] [PubMed]
- Medina-Avelino, J.; Silva-Bustillos, R.; Holgado-Terriza, J.A. Are wearable ECG devices ready for hospital at home application? Sensors 2025, 25, 2982. [Google Scholar] [CrossRef] [PubMed]
- Hannun, A.Y.; Rajpurkar, P.; Haghpanahi, M.; Tison, G.H.; Bourn, C.; Turakhia, M.P.; Ng, A.Y. Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network. Nat. Med. 2019, 25, 65–69. [Google Scholar] [CrossRef] [PubMed]
- Ribeiro, A.H.; Ribeiro, M.H.; Paixão, G.M.; Oliveira, D.M.; Gomes, P.R.; Canazart, J.A.; Ferreira, M.P.; Andersson, C.R.; Macfarlane, P.W.; Meira, W., Jr.; et al. Automatic diagnosis of the 12-lead ECG using a deep neural network. Nat. Commun. 2020, 11, 1760. [Google Scholar] [CrossRef]
- Sahu, M.L.; Atulkar, M.; Ahirwal, M.K.; Ahamad, A. IoT-enabled cloud-based real-time remote ECG monitoring system. J. Med. Eng. Technol. 2021, 45, 473–485. [Google Scholar] [CrossRef]
- Elangovan, D.; Long, C.S.; Bakrin, F.S.; Tan, C.S.; Goh, K.W.; Yeoh, S.F.; Loy, M.J.; Hussain, Z.; Lee, K.S.; Idris, A.C.; et al. The use of blockchain technology in the health care sector: Systematic review. JMIR Med. Inform. 2022, 10, e17278. [Google Scholar] [CrossRef]
- Kiania, K.; Jameii, S.M.; Rahmani, A.M. Blockchain-based privacy and security preserving in electronic health: A systematic review. Multimed. Tools Appl. 2023, 82, 28493–28519. [Google Scholar] [CrossRef]
- Serrano, L.P.; Maita, K.C.; Avila, F.R.; Torres-Guzman, R.A.; Garcia, J.P.; Eldaly, A.S.; Haider, C.R.; Felton, C.L.; Paulson, M.R.; Maniaci, M.J.; et al. Benefits and challenges of remote patient monitoring as perceived by health care practitioners: A systematic review. Perm. J. 2023, 27, 100–111. [Google Scholar] [CrossRef]
- Tagne, J.F.; Burns, K.; O’Brein, T.; Chapman, W.; Cornell, P.; Huckvale, K.; Ameen, I.; Bishop, J.; Buccheri, A.; Reid, J.; et al. Challenges for remote patient monitoring programs in rural and regional areas: A qualitative study. BMC Health Serv. Res. 2025, 25, 374. [Google Scholar] [CrossRef]
- Utsha, U.T.; Morshed, B.I. CardioHelp: A smartphone application for beat-by-beat ECG signal analysis for real-time cardiac disease detection using edge-computing AI classifiers. Smart Health 2024, 31, 100446. [Google Scholar] [CrossRef]
- Sadasivuni, S.; Saha, M.; Bhanushali, S.P.; Banerjee, I.; Sanyal, A. In-sensor artificial intelligence and fusion with electronic medical records for at-home monitoring. IEEE Trans. Biomed. Circuits Syst. 2023, 17, 312–322. [Google Scholar] [CrossRef]
- Kim, E.; Kim, J.; Park, J.; Ko, H.; Kyung, Y. TinyML-based classification in an ECG monitoring embedded system. Comput. Mater. Contin. 2023, 75, 1751–1764. [Google Scholar] [CrossRef]
- Ran, S.; Yang, X.; Liu, M.; Zhang, Y.; Cheng, C.; Zhu, H.; Yuan, Y. Homecare-oriented ECG diagnosis with large-scale deep neural network for continuous monitoring on embedded devices. IEEE Trans. Instrum. Meas. 2022, 71, 2503113. [Google Scholar] [CrossRef]
- Falaschetti, L.; Alessandrini, M.; Biagetti, G.; Crippa, P.; Turchetti, C. ECG-based arrhythmia classification using recurrent neural networks in embedded systems. Procedia Comput. Sci. 2022, 207, 3479–3487. [Google Scholar] [CrossRef]
- Wang, J.; Fan, S.; Alexandridis, A.; Han, K.; Jeon, G.; Zilic, Z.; Pang, Y. A multistage blockchain-based secure and trustworthy smart healthcare system using ECG characteristic. IEEE Internet Things Mag. 2021, 4, 48–58. [Google Scholar] [CrossRef]
- Sanober, A.; Anwar, S. A secure and privacy preserving model for healthcare applications based on blockchain-layered architecture. Int. J. Comput. Appl. 2024, 46, 1206–1218. [Google Scholar] [CrossRef]
- Haritha, T.; Anitha, A. Multi-level security in healthcare by integrating lattice-based access control and blockchain-based smart contracts system. IEEE Access 2023, 11, 114322–114340. [Google Scholar] [CrossRef]
- Ji, Y.; Zhang, J.; Ma, J.; Yang, C.; Yao, X. BMPLS: Blockchain-based multi-level privacy-preserving location sharing scheme for telecare medical information systems. J. Med. Syst. 2018, 42, 147. [Google Scholar] [CrossRef]
- Gaziano, T.A. Cardiovascular diseases worldwide. In Public Health Approach to Cardiovascular Disease Prevention & Management, 1st ed.; CRC Press: Boca Raton, FL, USA, 2022; Volume 1, pp. 8–18. [Google Scholar]
- Dalloul, A.H.; Miramirkhani, F.; Kouhalvandi, L. A review of recent innovations in remote health monitoring. Micromachines 2023, 14, 2157. [Google Scholar] [CrossRef]
- Shaik, T.; Tao, X.; Higgins, N.; Li, L.; Gururajan, R.; Zhou, X.; Acharya, U.R. Remote patient monitoring using artificial intelligence: Current state, applications, and challenges. WIREs Rev. Data Min. Knowl. Discov. 2023, 13, e1485. [Google Scholar] [CrossRef]
- Bhattarai, A.; Peng, D.; Payne, J.; Sharif, H. Adaptive partition of ECG diagnosis between cloud and wearable sensor net using open-loop and closed-loop switch mode. IEEE Access 2022, 10, 63684–63697. [Google Scholar] [CrossRef]
- Meder, B.; Asselbergs, F.W.; Ashley, E. Artificial intelligence to improve cardiovascular population health. Eur. Heart J. 2025, 46, 1907–1916. [Google Scholar] [CrossRef]
- Samaraweera, C.; Peng, D.; Bhattarai, A.; Liu, Y. Poster: Embedded-Based Differentiated Communication for Remote ECG Monitoring with a Multi-Level Blockchain System. In Proceedings of the 2024 33rd International Conference on Computer Communications and Networks (ICCCN), Honolulu, HI, USA, 29–31 July 2024. [Google Scholar]
- Samaraweera, C.; Bhattarai, A.; Peng, D.; Liu, Y.; Wang, H.; Sharif, H. Differentiated communication strategies for remote electrocardiogram monitoring with a multi-level blockchain system. IEEE Internet Things J. 2025, 12, 30507–30517. [Google Scholar] [CrossRef]
- Mendeley Data, ECG Signals (1000 Fragments). Available online: https://data.mendeley.com/datasets/7dybx7wyfn/3 (accessed on 28 February 2026).
- Joglar, J.A.; Chung, M.K.; Armbruster, A.L.; Benjamin, E.J.; Chyou, J.Y.; Cronin, E.M.; Deswal, A.; Eckhardt, L.L.; Goldberger, Z.D.; Gopinathannair, R.; et al. 2023 ACC/AHA/ACCP/HRS guideline for the diagnosis and management of atrial fibrillation: A report of the American College of Cardiology/American Heart Association Joint Committee on Clinical Practice Guidelines. Circulation 2024, 149, e1–e156. [Google Scholar] [CrossRef]
- Nursing CE Central, Emergency Severity Index. Available online: https://nursingcecentral.com/lessons/emergency-severity-index/ (accessed on 28 February 2026).
- Truffle Suite, Ganache Documentation. Available online: https://archive.trufflesuite.com/docs/ganache/ (accessed on 28 February 2026).




















| Urgency Class | Accuracy (%) | Specificity (%) | F1 Score (%) |
|---|---|---|---|
| Life-Threatening (U1) | 91.43 | 94.54 | 80.00 |
| Severe (U2) | 95.71 | 100.00 | 82.35 |
| Moderate (U3) | 94.23 | 94.54 | 87.50 |
| Mild (U4) | 90.00 | 92.72 | 77.42 |
| Normal (U5) | 91.43 | 94.54 | 80.00 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Samaraweera, C.; Peng, D.; Hempel, M.; Sharif, H. Machine Learning-Enabled Secure Unified Framework for Remote Electrocardiogram Monitoring via a Multi-Level Blockchain System. Information 2026, 17, 383. https://doi.org/10.3390/info17040383
Samaraweera C, Peng D, Hempel M, Sharif H. Machine Learning-Enabled Secure Unified Framework for Remote Electrocardiogram Monitoring via a Multi-Level Blockchain System. Information. 2026; 17(4):383. https://doi.org/10.3390/info17040383
Chicago/Turabian StyleSamaraweera, Chathumi, Dongming Peng, Michael Hempel, and Hamid Sharif. 2026. "Machine Learning-Enabled Secure Unified Framework for Remote Electrocardiogram Monitoring via a Multi-Level Blockchain System" Information 17, no. 4: 383. https://doi.org/10.3390/info17040383
APA StyleSamaraweera, C., Peng, D., Hempel, M., & Sharif, H. (2026). Machine Learning-Enabled Secure Unified Framework for Remote Electrocardiogram Monitoring via a Multi-Level Blockchain System. Information, 17(4), 383. https://doi.org/10.3390/info17040383

