Skip to main content
. 2018 Nov 12;18(11):3894. doi: 10.3390/s18113894
Algorithm 2 Confusion Mechanism Decode Algorithm (CMA-D)
Require: Encoded user information
Ensure: User information
  Split coding information in order, which as ID,sex,
age^,f^(hobby),f^(occupation),Lo,La,sensingdata,Time
Keya=(α,β);
Keyh=(μ,ν);
Keyo=(μ,ν);
  Matrix P-1 and matrix Q-1;
if sex = 01 then
   sex←man;
else
   Data does not exist;
end if
if sex = 02 then
   sex←woman;
else
   Data does not exist;
end if
Lo=Lo×Q-1, La=La×P-1;
age(age^-β)÷α;
fun(hobby)=λ×(f^(hobby)-ν)mod(26);
fun(occupation)=γ×(f^(occupation)-ν)mod(26);