Next Article in Journal
A Computational Model for Animal Language Processing: Translating Canine and Feline Behavior into Human-Readable Communication
Previous Article in Journal
DSGCNN-DA: A Deep Stacked Graph Convolutional Neural Network with Dynamic Aggregation for Malware Behavioral Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Heterogeneous Federated Learning Model for Recognizing Human Activity †

by
Nwadher S. Alblihed
and
Dina M. Ibrahim
*
Department of Information Technology, College of Computer, Qassim University, Buraydah 51452, Saudi Arabia
*
Author to whom correspondence should be addressed.
Presented at the 1st International Conference on Emerging Tech & Innovation (ICETI), Buraydah, Saudi Arabia, 10 February 2026.
Comput. Sci. Math. Forum 2026, 13(1), 10; https://doi.org/10.3390/cmsf2026013010
Published: 17 April 2026
(This article belongs to the Proceedings of The 1st International Conference on Emerging Tech & Innovation (ICETI))

Abstract

A range of sensors are used by human activity recognition (HAR) to identify the activities that people complete each day. The recognition of human activities has benefited greatly from machine learning (ML), as it has made many human activities more easily recorded. Unfortunately, a centralized approach is used in many HAR applications, which might compromise user privacy. One must use deep learning (DL) using different algorithms and models to analyze the data generated from ML. Another kind of ML is distributed ML, called federated learning (FL), which tries to distribute ML models across edge devices. Thus, this study presents an FL model to support HAR by building a generic model and using user-based training data without data sharing. Through developing heterogeneous local models, each client takes the most suitable DL model to the client. This study uses three different DL models to develop the local model: Convolutional Neural Network (CNN), Residual Network (ResNet), and Long Short-term Memory (LSTM). Moreover, different numbers of clients are experimented with: two, five, and ten clients. The UniMiB SHAR dataset is used to apply the experiments. As a result, using five clients with three mixed DL models gives the highest Accuracy of 90.8%.

1. Introduction

Human activity recognition (HAR) includes various activities such as walking, running, sitting, standing, sleeping, driving, cooking, and other regular or irregular activities. According to [1], activity recognition is the process of recording and identifying activity using data that has not been processed and is obtained from a variety of sensors, cameras, wearable technologies, mobile devices, and sensors placed in surroundings.
The HAR is a more popular topic because of the availability of sensors, its low cost and energy usage, and advancements in machine learning (ML) techniques and the Internet of Things (IoT) to complement each other. By monitoring, controlling medication, reducing social isolation, and improving nursing productivity, these solutions may enhance technology’s role in the quality of older people’s daily lives [2]. Another essential point is the Department of Economic and Social Affairs of the United Nations’ expectations regarding the worldwide population; in 2020, citizens aged 15 to 64 had a ratio of 7:1, while in the future year of 2050, this will reduce to approximately 4:1 [3].
ML is part of Artificial Intelligence (AI) and is considered one of the methods that may support the processing of HAR data and designing models to facilitate operations between the elderly and care centers. The central approach of ML has multiple HAR applications. Thanks to advanced technology, the concept of distributed ML, which is federated learning (FL), has been extracted. FL is used to train ML with a decentralized approach: collaborating between edge devices during the training process of local data without transferring or capturing personal data. Therefore, this study introduces FL models to decentralize the HAR operations, aiming to assist elderly people in daily life.
With regard to other studies, they have used just one distribution of clients for their federated learning process, and there needs to be a further implementation of the FL approach using different numbers of clients. Therefore, this study applied FL to diverse numbers of clients, namely two, five, and ten.
The University of Milano Bicocca Smartphone-based HAR (UniMiB SHAR) [4] dataset includes subjects of ages suitable for any study on HAR. Additionally, previous studies have used different deep learning models to apply FL approaches, but none have used the Residual Network (ResNet) model. These factors contribute to this study using three deep learning models: Convolutional Neural Network (CNN), ResNet, and Long Short-term Memory (LSTM).
From the previous findings, we can summarize the gaps:
  • Most datasets contain daily activities without fall detection.
  • There is a shortage of previous studies that use different numbers of clients when applying FL.
  • There is a lack of an attempt to utilize heterogeneous FL.
In this paper, we use another method to apply federated learning strategies. The central concept is that each client selects different deep learning model techniques based on Accuracy results, which produces heterogeneous local model clients. To clarify the plan for our work, Figure 1 illustrates a mind map of each of the three categories of the heterogeneous experiment: two, five, and ten clients. Each client has undertaken training and results are introduced by experiments on the deep learning models.
In addition to the current section, the remainder of this study’s sections are divided into: (1) Literature Review, (2) Methodology, (3) Implementation Experiments, (4) Discussion, and the last section (5) Conclusions.

2. Literature Review

2.1. Human Activity Recognition Studies

The use of different machine learning algorithms in the implementation of HAR has increased, including those based on deep learning [5,6]. Deep learning is used to improve the Accuracy of HAR and remove the need for feature extraction work to be performed by humans [7,8,9]. Various studies have benefited from the use of deep learning in HAR applications. These studies have combined a Deep Boltzmann Machine and Multimodals (DBMs) to improve the performance of a HAR task [7,9]. Additionally, to handle background noise in the environment, a Deep Ear [10] model has been proposed to manage the audio sensing functions carried out using DBMs.
Moreover, HAR can be used in different scenarios and in different areas, especially in patients’ lives, for instance, in assisted living [11], ambient intelligence [12,13], and urban mobility management [14]. Specifically, to assess the quality of elderly patients’ environments, ambient sensors can perform behavioral analyses to discover their living patterns [15]. Thus, as it offers management decisions for the efficient healthcare of the elderly, technology that recognizes HAR data is called AAL [16]. For example, a model for smart home activity recognition based on AAL and using four different machine learning methods was proposed in [17]. Ghadi et al. developed an AAL model using two different deep learning classifiers [18].
The key aspects in this area are applying centralized methods, collecting data, and training the model on a central server, which raise privacy issues and require the sharing of user data. Regardless, the models developed using deep learning have improved performances; however, the training process may be insufficient on central devices [19].

2.2. Federated Learning Studies

The distribution of ML via FL began in 2016, where FL was used as an alternative to traditional deep learning techniques [20,21]. FL works through several clients collaborating to learn and train the global model on a cloud server. The server sends the global model to all selected clients, and each client’s model is trained using their local data to update the global model without sharing the clients’ data [21,22]. When taking an average of the clients’ local models to train a global model, the method is called FedAvg, as used in [20,23]. Thus, several studies have benefited from FL, and its use has been demonstrated in the fields of healthcare [24], monitoring [25], and finance [26].
Google was the first to build a large-scale FL platform, allowing tens of millions of users to collaborate in training a next-word prediction model without revealing their data [23]. Moreover, Wu et al. [27] offered a personalized FL model for deployment in smart IoT applications. A distributed FL system was constructed by Khan et al. to build an integer linear optimization [28]. A scheme introduced by Oh et al. [29] was a federated-learning-based communication system efficient at preserving privacy using the MNIST dataset. To solve the issue of restricted datasets, Wang et al. [30] suggested federated transfer learning, which merges FL with transfer learning. Ultimately, the benefits of this approach include its capacity to function on isolated data, its emphasis on data privacy, and its ability to learn customized models [31].

2.3. Human Activity Recognition with Federated Learning Studies

Sozinov et al. [32] evaluated an FL performance model whose central model was trained using HAR. The experiment illustrated an 89% Accuracy using FL and 93% using a centralized method. Likewise, they assessed a CNN model trained using centralized approaches and three different FL algorithms, whereas Sannara et al. evaluated an FL model with semi-supervised learning [33].
FL was applied to person-movement identification by the authors of [34] in order to overcome smart healthcare’s shortcomings. Similar to this, mobile activity monitoring was used in the study [35]. Two more research works have focused on health monitoring: Tran et al. used FL [36] to implement HAR. In contrast, a FedHome model that performs in-home health monitoring was developed by Qiong et al. [37].
The clustering method was used by Presotto et al. [38] to handle non-IID problems. A distributed HAR used the FL approach, which carried out a Federated Aggregate (FA) through implementing clients’ devices as the basis of the infrastructure [39]. Federated Inverse Averaging (FedInAvg) for HAR was developed by [40]. A Graph Neural Network used FL for a HAR (GraFeHTy) algorithm to eliminate unlabeled or noisy data [41].
A wearable device with an FL system (FL4W) was suggested in [42] for classifying human activities. Its methodology had four steps. First, it registered a wearable device to enter it into collaborative learning. Second, the global model was broadcast to all clients’ wearable devices. Third, the local model was trained on a physical workout. Finally, the global model was aggregated using the FedAvg algorithm. The authors used the Daily and Sports Activities (DSA) dataset, which contains data collected from eight subjects and ten daily sports activities using a motion sensor. As a result, their model achieved a 95% accurate result, a satisfactory result, but not truly sufficient given the limited number of subjects in the dataset.
Chenglin et al. developed a federated repreparation learning framework that was meta-trained on embedding networks using a federated approach. Their work aimed to generate a personalized HAR model for every user based on each user’s activities (Meta-HAR). To predict user activities, the signal from the embedding network’s repreparation participated in developing a personalized classification network. Thus, they trained a single model on a range of related learning tasks with a limited number of samples. Afterward, this model could handle each user’s other tasks as separate tasks, solving the activity recognition problem. The model was trained on two different datasets. The first was Heterogeneous Human Activity Recognition (HHAR), which contained nine subjects completing six activities: standing, sitting, walking, going up stairs, going down stairs, and biking. The other dataset was USC-HAD, which included 14 subjects completing the same activities as the HHAR dataset but, instead of biking, it used running.
On the other hand, the FedHAR model suggested by Bettini et al. was a combination of FL and semi-supervised approaches to HAR. For illustrative purposes, active learning with label propagation was used to categorize the sensor’s unlabeled data. The FedHAR model used transfer learning techniques to personalize the global model for each user. It used two public datasets. The first one, MobiAct, contained 60 subjects and covered sitting, standing, walking, jogging, and jumping activities. The second one was the WISDM dataset, which contained 36 subjects completing five activities which were the same as the activities in MobiAct but, instead of jumping, it used taking stairs. The FedHAR model was evaluated with and without active learning and label propagation. As a result, we can observe that the recognition rate of human activities was improved by a small number of labels being assigned to both datasets by users. Compared with the FedAvg and FedHealth methods of FL, which are based on completely labeled data, the FedHAR model was better than FedAvg for just the WISDM dataset, performing with an F1-score of 87.5%, whereas FedHealth outperformed it by 3% on both datasets [43]. The work was distinguished and presented many techniques; however, the study results were not analyzed in sufficient depth.

3. Methodology

This study is based on a methodology designed to eliminate the implementation shortcomings of the FL approach to HAR and achieve the objectives. It includes six phases: (1) global model construction, (2) data preparation, (3) building local models, (4) aggregating and averaging local models, (5) updating and distributing global models, and (6) communication results.
The methodology features heterogeneous local models for each client; each local model has a distinct color from the rest, as demonstrated in Figure 2. In this study, each client is trained and tested on different models.

Communication Results

A large percentage of studies on FL use two well-known performance metrics, Accuracy and the Loss function, to evaluate the proposed model’s performance. Thus, we will use these two metrics to evaluate our proposed model. The method for calculating Accuracy is given in Equation (1), while the Loss function is derived from an equation in FedAvg, as shown in Equations (2) and (3), where T denotes True, F indicates False, P means Positive, and N means Negative.
A c c u r a c y = ( T P + T N ) ( T P + T N + F P + F N )
max w F ( w ) , where F ( w ) = k = 1 m n k n F k ( w )
where the Loss function is
F k ( w ) = 1 n k i D k f i ( w )

4. Implementation Experiments

4.1. The Dataset Chosen

The University of Milano Bicocca Smartphone-based HAR (UniMiB SHAR) [4] is the dataset selected for this study, and it will be used to train the FL model. The Samsung Galaxy Nexus I9250 smartphone’s 3D accelerometer is used to collect 11,700 acceleration samples for the dataset. Thirty subjects are sampled; six are male and 24 are female, with ages ranging from eighteen to sixty.

4.2. The Models Chosen

4.2.1. CNN

The CNN model, which is trained using two dimensions, has three layers. We employed the 2D convolution layer. BatchNorm2d was used to achieve the normalization technique between the layers. Furthermore, ReLU, a non-linear activation function commonly used in multilayer neural networks, was applied to the CNN model.

4.2.2. ResNet

The basic block has two layers of 3x3 convolution: the first layer has Conv2d, BatchNorm2d, and ReLU, while the second layer only has Conv2d and BatchNorm2d.

4.2.3. LSTM

Due to the UniMib SHAR dataset, the data form was an array. We used the 512-neuron LSTM model to train the data.

4.3. Training and Evaluation with Two Heterogeneous Clients

We concluded that the mixing process introduced a higher average, and the results were based on Accuracy. As the Accuracy of the models mattered more in the study than the Loss function, we took the best results based on the Accuracy outcomes of each experiment and then mixed the local models of the two clients. After many experiments were conducted on the mixing processes, the better combination of the two clients is described in the below sections.

4.4. Results for Training and Evaluation with Two Heterogeneous Clients

The central theme of our work was heterogeneous. Therefore, the experiment that achieved the best results for each client was accepted individually. As ResNet attained better results than the others in this experiment, the CNN model for the first client achieved results that were more useful than those for the second client. Thus, the local model that was accepted for the first client was CNN, while the model accepted for the second client was ResNet. Table 1 presents the outcomes for the first client using CNN and those of the second client using ResNet.
In another way, Figure 3 reveals the Loss function for the heterogeneous experiment with two clients. The Accuracy of the experiment is provided in Figure 4.
  • Averaging and Updating
To obtain the average values for the heterogeneous experiment, the results were divided by 2. The average Loss was 0.7912, but the average Accuracy was 0.8251. Table 2 presents the significant outcomes and the average results. The process of updating the global model was based on the averages of Loss and Accuracy.

4.5. Training and Evaluation with Five Heterogeneous Clients

The models developed using two clients’ experiences were used to experiment with five heterogeneous clients. We selected these models based on the best Accuracy for each client. For example, the LSTM achieved the best outcomes with the third client, the ResNet with the second and fourth clients, and the CNN with the first and fifth clients.

4.6. Results for Training and Evaluation with Five Heterogeneous Clients

The different local models used in this experiment were CNN for the first client, ResNet for the second client, LSTM for the third client, ResNet for the fourth client, and CNN for the fifth client. Table 3 presents the results for each model separately.
To better visualize the results, Figure 5 shows the line charts for the Loss functions of the five local models of different clients constructed using different deep learning model techniques. Likewise, Figure 6 presents the line charts for the Accuracy measure.
  • Averaging and Updating
The heterogeneous experiment with five clients implemented more than two deep learning models; thus, summing and division in this experiment were totally different from those in the experiment using a single-type deep learning model. Table 4 presents the average Loss and Accuracy. The average Loss was 0.3940, whereas the average Accuracy was 0.9080. These results were used to update the next global model.

4.7. Training and Evaluation with Ten Heterogeneous Clients

The method for selecting the model techniques was the same as that described in the previous sections. We conducted experiments with 10 heterogeneous clients, where the distribution of the local 10 client models was as follows:
  • LSTM for the first client.
  • CNN for the second client.
  • ResNet for the third client.
  • CNN for the fourth client.
  • ResNet for the fifth client.
  • LSTM for the sixth client.
  • CNN for the seventh client.
  • ResNet for the eighth client.
  • ResNet for the ninth client.
  • ResNet for the tenth client.
To summarize, based on the previous sections, we had three local client models using CNN, five client models applying the ResNet model, and two client models using the LSTM model.

4.8. Ten Heterogeneous Client Results for Training and Evaluation

For more details of the results, Table 5 and Table 6 display the experiment’s outcomes. The number of times that a deep learning model technique was repeated depended on the most reliable results; therefore, ResNet was the most commonly repeated.
The line charts for the Loss function and Accuracy results of the 10 heterogeneous clients are presented in Figure 7 and Figure 8, respectively.
  • Averaging and Updating
The estimated Loss and Accuracy are shown in Table 7. The average Accuracy was 0.8965, and the average Loss was 0.4352. Furthermore, these average results were used to update the subsequent global model.

5. Discussion

Different mixtures of the deep learning models were used in the subsequent heterogeneous case. After examining the results of the various experiments with various numbers of clients, we selected the best combination of models for each experiment based on the acceptable Accuracy results for the local models. Consequently, the experiment with two clients that merged the CNN and ResNet models obtained an Accuracy of 82.51%. In addition, we were able to merge more than two models with five and ten clients. Therefore, we merged the CNN, ResNet, and LSTM models by taking the best results from each. The experiment with five clients acquired an Accuracy of 90.8%, while the experiment with 10 clients attained an Accuracy of 89.65%. We observed that the experiment with five clients again achieved good results in the heterogeneous case.
Consequently, the FL process was based on the clients’ data and developed the appropriate local model for each client individually. Because the process was heterogeneous, it became more flexible to choose the appropriate deep learning model for each local model based on local data. Thus, it introduced a flexible platform for the FL process.

6. Conclusions

With the FL’s mixed approach, we used heterogeneous local models by mixing three deep learning modes: CNN, ResNet, and LSTM. Thus, a distinct experiment was introduced via three different numbers of clients: two, five, and ten. The five clients achieved the best results compared to the others with 90.8%, followed by ten with 89.65%. The last result was recorded in two clients that mixed CNN and ResNet, with 82.51%. Based on our current understanding, the heterogeneous case for the local model can be the first experiment used according to previous works.

Author Contributions

Conceptualization, N.S.A. and D.M.I.; Methodology, N.S.A.; Software, N.S.A.; Validation, N.S.A.; Formal analysis, N.S.A.; Investigation, N.S.A.; Resources, N.S.A.; Writing—original draft preparation, N.S.A.; Writing—review and editing, D.M.I. and N.S.A.; Visualization, N.S.A. and D.M.I.; Supervision, D.M.I.; Project administration, D.M.I.; All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The following URL provides access to the dataset used in this study: UniMiB SHAR, available at http://www.sal.disco.unimib.it/technologies/unimib-shar/ (accessed on 12 November 2025).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yang, J.; Lee, J.; Choi, J. Activity recognition based on RFID object usage for smart mobile devices. J. Comput. Sci. Technol. 2011, 26, 239–246. [Google Scholar] [CrossRef]
  2. Maskeliūnas, R.; Damaševičius, R.; Segal, S. A review of internet of things technologies for ambient assisted living environments. Future Internet 2019, 11, 259. [Google Scholar] [CrossRef]
  3. World Population Prospects 2019: Highlights. Available online: https://www.un.org/development/desa/publications/world-population-prospects-2019-highlights.html (accessed on 6 November 2025).
  4. UniMiB SHAR. Available online: http://www.sal.disco.unimib.it/technologies/unimib-shar/ (accessed on 30 April 2025).
  5. Stisen, A.; Blunck, H.; Bhattacharya, S.; Prentow, T.S.; Kjærgaard, M.B.; Dey, A.; Sonne, T.; Jensen, M.M. Smart devices are different: Assessing and mitigatingmobile sensing heterogeneities for activity recognition. In Proceedings of the 13th ACM Conference on Embedded Networked Sensor Systems; ACM: New York, NY, USA, 2015; pp. 127–140. [Google Scholar]
  6. Jiang, W.; Miao, C.; Ma, F.; Yao, S.; Wang, Y.; Yuan, Y.; Xue, H.; Song, C.; Ma, X.; Koutsonikolas, D.; et al. Towards environment independent device free human activity recognition. In Proceedings of the 24th Annual International Conference on Mobile Computing and Networking; ACM: New York, NY, USA, 2018. [Google Scholar]
  7. Bhattacharya, S.; Lane, N.D. From smart to deep: Robust activity recognition on smartwatches using deep learning. In 2016 IEEE International Conference on Pervasive Computing and Communication Workshops (PerCom Workshops); IEEE: New York, NY, USA, 2016; pp. 1–6. [Google Scholar]
  8. Khan, M.A.A.H.; Roy, N.; Misra, A. AScaling human activity recognition via deep learning-based domain adaptation. In 2018 IEEE International Conference on Pervasive Computing and Communications (PerCom); IEEE: New York, NY, USA, 2018; pp. 1–9. [Google Scholar]
  9. Radu, V.; Lane, N.D.; Bhattacharya, S.; Mascolo, C.; Marina, M.K.; Kawsar, F. Towards multimodal deep learning for activity recognition on mobile devices. In Proceedings of the 2016 ACM International Joint Conference on Pervasive and Ubiquitous Computing: Adjunct; ACM: New York, NY, USA, 2016; pp. 185–188. [Google Scholar]
  10. Lane, N.D.; Georgiev, P.; Qendro, L. Deepear: Robust smartphone audio sensing in unconstrained acoustic environments using deep learning. In Proceedings of the 2015 ACM International Joint Conference on Pervasive and Ubiquitous Computing; ACM: New York, NY, USA, 2015; pp. 283–294. [Google Scholar]
  11. Gupta, N.; Gupta, S.K.; Pathak, R.K.; Jain, V.; Rashidi, P.; Suri, J.S. Human activity recognition in artificial intelligence framework: A narrative review. Artif. Intell. Rev. 2022, 55, 4755–4808. [Google Scholar] [CrossRef] [PubMed]
  12. Gaglio, S.; Re, G.L.; Morana, M.; Ruocco, C. Smart assistance for students and people living in a campus. In 2019 IEEE International Conference on Smart Computing (SMARTCOMP); IEEE: New York, NY, USA, 2019; pp. 132–137. [Google Scholar]
  13. Concone, F.; De Paola, A.; Re, G.L.; Morana, M. Twitter analysis for real-time malware discovery. In 2017 AEIT International Annual Conference; IEEE: New York, NY, USA, 2017; pp. 1–6. [Google Scholar]
  14. Bordonaro, A.; Concone, F.; De Paola, A.; Re, G.L.; Das, S.K. Modeling efficient and effective communications in vanet through population protocols. In 2021 IEEE International Conference on Smart Computing (SMARTCOMP); IEEE: New York, NY, USA, 2021; pp. 305–310. [Google Scholar]
  15. Garcia-Constantino, M.; Konios, A.; Mustafa, M.A.; Nugent, C.; Morrison, G. Ambient and wearable sensor fusion for abnormal behaviour detection in activities of daily living. In 2020 IEEE International Conference on Pervasive Computing and Communications Workshops (PerCom Workshops); IEEE: New York, NY, USA, 2020; pp. 1–6. [Google Scholar]
  16. Syed, L.; Jabeen, S.; Alsaeedi, A. Smart healthcare framework for ambient assisted living using IoMT and big data analytics techniques. Future Gener. Comput. Syst. 2019, 101, 136–151. [Google Scholar] [CrossRef]
  17. Rajamohan, K.; Nazz, S. Smart home activity recognition for Ambient Assisted Living (AAL). Ecs Trans. 2022, 107, 20253. [Google Scholar] [CrossRef]
  18. Ghadi, Y.Y.; Batool, M.; Gochoo, M.; Alsuhibany, S.A.; Al Shloul, T.; Jalal, A.; Park, J. Improving the ambient intelligence living using deep learning classifier. Comput. Mater. Contin. 2022, 73, 1037–1053. [Google Scholar] [CrossRef]
  19. Lee, S.; Nirjon, S. Fast and scalable in-memory deep multitask learning via neural weight virtualization. In Proceedings of the 18th International Conference on Mobile Systems, Applications, and Services; ACM: New York, NY, USA, 2020; pp. 175–190. [Google Scholar]
  20. Jaggi, M.; Smith, V.; Takác, M.; Terhorst, J.; Krishnan, S.; Hofmann, T.; Jordan, M.I. Communication-efficient distributed dual coordinate ascent. arXiv 2014, arXiv:1409.1458. [Google Scholar] [CrossRef]
  21. Yang, Q.; Liu, Y.; Chen, T.; Tong, Y. Federated machine learning: Concept and applications. ACM Trans. Intell. Syst. Technol. (TIST) 2019, 10, 1–19. [Google Scholar] [CrossRef]
  22. McMahan, B.; Moore, E.; Ramage, D.; Hampson, S.; y Arcas, B.A. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and Statistics; PMLR: Cambridge, MA, USA, 2017; pp. 1273–1282. [Google Scholar]
  23. Bonawitz, K.; Eichner, H.; Grieskamp, W.; Huba, D.; Ingerman, A.; Ivanov, V.; Kiddon, C.; Konečný, J.; Mazzocchi, S.; McMahan, B.; et al. Towards federated learning at scale: System design. Proc. Mach. Learn. Syst. 2019, 1, 374–388. [Google Scholar]
  24. Xu, J.; Glicksberg, B.S.; Su, C.; Walker, P.; Bian, J.; Wang, F. Federated learning for healthcare informatics. J. Healthc. Inform. Res. 2021, 5, 1–19. [Google Scholar] [CrossRef] [PubMed]
  25. Agate, V.; Concone, F.; Ferraro, P. A resilient smart architecture for road surface condition monitoring. In Proceedings of the International Conference on Smart City Applications; Springer International Publishing: Cham, Switzerland, 2021; pp. 199–209. [Google Scholar]
  26. Abdallah, A.; Maarof, M.A.; Zainal, A. Fraud detection system: A survey. J. Netw. Comput. Appl. 2016, 68, 90–113. [Google Scholar] [CrossRef]
  27. Wu, Q.; He, K.; Chen, X. Personalized federated learning for intelligent IoT applications: A cloud-edge based framework. IEEE Open. J. Comput. Soc. 2020, 1, 35–44. [Google Scholar] [CrossRef] [PubMed]
  28. Khan, L.U.; Alsenwi, M.; Yaqoob, I.; Imran, M.; Han, Z.; Hong, C.S. Resource optimized federated learning-enabled cognitive internet of things for smart industries. IEEE Access 2020, 8, 168854–168864. [Google Scholar] [CrossRef]
  29. Oh, S.; Park, J.; Jeong, E.; Kim, H.; Bennis, M.; Kim, S.L. Mix2FLD: Downlink federated learning after uplink federated distillation with two-way mixup. IEEE Commun. Lett. 2020, 24, 2211–2215. [Google Scholar] [CrossRef]
  30. Kevin, I.; Wang, K.; Zhou, X.; Liang, W.; Yan, Z.; She, J. Federated transfer learning based cross-domain prediction for smart manufacturing. IEEE Trans. Ind. Inform. 2021, 18, 4088–4096. [Google Scholar]
  31. Kirsten, K.; Pfitzner, B.; Löper, L.; Arnrich, B. Sensor-based obsessive-compulsive disorder detection with personalised federated learning. In 2021 20th IEEE International Conference on Machine Learning and Applications (ICMLA); IEEE: New York, NY, USA, 2021; pp. 333–339. [Google Scholar]
  32. Sozinov, K.; Vlassov, V.; Girdzijauskas, S. Human activity recognition using federated learning. In 2018 IEEE Intl Conf on Parallel & Distributed Processing with Applications, Ubiquitous Computing & Communications, Big Data & Cloud Computing, Social Computing & Networking, Sustainable Computing & Communications (ISPA/IUCC/BDCloud/SocialCom/SustainCom); IEEE: New York, NY, USA, 2018; pp. 1103–1111. [Google Scholar]
  33. Ek, S.; Rombourg, R.; Portet, F.; Lalanda, P. Federated self-supervised learning in heterogeneous settings: Limits of a baseline approach on har. In 2022 IEEE International Conference on Pervasive Computing and Communications Workshops and other Affiliated Events (PerCom Workshops); IEEE: New York, NY, USA, 2022; pp. 557–562. [Google Scholar]
  34. Arikumar, K.S.; Prathiba, S.B.; Alazab, M.; Gadekallu, T.R.; Pandya, S.; Khan, J.M.; Moorthy, R.S. FL-PMI: Federated learning-based person movement identification through wearable devices in smart healthcare systems. Sensors 2022, 22, 1377. [Google Scholar] [CrossRef] [PubMed]
  35. Gudur, G.K.; Perepu, S.K. Federated learning with heterogeneous labels and models for mobile activity monitoring. arXiv 2020, arXiv:2012.02539. [Google Scholar] [CrossRef]
  36. Khoa, T.A.; Nguyen, D.V.; Dao, M.S.; Zettsu, K. Fed xData: A federated learning framework for enabling contextual health monitoring in a cloud-edge network. In 2021 IEEE International Conference on Big Data (Big Data); IEEE: New York, NY, USA, 2021; pp. 4979–4988. [Google Scholar]
  37. Wu, Q.; Chen, X.; Zhou, Z.; Zhang, J. Fedhome: Cloud-edge based personalized federated learning for in-home health monitoring. IEEE Trans. Mob. Comput. 2020, 21, 2818–2832. [Google Scholar] [CrossRef]
  38. Presotto, R.; Civitarese, G.; Bettini, C. Fedclar: Federated clustering for personalized sensor-based human activity recognition. In 2022 IEEE international conference on pervasive computing and communications (PerCom); IEEE: New York, NY, USA, 2022; pp. 227–236. [Google Scholar]
  39. Concone, F.; Ferdico, C.; Re, G.L.; Morana, M. A federated learning approach for distributed human activity recognition. In 2022 IEEE International Conference on Smart Computing (SMARTCOMP); IEEE: New York, NY, USA, 2022; pp. 269–274. [Google Scholar]
  40. Kumar, A.S. Federated Inverse Averaging: Toward Pareto-Optimal Minima in Human Activity Recognition; North Carolina State University: Raleigh, NC, USA, 2021. [Google Scholar]
  41. Sarkar, A.; Sen, T.; Roy, A.K. Grafehty: Graph neural network using federated learning for human activity recognition. In 2021 20th IEEE International Conference on Machine Learning and Applications (ICMLA); IEEE: New York, NY, USA, 2021; pp. 1124–1129. [Google Scholar]
  42. He, X.; Su, X.; Chen, Y.; Hui, P. Federated learning on wearable devices: Demo abstract. In Proceedings of the 18th Conference on Embedded Networked Sensor Systems; ACM: New York, NY, USA, 2020; pp. 613–614. [Google Scholar]
  43. Bettini, C.; Civitarese, G.; Presotto, R. Personalized semi-supervised federated learning for human activity recognition. arXiv 2021, arXiv:2104.08094. [Google Scholar] [CrossRef]
Figure 1. A mind map illustrating the distribution of experiments in this study.
Figure 1. A mind map illustrating the distribution of experiments in this study.
Csmf 13 00010 g001
Figure 2. The six phases of the heterogeneous methodology.
Figure 2. The six phases of the heterogeneous methodology.
Csmf 13 00010 g002
Figure 3. Loss function of the experiment with two heterogeneous clients with a fixed batch size and different epochs.
Figure 3. Loss function of the experiment with two heterogeneous clients with a fixed batch size and different epochs.
Csmf 13 00010 g003
Figure 4. Accuracy of the experiment with two heterogeneous clients with a fixed batch size and different epochs.
Figure 4. Accuracy of the experiment with two heterogeneous clients with a fixed batch size and different epochs.
Csmf 13 00010 g004
Figure 5. Loss function of the experiment with five heterogeneous clients with a fixed batch size and different epochs.
Figure 5. Loss function of the experiment with five heterogeneous clients with a fixed batch size and different epochs.
Csmf 13 00010 g005
Figure 6. Accuracy of the experiment with five heterogeneous clients with a fixed batch size and different epochs.
Figure 6. Accuracy of the experiment with five heterogeneous clients with a fixed batch size and different epochs.
Csmf 13 00010 g006
Figure 7. Loss function of the experiment with 10 heterogeneous clients with a fixed batch size and different epochs.
Figure 7. Loss function of the experiment with 10 heterogeneous clients with a fixed batch size and different epochs.
Csmf 13 00010 g007
Figure 8. Accuracy of the experiment with 10 heterogeneous clients with a fixed batch size and different epochs.
Figure 8. Accuracy of the experiment with 10 heterogeneous clients with a fixed batch size and different epochs.
Csmf 13 00010 g008
Table 1. The results of the experiment with two heterogeneous clients.
Table 1. The results of the experiment with two heterogeneous clients.
First ClientSecond Client
CNNResNet
EpochBatchLossAccLossAcc
50641.07260.88260.99510.8855
1280.92520.87720.86040.8775
2560.91480.87470.86080.8651
5120.82320.88060.75940.8716
100641.21360.88610.93260.8875
1281.030.87771.10030.882
2560.90880.87770.88030.8726
5120.86030.87520.77390.8711
150641.08290.88160.89810.8914
1281.00520.87520.88940.8726
2560.92530.87770.86140.8731
5120.82310.87070.81860.8691
200641.18650.87671.05280.8775
1280.97230.87371.01830.882
2560.95180.87620.84750.8632
5120.85020.87520.79310.8681
250641.19770.88560.91380.8845
1280.99690.88310.94590.8731
2561.03320.87770.90120.8716
5120.82780.87870.84350.8726
Table 2. The main results of the experiment with two heterogeneous clients.
Table 2. The main results of the experiment with two heterogeneous clients.
Low
Loss
High
Acc
Avg
Loss
Avg
Acc
First Client
CNN
0.82310.88610.79120.8251
Second Client
ResNet
0.75940.8914
Table 3. The results of the experiment with five heterogeneous clients.
Table 3. The results of the experiment with five heterogeneous clients.
First ClientSecond ClientThird ClientFourth ClientFifth Client
CNNResNetLSTMResNetCNN
EpochBatchLossAccLossAccLossAccLossAccLossAcc
50640.59150.90450.70660.9020.39880.87591.01990.89450.66890.897
1280.59540.89950.59390.91070.57860.76050.71520.90820.52960.9144
2560.41130.91440.70990.89330.62780.78040.78670.89330.48440.8995
5120.40420.89580.57620.89210.73930.75680.52870.91190.41880.9032
100640.69510.91940.75260.91690.40830.87341.020.91810.68450.8908
1280.76080.89080.72950.90070.96930.78660.64680.90940.63940.8983
2560.49910.89330.66760.90320.72770.7730.36140.92430.53170.9181
5120.52020.88590.62260.90820.66880.7630.64250.90320.49390.8945
150640.62260.90690.56580.91810.91070.82260.740.9280.81760.8983
1280.61820.89210.66630.91070.81890.75430.61740.90820.61940.897
2560.60310.90570.6740.88460.68560.78780.67830.90940.71590.9256
5120.42580.9020.61020.88210.67130.76430.59720.8970.50120.9057
200640.63010.91070.70610.90320.84320.83370.68320.90690.71410.8896
1280.54470.91690.76190.91940.96540.78910.68770.91190.6470.902
2560.59010.88340.43720.92430.65790.78540.6350.91560.63540.897
5120.43380.90690.50760.90820.65650.7730.54550.90320.53620.8871
250640.81840.90820.91420.91191.10540.80890.8220.91440.68550.902
1280.62270.91810.75650.89951.02340.77420.63990.92430.72390.8883
2560.68990.88460.3870.92560.53240.79160.48940.91070.48840.9045
5120.43540.90070.43140.91810.70640.76180.41390.92560.51290.8945
Table 4. The main results of the experiment with five heterogeneous clients.
Table 4. The main results of the experiment with five heterogeneous clients.
Low
Loss
High
Acc
Avg
Loss
Avg
Acc
First Client CNN0.40420.91940.39400.9080
Second Client ResNet0.3870.8914
Third Client LSTM0.39880.8759
Fourth Client ResNet0.36140.928
Fifth Client CNN0.41880.9256
Table 5. The results of the experiment with 10 heterogeneous clients, part 1.
Table 5. The results of the experiment with 10 heterogeneous clients, part 1.
First ClientSecond ClientThird ClientFourth ClientFifth Client
LSTMCNNResNetCNNResNet
EpochBatchLossAccLossAccLossAccLossAccLossAcc
50640.53580.78661.17710.88350.8760.91560.90870.90071.26080.9007
1280.2880.88090.93730.8771.2820.89080.95190.89081.17520.8933
2560.3480.80150.85740.8780.80160.89080.77810.90820.88720.8908
5120.33940.84370.78790.87650.63110.90320.60110.90070.7060.8859
100640.49420.83871.26890.87851.02490.90320.87730.89331.6250.9132
1280.39060.82881.00680.87851.42480.89830.77610.90071.15340.8983
2560.3160.83870.81530.8850.97240.87340.73390.89830.73050.9032
5120.34060.85110.74690.86960.63630.90070.62440.90820.63780.9007
150640.36940.83621.24810.87951.66560.90070.9470.91070.85260.9032
1280.31260.85110.89810.87561.57960.92310.68980.89830.8030.9032
2560.28320.85860.89190.87211.02970.89830.630.92560.79940.9082
5120.28810.85360.77290.87210.7280.89580.63770.90070.67470.8983
200640.32070.84121.05030.88150.96760.88090.92270.91561.18230.8933
1280.2740.8610.99690.8820.86340.88831.00950.90571.10190.9007
2560.30170.84860.81810.8830.73790.89080.6470.91810.89990.866
5120.28920.85610.79830.87510.70780.89830.62850.89330.77010.8958
250640.47050.83620.9960.88151.58370.89580.8230.90571.32720.9206
1280.32730.8661.0010.88051.06050.90820.73510.88590.70610.9032
2560.34970.84620.8630.87410.80390.89830.65140.89080.7580.9032
5120.28240.8610.78120.86710.68630.89330.62740.89830.65430.8883
Table 6. The results of the experiment with 10 heterogeneous clients, part 2.
Table 6. The results of the experiment with 10 heterogeneous clients, part 2.
Sixth ClientSeventh ClientEighth ClientNinth ClientTenth Client
LSTMCNNResNetCNNResNet
EpochBatchLossAccLossAccLossAccLossAccLossAcc
50640.27230.82630.79650.90321.08610.89331.17070.90070.90040.9057
1280.24070.85360.68830.91071.70580.88591.30390.87591.30140.9007
2560.35370.83620.74790.8711.01090.84120.9090.89831.19250.8164
5120.30970.85860.65650.90070.69390.90320.64670.90820.7190.8908
100640.32650.87840.90840.89830.94280.91561.14730.89331.14950.8933
1280.35520.82130.94350.89581.17570.89830.99440.91810.96170.8933
2560.34320.83870.64240.89080.73770.90320.8310.91070.85390.9057
5120.31360.85610.64440.90320.76390.89830.70280.90070.70150.8958
150640.32750.85110.94470.89831.04060.91561.27620.89581.33620.9007
1280.30490.83620.92550.91320.94430.88830.79330.90071.55040.8958
2560.32320.84120.61730.90570.86210.89830.88620.90070.89310.8983
5120.34250.84120.66040.89580.67640.91320.75230.89580.76680.8983
200640.42710.84120.88850.89331.51310.92061.11070.88340.92050.9007
1280.36760.85110.99670.90820.94050.88591.4260.90071.29570.9057
2560.40640.82380.60070.89830.96540.90570.91660.89080.8430.8983
5120.28980.85610.66450.89580.71420.89330.70530.90820.75120.8933
250640.48460.83370.66450.89580.87690.90821.15920.91321.49280.9007
1280.30140.83370.9960.88831.38260.89330.69340.88831.130.9181
2560.28480.85610.74990.90070.65010.91070.65420.91070.83990.8983
5120.31510.85110.69260.90070.72430.89580.73260.88340.68750.8958
Table 7. The main results of the experiment with 10 heterogeneous clients.
Table 7. The main results of the experiment with 10 heterogeneous clients.
Low
Loss
High
Acc
Avg
Loss
Avg
Acc
First Client LSTM0.2740.88090.43520.8965
Second Client CNN0.50840.9206
Third Client ResNet0.63110.9231
Fourth Client CNN0.60110.9256
Fifth Client ResNet0.63780.9206
Sixth Client LSTM0.24070.8784
Seventh Client CNN0.60070.9132
Eighth Client ResNet0.28990.866
Ninth Client ResNet0.27550.8685
Tenth Client ResNet0.29290.8685
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alblihed, N.S.; Ibrahim, D.M. Heterogeneous Federated Learning Model for Recognizing Human Activity. Comput. Sci. Math. Forum 2026, 13, 10. https://doi.org/10.3390/cmsf2026013010

AMA Style

Alblihed NS, Ibrahim DM. Heterogeneous Federated Learning Model for Recognizing Human Activity. Computer Sciences & Mathematics Forum. 2026; 13(1):10. https://doi.org/10.3390/cmsf2026013010

Chicago/Turabian Style

Alblihed, Nwadher S., and Dina M. Ibrahim. 2026. "Heterogeneous Federated Learning Model for Recognizing Human Activity" Computer Sciences & Mathematics Forum 13, no. 1: 10. https://doi.org/10.3390/cmsf2026013010

APA Style

Alblihed, N. S., & Ibrahim, D. M. (2026). Heterogeneous Federated Learning Model for Recognizing Human Activity. Computer Sciences & Mathematics Forum, 13(1), 10. https://doi.org/10.3390/cmsf2026013010

Article Metrics

Back to TopTop