Research Article

ENLACE: A Combination of Layer-Based Architecture and Wireless Communication for Emotion Monitoring in Healthcare

Algorithm 1

Algorithm for decision-making of load distribution between layers.
Input: a new block of data D consisting of images or coordinates
(1)while do
(2)  if firstExecution() then
(3)   ;
(4)   ;
(5)   ;
(6)   ;
(7)   ;
(8)   ;
(9)  else
(10)   ;
(11)   ;
(12)   ;
(13)   if then
(14)    ;
(15)    ;
(16)   else if then
(17)    ;
(18)    ;
(19)   else
(20)    ;
(21)    ;
(22)   end
(23)  end
(24)end