|
Algorithm 1: Long-lie Identification |
-
1:
if Status == “Fall” then
-
2:
Count Fall_current_time
-
3:
-
4:
if Fall_current_time ≥ LongLie_Time_Threshold then
-
5:
Longlie_Detected ⇐ True
-
6:
if Body_ort_change > 15% then
-
7:
LongLie_Current_time
-
8:
Longlie_Detected ⇐ False
-
9:
Status ⇐ “Moving”
-
10:
end if
-
11:
end if
-
12:
else
-
13:
LongLie_Current_time
-
14:
Fall_current_time
-
15:
Longlie_Detected ⇐ False
-
16:
end if
|