REVIEW 4 major objections 5 minor 1 cited by
Federated Isolation Forest for Efficient Anomaly Detection on Edge IoT Systems
T0 review · 4 major / 5 minor · reviewed 2026-08-07 · deepseek-v4-flash
Pith's one-line read A federated isolation forest detects edge temperature anomalies with AUC-ROC 0.9996 while training in 153 KB of memory.
desk verdict PFLiForest is a genuine, honest port of FLiForest to MicroPython with real memory and AUC measurements, but the unspecified split aggregation and threshold-on-test-set leave the headline numbers softer than they look. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The load-bearing mechanism is layer-by-layer federated tree construction with averaged split aggregation. Instead of aggregating whole trees, each client privately computes its own candidate split values on the local partition, and the server aggregates them by averaging and broadcasts the single global split value; clients then partition their local data with that value and proceed to the next layer, with a queue-based iterative build and phase synchronization keeping all nodes at the same tree depth. Inference uses the standard isolation forest anomaly score $s(x,n)=2^{-E(h(x))/c(n)}$, with $c(n)=2(\ln(n-1)+0.577)-2(n-1)/n$, averaged over the forest.
What would settle it
Train the baseline iForest on exactly the same 200 temperature values used for point E and compare its AUC-PR with PFLiForest's 0.9728; if the matched-data iForest clearly beats the federated model, the claim that federation preserves detection quality fails. A second check is to run PFLiForest with two clients holding disjoint temperature ranges (e.g., 0–10°C and 30–40°C) and inspect whether the averaged split placed at the boundary misclassifies one client's normal range as anomalous.
Extended reading notes
Core claim
The central claim is that the layer-by-layer federated training protocol preserves enough of the isolation forest signal to be deployable on edge hardware. In PFLiForest, the client callback (Algorithm 3) computes candidate split points on private local data; the server callback (Algorithm 4) filters out resting clients and returns the average of the remaining clients' split values; clients then split their local partitions at that shared value and enqueue the children, continuing until depth or data-purity limits are reached and a phase-synchronization signal ends the tree. The resulting forest is evaluated on synthetic test sets built from real temperature readings with 10% injected anomalies. At the chosen operating point E (max_depth=6, num_trees=25, training data 200), PFLiForest obtains AUC-ROC 0.9996 and AUC-PR 0.9728 using about 153 KB during training, and at the F1-optimal threshold 0.8265 it reports 99.17% precision, 99.8% recall, and a false positive rate below 0.1%. Against the baseline iForest run with larger training sets, the federated model has lower AUC-PR but converges toward the baseline as model size grows, which the paper attributes to the privacy-preserving federated setting.
Load-bearing premise
The load-bearing premise is that averaging the split values computed independently by clients yields a single global isolation tree whose anomaly scores remain as reliable as a tree built on all data together.
Editorial extensions
If this is right
- The selected model fits in the 256 KB RAM of the target Raspberry Pi Pico, using 153 KB during training.
- Raw sensor readings never leave a client; only numeric split values are shared, so the scheme upholds federated privacy while still producing a shared model.
- The unsupervised, threshold-based inference means a deployed device can be retrained on new temperature conditions without labeled anomalies.
- At the F1-optimal threshold, 99.17% precision and 99.8% recall imply false alarms below 0.1%, a rate acceptable for safety and cold-chain monitoring.
Reading between the lines
- A testable extension: run the protocol with non-IID client temperature distributions (one sensor in a cold room, one near a heat source) and measure whether averaged splits drift from the globally optimal thresholds; the paper does not report how data is partitioned across clients.
- The paper attributes the iForest performance gap to each client seeing less data, but it does not isolate the averaging operator's contribution; a matched-data comparison would show how much of the gap is federation cost versus data quantity.
- Because the construction is layer-by-layer and communicates only scalars, it should transfer to other univariate telemetry, such as vibration amplitude or current draw, with the same memory footprint.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper presents PFLiForest, a specialization of the FLiForest federated isolation forest algorithm for the PTB-FLA/MPT-FLA frameworks, aimed at temperature anomaly detection on resource-constrained IoT devices. Tree construction is iterative and layer-by-layer: clients compute split values from their private data and the server aggregates them by averaging (Algorithms 1-4). The authors evaluate PFLiForest on a synthetic temperature dataset built by adding Gaussian noise and random anomalies to real sensor data, measuring AUC-ROC, AUC-PR, memory usage, and training time across four parameter configurations (points A-D). They then select point E=(6,25,200) as satisfying the 160 KB memory constraint and report AUC-ROC 0.9996 and AUC-PR 0.9728 at E, with 99.17% precision and 99.8% recall at a threshold chosen on the same test set. A comparison with centralized iForest is also reported, using doubled training-data sizes for iForest.
Significance. If the approach is valid, the contribution is a concrete demonstration that a federated isolation forest can run on MicroPython-class devices with a small memory footprint, which is practically useful for privacy-preserving IoT anomaly detection. The paper provides clear pseudocode for the PTB-FLA integration, measures memory and execution time, and acknowledges communication cost and performance trade-offs in the conclusion. However, the central algorithmic operation, averaging client-computed split values, is neither fully specified nor validated, and the evaluation protocol has selection-on-test-set issues; the high reported numbers should be read as upper bounds until these are addressed.
major comments (4)
- [II.B, Algorithms 3 and 4] The core aggregation step is not defined and not validated. Algorithm 3 (line 6) delegates split computation to client_process_layer(privateData), which is never specified in the paper, and Algorithm 4 (line 12) returns server_aggregate_layer(clientSplits), which the text describes only as 'averaging their values.' Since every split in every tree is the result of this average, the whole model depends on an operation whose statistical properties are unknown. In particular, iForest's anomaly score s(x,n) in Eq. (1) and the normalization c(n) in Eq. (2) are derived under a random-split process over the feature range of a single data set; averaging per-client random splits does not preserve that process when client feature ranges differ, since the averaged root split can fall between two clients' normal ranges, routing each client's data into different branches and separating clients rather than isolating anomalies. Please specify client_process_layer precisely, and provide either a formal argument or an empirical ablation showing that the averaged tree yields path-length distributions comparable to those of a centralized iForest trained on the concatenated data with the same total sample size and tree parameters.
- [III.A and III.C.3] All headline performance numbers are computed on the same test set that was used to select the threshold and the operating point. Section III.A states that a new synthetic testing dataset is generated from the original data with Gaussian noise plus 10% random anomalies; Section III.C.3 states that the anomaly threshold 0.8265 was 'chosen by picking a value on the precision-recall curve where an F1-Score was the highest' on that evaluation set. In addition, point E is selected via Eq. (8) as the configuration maximizing AUC-ROC and AUC-PR under the memory bound, again using the same test data. Consequently, the reported AUC-ROC 0.9996, AUC-PR 0.9728, precision 99.17%, and recall 99.8% are optimistically biased, and the 40 repeats are used only to produce averages without standard deviations or confidence intervals. Please split the data into training/validation/test, select the threshold and point E on the validation set, and report mean and standard deviation over the 40 repeats on the test set.
- [III.C.4] The iForest comparison is not matched in training-data size. PFLiForest points A-D use training sizes (50, 100, 150, 200), while the corresponding iForest points A'-D' use (100, 200, 300, 400). Thus the statement that the lower AUC-PR 'stems from its federated nature' confounds federated aggregation with having only half the training data; a centralized iForest trained with 50-200 samples would likely show a similar gap. Please compare PFLiForest and iForest at equal total training sample sizes and equal per-tree parameters, or at least include an iForest trained on the same per-client partitions to isolate the effect of federation.
- [III.A and III.C.1] The paper is inconsistent about what 'memory usage' means. Section III.A says 'maximum memory usage while training' was recorded, but Section III.C.1 and Fig. 3 equate memory usage with 'model size,' and point E is said to use 153 kB 'of memory for training.' If only the serialized isolation forest is measured, then the abstract's claim of 'maintaining a memory usage below 160 KB during model training' is unsupported, because the training process also needs the PTB-FLA runtime, communication buffers, queues, and the MicroPython interpreter. Please clarify the measurement methodology and, if the 153 kB figure is only the model size, either report end-to-end memory usage or qualify the claim accordingly.
minor comments (5)
- [III.A vs III.C] Section III.A lists max_depth values {4,6,8,10,12} and num_trees values {10,25,50,75,100}, but Section III.C's parameter list omits 12 and 100; please reconcile the two lists.
- [Abstract] The abstract claims 'over 96% accuracy in distinguishing normal from abnormal readings,' but the experimental section reports AUC-ROC, precision, and recall rather than classification accuracy; please align the terminology with the reported metrics.
- [References] Reference [10] contains a duplicated phrase and URL: 'https://doi.org/10.25949/25286269.v1Li, J., ...' appears twice in the same entry and should be cleaned up.
- [III.B] There are several typos in the metrics section, including 'clasified' in Eq. (6), 'positives samples' after Eq. (3), and 'cal lback' in Section II; please proofread the manuscript.
- [III.C.4] The AUC-ROC values are omitted from Fig. 5 with the explanation that they are 'nearly identical' for both algorithms, but no numeric support is given; please report the actual AUC-ROC values for points A-D and A'-D' in a table or appendix.
Circularity Check
No significant circularity: PFLiForest is an experimental application/evaluation paper whose performance numbers are measured, not derived from fitted parameters or self-citation chains.
full rationale
The paper does not claim to derive a novel algorithm from first principles; it presents PFLiForest as a PTB-FLA-based specialization of the externally cited FLiForest algorithm and reports experimental measurements of AUC-ROC, AUC-PR, memory, and time. The anomaly score formulas (Eqs. 1–2) are the standard Isolation Forest equations from Liu et al. (2008), an independent external source, and no paper equation is defined in terms of another result such that a claim reduces to its own input. The threshold value 0.8265 is chosen on the test set's precision-recall curve, which is an evaluation-protocol issue that can inflate reported precision/recall, but it is explicitly disclosed and the headline AUC-ROC and AUC-PR metrics are threshold-independent. The self-citations to PTB-FLA, MPT-FLA, CSP verification, and the development paradigm support the implementation framework but are not load-bearing for the central performance claim, which rests on 40-run experiments and a comparison against a standard iForest baseline. The unspecified client_process_layer is a missing implementation detail and a threat to reproducibility, but not a circular reduction. Even the selection of point E via Eq. (8) is a model-selection procedure on measured memory and AUC values, not a fitted quantity being renamed as a prediction. Under the stated rules requiring a quotable reduction, the paper contains no significant circularity.
Assumptions & free parameters
free parameters (4)
- num_trees =
10, 25, 50, 75, 100
- max_depth =
4, 6, 8, 10, 12
- training_data_size =
50, 100, 150, 200
- anomaly_threshold =
0.8265
assumptions (4)
- standard math The standard isolation forest anomaly score (Eq. 1-2) is valid for anomaly detection.
- ad hoc to paper Averaging client-computed split values yields a globally valid isolation tree.
- domain assumption The synthetic test set, generated by adding Gaussian noise and random anomalies to the original temperature data, provides a valid evaluation of anomaly detection.
- domain assumption PTB-FLA's fl_centralized correctly implements the federated communication protocol.
Cite this review
Pith. "Pith review of Federated Isolation Forest for Efficient Anomaly Detection on Edge IoT Systems." pith.science (2026). https://pith.science/paper/T6JR6X5K
@misc{pith2026250605138,
author = {Pith},
title = {Pith review of: Federated Isolation Forest for Efficient Anomaly Detection on Edge IoT Systems},
year = {2026},
howpublished = {\url{https://pith.science/paper/T6JR6X5K}},
note = {Machine review of arXiv:2506.05138}
}
read the original abstract
Recently, federated learning frameworks such as Python TestBed for Federated Learning Algorithms and MicroPython TestBed for Federated Learning Algorithms have emerged to tackle user privacy concerns and efficiency in embedded systems. Even more recently, an efficient federated anomaly detection algorithm, FLiForest, based on Isolation Forests has been developed, offering a low-resource, unsupervised method well-suited for edge deployment and continuous learning. In this paper, we present an application of Isolation Forest-based temperature anomaly detection, developed using the previously mentioned federated learning frameworks, aimed at small edge devices and IoT systems running MicroPython. The system has been experimentally evaluated, achieving over 96% accuracy in distinguishing normal from abnormal readings and above 78% precision in detecting anomalies across all tested configurations, while maintaining a memory usage below 160 KB during model training. These results highlight its suitability for resource-constrained environments and edge systems, while upholding federated learning principles of data privacy and collaborative learning.
Figures
Figures from the paper (1 more)
Forward citations
Cited by 1 Pith paper
-
EcoDefender: Energy-Efficient Hybrid Anomaly Detection for IoT Edge Gateways
A hybrid autoencoder-isolation-forest IoT edge detector reports 94% accuracy with low overhead and carbon accounting, but its key formulas and energy/carbon numbers are internally inconsistent.
Reference graph
Works this paper leans on
-
[1]
https://www.project -tardis.eu/, 2023 (accessed 1 February 2024)
TaRDIS: Trustworthy and Resilient Decentralised Intelligence For Edge Systems. https://www.project -tardis.eu/, 2023 (accessed 1 February 2024)
work page 2023
-
[2]
Communication-Efficient Learning of Deep Networks from Decentralized Data,
H.B. McMahan, E. Moore, D. Ramage, S. Hampson, B. A. y Arcas, “Communication-Efficient Learning of Deep Networks from Decentralized Data,” in Proc. of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS), JMLR: W&CP volume 54, pp. 1-10, 2017
work page 2017
-
[3]
M. Popovic, M. Popovic, I. Kastelan, M. Djukic, and S. Ghilezan, A Simple Python Testbed for Federated Learning Algorithms, 2023, in: Proceedings of the 2023 Zooming Innovation in Consumer Technologies Conference, 2023, pp. 148 -153, https://doi.org/10.1109/ZINC58345.2023.10173859
arXiv 2023
-
[4]
MicroPython Testbed for Federated Learning Algorithms,
M. Popovic, M. Popovic, I. Kastelan, M. Djukic, I. Basicevic and P. Vasiljevic, "MicroPython Testbed for Federated Learning Algorithms," 2024 32nd Telecommunications Forum (TELFOR), Belgrade, Serbia, 2024, pp. 1 -4, doi: 10.1109/TELFOR63250.2024.10819071
arXiv 2024
-
[5]
I. Prokić, S. Ghilezan, S. Kašterović, M. Popovic, M. Popovic, I. Kaštelan, Correct orchestration of Federated Learning generic algorithms: formalisation and verification in CSP, in: J. Kofron, T. Margaria, C. Seceleanu (Eds.), Engineering of ComputerBased Systems, Lecture Notes in Computer Science, Vol. 14390, Springer, Cham, 2024, pp. 274 –288, https://...
-
[6]
M. Popovic, M. Popovic, I. Kastelan, M. Djukic, and I. Basicevic, A Federated Learning Algorithms Development Paradigm, in: J. Kofron, T. Margaria, C. Seceleanu (Eds.), Engineering of Computer -Based Systems, Lecture Notes in Computer Science, Vol. 14390, S pringer, Cham, 2024, pp. 26 –41, https://doi.org/10.1007/978 -3-031- 49252- 5_4
doi:10.1007/978 2024
-
[7]
F. T. Liu, K. M. Ting and Z. -H. Zhou, "Isolation Forest," 2008 Eighth IEEE International Conference on Data Mining, Pisa, Italy, 2008, pp. 413-422, doi: 10.1109/ICDM.2008.17
-
[8]
Leveraging an Isolation Forest to Anomaly Detection and Data Clustering,
Yepmo, V., Smits, G., Lesot, M. -J., & Pivert, O., "Leveraging an Isolation Forest to Anomaly Detection and Data Clustering," Data & Knowledge Engineering, vol. 151, no. C, pp. 102302, May 2024. [Online]. Available: https://doi.org/10.1016/j.datak.2024.102302
arXiv 2024
Show all 11 references
-
[9]
Layered isolation forest: A multi-level subspace algorithm for improving isolation forest,
Liu, T., Zhou, Z., & Yang, L., "Layered isolation forest: A multi-level subspace algorithm for improving isolation forest," Neurocomputing, vol. 581, no. C, pp. 127525, May 2024. [Online]. Available: https://doi.org/10.1016/j.neucom.2024.127525
2024
-
[10]
Federated anomaly detection with Isolation Forest in the IoT network,
Li, J., "Federated anomaly detection with Isolation Forest in the IoT network," Ph.D. thesis, Macquarie Univ., 2024. [Online]. Available: https://doi.org/10.25949/25286269.v1Li, J., "Federated anomaly detection with Isolation Forest in the IoT network," Ph .D. thesis, Macquari...
2024 doi
-
[11]
Xiang, H., Zhang, X., Xu, X., Beheshti, A., Qi, L., Hong, Y., & Dou, W. (2024). Federated learning-based anomaly detection with isolation forest in the IoT -edge continuum. ACM Transactions on Multimedia Computing, Communications, and Applications, Just Acc epted. https://doi....
2024 doi
Reviewed August 7, 2026 · model on record in the stance chip above.
Discussion (0). Sign in to comment.