|
Algorithm 1 Federated learning framework for stress detection |
-
1:
(WESAD dataset)
-
2:
(SMOTE and Normalization)
-
3:
function global model upgrade
-
4:
weight initialization
-
5:
for () to T do
-
6:
for () to C do
-
7:
= local model upgrade(ci,)
-
8:
*
-
9:
function local model upgrade (ci, )
-
10:
for () to
do
-
11:
for () do
-
12:
-
13:
return
w
|