Research Article

Smart Care Beds for Elderly Patients with Impaired Mobility

Algorithm 1

The sensing algorithm for fall risk assessment.
At the initial, set the measurement cycle to 60 seconds:
While (true) do
;
The system detects the patient’s body position every second;
If and and then
The patient has gone out of the bed; ;// The system will halt.
Else If and and then
Send the alarm immediately to the caregiver’s smart device;
If then ; Else ; // The min. cycle is set to 5 seconds.
Else If then
If then
Send the warning message to the caregiver’s smart device;
;
Else ;
Else If and then
If then; // The max. cycle is set to 5 minutes.
Else ;
// end of if
;
// end of while;