Smart Adaptive IoT Medical Air Bed with Automated Pressure and Temperature Mapping

Team I.V.I.S — 3rd-Year Embedded IoT Group Project

Department of Computer Engineering, Faculty of Engineering, University of Peradeniya
September 2026

Department University Batch Repository)


Team


Table of Contents

  1. Introduction
  2. Solution Architecture
  3. Hardware and Software Designs
  4. Safety Features & Emergency Controls
  5. Implementation Plan
  6. Testing
  7. Detailed Budget
  8. Conclusion
  9. Links

Introduction

Background & Clinical Challenge

Pressure ulcers (commonly known as bedsores or decubitus ulcers) represent one of the most debilitating and costly complications experienced by elderly, paralyzed, post-operative, and chronically bedridden patients. When a patient remains in a fixed position for extended periods, localized mechanical pressure over bony prominences—such as the sacrum, heels, hips, and shoulder blades—exceeds capillary blood pressure (typically 32 mmHg). This continuous load compresses capillaries, obstructs microvascular blood flow, and causes localized tissue ischemia and cellular necrosis.

Furthermore, trapped cutaneous body heat combined with perspiration elevates tissue metabolic demand while softening epidermal layers (maceration), dramatically accelerating the rate of skin breakdown.

+-----------------------------------------------------------------------------------+
|                            Bedsore Causation Cycle                                |
|                                                                                   |
|  [ Prolonged Immobility ]  -->  [ Continuous Local Pressure (> 32 mmHg) ]         |
|                                                     |                             |
|                                                     v                             |
|  [ Trapped Body Heat & Moisture ] --> [ Microvascular Blood Flow Cutoff ]         |
|                 |                                   |                             |
|                 v                                   v                             |
|  [ Accelerated Skin Maceration ]  -->  [ Tissue Ischemia & Ulcer Formation ]      |
+-----------------------------------------------------------------------------------+

Limitations of Existing Alternatives

  1. Standard Alternating Pressure Mattresses: Available consumer and hospital air mattresses operate purely on dumb, fixed-time duty cycles (e.g., alternating rows every 10–15 minutes). They possess no sensory awareness of patient posture, localized pressure hot-spots, or cutaneous heat build-up.
  2. Commercial Smart Beds: High-end clinical ICU beds with pressure mapping exist in the global market, but their astronomical cost (ranging from $10,000 to $40,000) places them entirely out of reach for developing healthcare systems, regional hospitals, and home-care settings.
  3. Manual Caregiver Turning: Clinical guidelines recommend manually repositioning bedridden patients every two hours. However, severe nursing staff shortages cause missed turns, chronic caregiver fatigue, and inconsistent patient outcomes.

Our Solution: Team I.V.I.S

Team I.V.I.S is engineering an affordable, intelligent, closed-loop medical air bed overlay that integrates real-time pressure distribution and temperature mapping with dynamic pneumatic chamber regulation. By continuously monitoring patient touchpoints across critical vulnerability zones, our system relieves pressure points autonomously, dissipates heat, and transmits live telemetry to an interactive caregiver dashboard.


Solution Architecture

The I.V.I.S system adopts a modular, 3-tier IoT architecture integrating sensory acquisition, intelligent edge actuation, and wireless cloud telemetry.

+-----------------------------------------------------------------------------------+
| 1. SENSOR MATRIX TIER (Mattress Overlay)                                          |
|    - High-density Force Sensitive Resistor (FSR) Grid Array                       |
|    - Zoned Digital Temperature Sensor Network                                     |
|    - Target Zones: Head, Torso / Scapulae, Sacrum / Pelvis, Lower Limbs / Heels   |
+------------------------------------------+----------------------------------------+
                                           | Multi-Channel ADC / Multiplexed Bus
                                           v
+-----------------------------------------------------------------------------------+
| 2. SMART EMBEDDED CONTROL & ACTUATION TIER                                        |
|    - Central Microcontroller (ESP32 Edge Gateway)                                 |
|    - Real-Time Calibration & Moving-Average Filtering                             |
|    - Adaptive Zoned Pressure-Relief Algorithm                                     |
|    - Pneumatic Driver: 12V DC Compressor Pump + Solenoid Valve Manifold           |
|    - Safety Locks: Power-Loss Air Retention & Emergency CPR Hardening Mode        |
+-------------------+---------------------------------------+-----------------------+
                    |                                       |
     Pneumatic Air  |                                       | Wi-Fi (MQTT / HTTP)
     Distribution   v                                       v
+---------------------------------------+   +---------------------------------------+
| Multi-Chamber Inflatable Mattress     |   | 3. LIVE MONITORING & TELEMETRY TIER   |
| - Independent Anatomical Bladders     |   | - Caregiver Web/Mobile Dashboard      |
| - Rapid Inflate / Deflate Venting     |   | - Real-time Pressure & Heat Heatmaps  |
| - Automatic Pressure Equalization     |   | - High-Risk Patient Inactivity Alerts |
+---------------------------------------+   +---------------------------------------+

System Workflow

  1. Continuous Sensory Scanning: The multiplexed sensor matrix scans localized pressure and temperature values across the mattress overlay at predetermined intervals.
  2. Edge Matrix Processing: The microcontroller aggregates readings, converts analog resistance variations into pressure equivalents, and compares values against safe clinical thresholds (e.g., sustained pressure > 30 mmHg or temperatures > 36.5 °C).
  3. Closed-Loop Zoned Redistribution: When prolonged pressure or heat accumulation is detected in an anatomical zone (such as the sacrum), the control unit activates the corresponding exhaust valve to reduce chamber pressure while gently increasing pressure in adjacent zones to balance patient support.
  4. Caregiver Telemetry: Live pressure and temperature matrices are packaged into lightweight JSON payloads and streamed via MQTT to the caregiver dashboard for continuous visualization.

Hardware and Software Designs

Hardware Design

The hardware infrastructure is engineered for medical safety, low acoustic noise, and cost efficiency.

+-----------------------------------------------------------------------------------+
|                            Hardware Block Diagram                                 |
|                                                                                   |
|  [ 12V 5A Medical Power Supply ] ---> [ Buck Converters (5V / 3.3V) ]             |
|                                           |                                       |
|  +----------------------------------------+------------------------------------+  |
|  |                                                                             |  |
|  v                                                                             v  |
|  [ ESP32 MCU Node ] <======== [ 16-Ch MUX CD74HC4067 ] <=== [ FSR Matrix Array ]  |
|         |           <======== [ One-Wire Bus ] <=========== [ DS18B20 Temp Array] |
|         |                                                                         |
|         +-------------------+--------------------+                                |
|         | (GPIO)            | (PWM / GPIO)       | (Interrupt Input)              |
|         v                   v                    v                                |
|  [ Relay / MOSFET Driver ]  [ 12V Silent Pump ]  [ Emergency CPR Button ]         |
|         |                                                                         |
|         v                                                                         |
|  [ Solenoid Valve Manifold (Ch 1 - 4) ] ===> [ Multi-Zone Air Bladders ]          |
+-----------------------------------------------------------------------------------+

1. Sensor Matrix Subsystem

2. Pneumatic Actuation & Control


Software Design

The software architecture is divided into embedded firmware and the caregiver interface.

+-----------------------------------------------------------------------------------+
|                            Software Pipeline                                      |
|                                                                                   |
|  [ Sensor Acquisition ]  --> [ Matrix Calibration & Moving Average Filtering ]    |
|                                                     |                             |
|                                                     v                             |
|  [ Telemetry Packaging ] <--- [ Closed-Loop Zoning & Redistribution Algorithm ]   |
|         |                                           |                             |
|         v                                           v                             |
|  [ MQTT over Wi-Fi ]                 [ Valve Actuation & Pump Scheduling ]        |
|         |                                                                         |
|         v                                                                         |
|  [ Caregiver Dashboard: Heatmaps, Graphs, Alarms, Emergency Override Controls ]   |
+-----------------------------------------------------------------------------------+

1. Embedded Firmware (ESP32)

2. Caregiver Live Dashboard


Safety Features & Emergency Controls

Patient safety is the fundamental design criteria of the I.V.I.S bed:

Safety Feature Mechanism & Implementation Clinical Purpose
Power-Loss Air Retention Lock Normally Closed (NC) solenoid valves automatically lock in place if primary power or DC adapter fails. Prevents sudden deflation of the mattress, ensuring the patient remains safely suspended on trapped air until power is restored.
Emergency CPR Fast-Firm Mode Dedicated prominent physical latching emergency button and remote dashboard trigger. Instantly energizes the air pump to 100% duty cycle and opens all inlet valves to make the bed completely rigid within seconds, allowing medical staff to administer CPR chest compressions.
Mechanical Overpressure Relief Calibrated pop-off spring relief valve on the main air rail. Ensures pneumatic lines cannot exceed safe working pressure (120 mmHg) even in the event of firmware faults.
Acoustic Low-Noise Operation Rubber dampening mounts and acoustic enclosure for the pump unit. Preserves patient sleep quality and prevents agitation in clinical wards.

Implementation Plan

A comprehensive 5-month milestone roadmap structured to deliver a fully functional, clinically validated prototype:

Month 1: [ System Architecture & Hardware Sourcing ]
Month 2: [ Sensor Array Assembly & Calibration ]
Month 3: [ Pneumatics & Actuation Assembly ]
Month 4: [ Firmware & Closed-Loop Control ]
Month 5: [ Dashboard Integration & Clinical Testing ]

Testing

A systematic test suite will validate performance across mechanical, electrical, firmware, and telemetry tiers:

+-----------------------------------------------------------------------------------+
|                                 Testing Matrix                                    |
+----------------------+---------------------------------+--------------------------+
| Subsystem            | Test Objective                  | Acceptance Criteria      |
+----------------------+---------------------------------+--------------------------+
| Sensor Matrix        | Weight sensitivity & linearity  | Linear response 0–100 kg |
| Temperature Array    | Accuracy against medical probe  | Error within +/- 0.2 °C  |
| Pneumatics & Valves  | Inflation / Deflation response  | Chamber cycle < 30 s     |
| Fail-Safe Cutout     | Abrupt AC power disconnection   | > 4 hrs air retention    |
| Emergency CPR Mode   | Time to achieve rigid surface   | Rigid bed in < 15 s      |
| IoT Dashboard        | Telemetry latency over Wi-Fi    | Latency < 1.0 second     |
+----------------------+---------------------------------+--------------------------+
  1. Sensor Calibration Testing: Standard known test loads applied across individual FSR cells to calibrate the ADC lookup table and eliminate sensor hysteresis.
  2. Pneumatic Leak & Retention Test: Chambers inflated to maximum operating pressure and monitored over 12 hours to verify zero audible or measurable pressure decay.
  3. Emergency CPR Response Test: Time elapsed from CPR button press to full chamber firmness measured to verify compliance with resuscitation guidelines.
  4. Endurance & Heat Dissipation Testing: Running pump and valve switching continuously over 48 hours to evaluate thermal safety and component reliability.

Detailed Budget

The preliminary estimated bill of materials (BOM) for prototyping the I.V.I.S medical air bed:

Item Component Description Quantity Unit Cost (LKR) Total Cost (LKR)
1 ESP32-WROOM-32 Development Board 1 to be updated to be updated
2 Force Sensitive Resistors (FSR Matrix Cells) 16 to be updated to be updated
3 DS18B20 Waterproof Digital Temperature Sensors 4 to be updated to be updated
4 CD74HC4067 16-Channel Analog Multiplexer Modules 2 to be updated to be updated
5 12V DC Ultra-Quiet Medical Micro Air Pump 1 to be updated to be updated
6 12V Normally Closed (NC) Miniature Solenoid Valves 6 to be updated to be updated
7 8-Channel Relay Module with Optocoupler Isolation 1 to be updated to be updated
8 Multi-Chamber Medical Air Bed Bladder Overlay 1 to be updated to be updated
9 12V 5A Medical Grade Power Adapter & Regulators 1 to be updated to be updated
10 Emergency CPR Latching Switch & Enclosure Hardware 1 to be updated to be updated
11 Silicone Pneumatic Tubing, T-Connectors & Manifold 1 to be updated to be updated
12 Custom PCB Fabrication, Terminal Blocks & Wire Harness 1 to be updated to be updated

Conclusion

Pressure ulcers represent a widespread, painful, and costly healthcare challenge that is entirely preventable with timely pressure relief and microclimate management. While existing solutions are either unaffordable high-end clinical equipment or ineffective timer-based mattresses, Team I.V.I.S bridges this gap by introducing an accessible, IoT-connected smart medical air bed.

By synthesizing real-time pressure mapping, cutaneous thermal tracking, adaptive pneumatic redistribution, and critical emergency safeguards (Power Loss Lock and CPR Fast-Firm Mode), the I.V.I.S bed delivers proactive clinical-grade patient protection at an affordable fabrication cost.