|
Algorithm 1 Prediction algorithm |
Input: AccelerometerData () in CSV file
Output: prediction of true or false of a fall
ms
for all in
do
Compute , , ,
Write to CSV file
end for
Initialize the prediction interval (i.e., which data sample in the CVS file to start the prediction)
traditionModel = the trained NB or SVM fall detection model
for all in
do
= traditionalModel.classifyInstance()
if () then
++
else if () then
else
end if
end for
return
|