Manuscript Offprint

arXiv:2610.35344

Uncertainty-Guided Counterfactual Sensor Selection and Safety-Gated Recognition for Autonomous Sensing Agents in IoT Systems

Shirong Guo, Hongming Zhou, Muhammad Attique Khan, Jinfeng Xu, Yonis Gulzar, Manar Mousa Altamimi, Kunfu Wang

Shirong Guo, Hongming Zhou, Muhammad Attique Khan, Jinfeng Xu, Yonis Gulzar, Manar Mousa Altamimi, and Kunfu Wang

Abstract—Autonomous IoT systems rely on distributed sensing, but sensor faults and communication loss can leave multichannel evidence incomplete or unreliable. Their agents must therefore classify measurements, assess evidence sufficiency, select a sensor to reacquire, and hand off unsafe decisions. We formulate counterfactual sensing: a degraded window defines the factual state, each candidate restoration defines a controlled alternative, and a pre-request utility model estimates loss reduction. Physics-Guided Invariant-Kinematic Fusion (PGIK-Fusion) constructs class evidence, while calibrated risk and cost-sensitive utility select acceptance, sensor request, or handoff from factual information. On the Logistic Activity Recognition Challenge dataset, PGIK-Fusion achieves 0.768 accuracy and a macro-averaged F1 score (MacroF1) of 0.696, exceeding extreme gradient boosting (XGBoost)-one-dimensional convolutional neural network (1D-CNN) fusion by 2.49 and 2.00 percentage points, respectively. Across seven predefined degradation conditions on held-out subjects, the policy reduces unsafe acceptance from 33.0% to 13.8%; relative to an action-rate-matched random policy, it raises automation accuracy by 18.5 percentage points and lowers expected cost by 24.7%. In the auxiliary within-event wind-turbine study, PGIK-Fusion reaches 0.975 Macro-F1, improves on XGBoost-1D-CNN by 1.17 percentage points, and reduces unsafe acceptance from 20.1% to 8.0%. The evaluation characterizes the controlled responses of a frozen recognition model to specified sensor restorations under predefined fault families and severities. Within this scope, the results demonstrate that calibrated recognition, targeted evidence acquisition, and conservative deferral can form a unified perception-action loop that reduces unsafe automation under sensor degradation.

Index Terms—Autonomous sensing agents, Internet of Things, counterfactual sensor selection, physics-guided learning, safety-gated recognition, uncertainty quantification.

I. INTRODUCTION

Shirong Guo is with the Faculty of Engineering, Monash University, Clayton, Victoria 3800, Australia (e-mail: shirong.guo@monash.edu).

Muhammad Attique Khan is with the Center of AI, Prince Mohammad bin Fahd University, Alkhobar, Saudi Arabia (e-mail: attique.khan@ieee.org)

Jinfeng Xu is with the Department of Electrical and Computer Engineering, The University of Hong Kong, Hong Kong, China (e-mail: jinfeng@connect.hku.hk).

Yonis Gulzar is with the Department of Management Information Systems, College of Business Administration, King Faisal University, Al-Ahsa 31982, Saudi Arabia (e-mail: Ygulzar@kfu.edu.sa)

Manar Mousa Altamimi is with the Department of Information Systems, College of Computer and Information Sciences (CCIS), Princess Nourah bint Abdulrahman University, P.O. Box 84428, Riyadh 11671, Saudi Arabia (e-mail: mmaltamimi@pnu.edu.sa)

Hongming Zhou and Kunfu Wang are with the School of Advanced Manufacturing, Fuzhou University, Quanzhou 362251, China (e-mail: zhouhongming2025@126.com; okonfu23@gmail.com).

Hongming Zhou and Kunfu Wang are the corresponding authors.

A N intelligent agent is a computational entity situated in an environment, capable of perceiving that environment and selecting actions with a degree of autonomy to pursue its objectives [1]–[7]. Sensor systems instantiate this perception–action abstraction when measurements influence what, where, or when to sense next. Recent uncertainty-aware autonomous sensing in the Internet of Things (IoT), for example, constructs a sensing agent whose policy adapts measurement placement to an application objective [8]. This progression moves sensing beyond passive telemetry, but leaves open how an agent should manage degraded observations in multichannel recognition.

Here, an autonomous sensing agent in an IoT system maps networked observations to three predefined actions: accept the recognition result, request one physical sensor, or hand the decision to an upper-level controller. Its task-bounded autonomy is constrained by a recognition objective, the current information state, and this finite action set, rather than by an application domain. Safety-gated recognition releases a factual label only after acceptance; a request delays release until one reacquisition and one model recomputation, after which the updated label is released directly, while handoff withholds the automated label. The state combines class evidence, sensor quality, predictive uncertainty, and action costs. This abstraction applies to logistics, industrial monitoring, connected transportation, and autonomous vehicles [9], [10]. Fig. 1 depicts the two representative applications evaluated here.

Missing channels, noise, packet loss, and delay can alter both the predicted class and the reliability of its evidence; predictive uncertainty may also deteriorate under dataset shift [11]. Clean-input accuracy therefore neither establishes confidence after degradation nor identifies which sensor could correct an error. Although uncertainty-aware IoT sensing can price additional measurements [12], recognition still requires candidate-specific rules for reacquisition, continued automation, and handoff.

We address this gap by separating factual perception from counterfactual evidence control. Physics-Guided Invariant-Kinematic Fusion (PGIK-Fusion) combines raw temporal encoding with physical descriptors adapted to each sensing system. Controlled missingness, noise, delay, and packet loss produce paired model responses: the degraded input defines the factual state, and restoration of one requestable sensor defines a candidate state. A utility model fitted on validation data predicts each candidate's reduction in classification loss from

Figure

Fig. 1. Representative operating scenarios for evaluating the autonomous sensing agent in logistics activity recognition and wind-turbine monitoring.

factual evidence alone. Calibrated error risk, predicted benefit, and acquisition cost then determine acceptance, one sensor request, or handoff. The estimand is the frozen recognition model's response to a specified restoration.

Evaluation uses the Logistic Activity Recognition Challenge (LARa) version 03 inertial measurement unit (IMU) benchmark and an auxiliary within-event study using the Multimodal Dataset for Wind Turbine Blade Monitoring during Lightning Strikes (MDWTBM-LS) [13]–[15]. Models are retrained with domain-specific descriptors and requestable modalities in each regime.

The main contributions are:

  1. A model-level counterfactual formulation that represents factual degradation and candidate sensor restorations as paired model responses with an explicit boundary to natural causal identification.

  2. A physics-guided perception backbone that combines coordinate-robust and kinematic descriptors with raw temporal convolution.

  3. A cost-sensitive policy that estimates candidate-specific recovery from pre-request evidence and selects acceptance, one sensor request, or handoff.

  4. A task-bounded agent evaluation across human- and equipment-centered sensing instances, connecting recognition, uncertainty, controlled intervention, action allocation, unsafe acceptance, and expected cost.

References (60)