Manuscript Offprint
arXiv:2609.09433Efficient Leakage-Free Neural Architecture Search under Leave-One-Subject-Out Evaluation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Leave-One-Subject-Out (LOSO) evaluation estimates generalisation performance for subject-based classification but makes Neural Architecture Search (NAS) computationally expensive because a fully nested implementation requires independent architecture searches and, assuming approximately linear training cost, scales as . We propose a leakage-free, block-based approach that shares NAS runs across subjects. On the BioVid Heat Pain dataset, our approach increased the mean accuracy from 82.79% to 83.39% while reducing the number of parameters by up to 99.2%.
1 Method
Automated pain assessment aims to build systems classifying the pain level a subject experiences (Khan et al., 2026). Although deep learning has become standard, architecture design has remained a manual task despite the potential benefits of Neural Architecture Search (NAS) (Ren et al., 2021). We argue that the main reason is the computational cost of NAS in the LOSO setting. NAS has been applied to physiological signals and multimodal fusion (Wu et al., 2023; Duan et al., 2022; Ghebriout et al., 2024), but to our knowledge no previous method has addressed the repeated architecture searches required by subject-wise outer evaluation.
Formally, the accuracy of Leave-One-Subject-Out cross-validation is , where denotes the classification accuracy of a model trained on , which excludes subject , and evaluated on that subject's data . Given subjects, NAS and final model fitting are performed independently for each of the folds using the remaining subjects. To avoid data leakage, no samples of the held-out subject are used during optimisation. Thus, the total runtime is proportional to , assuming . To reduce the number of NAS runs, we divide the subjects into disjoint outer blocks . For each outer block , NAS uses only the training set . To evaluate a proxy for LOSO generalisation, we further split into subject-disjoint inner folds: For each candidate architecture and inner fold , a model is initialised independently, fitted on the other folds, and validated on fold . The selection objective is given as
AutoML 2026 Non-Archival Track
© 2026 the authors, released under CC BY 4.0
Table 1: LOSO accuracies. Standard deviations are shown in parentheses where available. Bold indicates the best overall result, whereas underlining indicates the best result obtained using early fusion.
| Method | Fusion | Accuracy | Method | Fusion | Accuracy |
|---|---|---|---|---|---|
| Farmani et al. (2025) | LF | 87.52% (±11.0) | Steur and Schwenker (2025) | LF | 84.22% (±13.2) |
| Thiam et al. (2025) | LF | 85.32% (±13.7) | Thiam et al. (2019) | EF | 82.79% (±15.2) |
| Jiang et al. (2024) | LF | 84.58% (±13.3) | Werner et al. (2016) | EF | 72.4% |
| Thiam et al. (2019) | LF | 84.40% (±14.4) | Werner et al. (2014) | EF | 77.8% |
| Thiam et al. (2021) | LF | 84.20% (±13.7) | Kächele et al. (2015) | EF | 78.9% |
| Ours (block specific architectures) | EF | 83.39% (±14.4) | |||
where is the mean subject-level validation accuracy of architecture over , is the number of subjects in , is the sample standard deviation of the subject-level accuracies over , and defines a selection score. It rewards mean subject-level accuracy and penalises estimates that exhibit high inter-subject variance controlled by a factor . We used . Algorithm 1 gives a high-level overview.
After the inner folds, we retain the checkpoint with the highest validation score of the architecture found by optimising Eq. 1. The model is then trained for additional epochs using the samples of all 86 non-target subjects, including the former inner-validation subjects and the other members of – subjects in are included in the final fitting, whereas target subject remains completely excluded. Finally, it is evaluated once on the held-out data . The final reported metric is the mean accuracy across all target-subjects. To implement NAS, we use an Optuna study (Akiba et al., 2019) with a tree-structured Parzen estimator on Eq. 1. The implementation is made available at this repo.
We use the early fusion (EF) approach in which the data is combined on a sensor (EDA, EMG, ECG) level, as this is efficient because it does not build separate modality streams unlike in later-or decision-fusion (LF) systems. LF models outperform EF Thiam et al. (2019), which is why current methods focus on LF architectures (e.g., Khan et al. (2026) report a single EF deep learning study). Our method increased the EF baseline from 82.79% to 83.39% while reducing the number of parameters by 76.7% to 99.2% to between 61.4 k and 1.79 M from 7.7 M – see Table 1 for the results.
3 Discussion and Conclusion
We have proposed a method to implement a computationally feasible NAS in the LOSO setting that improved the baseline and substantially reduced the number of parameters, increasing model efficiency. One limitation is the high variance of the architectural components and their parameter counts and how to mitigate this effect. Future research should investigate how to select an architecture for deployment, how the approach performs on the more difficult multiclass classification, whether it also improves LF architectures, and other classification problems under the LOSO setting such as affective computing (Hihn et al., 2016a,b).
References
Akiba, T., Sano, S., Yanase, T., Ohta, T., and Koyama, M. (2019). Optuna: A next-generation hyperparameter optimization framework. In The 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 2623–2631.
Duan, Y., Wang, Z., Li, Y., Tang, J., Wang, Y.-K., and Lin, C.-T. (2022). Cross task neural architecture search for eeg signal classifications. arXiv preprint arXiv:2210.06298.
Farmani, J., Bargshady, G., Gkikas, S., Tsiknakis, M., and Rojas, R. F. (2025). Crossmod-transformer: multi-modal pain detection through eda and ecg fusion. Scientific Reports, 15(1):29467.
Ghebriout, M. I. E., Bouzidi, H., Niar, S., and Ouarnoughi, H. (2024). Harmonic-nas: Hardware-aware multimodal neural architecture search on resource-constrained devices. In Asian Conference on Machine Learning, pages 374–389. PMLR.
Hihn, H., Meudt, S., and Schwenker, F. (2016a). Inferring mental overload based on postural behavior and gestures. In Proceedings of the 2nd Workshop on Emotion Representations and Modelling for Companion Systems, ERM4CT '16, New York, NY, USA. Association for Computing Machinery.
Hihn, H., Meudt, S., and Schwenker, F. (2016b). On gestures and postural behavior as a modality in ensemble methods. In Schwenker, F., Abbas, H. M., El Gayar, N., and Trentin, E., editors, Artificial Neural Networks in Pattern Recognition, pages 312–323, Cham. Springer International Publishing.
Jiang, M., Rosio, R., Salanterä, S., Rahmani, A. M., Liljeberg, P., da Silva, D. S., de Albuquerque, V. H. C., and Wu, W. (2024). Personalized and adaptive neural networks for pain detection from multi-modal physiological features. Expert Systems with Applications, 235:121082.
Kächele, M., Thiam, P., Amirian, M., Werner, P., Walter, S., Schwenker, F., and Palm, G. (2015). Multimodal data fusion for person-independent, continuous estimation of pain intensity. In International Conference on Engineering Applications of Neural Networks, pages 275–285. Springer.
Khan, M. U., Chetty, G., Goecke, R., and Fernandez-Rojas, R. (2026). A systematic review of multimodal signal fusion for acute pain assessment systems. ACM Computing Surveys, 58(2):48:1–48:35.
Ren, P., Xiao, Y., Chang, X., Huang, P.-Y., Li, Z., Chen, X., and Wang, X. (2021). A comprehensive survey of neural architecture search: Challenges and solutions. ACM Computing Surveys (CSUR), 54(4):1–34.
Steur, N. and Schwenker, F. (2025). Multimodal pain recognition based on contrastive adversarial autoencoder pretraining. Machine Learning and Knowledge Extraction, 7:165.
Thiam, P., Bellmann, P., Kestler, H. A., and Schwenker, F. (2019). Exploring deep physiological models for nociceptive pain recognition. Sensors, 19(20):4503.
Thiam, P., Hihn, H., Braun, D. A., Kestler, H. A., and Schwenker, F. (2021). Multi-modal pain intensity assessment based on physiological signals: A deep learning perspective. Frontiers in Physiology, 12:720464.
Thiam, P., Schwenker, F., and Kestler, H. A. (2025). Dealing with class overlap through cluster-based sample weighting. Computers, 14(11):457.
Walter, S., Gruss, S., Ehleiter, H., Tan, J., Traue, H. C., Crawcour, S., Werner, P., Al-Hamadi, A., Andrade, A. O., and da Silva, G. M. (2013). The biovid heat pain database: Data for the advancement and systematic validation of an automated pain recognition system. In 2013 IEEE International Conference on Cybernetics (CYBCO), pages 128–131.
Werner, P., Al-Hamadi, A., Limbrecht-Ecklundt, K., Walter, S., Gruss, S., and Traue, H. C. (2016). Automatic pain assessment with facial activity descriptors. IEEE Transactions on Affective Computing, 8(3):286–299.
Werner, P., Al-Hamadi, A., Niese, R., Walter, S., Gruss, S., and Traue, H. C. (2014). Automatic pain recognition from video and biomedical signals. In 2014 22nd international conference on pattern recognition, pages 4582–4587. IEEE.
Wu, Y., Liu, H., Zhang, D., Zhang, Y., Lou, T., and Zheng, Q. (2023). Autoeer: Automatic eeg-based emotion recognition with neural architecture search. Journal of Neural Engineering, 20(4):046029.