View full-text article in PMC Sensors (Basel). 2025 Feb 9;25(4):1039. doi: 10.3390/s25041039 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 6: FL model testing. Input: GlobalModel: Global Model after FL process TestSet: Preprocessed testing set Output: DetectionRate: metric that used to measure model performance 1 XTest= Features of TestSet 2 YTest= Labels of TestSet 3 PredictedY = Test GlobalModel on XTest 4 Calculate PerformanceMetric based on PredictedY and YTest 5 return PerformanceMetric