1 Introduction
2 Real-Time Patient Monitoring Concept
2.1 Use Case Scenario
2.2 Service and Swarm Architecture
2.3 Message Queue Mechanism
2.4 RabbitMQ Security
3 Proof-of-Concept: Patient ECG Monitoring
3.1 Learning Model Deployment for ECG
model_state_dict.pth
file, marking the training phase’s completion. This structured approach not only converts raw medical data into actionable insights but also underscores the potential of such models in precise and timely cardiovascular diagnoses. This model’s training was conducted utilizing ECG data sourced from Kaggle. While the accuracy achieved as depicted in Fig. 7 did not reach perfection, primarily due to the limited volume of data, the results are indicative of the model’s potential. With a more substantial and varied dataset, it is anticipated that the model’s accuracy would improve significantly. This prospect underscores the feasibility of integrating such a model into our three-tier architecture, where it could be fine-tuned and then deployed to broadcast its insights to the necessary channels within the system.
3.2 Technical Specifications
Services | Hardware | Build layer and scripts |
---|---|---|
ADB Container | Raspberry Pi 4 (Local Edge) | Alpine, Custom Scripts |
Publisher Container | Python 3.8 slim, Custom Scripts | |
RabbitMQ Container | Official RabbitMQ Image | |
Consumer Container | Ubuntu x64 VM (VM1 at MEC) | Python 3.8 slim, Custom Scripts |
Normalizer Container | ||
ML Model Container | Python 3.8 slim, Trained .pth | |
Publisher Container | Python 3.8 slim, Custom Scripts | |
Consumer Container | Ubuntu x64 VM (VM2 at Cloud) | Python 3.8 slim, Custom Scripts |
MySQL Container | Official MySQL Image | |
Grafana Container | Official Grafana Image |
3.3 Nanoservice Deployment
Container | Original Size | Bare Metal | Multi-Stage Build |
---|---|---|---|
adb_container | 13.5 MB | 153 MB | 23 MB |
publisher-image | 111 MB | 251 MB | 108 MB |
consumer-image (MEC) | 134 MB | 328 MB | 123 MB |
consumer-image (Cloud) | 136 MB | 323 MB | 118 MB |
normalizer-image | 263 MB | 422 MB | 213 MB |
ML-model-image | 5.09 GB | 5.6 GB | 2.98 GB |
3.4 Data Storage and Visualization
4 Evaluation Results
4.1 Resource Utilization
4.2 Computational Energy Consumption
4.3 Communication Latency
4.4 Other Delay Components
KPI | RPi (Local Edge) | VM1 (MEC) | VM2 (Cloud) |
---|---|---|---|
Latency (ms) | 10–30 | 5–15 | 15–25 |
Setup Delay (s) | 30–60 | 20–40 | 20–40 |
Runtime Delay (ms) | 100–300 | 50–200 | 50–200 |
Computational Delay (ms) | 200–500 | 100–400 | 100–400 |
CPU Usage (%) | 40–70 | 30–60 | 30–60 |
Memory Usage (%) | 60–90 | 70–90 | 70–90 |
Disk Usage (GB) | 0.5–2 | 1–3 | 1–3 |
Network Throughput (Mbps) | 10–50 | 50–100 | 50–100 |
Energy Consumption (W) | 3–5 | 10–15 | 10–15 |