Manuscript Offprint
arXiv:2610.19347Integrated Novelty Detection Systems: From Sensor Networks to Multi-Novelty Computer Vision
ABSTRACT
Novelty detection is crucial in various technological and scientific domains. Its importance spans from ensuring the reliability of sensor networks to enhancing the adaptability of computer vision systems. As AI systems become increasingly sophisticated and complex, effective anomaly detection is essential for maintaining reliability and accuracy. This work addresses novelty detection in weather sensor networks and computer vision. In weather sensor networks, particularly for monitoring rainfall, detecting blocked rain gauges can significantly impact data reliability, food security, and disaster management. This thesis evaluates four existing quality control methods for detecting blocked rain gauges and demonstrates their limitations, particularly in detecting clusters of faulty sensors. By comparing methods such as the Conditional Mixture Model (CMM), PSWQ (Fz-filter), Kernel Regression, and Gaussian Method, we identify their shortcomings and propose three novel quality control techniques—PCSD-SAT, PCSD-JIGM, and PCSD-JIKR—that integrate probabilistic fault detection and consistency-based diagnosis framework to improve timely detection of blocked sensors, while reducing false alarms.
In the realm of computer vision, current systems often fail to handle multiple types of novelty due to their focus on single-novelty scenarios. We highlight the need for integrated systems capable of handling multiple types of novelty. To support this, we introduce the Novel Snapshot Serengeti (NOVEL-SS) dataset, derived from the Snapshot Serengeti camera trap data, which includes various forms of novelty. We also present the DCA (Detect, Characterize, and Accommodate) baseline system, designed to handle multiple novelty by detecting, characterizing (identifying the type of novelty), and accommodating them (applying the right strategy for the novelty). This thesis aims to advance the robustness and adaptability of novelty detection systems across both weather sensor networks and computer vision applications.
©Copyright by Irené Tematelewo
September 18, 2024
All Rights Reserved
ACKNOWLEDGEMENTS
I would like to start by thanking God for the grace, motivation, and strength that have guided me throughout this research journey.
I extend my heartfelt gratitude to my advisor, Dr. Thomas Dietterich. His unwavering belief in me and mentorship has been invaluable. His ability to simplify complex problems and encourage a first-principles approach has profoundly shaped my research skills. I am also grateful for the opportunities he provided to attend conferences, which greatly enhanced my academic growth.
I would like to express my appreciation to my PhD committee members — Dr. Kiri Wagstaff, Dr. Alan Fern, Dr. Weng-Keen Wong, Dr. Ciira Maina, and my graduate council representative, Dr. Mathew Campbell — for their time and effort in evaluating this thesis.
My sincere thanks go to Dr. John Selker and the TAHMO organization for providing the dataset used in part of this thesis. I also wish to acknowledge the entire Rain Quality Control (RainQC) team at TAHMO, for their contribution to understanding rainfall data and analysis the alarms generated by the quality control system deployed in the TAHMO network.
Finally, I want to express my gratitude to my parents, brother, and sisters for their unwavering support, encouragement, and prayers throughout this journey. I also extend my gratitude to my friends and colleagues — Michael Slater, Alexander Guyer, Amin Ullah, Tadesse Zemicheal, Risheek Garrepelli, Si Liu, Femi Omilani and all those from the graduate student offices at the Kelley Engineering Center at OSU — for their camaraderie and support along the way.
This research was partly funded by ARO grant W911NF-22-2-0149. The views and conclusions contained in this document are those of the author and should not be interpreted as necessarily representing the official policies, either expressed or implied, of
ARO or the United States Government.
This material is based upon work supported by the National Science Foundation under Grant No. 1521687.
1 Introduction 2
1.1 Introduction 3
1.2 Contributions 5
2 A comparison of methods for detecting blocked rain gauges in automated weather network operations 7
2.1 Abstract 7
2.2 Introduction 7
2.3 Methods 10
2.3.1 PWSQC (FZ-filter) 10
2.3.2 Kernel Regression 11
2.3.3 Joint Gaussian Model 13
2.3.4 Conditional Mixture Model 15
2.4 Datasets 17
2.4.1 TAHMO Dataset 17
2.4.2 Oklahoma-Mesonet Dataset 18
2.4.3 Synthetic Rain Gauge Faults 20
2.5 Experiments 20
2.5.1 Setup 21
2.5.2 Evaluation metrics 21
2.6 Results 24
2.6.1 Detection Delay 25
2.6.2 Robustness to Distant Neighborhoods 30
2.6.3 Robustness in the Presence of Clustered Anomalies 34
2.7 Discussion and Conclusion 38
2.8 Acknowledgements 43
3 Integrating Probabilistic Consistency-Based Diagnosis and Joint Inference for Advanced Weather Sensor Diagnosis 47
3.1 Abstract 47
3.2 Introduction 48
3.3 Problem Setup 49
3.4 Background 51
TABLE OF CONTENTS (Continued)
Page
3.4.1 Consistency-Based Diagnosis ..... 51
3.4.2 Probabilistic Fault Diagnosis ..... 55
3.5 Proposed Methods ..... 57
3.5.1 Probabilistic Consistency-based Sensor Diagnosis using SAT-solvers (PCSD-SAT) ..... 57
3.5.2 Probabilistic Consistency-based Sensor Diagnosis via Iterative Joint Inference (PCSD-JI) ..... 63
3.6 Experiments and Results ..... 68
3.6.1 Datasets ..... 69
3.6.2 Evaluation Metrics ..... 70
3.6.3 Baseline Methods ..... 71
3.6.4 Experiment Setup ..... 72
3.6.5 Results and Discussion ..... 73
3.7 Conclusions ..... 78
4 Novel-SS: A Benchmark for Integrated Novelty-Aware Computer Vision Systems ..... 89
4.1 Abstract ..... 89
4.2 Introduction ..... 89
4.3 Novel-SS Dataset, Task Structure, and Evaluation Metrics ..... 91
4.3.1 The Novel-SS Dataset ..... 92
4.3.2 Task Structure ..... 95
4.3.3 Evaluation Metrics ..... 96
4.4 Baseline Solution: DCA-SS (Detect, Characterize, and Accommodate) ..... 97
4.4.1 Detect and Characterize ..... 98
4.4.2 Accommodate ..... 101
4.5 Experimental Assessment of Feasibility ..... 102
4.5.1 Experiment Design ..... 103
4.5.2 Results ..... 103
4.5.3 Lessons Learned ..... 105
4.6 Limitations ..... 105
4.7 Conclusion ..... 106
4.8 Acknowledgements ..... 106
TABLE OF CONTENTS (Continued)
Page
5 Conclusion 107
5.1 Conclusion 108
Bibliography 109
Appendices 119
A Integrating Probabilistic Consistency-Based Diagnosis and Joint Inference for Advanced Sensor Diagnosis 120
B Novel-SS: A Benchmark for Integrated Novelty-Aware Computer Vision Systems 121
This thesis is dedicated to my parents, Telewo Jean-Paul and Nganmini P. Marceline. Your boundless love, unwavering support, and heartfelt prayers have consistently guided me, especially throughout this journey. Despite having only a primary school education, your sacrifices and encouragement have given me the courage to take bold risks, and embrace challenges without complaint. I am profoundly grateful for everything you have done to make this accomplishment possible. Thank you.
Chapter 1: Introduction
1.1 Introduction
Novelty detection—the identification of patterns or occurrences that deviate from the norm—has emerged as a critical capability in a broad spectrum of technological and scientific fields. Its significance encompasses such diverse tasks as safeguarding the reliability of sensor networks to enhancing the accuracy and adaptability of computer vision systems. As the complexity of systems increases, the ability to effectively detect and address anomalies becomes essential for maintaining operational excellence and data integrity.
In sensor networks, novelty detection is instrumental in diagnosing unexpected failures or malfunctions. These networks are integral to numerous applications, including environmental monitoring, industrial automation, and infrastructure management. Reliable sensor data is crucial for informed decision-making and operational efficiency. Novelty detection helps to identify issues such as sensor drift, degradation, or interference, thereby ensuring that data remains accurate and the system operates smoothly.
In the realm of computer vision, novelty detection also plays a pivotal role. Computer vision systems are increasingly employed in a variety of contexts, from autonomous vehicles to surveillance and quality control in manufacturing. The ability to detect anomalies—such as unexpected objects or changes in the scene—is vital for the effective functioning of these systems. Building computer vision systems that can handle multiple types of novelty is essential for their robustness and adaptability.
Current novelty-aware computer vision systems often face limitations due to their design, which frequently focuses on handling a single type of novelty. This can constrain their effectiveness in real-world scenarios where diverse and unpredictable anomalies are encountered. For instance, a system trained exclusively to detect unusual objects may struggle to handle changes in lighting conditions, varying viewing angles, or different types of occlusions simultaneously. This limitation underscores the need for advanced systems capable of managing multiple novelties to ensure comprehensive and reliable visual analysis.
In the specific context of environmental monitoring, quality control is of utmost importance. For instance, accurate rainfall prediction using weather sensor networks is critical for regions where rainfed agriculture is vital, such as in many countries in Africa, Latin America, and South Asia [62, 81]. Reliable rainfall data directly impacts agriculture by guiding irrigation, crop management, and water resource allocation. However, rain gauges, which measure rainfall, can be obstructed by debris or ice, leading to erroneous readings. Implementing fault detection techniques to identify these blockages ensures more accurate data, supports effective agricultural decision-making, and enhances disaster prevention capabilities.
This thesis addresses the challenge of multiple novelty detection in weather sensor networks and computer vision. In weather sensor networks, we specifically focus on the timely detection of blocked rain gauges when auxiliary data, such as satellite data, is unavailable. We examine blocked rain gauges under two scenarios: independent sensor faults (Spatially Random Faults, SRF) and simultaneous sensor faults (Spatially Clustered Faults, SCF). Spatially Clustered Faults are further categorized into SCF-IN, where faulty sensors are surrounded by working ones, and SCF-OUT, where the faulty sensors are at the network's periphery. These faults could result from localized phenomena like dust or sandstorms. Our aim is to develop quality control (QC) methods that detect these faults promptly while minimizing false alarms. We evaluate four methods using rainfall data from the Oklahoma Mesonet [49] and the Trans-African Hydro-Meteorological Observatory (TAHMO) [76] weather networks: (i) the Conditional Mixture Model (CMM) [86], (ii) the PSWQ (Fz-filter) [17], (iii) a kernel regression method similar to [2], and (iv) a joint Gaussian method (GM). Our analysis reveals that despite excelling at detecting spatially random faults, these methods struggle with detecting large clusters of faulty sensors. We propose three new QC methods—PCSD-SAT, PCSD-JIGM, and PCSD-JIKR—that improve detection by applying joint reasoning across all rainfall observations. These methods integrate probabilistic fault detection into a consistency-based diagnosis framework to ensure that sensor observations are consistent with the broader network.
In computer vision (CV), we highlight the limitations of current novelty detection paradigms, which handle only a single type of novelty. We advocate for the development of integrated CV systems capable of detecting and accommodating various types of novelty, as encountered in real-world environments. To support this, we introduce Novel Snapshot Serengeti (NOVEL-SS), a benchmark dataset derived from the Snapshot Serengeti camera trap dataset [72]. NOVEL-SS presents multiple forms of novelty, challenging CV systems to detect and characterize these novelties to determine the appropriate response strategy. Alongside NOVEL-SS, we propose DCA (Detect, Characterize, and Accommodate), a baseline system designed for handling multiple types of novelty.
1.2 Contributions
Our first contribution is the analysis and characterization of existing methods designed to detect blocked rain gauges. We evaluate these performance under various conditions, including independent and clustered faults, as well as sparse networks. We employ task-specific metrics, such as detection delay, to assess these methods' efficacy, revealing their limitations in handling clustered faults. Detailed findings are presented in Chapter 2.
Our second contribution is the design of three algorithms—PCSD-SAT, PCSD-JIGM and PCSD-JIKR—to address the limitations of existing QC methods, particularly for detecting large clusters of faulty sensors. PCSD-SAT utilizes Boolean satisfiability for joint reasoning, while PCSD-JIKR and PCSD-JIGM employ kernel regression and Gaussian models, respectively, to enhance fault detection. Empirical results show that PCSD-JIGM and PCSD-JIKR outperform existing methods in detecting clustered faults, as discussed in Chapter 3.
Our third contribution is the introduction NOVEL-SS, a new benchmark dataset for multiple novelty aware computer vision, and DCA, a baseline system for NOVEL-SS. We propose a task structure, an evaluation protocol, and evaluation metrics, to foster the development of more integrated solutions to novelty detection and accommodation.
A comparison of methods for detecting blocked rain gauges in automated weather network operations
Irené Tematelewo, Austin Kaburia, Michael Slater, Ciira wa Maina, and Thomas G. Dietterich
Chapter 2: A comparison of methods for detecting blocked rain gauges in automated weather network operations
2.1 Abstract
Precipitation is one of the most important and most difficult quantities for automated weather stations to measure. A frequent failure mode in many rain gauges is blockage, where dust and debris prevent water from entering the instrument, which causes it to falsely report zero values. Standard statistical methods fail in this case, because zero is also the most common correct value for precipitation in most locations on Earth. For network operations, it is important to detect a blocked rain gauge as soon as possible, so that a technician can visit and clean the rain gauge and prevent long periods of data loss. This paper compares four algorithms for detecting blocked rain gauges using data from the Oklahoma Mesonet and the TAHMO weather network. We measure missed detections, false detections, and detection delay on simulated clogged rain gauges.
2.2 Introduction
Surface measurement of weather is important for a variety of reasons including climate mapping [13], climate change analysis [15], weather forecasting [73], ecological science [14], and severe weather warning [84]. Consequently, quality control methods for assessing the accuracy of weather station measurements have been developed to support each of these goals. Methods aimed at ecological science, climate mapping, and climate change can be applied retrospectively, weeks, months, or years after the data were collected. They can assume the availability of baseline climatology. In these applications, the focus of quality control is usually to determine which observations are trustworthy and to correct for biases resulting from variation in measurement instruments and the time that daily observations were taken [15]. Often, it is also desirable to impute missing values in order to obtain a clean long-term record [1, 75].
Weather forecasting and severe weather warning operate on a much shorter time scale. Ground data for weather forecasts is typically assimilated at 6-hour intervals [6]; readings for flash floods and severe storms need to be measured at 5-10 minute intervals. The quality control process focuses on determining which weather stations to trust. Sub-daily quality control is particularly important for measuring peak rainfall rates and for detecting over-reporting errors [79].
Weather network operations fall in between these extremes. It is important to detect failed (or out-of-calibration) sensors, but data can be aggregated across multiple days to reduce the false alarm rate. Fundamentally, there is a tradeoff between detection delay—the time between sensor failure and the time it is detected—and the false alarm rate—the fraction of failure alarms that turn out to be false. For network operations, we want to detect the failure promptly, but we also want to avoid sending a technician to visit the station unnecessarily.
This paper focuses on the problem of detecting blocked rain gauges—that is, gauges where the collecting cone or input orifice has become blocked by dust or debris. The challenge with rainfall is that it exhibits a highly skewed non-Gaussian distribution [73] in which the most commonly-observed value is zero, which is also the value reported by a blocked rain gauge, so simple “range checks” cannot detect blockage. Precipitation also exhibits low spatial auto-correlation—it may rain at one station but be dry at a station only a few kilometers away. This means simple QC methods comparing nearby stations may not be statistically reliable.
To overcome these problems, many quality control methods rely on additional information sources such as rainfall reports from high-quality well-maintained reference stations or estimates of rainfall fields from weather radars. In this paper, we are interested in methods that do not require such auxiliary data (Requirement 1). We are part of the team that is deploying and managing the Trans-African Hydro-Meteorological Observatory (TAHMO) automated weather station network [76]. This network seeks to cover all of sub-Saharan Africa. This is a region that lacks weather radars. It also lacks long-term climatological records. Furthermore, to achieve its coverage goal, the TAHMO network is continually installing new stations, so we need methods that can work on stations as soon as they are installed (Requirement 2). Finally, the TAHMO stations rely on battery-powered cellular data networks to report their observations. Data transmissions can be intermittent. Hence, we seek quality control methods that can tolerate missing readings throughout the network (Requirement 3).
This paper describes and compares three QC methods that meet these requirements (abbreviated R1, R2 and R3). All of them are spatial consistency checks that evaluate the reported rainfall at a target station based on the reports from nearby stations. The simplest method is FZ-filter [17], which has apparently been in use by the US National Weather Service since at least 2006 [40]. The second method, kernel regression (KR) is a regression approach that predicts the rainfall at each target station based on a kernel regression computed from the rainfall reported by neighboring stations. The final method, GM, is based on a joint Gaussian model. A multivariate Gaussian is fit to the precipitation data from the entire network. Then, for each target station, it is easy to compute the conditional probability distribution for the amount of rain reported at that station conditioned on the values reported at all of the other stations.
These three methods are compared to a baseline automated QC method, the conditional mixture model [CMM; 86], which is currently deployed on the TAHMO network. A smaller comparison—relevant to the TAHMO setting—with a manual satellite-based QC process is also provided for reference. The motivation for this study is that the CMM does not meet requirements R1, R2 and R3 – it cannot handle missing measurement values, tends to produce too many false positives, and requires too much historical data. Training a CMM model for a target station requires at least one year of training data for the target station and for each of its neighbors.
This paper describes all four of these methods and then compares them on simulated blocked rain gauge data from Oklahoma Mesonet [49] and simulated blocked rain gauge data from TAHMO. For each method, we measure the trade-off between the false alarm rate (FAR) and the delay between the onset of the fault and the first alarm raised, for a given missed alarm rate (MAR). We visualize this trade-off as an Activity Monitoring Operating Characteristic (AMOC) curve [24]. We also evaluate each method's ability to detect faults in an increasingly sparse network and when faced with the failure of neighboring stations.
The remainder of this paper is organized as follows: Section 2.3 describes the four QC methods, while section 2.4 details the weather datasets used in this study. Section 2.5 describes the experimental setup and the evaluation metrics employed to compare these methods. The results are presented in Section 2.6, and the paper concludes with
[40] cites [47] as the first publication of the method, but we have not been able to locate a copy of that paper.
Section 2.7.
2.3 Methods
Let index the rain gauges in the weather network. For TAHMO, each weather station has only one rain gauge, so is also the number of weather stations. Let be the location (i.e., longitude, latitude, and elevation) of station . Let denote the distance between stations and . We are currently only measuring the displacement in longitude and latitude, but other methods employ more sophisticated measures [13]. We will often focus on a fixed “target” station and compare it to a set of neighboring stations . For example, could be the set of all stations within 100 km of station . Let denote the total precipitation reported by station on day . If there is no report from station on day , we set to indicate that the value is missing. We aggregate precipitation over 24-hour periods. This period was chosen based on a spatial correlation analysis (see Figure 2.1), which showed that this gives a good tradeoff between maximizing inter-station correlations while not losing too many days due to missing values. Let denote the amount of rain that is “effectively zero”. If , station is considered to have measured no precipitation on day . In our experiments, we set mm.
2.3.1 PWSQC (FZ-filter)
FZ-filter [40, 47] is a simple yet robust QC algorithm designed specifically for the detection of blocked rain gauges. We employ the version implemented in PWSQC [17]. Pseudo-code is shown in Algorithm 1. FZ-filter computes the median of the rainfall reported by neighboring stations after removing missing values ( ). If this is non-zero ( ), the day is declared to be a “wet day”. If the target station i reported zero on a wet day, this is a “wet zero” day for station i. If i exhibits consecutive wet zero days (ignoring dry days), it is declared to be blocked. PWSQC (FZ-filter) doesn’t require a training dataset or auxiliary dataset, and it handles missing values among the neighbors. It therefore satisfies requirements R1, R2 and R3. However, PWSQC (FZ-filter) can fail if a spatially-clustered set of rain gauges are all blocked simultaneously. Whenever more than half of the neighbors of i are clogged, the median rainfall of the neighbors will be

Figure 2.1: Correlation coefficient (rho, orange) between precipitation readings at the CHIC and NINN stations (the closest pair of stations) in the Oklahoma Mesonet as a function of the length of time over which precipitation is aggregated. The blue curve shows the fraction of missing values.
zero, the day will be declared to be a “dry day”, and the blockage at station i will go undetected.
2.3.2 Kernel Regression
The Kernel Regression (KR; Algorithm 2) method is nearly identical to FZ-filter, except that instead of computing the median rainfall of the neighbors, it applies kernel regression. We employ the squared exponential kernel:
The value of gives the length scale of the kernel. It must be tuned to give good performance. For KR, we set . Kernel regression is identical to the first pass of Barnes interpolation [2].
One difference from FZ-filter is that KR does not have a definition of dry days, so it
Algorithm 1 FZ-filter
Data Structures and Parameters z: z[i] is number of “wet zero” days for station i : rain is treated as zero : number of wet zero days before a station is declared “blocked”
Procedure z[i] 0 for all stations
loop read day t measurements for do if then # If station i reports nonzero rain, reset the wet zero counter end if if and then # Wet zero day end if if then report gauge i blocked end if end for end loop
raises an alarm if consecutive days show a squared prediction error greater than .
Kernel regression does not depend on auxiliary data and can handle missing data from neighboring stations by excluding any station with missing values from the computation of (see algorithm 2). Thus, kernel regression satisfies requirements R1 and R3. However, the kernel's length-scale parameter, , must be estimated using historical data. This challenge can be addressed by setting for newly installed stations to the same value as the nearest stations. In our experiment, we use the same value of for all stations.
Algorithm 2 KR
Data Structures and Parameters z: z[i] is number of days “prediction error” for station i : rain ≤ is treated as zero : number of prediction error days before a station is declared “blocked” : anomaly detection threshold
Procedure z[i] ← 0 for all stations i = 1, ..., n loop read day t measurements for i = 1, ..., n do if then end if if then end if if then report gauge i blocked end if end for end loop
2.3.3 Joint Gaussian Model
The joint Gaussian method (GM), fits a multivariate Gaussian distribution to the daily historical rainfall observed over the entire network. Let and be the parameters of the joint Gaussian distribution over all the stations in the network. The conditional distribution of station i given the rest of the stations is a Gaussian with mean and variance , computed as follows [5, 52]:
where is the covariance matrix without row and column , is the th row of the covariance matrix with the th column deleted, and is the vector
Algorithm 3 GM
Data Structures and Parameters z: z[i] is number of “prediction error” days for station i : rain is treated as zero : number of prediction error days before a station is declared “blocked” : anomaly detection threshold , : multivariate Gaussian model fit to historical data
Procedure for all stations
loop read day t measurements for do if then end if if then end if if then report gauge i blocked end if end for end loop
of rainfall observed at all weather stations on day t, excluding station i. For any other station j that did not report rain on day t, its entries are also deleted from and , and the jth row and j column are deleted from .
Like PWSQC (FZ-filter) and KR, GM does not rely on auxiliary data and can manage missing neighbors. Thus, GM meets requirements R1 and R3. However, before fault detection can be performed on a new station j, GM requires an estimate of the mean rainfall and the covariance of that station with the rest of the network (inserting row j and column j into ). This necessitates some historical data, which means that GM does not meet Requirement 2.
2.3.4 Conditional Mixture Model
The conditional mixture model (CMM) QC method, introduced by ZeMicheal and Dietterich [86], combines two sub-models: A classifier for each target station i that predicts the probability of rain (versus no rain) at the target station and a log-linear regression model that predicts the amount of rain at the target station. Both models base their predictions on the rain reported at a fixed set of neighboring stations .
To fit these models for station , we construct a training set consisting of pairs and , where, as before, is a vector of length of the precipitation values observed at the neighboring stations on day . The data set for station consists of approximately 365 days over the history of the weather network where and were all observed.
Let if (i.e., a non-trivial amount of rain was observed at station i and time t). Let otherwise. Define the logistic regression model as
where is the intercept term and is a vector of length corresponding to the number of neighboring stations. Let be the parameter vector for the logistic regression model for station . Let be a shorthand for the predicted probability of rain at station and day .
After fitting this logistic regression model to , ZeMicheal and Dietterich then fit a log linear model to minimize the following likelihood function
where gathers together and parameters into a vector. This is ordinary least-squares regression with three changes. First, we take the logarithm of the observed precipitation to transform the distribution to be more Gaussian. Second, we add a small positive amount to the precipitation to avoid taking the logarithm of zero. Third, the squared difference between the log of observed rain and the linear regression model is weighted by the predicted probability of rain computed by the logistic regression model.
Finally, we define as the mean of the (unweighted) squared residuals on a log scale.
We can view the linear regression model as providing the mixing coefficients for a model with two components. The first component is an impulse at zero that integrates to , and the second component is a Gaussian distribution with mean and variance . We can write the combined model as
ZeMicheal and Dietterich found experimentally that extending the r = 0 case to include the log-linear density (evaluated at zero) improved the results. Hence, the full conditional mixture model is
A new observation is scored by computing the negative log likelihood and signalling an alarm if it exceeds a station-specific threshold . These thresholds are tuned based on the training data. Algorithm 4 shows the pseudo-code for CMM.
CMM has been deployed as “RainQC” on the TAHMO weather network since 2019 and produces a report of potential precipitation sensor anomalies each day. Unfortunately, it suffers from the weaknesses presented in section 2.2. First, it violates R2 because it requires historical data for each station and its neighbors to fit its regression model. Roughly half of the TAHMO stations currently lack sufficient historical data and, hence, cannot be checked using this model. Second, for a given target station i, if any of its neighbors fail to report precipitation on a given day, the regression model cannot be evaluated. In such cases, we say that the model is not “data complete”. On a typical day, more than half of the CMM models cannot be evaluated, as they are not data complete. Third, CMM computes a QC score on each individual day separately, rather than combining them a longer time window, which generally leads to higher false alarm and missed alarm rates.
2.4 Datasets
This study utilizes rainfall datasets from the Oklahoma Mesonet and the TAHMO weather networks to evaluate the quality control (QC) methods. The Oklahoma Mesonet dataset is highly reliable, benefiting from a rigorous QC process and prompt repair or replacement of faulty gauges. Consequently, the measurements from this network are considered accurate, allowing for robust assessment of the QC algorithms. The Oklahoma network features a relatively uniform distribution of stations across the state, which experiences numerous large-scale rain events throughout the year (see Figure 2.2, upper two panels).
In contrast, the TAHMO dataset consists of more densely clustered stations across a diverse landscape, with less frequent and more localized rain events (see Figure 2.2, lower two panels). Due to the less stringent QC processes and slower repair or replacement times, the reliability of the TAHMO measurements is comparatively lower.
2.4.1 TAHMO Dataset
The weather stations in TAHMO are equipped with ATMOS 41 sensors manufactured by METER. These sensors monitor a range of weather variables, including precipitation, air temperature, atmospheric pressure, relative humidity, solar radiation, and wind speed and direction. Most ATMOS 41 sensors in TAHMO provide measurements at a 5-minute resolution. These measurements pass through three stages of quality control: (a) rule-based checks based on [25], (b) CMM, and (c) comparison of monthly total precipitation against satellite data products. Faulty observations are assigned quality flags based on these checks and reports created by field technicians when they visit the stations to make repairs.
To obtain data for our experiments, we retrieved the raw rainfall data and corresponding quality flags for all stations in Kenya. We chose this subset because of Kenya's relatively high station density and its more robust quality control process. We removed all flagged observations confirmed by network managers after inspection. We then selected two years (2020 and 2021) with the most complete data. Due to a high proportion of missing values across the TAHMO network, only 23 stations in Kenya had sufficiently complete data to use with all of the methods (especially CMM). We train the QC methods (specifically GM and CMM) on the data from 2020, and we test QC performance on the data from 2021.

Figure 2.2: Historical training and testing rainfall distribution in the Oklahoma Mesonet and the Kenya dataset.
2.4.2 Oklahoma-Mesonet Dataset
The Oklahoma Mesonet (http://www.mesonet.org) is a multi-purpose network established to provide research-quality data in real time. It is comprised of more than 110 surface observing stations operated by the University of Oklahoma (OU) and Oklahoma State University (OSU) (McPherson et al 2007; Brock et al. 1995; Elliott et al. 1994).

Figure 2.3: Geographical distribution of the 23 stations in the Kenya test dataset.
Remote stations send data every 5 minutes to an operations center, located at the Oklahoma Climatological Survey (OCS), for data quality assurance. The Oklahoma Mesonet is renowned for outstanding quality assurance system, including rain gauge maintenance and calibration. When a gauge appears to be malfunctioning, the data are quickly flagged as questionable or missing, and the gauge is usually repaired or replaced within a few days [49]. We purchased the raw data (with quality flags) from Oklahoma Mesonet for the years 2008 and 2009. After discarding the stations that have flagged or missing data, we are left with a set of 81 weather stations. We use data from 2008 for training of the QC methods and data from 2009 for testing the various QC methods.

Figure 2.4: Geographical distribution of stations in the Oklahoma Mesonet test dataset.
2.4.3 Synthetic Rain Gauge Faults
To evaluate the ability of the QC methods to detect blocked rain gauges, we insert sequences of zero values into the test data to simulate a completely blocked rain gauge. From the onset of the fault, we set all subsequent measurements for that station through the rest of the year to 0.0, under the assumption that the station's rain gauge is not repaired during the study period. We consider two configurations of faults: one where the faulty stations are randomly distributed across the network, which we refer to as “spatially random faults” (SRF), and a second one where the faulty stations are all neighbors of one another. We refer to the latter configuration as “spatially clustered faults” (SCF), and we divide it into two sub-configurations: one where the cluster of faulty stations is surrounded by working stations (SCF-IN) and one where the stations in the cluster are at the periphery of the network, which we denote by SCF-OUT.
2.5 Experiments
In this section, we describe the setup of the experiments performed, and we present the evaluation metrics used to compare the methods.
2.5.1 Setup
Let S denote the set of n stations in the weather network, each having a rain gauge. Let be the set of historical rainfall data recorded over the network, and let be set of potentially faulty rainfall measurement for which quality control is to be performed. Our objective is to identify all the faulty sensors in in a timely manner, given .
The various models are trained as follows. For KR, we fit the kernel length scale parameter to minimize the sum of squared errors when predicting the observed rainfall on . For GM, we fit the joint Gaussian parameters and to . For CMM, we determine the neighboring stations for each station i by sorting the stations by their distance to i (using longitude and latitude only), retaining only those whose distance is km, and selecting the up to 5 nearest stations in that list. We then fit the CMM parameters .
2.5.2 Evaluation metrics
One might suppose that because QC methods are similar to machine learning classifiers, we could treat each day as a data point and apply the standard evaluation metrics such as accuracy, precision, recall, and Area Under the Receiver Operating Characteristic curve (AUROC) to measure QC performance. However, these are not appropriate for our network operations setting. Our goal is not to measure the expected accuracy of the methods on a daily basis, but rather to detect broken sensors as early as possible so that investigation and repair can be performed. This leads us to introduce different definitions and compute different metrics. let be the time of onset (start time) of the fault. Figure 2.5 illustrates the new definitions.
-
False Positive Alarm. This occurs when the QC method declares an alarm before the onset of the fault for a faulty station or when it declares any alarm for a working station.
-
False Negative Alarm. This occurs when the QC method fails to declare an alarm for a faulty station (indicated in the figure by an alarm off the right end). For the false negative case, we compute the detection delay as , the number of
days between the onset of the fault and the end of the time period T. In our simulation experiments, each fault extends to the end of the year.
-
True Positive Alarm. This occurs when the QC method declares an alarm for a faulty station at any time , the onset of the fault. When a true positive alarm is declared, we also measure the detection delay , which is the number of days between the onset of the fault on day and the alarm on day .
-
True Negative Alarm. This occurs when the QC method never declares an alarm for a working station (indicated in the figure by an alarm off the right end).

Figure 2.5: Definitions of TP, FP, FN, and TN. The rectangles indicate time intervals during the year. During green intervals, the station is working properly. During red intervals, it is faulty. The arrows indicate time points at which a QC method might introduce an alarm. The two arrows in the dashed box at right indicate the status if no alarm is declared during the year.
A QC method will typically declare multiple alarms. We consider only the earliest such alarm, as this is the key signal needed by network managers to open a trouble ticket.
For a given setting of and a given QC method, we will compute three metrics: the false alarm rate (FAR), missed alarm rate (MAR), and average detection delay (ADD). To define these, let , , , and be the sets of stations induced by the QC method with threshold . Then the three metrics are defined as
The FAR is the fraction of alarms that are false alarms. The MAR is the fraction of faulty stations that were false negatives. And ADD is the average detection delay for the faulty stations.
There are tradeoffs among these three metrics. If the QC method is too sensitive, it will tend to produce more false alarms but also smaller detection delays. If the QC method is not sensitive enough, it will produce longer delays and missed alarms (which are effectively infinite delays). We will visualize this tradeoff using a slightly modified version of the Activity Monitoring Operating Characteristic curve (AMOC) [24]. The AMOC curve plots the false alarm rate as a function of the average detection delay. For each setting of the detection threshold of a QC method, we compute the and and plot one point. The perfect AMOC curve detects all faults with zero delay while raising no false alarms. For the KR and GM methods, the value of (the number of days of fault evidence before an alarm is raised) is held constant in these curves. To visualize the effect of , we can plot a separate AMOC curve for each value of . The FZ-filter method does not have a detection threshold . The only way to trade off false alarms versus missed alarms and detection delay is to vary . Hence, the AMOC curves for FZ-filter are obtained by varying .
Algorithm 5 presents pseudo-code for efficiently computing the AMOC curve. The basic idea is to start with (conceptually) and all alarms are either TP or FN. As we iterate through the list of alarms in descending value of , alarms can switch from TP to FP or from FN to TP to FP. As an alarm changes sets, the total delay is updated appropriately.
We visualize QC performance with two additional graphs. The first, called the FAR-MAR graph, plots the false alarm rate versus the missed alarm rate as we vary the detection threshold . The ideal method will have a setting of that achieves zero for both the false alarms and missed alarms. The second graph, called the MAR5 graph, plots the false alarm rate and average detection delay for the setting of that achieves a missed alarm rate of 5%. Only one point is plotted for each method and each value of .
2.6 Results
In the context of network operations, we would like to have a QC method that achieves 5% missed alarm rate and less than 20% false alarm rate even if this leads to additional detection delay. We need the low missed alarm rate in order to achieve high data quality. We want reasonable false alarm rates, because there is a very significant cost to sending a technician to visit a weather station. An unnecessary visit is a waste of scarce resources.
TAHMO’s quarterly QC process using satellite data offers a 90-day detection delay, so our focus is on methods that offer 90 day or less detection delay with a less than 20% false alarm rate. All results represent the average performance across 20 runs.

Figure 2.6: Detection performance on the TAHMO Kenya and Oklahoma networks with 5% and 10% faulty rain gauges that are spatially random. Each point plots the FAR and average detection delay for a choice of that achieves 5%MAR. Shapes correspond to different methods; colors correspond to different values of . Yellow shading highlights the region of 0-20% FAR. Plots in the left column show performance on the TAHMO Kenya network, and plots in the right column show performance on the Oklahoma network. Rows from top to bottom represent 5% and 10% faulty stations.
2.6.1 Detection Delay
Performance of the algorithms were initially assessed under conditions that simulate a common real-world “faultiness” state of weather networks, e.g., some percentage of the total stations in the network are experiencing faults. In this set of experiments, faulty stations are chosen randomly (spatially random faults) and QC performance is assessed at four levels of faultiness, simulating 5%, 10% 15%, and 20% of the stations having faulty rain-gauges. The 5% fault level would be considered higher than what would be typical in the Oklahoma Mesonet. There is more variation in the “faultiness” of the TAHMO weather network, and the entire 5% to 20% fault range reflects rain gauge fault levels that have been experienced over time.
We begin our analysis with a MAR5 plot comparing performance for 5% and 10% faulty stations as shown in Figure 2.6. In TAHMO 5% and Mesonet 5% and 10%, there is always a setting of KR that achieves near-zero FAR and 5% MAR. However, the detection delays can be quite high. If we consider the Pareto frontier (low and to the left), there is a setting of CMM that gives good performance in all four cases, especially in Mesonet 10%. The GM is never on the Pareto frontier, and there are no points for the FZ filter, because there was not a setting of that achieved 5% MAR. All methods struggle with TAHMO 10% fault rate, which probably reflects the relatively small size of the clean data that we were able to collect.

Figure 2.7: Detection performance on the TAHMO Kenya and Oklahoma networks with 15% and 20% faulty rain gauges that are spatially random. Plots in the left column show performance on the TAHMO Kenya network and plots in the right column show performance on the Oklahoma network. Rows from top to bottom represent 15% and 20% faults.
Let us now consider the 15% and 20% fault rates, shown in the MAR5 graph of Figure 2.7. For TAHMO 15%, KR achieves the best performance with zero FAR and a detection delay around 53 days. In the other three settings, CMM is the best method, and we note that even in the TAHMO 15% case, there is a configuration of CMM that also achieves 0 FAR, but with a detection delay of 71 days. As before, GM is never on the Pareto frontier.
Upon first glance, the behavior of the KR and GM methods as we change jumps around rather than following a predictable trend. The explanation for this is that the threshold for is tuned separately for each value of . As increases, this typically increases the missed alarm rate, which requires to decrease to restore 5% MAR.

FAR vs MAR
FAR vs MAR
Figure 2.8: AMOC and FAR-MAR trade-off of algorithm performance for the TAHMO Kenya and Oklahoma networks with 5% faulty rain gauges that are spatially random and 3 days of evidence. Plots in the left column show performance on the TAHMO Kenya network and plots in the right column show performance on the Oklahoma network.
We can gain insight into the behavior of FZ-filter by examining the AMOC and FAR-MAR plots. Figure 2.8 shows these graphs for . In the TAHMO network, with its less frequent and more clustered rain events, the best performance of the FZ-filter in the FAR band is at 130 days of detection delay with approximately 15% FAR. Looking at 15% FAR in the corresponding FAR-MAR trade-off plot, we see that the FZ-filter does not miss any alarms with a 0% MAR. The FZ-filter performs better in the Oklahoma setting, with an in-band detection delay of about 51 days, also with a 0% MAR. A similar process is employed for fault levels 10%, 15%, and 20%.
| Faults | ||||||||
|---|---|---|---|---|---|---|---|---|
| 5% | 50 | 10 | 16 | 16 | 130 | 20 | 70 | 75 |
| 10% | 55 | 12 | 13 | 10 | 160 | 50 | 70 | 112 |
| 15% | 55 | 12 | 15 | 10 | - | 25 | 34 | - |
| 20% | 55 | 12 | 15 | 12 | - | 30 | 60 | 62 |
Table 2.1: Lowest detection delay at 5%-20% faults (FAR ≤ 0.20, MAR ≤ 0.05) for Oklahoma and Kenya networks. The boldface and underline highlight the best and the second best performing QC methods.
| Delay | ||||||||
|---|---|---|---|---|---|---|---|---|
| 15 | 0.65 | 0.15 | 0.50 | 0.60 | 0.97 | - | 0.78 | - |
| 30 | 0.22 | 0.00 | 0.03 | 0.45 | 0.87 | 0.15 | 0.45 | - |
| 45 | 0.17 | 0.00 | 0.03 | 0.22 | 0.30 | 0.15 | 0.45 | - |
| 60 | 0.03 | 0.00 | 0.00 | 0.07 | 0.25 | 0.15 | 0.15 | 0.45 |
| 75 | 0.01 | 0.00 | 0.00 | 0.04 | 0.21 | 0.15 | 0.15 | 0.40 |
| 90 | 0.00 | 0.00 | 0.00 | 0.03 | 0.20 | 0.07 | 0.15 | 0.40 |
Table 2.2: Lowest false alarm rate at 5% faults, 0.05 MAR and selected average Detection Delays. Oklahoma and Kenya networks are noted by the column name subscript
By restricting our attention to configurations with FAR and MAR , we can compute the best average detection delay and summarize performance in Table 2.1. If there is no detection delay value given, it indicates that the given algorithm could not meet the desired FAR and MAR constraints for any value of detection delay. When performance is assessed in the Oklahoma setting, we can see that the FZ-filter offers the worst detection delay while the CMM, KR, and GM methods all offer similar detection delays across the various fault levels. Things are a bit different in the TAHMO Kenya setting, as not all algorithms are able to achieve points that satisfy our constraints. Generally, CMM offers the lowest delay with KR providing the next best delay. For some settings, GM offers detection delays comparable to KR, but for faults, the delay is much larger, and at faults, GM was not able to satisfy the constraints. While these results represent the averaging of multiple runs of the experiments, it may be that there are certain fault patterns that preclude better performance for some of the algorithms.
In particular, the TAHMO Kenya setting may offer more challenging fault distributions for the algorithms because it has fewer stations, they are also more clustered, and there are fewer rain events.
We also see in Table 2.2, presenting the lowest FAR at various detection delays when 5% of the stations are faulty, that every automated QC method works better in the Oklahoma setting versus in the Kenya setting. While this work does not offer a thorough analysis of these differences, we posit that Oklahoma with a larger number of more uniformly distributed stations and more frequent and larger scale rain events (see figure 2.2) offers a less challenging blocked rain gauge environment for the algorithms. In the Kenya setting, there are far fewer stations and they mostly fall into one large cluster centered on the primary agricultural zone of the country. Rainfall is less frequent and is also more clustered, occurring mainly in the agricultural area and along the coast. While QC performance in the large agricultural cluster may be acceptable, the density of TAHMO stations is too low/sparse to allow any of these neighbor-based methods to succeed.
2.6.2 Robustness to Distant Neighborhoods
When designing a weather station network, we want to know how far apart the stations can be. The non-uniform spatial distribution of weather stations in the TAHMO network may also be affecting QC performance, as some stations have few or no neighbors within an acceptable radius. In such cases, KR and GM rely on neighbors that may be quite far away, which may damage their performance.
To understand QC performance as the distance between stations increases, we experimented on both the TAHMO Kenya and Oklahoma Mesonet by constraining the selected neighbors to be no closer than a specified distance (km) from the target station. For example, when km, all the stations within 10 km radius around the target station are ignored when performing quality control. This simulates a sparse network in which the fault detection signal is farther away, and hence weaker. We analyze the ADD, MAR and FAR for the values of equal to 0 km, 5 km, 10 km, 15 km, 30 km, and 50 km.
Figure 2.9 and 2.10 present the trade-off between ADD and FAR at 5% MAR, when 15% of the stations in both weather networks are randomly faulty. In the TAHMO Kenya network, at km, only CMM is functional within the FAR and MAR = 5% performance space, achieving 52 days ADD. At km, KR at 3 days of evidence and 73 days ADD is present into the constraint performance space. Above km (up to km), the detection delay for both KR and CMM remained mostly unchanged, while the FAR increased gradually with .
In the Oklahoma Mesonet network, the average detection delay slightly rises as the distance increases from 0 km to 50 km. The false alarm rate on the other hand shows a more rapid increase with the distance. For instance, at km, all methods achieve less 70 days ADD within the FAR and MAR = 5% performance band, with CMM, KR and GM achieving 23 days, 62 days, and 64 days ADD respectively. At km, only KR with 2 days of evidence is in the performance band, with 104 days ADD (above the 90 days satellite comparison). Within the wider FAR and MAR = 5% performance space, CMM, KR and GM achieve 44 days, 67 days, and 73 days ADD respectively. And when km and above, only KR and CMM are able to perform detection within the FAR and MAR = 5% performance space.
The above detection performance suggests that as the neighbors become more distant, the predictive power of the QC methods decreases just like the correlation between target and its neighbors.

Figure 2.9: Effect of more distant neighbors on the TAHMO network. The plots on the left column top to bottom show the performance when the neighbors are chosen with minimum distance to the target station of 0 km, 5 km and 10 km, and the plots on the right (top to bottom) show performance when the neighbors are at a minimum distance of 15 km, 30 km and 50 km. Fault rate is 15%; spatially randomly distributed.

Figure 2.10: Effect of more distant neighbors on Mesonet. The plots on the left column top to bottom show the performance when the neighbors are chosen with minimum distance to the target station of 0 km, 5 km and 10 km, and the plots on the right (top to bottom) show performance when the neighbors are at a minimum distance of 15 km, 30 km and 50 km. Fault rate is 15%; spatially randomly distributed.
| Method | 0km | 5km | 10km | 15km | 30km | 50km |
|---|---|---|---|---|---|---|
| 66 | 75 | 78 | - | - | - | |
| 62 | 68 | 82 | 82 | 103 | 103 | |
| 27 | 46 | 74 | 75 | 75 | 78 | |
| - | - | - | - | - | - | |
| 118 | - | - | - | - | - | |
| 41 | 73 | 73 | 73 | - | - | |
| 37 | 48 | 44 | 42 | 40 | 38 | |
| - | - | - | - | - | - |
Table 2.3: Average detection delay in the Oklahoma Mesonet and the TAHMO Kenya networks for increasingly distant neighbors ( , 5km, 10km, 15km, 30km and 50km) at a maximum MAR of 5%, and a maximum FAR of 20%. The best performing QC method in boldface.
2.6.3 Robustness in the Presence of Clustered Anomalies
Groups of sensors can become faulty simultaneously as the result of a local source of dust, a sandstorm, a violent thunderstorm, or some other natural catastrophe. We therefore need to evaluate the robustness of each QC method when groups of sensor become faulty simultaneously. To do this, we inject faults into groups of neighboring stations such that the onset of the fault is the same for all of the stations in the group. We then evaluate the ADD and FAR at 5% MAR. We study two types of clusters: the first type is when all the faulty stations are surrounded by nominal stations, which we refer to as spatially clustered faults inside (SCF-IN), and the second type is when at least one of the faulty stations is at the periphery of the network. For example, a cluster of faulty stations at the Kenyan coast. We refer to the latter type of clustered faults as SCF-OUT. For the TAHMO Kenya network, we simulate clusters of size 2 to 5 (8.7% to 21.7% of the network), and for the Oklahoma Mesonet, we study clusters of size 2 to 8 (2.4% to 9.8% of the network).
We did not expect any of the methods to do well with clustered faults. In particular, for clogged stations in the center of a cluster of clogged rain gauges, most of the neighbors will be clogged, so it will appear to be a dry day with all sensors working. Because all four methods analyze each station separately, there is no capability to perform iterative inference in which the stations at the edge of the cluster are diagnosed as clogged, and then when the stations at the center are scored, they would ignore the rain values reported by their immediate neighbors and attend to stations farther away.
The results for clustered faults in the TAHMO Kenya network and the Oklahoma Mesonet are presented in Figures 2.11 and 2.12 respectively. The first surprise is that in both networks, as long as the clusters are SCF-IN clusters in the interior of the networks, performance is still quite good. The false alarm rates have increased slightly compared to spatially-random faults, but KR and CMM still perform quite well, and both appear on the Pareto frontier within the region of interest. A second surprise is that when the clusters become big, the GM method achieves the lowest ADD while maintaining low FAR. This may reflect its more sophisticated handling of covariances compared to KR. Because KR normalizes its weights, even distant stations can be given high weight, whereas in the joint Gaussian distribution, distant stations always have low weight and the conditional variance increases. However, we expected to see this phenomenon in the minimum-distance experiments of the preceding section, but we did not.
The SCF-OUT setting is much more difficult. In Kenya, only clusters of size 2 can be handled at all, and this is with significant false alarm rates. For clusters of size 3 and 4, no method can achieve FAR 0.2.
The story in Oklahoma is similar. For SCF-IN clusters, all methods achieve low false alarm rates, and GM again excels for larger clusters (size 6 and 8). For SCF-OUT clusters, the situation is better than in Kenya. For small clusters, CMM and KR lie on the Pareto frontier. But for larger clusters, CMM fails, and KR is generally the best method.
Overall, we notice that CMM, which uses only up to 5 nearest neighbors for fault detection, is strong when the cluster size is small. But as the cluster size increases and more neighboring stations become affected, we see that CMM falls apart. We suspect that CMM may still be more robust if we increased the number of neighbors that it can use. However, such an increase of neighbors will lead to a decline in the number of stations that can be diagnosed due to the problem of missing data. This highlights the trade-off between number of stations that can be diagnosed and the number of neighbors. Once the size of the SCF-OUT faults reaches 5 stations, CMM doesn't have any signal to draw on. Only global/dynamic methods such as KR and GM can pull signal from the larger network to diagnose target stations. Additionally, we observe in general that in both TAHMO Kenya and Oklahoma Mesonet, as the size of the cluster increases, so does the average detection delay needed to achieve 5% MAR.

Figure 2.11: Effect of spatially-clustered faults on detection performance for the TAHMO Kenya network with 15% faulty stations. The plots on the left column show the performance when the cluster of faults are inside the area (SCF-IN) and the plots on the right are when some stations are at the periphery (SCF-OUT).


Figure 2.12: Effect of spatially-clustered faults on the detection performance for the Oklahoma Mesonet network with 15% faulty stations. The plots on the left column show the performance when the cluster of faults are inside the area (SCF-IN) and the plots on the right are when some stations are at the periphery (SCF-OUT).
| Method | FAR ≤ 20% | FAR ≤ 10% | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | |
| 68 | 57 | 76 | 52 | 60 | 55 | 54 | 68 | 57 | 76 | 52 | 60 | 55 | 54 | |
| 84 | 76 | 88 | 70 | 77 | 83 | 74 | 84 | 76 | 88 | 70 | 77 | 83 | 74 | |
| 50 | 37 | 37 | 38 | - | - | - | 50 | 37 | 67 | 46 | - | - | - | |
| - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
| 65 | 53 | 65 | 55 | 48 | 55 | 67 | 70 | 75 | 65 | 62 | 69 | 72 | 67 | |
| 57 | - | 43 | 55 | 48 | 33 | 52 | 57 | - | 43 | 55 | - | 83 | - | |
| 40 | 55 | 36 | 48 | - | - | - | 50 | 82 | 50 | 60 | - | - | - | |
| - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
Table 2.4: Average detection delay at a maximum MAR of 5%, and a maximum FAR of 20% for spatially clustered faults SCF-IN and SCF-OUT in the Oklahoma network. The columns show the cluster size and the rows are the QC methods. The boldface and underline highlight the best and the second best performing QC methods.
2.7 Discussion and Conclusion
Timeliness in the detection of broken rain gauges is important. Flood and drought indicators/alarms are more valuable when the data is accurate and reflects recent precipitation events. Crop insurance and other agricultural programs may depend on accurate rain measurement in specific locales. Timeliness of broken gauge detection impacts timeliness of repair. As budgets are limited, false alarms must be reduced to minimize repair costs. The Oklahoma Mesonet is able to detect blocked rain gauges rapidly with a low false alarm rate by comparing the sensor-reported rainfall with real-time Doppler radar estimates of rainfall. Additionally, Oklahoma Mesonet sensors are regularly rotated, with sensors in the field brought back to the lab, cleaned and recalibrated, and then redeployed to replace sensors in a different location.
One of the central questions of this work is how well we can detect blocked rain gauges using only the sensor readings themselves. The results show that for spatially-random faults, CMM can achieve detection delays of 30 days for most configurations in both TAHMO Kenya and Oklahoma Mesonet. KR is also very strong on Mesonet, but its detection delays are in the 34-70 range on TAHMO Kenya (see Table 2.1). One factor affecting performance is the distance between sensors in the network and the degree to which rain events are wide-spread versus being more local. Rainfall events in Kenya are more local, and many of the TAHMO stations are close together (see Figure 2.2). This
| Method | FAR ≤ 20% | FAR ≤ 10% | FAR ≤ 5% | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 3 | 4 | 5 | 2 | 3 | 4 | 5 | 2 | 3 | 4 | 5 | |
| 81 | 93 | 49 | 104 | 137 | 93 | 113 | 161 | - | - | - | ||
| 65 | 65 | 64 | 87 | 65 | 73 | 64 | 102 | 71 | - | 83 | 102 | |
| 45 | 63 | - | - | 70 | 63 | - | - | - | - | - | - | |
| - | - | - | - | - | - | - | - | - | - | |||
| 108 | - | - | - | 108 | - | - | - | - | - | - | - | |
| - | - | - | - | - | - | - | - | - | - | - | - | |
| 66 | - | - | - | - | - | - | - | - | - | - | - | |
| - | - | - | - | - | - | - | - | - | - | - | - | |
Table 2.5: Average detection delay at a maximum MAR of 5%, and a maximum FAR of 20% for spatially clustered faults SCF-IN and SCF-OUT in the TAHMO Kenya network. The columns show the cluster size and the rows are the QC methods. The boldface and underline highlight the best and the second best performing QC methods.
gives acceptable performance. Rainfall events in Oklahoma are more global, and the Mesonet stations are farther apart. This also gives good performance. Our experiments with removing nearby stations show that if the Mesonet stations were further apart, none of our methods work very well, despite the global nature of the rainfall events.
The experiments in Section 2.6.2 explored the performance differences between algorithms that use predominantly local information (the CMM), often set at training time, and algorithms that are able to use the entire network of stations. Essentially these experiments simulate scenarios in which a target station's local neighbors, within some distance , are not available. The question then arises of how informative the more distant neighbors are in helping to detect that the target's rain gauge is blocked. It also follows that, as there is less local information available to the algorithms, there would also need to be larger scale rain events (or multiple scattered events) to provide useful data to the algorithms. For instance, if we are limiting a target's neighbors to those km from the target and the only rain event during the testing period is a 5 km-diameter rain event at a neighbor 10 km from the target, the more distant neighbors will be uninformative (as is the excluded neighbor).
As with the fault level results in Section 2.6.1, there are additional ADD vs. MAR vs. FAR trade-off points available outside of the fixed MAR plots. Figure 2.13 highlights not just the FAR vs. MAR trade-off, but also the effect of evidence on an

FAR vs MAR
FAR vs MAR
Figure 2.13: AMOC and FAR-MAR trade-off of algorithm performance for the Oklahoma network with 15% faulty rain gauges that are spatially random, neighbors 30 km are excluded, for two and three days of evidence. Plots in the left column show performance with two days of evidence and and plots in the right column show performance with three days of evidence
algorithm being able to provide satisfying performance points in the FAR 0.20, MAR 5% constraint space. First, with two days of evidence, there are two algorithms, FZ-filter and KR, that offer points in the constraint space. FZ-filter detects at 60 days of delay with about 6% FAR and 0% MAR, while KR offers a similar 60 day detection delay, a higher 20% FAR at the same 0% MAR.
For the detection of clustered faults, the plots in Figure 2.11 show that KR and GM work well in SCF-IN. But in the TAHMO Kenya network, no QC method is able to work well. This suggests that, because the rain events are more local, we need a higher density of weather stations along the periphery (especially the coast). For example, stations in Tanzania and Uganda may be used when diagnosing faults in sensors along
AMOC - SCF-IN (size 2)

FAR vs MAR
Figure 2.14: AMOC and FAR-MAR trade-off of algorithm performance for the Kenya network with 15% faulty rain gauges that are spatially clustered with size=2 in the interior of the network, for two days of evidence.
the international borkers with those countries. Additionally, we note that CMM is particularly vulnerable to clustered faults, because of its fixed neighborhood definition.
As we’ve found with most experiments, examination of MAR ≤ 5% instead of fixed 5% MAR yields additional satisfying points. Figure 2.14 shows that the KR algorithm is able to detect blocked gauges with about 15 days of detection delay with about 15% FAR and 0% MAR. This offers a trade-off versus the satisfying point at 5% MAR that offers a 10% FAR—but at about 90 days of detection delay. We also see that FZ-filter offers a satisfying point in the constraint space with 0.05 FAR, 0% MAR, but an incredible 175 days of detection delay.
As noted previously, most of our experiments fixed MAR at 5% so that results were more easily comparable. As we’ve already discussed, it is often worthwhile to examine the entirety of the constraint space, e.g., , , for satisfying points. As there are variable real-world costs associated with MAR, FAR, ADD, there are opportunities to select trade-off points that are adapted to the needs of specific regions, seasons, emergency response policies, insurance risk models, etc.
The results of our experiments show that CMM achieves good detection delay with multiple days of evidence, despite the fact that currently-deployed version alarms with only one day of evidence in TAHMO. Although one day of evidence generally produces lower detection delay, it also generates a much higher false alarm rate, mostly larger than 20%. For instance, in regions of higher station reliability (5% faulty), using four days of evidence would significantly reduce the FAR to about 15%, at the cost of approximately 25-30 days of detection delay (see Figure 2.15, upper left plot). At this 15% FAR, we wouldn't miss any alarms as the corresponding MAR is 0% (see Figure 2.8, lower left plot). While the CMM FAR is 50% higher than that of the manual satellite QC process, the reduction in detection delay from 90 days for the satellite to 30 days for the CMM method might be a worthwhile trade-off, at least in certain seasons and/or regions where there are higher risks associated with faulty rain gauges. In regions of lower station reliability (20% faulty), we also find improvements over the currently-deployed system when we require five days of evidence. The FAR drops to about 15% with approximately 1% MAR, at the cost of about 50 days of detection delay (see Figure 2.15, upper and lower plots on the right). In this setting of more faulty stations, the CMM detection delay is still roughly half that of the satellite, and the reduced detection delay may offer similar benefits in exchange for more false alarms.
Although we constrained our analysis of TAHMO network data to the stations in Kenya, TAHMO is a continent-scale network with over 700 stations. Many of these stations are widely dispersed, and a significant fraction of them are poorly maintained. Even more troublesome is that many stations are offline for extended periods of time because of battery or network connectivity problems. This means that the neighborhood structure of the network is not stable, so methods such as CMM that require such stability, do not work well. This suggests that KR and GM might be a better choice for many parts of the continent.
The CMM algorithm provides a good example of a local information model that performs reasonably well under benign conditions in both the Oklahoma and TAHMO Kenya settings. The KR and GM models leverage global information and provide value

FAR vs MAR
FAR vs MAR
Figure 2.15: AMOC and FAR-MAR trade-off of algorithm performance TAHMO Kenya network. The left hand plots represent 5% faulty rain gauges that are spatially random with four days of evidence. The right hand plots represent 20% faulty rain gauges that are spatially random with five days of evidence.
when the rate of local failures is high for a given target station and local information is constrained or not available at all.
2.8 Acknowledgements
We would like to acknowledge Michael Slater and Austin Kaburia for their contributions in preparing the TAHMO dataset used in this study.
Algorithm 4 CMM
Data Structures and Parameters z: z[i] is number of “prediction error” days for station i : rain ≤ is treated as zero : number of prediction error days before a station is declared “blocked” : anomaly detection threshold for station i model parameters for each station : fitted residual variance for station i : parameter to prevent division by zero
Procedure for all stations
loop read day t measurements for do if and then # Normal is the Gaussian density if then else end if if then # Prediction error day end if if then report gauge i blocked end if end if end for end loop
Algorithm 5 AMOC
Inputs: A : set of alarm tuples where i indexes the station, t is the date of the alarm, and s is the alarm score
n: number of stations in the weather network
T: length of time period for the dataset
time of inserted fault. If no fault is inserted,
Output: R: set of points giving the false alarm, average detection delay, and missed alarm rates for threshold .
1: Procedure
2: time of first alarm for station i
3: : total detection delay of true positives
4: FP, FN, TP, TN: number of stations in each set
5: Initializations: All stations are either FN or TN
6:
7:
set of faulty stations
8:
9:
10: Sort input A in decreasing order of s values
11: for do
12: if then
i is faulty
13: if then
i was a FN
14: if then
FN becomes TP
15:
16:
17: else if then
FN becomes FP
18:
19:
20: end if
21: else if then
i was a TP
22: if then
i remains a TP but with shorter delay
23:
24: else if then
TP becomes FP
25:
26:
27: end if
28: else if then
FP remains a FP
29: end if
30: else
i is a non-faulty station
31: if then
TN becomes FP
32:
33: else
FP remains FP
34: end if
35: end if
36:
37:
38: end for
39: return R
Integrating Probabilistic Consistency-Based Diagnosis and Joint Inference for Advanced Weather Sensor Diagnosis
Irené Tematelewo and Thomas G. Dietterich
Chapter 3: Integrating Probabilistic Consistency-Based Diagnosis and Joint Inference for Advanced Weather Sensor Diagnosis
3.1 Abstract
Sensor networks have become instrumental in applications ranging from weather forecasting to resource exploration, thanks to their ability to collect vast amounts of high-resolution data. Despite their advantages, these networks face significant challenges related to data quality, which can be compromised due to environmental conditions, network transmission issues, and technical errors. Effective quality control (QC) mechanisms are crucial for ensuring data reliability, particularly in precipitation sensor networks, which are vital for regions dependent on rainfed agriculture.
Traditional QC methods fall into two categories: rule-based and probabilistic. Rule-based methods are simple, efficient, and easy to implement but they cannot adapt to the pattern of behavior of each individual sensor. For instance, a value that is high for one location may be normal for another location. In consequence, range checks need to be very conservative to avoid causing many false alarms. Probabilistic methods on the other hand, despite being more complex, excel at detecting clusters of faulty sensors through joint reasoning, making them valuable for identifying anomalies across multiple sensors. However, both approaches have their drawbacks, including susceptibility to false alarms and missed detections.
This paper introduces two general-purpose methods for sensor diagnosis that leverage joint reasoning to address the limitations of existing QC methods, particularly in scenarios where clusters of sensors may fail simultaneously. These methods aim to enhance the detection of erroneous sensor readings and improve the overall reliability of sensor network data.
3.2 Introduction
Sensor networks have revolutionized research and predictions in various applications such as weather forecasting, environmental study, natural hazards study and resource exploration [9]. These networks facilitate the collection of massive amounts of data at fine resolution, offering significant benefits. However, these advantages come with the risk of compromised data quality if robust quality control mechanisms are not in place.
Throughout the data collection process, the integrity of the data can be threatened at different phases. For instance, environmental conditions, such as extreme weather, can damage or disrupt sensors, network transmission issues may corrupt the data during transfer, and technical errors or hardware degradation can introduce noise and inaccuracies [20]. Traditionally, providing raw data with limited or no quality checks to end consumers or the public has been a common practice in the ecological community [9]. However, without proper quality control (QC), utilizing such data for prediction or decision making can yield misleading or consequential results. While expert knowledge can be leveraged to identify certain abnormal sensor behaviors, the scale of modern sensor networks renders manual QC impractical. Therefore automated QC procedures are essential for detecting erroneous sensor readings and ensuring data reliability.
The significance of QC in weather sensor networks, especially in precipitation sensor networks (or rain gauge networks), cannot be overstated, given the pivotal role of rainfall for humanity. Many countries in Africa, Latin America and South Asia heavily depend on rainfed agriculture for their staple food [62, 81]. QC for rainfall data presents unique challenges: (i) unlike other weather variables (e.g., temperature, relative humidity, atmospheric pressure), precipitation is intermittent with a highly non-Gaussian skewed distribution [73]; (ii) the correlation between rainfall at neighboring weather stations can be remarkably low [86]; (iii) the most common correct reading is zero precipitation, which is the same reading recorded when a rain gauge is blocked (i.e., a sensor reporting zero rainfall on rainy days). Addressing these challenges is crucial for ensuring the accuracy and reliability of rainfall data in critical regions worldwide.
The most prevalent methods for QC in weather data can be grouped into two categories: (1) rule-based methods, which encode expert knowledge of the variable being checked into a set of rules such that measurements that violate those rules are flagged as anomalous [42, 43, 40]; (2) probabilistic methods, which typically model the probability
(or probability density) of the correctly functioning system and then use a predefined threshold to flag test observations having a low probability (or density). A drawback of these methods is that if the system is functioning correctly but in an unusual state, the probability can be low, which leads to false alarms. Conversely, if the system is faulty but in a very common state, then the probability of the observations may still be very high, and this leads to missed alarms.
Rule-based methods offer a distinct advantage in their simplicity and ease of implementation. They are computationally efficient and they mostly do not rely on historical training data, making them accessible and practical. However, their effectiveness is confined to anomalies within the realm of expert knowledge. In contrast, probabilistic models, while computationally more demanding, excel in conducting joint reasoning across multiple sensors. This capability enhances their potential to detect clusters of malfunctioning sensors (e.g., a natural catastrophe such as flood or hurricane can cause multiple sensor from a same region to report incorrect values), presenting a valuable advantage in scenarios where agreement between multiple broken sensors increases the difficulty of anomaly detection.
This paper proposes two general purpose methods for sensor diagnosis via joint reasoning that aim to address the limitations of existing QC methods in settings when clusters of sensors can be simultaneously faulty.
This article is structured as follows. In Sections 3.3 and section 3.4, we formally present the problem addressed in this paper and provide a comprehensive background on consistency-based diagnosis and probabilistic fault detection. Section 3.5 introduces the proposed methods for probabilistic consistency-based sensor diagnosis via joint reasoning. Section 3.6 describe the datasets used for evaluating the proposed methods, introduces the metrics used, and describes the experimental setup used to analyze each method, and presents the results. Finally, in section 3.7, we conclude the article and outline future research directions.
3.3 Problem Setup
Let be a network of weather sensors, and be a vector of measurements/observations of a variable (e.g., rainfall, air temperature, atmospheric pressure) from the sensors in at time . We use notation to denote the

Figure 3.1: Illustrative example of a network with faulty sensors that spatially randomly distributed. , and (in red) are the faulty sensor, while the rest of the sensor are working correctly.

Figure 3.2: Illustrative example of a network with faulty sensors that spatially clustered. , and (in red) are the faulty sensor, while the rest of the sensor are working correctly.
set of k most similar sensors to . Where similarity can be defined in terms of distance or historically correlation between two sensors.
Given historical data of a weather variable from the sensor network , we are interested in diagnosing the sensors at time , based on observations . We assume that all sensors are working correctly up to time , and that certain sensors may be malfunctioning from time . We also assume that the faulty sensors (if any) can be either spatially random (i.e., independent) or spatially clustered (i.e., a group of neighboring sensors becoming faulty simultaneously) — see Figure 3.1 and 3.2 for an illustration of spatially random and spatially clustered faulty sensors. We denote the set of broken sensors as , where indicates that sensor is functioning incorrectly, and indicates that sensor is working properly.
We use notation to represent the vector without index (i.e., all sensors except ), and we use notation interchangeably to refer to either weather station or sensor depending on the context".
3.4 Background
In this section, we introduce the theories of consistency-based diagnosis and probabilistic fault diagnosis. We then discuss the advancements and contributions of our proposed methods.
3.4.1 Consistency-Based Diagnosis
There are two main approaches to diagnosis. The first approach, sometimes called “abductive” or “experiential”, assumes that the set of possible faults in the system is known. For every possible combination of system inputs and faults, this approach applies a model to predict the observations that will be produced by the system. The model must include both the normal behavior of the system and the behavior for each possible combination of faults. Models of faulty behavior are called “fault models.” For example, in medical diagnosis, each fault is a disease, and for each disease, physicians know what symptoms are likely to be observed (fever, headache, lab tests that can identify different types of bacteria, etc.). A diagnosis identifies a set of faults that explain all of the observed outputs of the system including, particularly, the symptoms. Diagnostic reasoning can be accomplished through formal logic or through probabilistic methods. Bayesian diagnosis, in particular, computes the posterior probability of each possible diagnosis given the observations.
The requirement to have fault models leads to two problems. First, creating and debugging the fault models is very time-consuming. Second, it is impossible to diagnosis novel faults.
The second approach, consistency-based diagnosis, refers to fault detection techniques that rely on modeling only the correct behavior of a system and detecting faults as inconsistencies between expected and observed behavior. Any inconsistency induces a diagnosis problem, which is resolved by identifying the set of system components that explain the inconsistency when they are assumed to be faulty [16, 37, 46, 60]. Unlike the abductive/experiential approach to diagnosis [10, 27, 60], consistency-based methods — also referred to as diagnosis from first principles [60] — do not need models of each potential fault. Instead, any inconsistency between prediction and system observation is viewed as evidence of faulty behavior. This allows the system to detect novel faults that have not been anticipated by fault modeling from expert experience.
The consistency-based approach was first formalized in first-order logic by Ray Reiter Reiter [60]. It defines a system with observations as a triple (SD, COMPS, OBS), where SD, short for system description, is a model (expressed as a set of logical formulas) describing how the components of the system normally behave. Each logical formula that describes the behavior of a component C includes a predicate (short for “C is not abnormal”) to say that the behavior is only predicted when C is working properly [48]. COMPS is a finite set of components in the system. OBS is a finite set of first-order formulae representing the available observations [46, 59, 60]. An example of a system description for a precipitation sensor is the following: “The range of rainfall collected by a normal rain gauge in 5 minutes is between 0 and 0.4 inches.” Which can be expressed in first-order logic as follows:
The literal is the health function, which takes value true when component x is faulty and false otherwise. Likewise, the literal describes a normal component when it takes value true. A system (SD, COMPS, OBS) with n components is considered faulty when an observation has been made that conflicts with the system description. That is, at least one of the system components must be dysfunctional. In other words, the observation contradicts the system description when all the components are assumed to be working correctly. This can be expressed as:
where is the logical entailment relation, and expresses a contradiction. For example, a normal rain gauge reporting negative rainfall is a contradiction.
Finding the set of components that, when assumed faulty explains the contradiction constitutes a diagnosis. Which we formally define by borrowing Reiter's [60] notation as follows:
Definition 3.4.1 (Diagnosis). is a diagnosis for the system (SD, COMPS, OBS) if
is consistent.
From definition 3.4.1, the following remarks emerge:
• An inconsistency may be explained by multiple diagnoses
• Assuming all components to be faulty always explains any inconsistency (trivial diagnosis).
With these remarks, a more practical definition of diagnosis is one that seeks to find the diagnosis with the smallest cardinality. Let's call such a diagnosis a minimal diagnosis. Since one can have multiple minimal diagnoses, algorithms similar to Cazes and Kalech [10] can be used to select the most probable diagnosis. We therefore define consistency-based diagnosis as a minimal set of components that, when assumed faulty, explains the contradiction while maintaining consistency between the system description and the observation. Based on proposition 3.4 from Reiter [60], we formally define consistency-based diagnosis as follows:
Definition 3.4.2 (Consistency-based diagnosis). is a consistent diagnostic for the system (SD, COMPS, OBS) if is a minimal set such that
is consistent.
Example 3.4.1. Consider Figure 3.3, which depicts a weather network of 5 rain gauges from 5 weather stations , , , such that , and are working correctly, while and are simultaneously broken. and always report zero rainfall even on rainy days. Suppose a sensor's observation can be predicted using its 2 closest neighbors, and let be the set of neighbors of sensor ( ) as defined in Table 3.1.
Suppose the rainfall observed over the network for 5 days is given in Table 3.2,

Figure 3.3: Illustrative sensor network.
| Sensor | neighbors |
|---|---|
Table 3.1: Neighbors of each sensor in the illustrative example.
| Day | Rain | Rain | Rain | Rain | Rain |
|---|---|---|---|---|---|
| 1 | 0.0 | 0.0 | 5.1 | 2.4 | 3.3 |
| 2 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| 3 | 0.0 | 0.0 | 3.5 | 6.2 | 7.0 |
| 4 | 0.0 | 0.0 | 2.0 | 4.1 | 5.0 |
| 5 | 0.0 | 0.0 | 4.0 | 5.5 | 1.0 |
Table 3.2: Illustrative artificial rainfall (mm) observed over the sensor network in Figure 3.3
Let , and
\begin{aligned}SD_{2}&=\{\forall x\in COMPS,(y,z)=\eta_{x},\\&\quad\bigwedge_{t=1,\dots,T}\left(\begin{array}{c}\end{array}\right.\\&\quad \text{RAINGAUGE}(x)\wedge \text{RAINGAUGE}(y)\wedge \text{RAINGAUGE}(z)\\&\quad \wedge \neg \text{AB}(x)\wedge \neg \text{AB}(y)\wedge \neg \text{AB}(z)\wedge \text{DAY}(t)\\&\quad \wedge \text{RAIN}(x,t)=0\wedge \text{RAIN}(y,t)>0\wedge \text{RAIN}(z,t)>0\right) \vdash \perp\\&\quad \}\end{aligned}describes the fact that all working rain gauges always report non-negative rainfall, while states that it is a contradiction if a target rain gauge and its neighbors are all working correctly and for consecutive days, the neighbors report nonzero rainfall while the target reports zero rainfall.
We have
• COMPS =
•
• OBS = (rainfall values from Table 3.2)
A minimal consistent diagnosis for the sensor network of example 3.4.1 is .
Proof. (i). therefore, is consistent. (ii). Suppose there exists such that and . implies .
and . Thus, . This is a contradiction. Therefore, is minimal. represents any combination of predicates AB and/or .
3.4.2 Probabilistic Fault Diagnosis
Probabilistic fault diagnosis methods leverage probabilistic models and statistical inference techniques to quantify uncertainty and make informed decisions about system conditions. These methods use fault classification heuristics to estimate the most likely fault state of system components [3]. Probabilistic graphical models such as Bayesian networks, Markov networks and logistic regression are popular examples of probabilistic fault diagnosis methods [39, 52]. Bayesian networks and Markov networks represent the relationships between variables (system components, fault types, observations) as directed and undirected graphs, respectively. Bayesian network approaches combine prior knowledge (e.g., fault prevalence) with new evidence to calculate the probability of a particular fault or combination of faults [8, 19, 46, 51, 85]. For example, consider the rain gauge network from Figure 3.3, and suppose that the true rainfall at weather station

Figure 3.4: Illustrative Bayesian network.
is a latent variable , and is an observation of the true rainfall by ( ). Let be a binary random variable representing the state of sensor . If , is working correctly, but if , is faulty. An example Bayesian network representation of the system is presented in Figure 3.4. This example encodes the causal relationship between the true but latent rainfall variables , and the knowledge that the rain gauge reading (the observed rainfall) is caused by the true rainfall and the sensor state . From this Bayesian network, fault diagnosis can be performed by computing the posterior distribution over state variables given the observations. The posterior distribution can be derived from the joint distribution , using the Bayes rule as follows:
with , and . is the prior belief about the sensors' state before data is observed, and is the posterior belief. The posterior belief assigns a probability to every possible setting of . There are exponentially-many such settings, so some algorithms only seek the highest probability diagnosis
Our description of probabilistic diagnosis has assumed that the system is modeled in the causal direction. It is possible to approach diagnosis in the anti-causal direction by formulating it as a classification problem. The observations are the inputs, and the state variables are the outputs. To avoid the combinatorial explosion of possible outputs, it is customary to predict the presence of each fault separately. Hence, if there are components, we must fit separate classifiers. Probabilistic classifiers, such as logistic regression, are typically employed [52, 53, 54, 86].
A major advantage of probabilistic methods for fault diagnosis is the uncertainty quantification and the confidence in the prediction provided by probability values. But the disadvantage of existing methods for probabilistic diagnosis is that they require fault models. In particular, note that is the fault model for component i. The central contribution of this chapter is to introduce probabilistic methods for consistency-based diagnosis.
3.5 Proposed Methods
In this section, we describe the two proposed probabilistic consistency-based sensor diagnosis (PCSD) methods. In section 3.5.1, we present a Boolean satisfiability constrained optimization-based method (PCSD-SAT), and we describe an iterative belief update-based approach in section 3.5.2. We propose two versions of the latter approach, one based on a kernel regression model, that we name PCSD-JIKR, and the other one, PCSD-JIGM, based on a joint Gaussian model. We give the intuition behind each method and we describe the corresponding algorithms.
3.5.1 Probabilistic Consistency-based Sensor Diagnosis using SAT-solvers (PCSD-SAT)
Consider the sensor network , and let be a vector of observations throughout the network at time . We will model the joint distribution of as a multivariate Gaussian distribution with mean and covariance :
Let be the set of neighbors of , and be the vector of observations at at time . The consistency of an observation from sensor at time can be evaluated using the conditional distribution , which is a Gaussian distribution with parameters and , defined in equation 3.3 and 3.4 [5, 52]
where and , which are subsets of and , represent the mean vector and the covariance matrix of 's neighbors, .
Let denote the conditional cumulative distribution function, and let be the one-sided tail probability of . Define to be the two-sided p-value.
Definition 3.5.1 ( -consistency and -inconsistency). Let be a weather station with observation at time , the set of neighbors of , the observations from at time , and be the two-sided -value of conditioned on . A sensor's observation from is -consistent if (for ). Otherwise, it is called -inconsistent.
Because of neighbor conditioning, can be -inconsistent without being a faulty observation. This may happen when one or more of 's neighbors are faulty. Therefore, an -inconsistent reading should be interpreted as an indication that one or more of the sensors involved in is faulty (i.e., and/or any of its neighbors can be the culprit). Finding the set of sensors that, when removed, restore -consistency is the goal of consistency-based diagnosis. In order to find those sensors, we propose to evaluate the -consistency of all possible combinations of sensors in . Those evaluations can be summarized into a truth table, and subsequently expressed as boolean formula that evaluates to true for any boolean assignment to the variables that leads to -consistency. Let be the state of sensor , such that takes value 1 when is broken, and 0 otherwise. Any boolean assignment that sets is alpha-consistent.
Once all assignments have been evaluated for each sensor ( ), we create a boolean formula from the -consistent assignments. We can do joint reasoning to find the set of broken sensors over the entire network by finding the minimum number of sensors that, when assigned to the faulty state ( ) satisfy all the boolean constraints. This is equivalent to solving following optimization problem:
The constraints can be further transformed into binary integer constraints, making the constraint satisfiability optimization problem a linear integer programming (ILP) optimization problem, which can be solved by existing ILP solvers [11, 30]. Example 3.5.1 illustrates a step-by-step application of the method.
Example 3.5.1. Consider the illustrative rain gauge network of example 3.4.1, and let , , , and be the observed values from sensors , , , and respectively. Let , , , and be their status, where ( ) if is working correctly, and otherwise. is the set of neighbors of as presented in Table 3.1. Sensor can be diagnosed by reasoning over , , and through the evaluation of all combinations of boolean assignments to . Let be the p-value of given and , and let be a pre-defined threshold for consistency check. The -consistency of each combination can be evaluated using the p-value as follows:
• : -inconsistent.
• : -consistent.
• : -inconsistent.
• : -consistent by definition.
• All are -consistent by definition .
This evaluation of Boolean assignments to can be represented as a truth table as shown in Table 3.3. Similarly, the truth tables resulting from evaluating the -consistency of , , and are presented in Table 3.3, 3.4, 3.5, 3.6 and 3.7 respectively.
The truth table of (Table 3.3) can be further simplified as follows:
This can be rewritten as
Similarly, we have
The problem of diagnosing , , , and can be defined as identifying the minimum number of sensors that, when assigned a broken status, satisfy all the Boolean formulas , . This is equivalent to the following constrained optimization problem:
The minimizers of 3.11 are and . For blocked rain gauge detection, the most likely diagnostic can be selected by reasoning over the precipitation amount recorded by the faulty sensors. This leads to as final diagnostic.
As we have written it, the optimization problem 3.11 involves products of variables. By introducing intermediate variables , it can be expressed as a binary integer linear programming problem as shown in 3.12.
Algorithm 6 presents the pseudo-code for PCSD-SAT.
Algorithm 6 PCSD-SAT
1: Data Structures and Parameters 2: b: is the status of sensor 3: : is the mean value of 4: : covariance matrix 5: : anomaly detection threshold 6: : confidence level for -consistency 7: k: number of neighbors 8: Procedure 9: Fit and to the training dataset 10:
set of all constraints
11: for do 12:
k nearest neighbors of
13:
set of consistent assignments of s
14: for do 15: 16: if or then 17: 18: 19: else 20: 21: if then 22: 23: 24: 25: else 26:
index of any
27: 28: 29: 30: end if 31: if then 32:
is consistent
33: end if 34: end if
35: end for 36: 37: end for 38: 39: 40: return
Algorithm 7 SOLVE
1: Data Structures and Parameters 2: b: vector of boolean variables 3: Q: set of sets of boolean strings that evaluate to 1 (in a truth table) 4: QMC: Quine McCluskey procedure for boolean expression simplification 5: Bool2Int: boolean formula to integer constraints (see eq. 3.11 to 3.12) 6: ILP: integer linear programming solver 7: Procedure 8:
set of all integer constraints
9: for do 10: 11: 12: 13: end for 14: obj min
objective function
15:
ILP returns an assignment to b that minimizes obj
16: return b
In the next section, we introduce PCSD-JIKR and PCSD-JIgm, two iterative approaches to probabilistic consistency based diagnosis via joint reasoning.
3.5.2 Probabilistic Consistency-based Sensor Diagnosis via Iterative Joint Inference (PCSD-JI)
In the previous section, we employ a hard p-value threshold to determine whether a station is faulty. In this section, we take a softer, incremental approach. We assign a variable to each station , that quantifies our belief that is working correctly. We use these values to modify the consistency p-value computation so that if station
Table 3.3: Truth table of
| consist. | |||
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | * | * | 1 |
Table 3.4: Truth table of
| consist. | |||
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | * | * | 1 |
Table 3.5: Truth table of
| consist. | |||
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | * | * | 1 |
Table 3.6: Truth table of
| consist. | |||
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | * | * | 1 |
Table 3.7: Truth table of
| consist. | |||
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | * | * | 1 |
Table 3.8: Truth tables. The first column of each subtable is the Boolean state of the target sensor. The symbol * means any value in , and the “consist.” column is the consistency of the target with those of its neighbors having a Boolean state of 0.
is a neighbor of station with , then the observation is down-weighted when computing the p-value of .
We initialize each , and then iteratively (and in parallel) update the values to shrink those whose observation has a small consistency p-value. The hope is that this iterative computation will converge to a good diagnostic solution where the broken stations have , for a learned threshold , while the working stations have .
Consider a sensor network , and let , be our belief about the state of sensor , such that if we are certain that is working correctly, and otherwise. Let be a random variable representing the variable measured by (e.g., precipitation, air temperature), and be the probability of sensor reporting a value more extreme than the observed value (i.e., the 2-sided -value). Let be the CDF of the predictive distribution , a Gaussian model parameterized by mean and variance . Given that the rest of the sensors are conditioning variables in the predictive distribution, and knowing that some of those conditioning variables could be observations from faulty sensors, we weigh the contribution of each variable (neighbor) relative to the level of belief about its state. That is, we want the contribution of each conditioning variable ( ) to be proportional to our belief about its working state. Once the predictive distribution is estimated for each sensor, we re-compute the p-value, update the values for only the sensors whose observations are -inconsistent and repeat the process until convergence of . A predefined threshold (empirically selected) can be applied to the learned (for all ) to flag faulty sensors.
We propose two methods for estimating the parameters of the predictive distribution that integrates the belief about the state of the sensors for into the estimate. Section 3.5.2.1 describes the first method, PCSD-JIKR which uses a kernel regression model and the second method, PCSD-JIGM which is based on a joint Gaussian model is presented in section 3.5.2.2.
3.5.2.1 Kernel Regression Model (PCSD-JIKR)
In this method, we compute the conditional distribution of using kernel regression modified to incorporate the belief parameters . We model the conditional distribution as a Gaussian with mean and variance , computed as follows:
where is the belief about the state of sensor , is a radial basis function (RBF) kernel with scale parameter , and is the distance between locations of sensors and . We set throughout this paper and tune on training data.
The sensors with small values make smaller contributions to the estimated mean and variance . This attenuates the influence of faulty neighbors in the prediction of the expected value recorded by a given target sensor.
As described above, the values are initialized to 1 and then iteratively shrunk towards the computed p-values. The pseudo-code of the iterative procedure is presented in algorithm 8. Note that is only updated when the p-value is smaller than the pre-defined significance level . This prevents all of the values from collapsing to zero. Note also that the sensors with biggest standard errors are more aggressively updated.
Algorithm 8 PCSD-JIKR
1: Data Structures and Parameters 2: : is the status of sensor 3: : is the kernel between and 4: : fault detection threshold 5: : confidence level for -consistency 6: : learning rate 7: Procedure 8: for all 9: for all 10: repeat 11: for do 12: 13: 14: 15: 16: end for 17: for do 18: 19: end for 20: until converges 21: 22: return
3.5.2.2 Joint Gaussian Model (PCSD-JIGM)
PCSD-JIGM is identical to PCSD-JIKR with the kernel regression replaced by a joint multivariate Gaussian model. To describe the method, we must explain how to incorporate the belief variables into the computation of the conditional Gaussian for sensor .
We first estimate the joint Gaussian on historical (fault-free) data to obtain and . Let be the values of the belief variables at a given point in the PCSD-JI iterations. In the multivariate Gaussian, the importance of each conditioning variable in the estimation of the conditional mean and variance is controlled by the structure of the covariance matrix. To reduce the importance of variable , we can increase its variance as follows. Let be an matrix whose diagonal element is for all and whose off-diagonal elements are all 1. The conditional mean and variance can then be computed as
where denotes element-wise multiplication.
The rationale for this approach is the following. We want a mechanism that can decrease the impact of variable on the estimated conditional distribution without altering the covariance structure of the joint Gaussian. We can do this by adding zero-mean Gaussian noise to to obtain a modified variable . This has the following effects:
Equation 3.18 shows that the mean is unaffected (because the noise has zero mean), and Equation 3.19 shows that the covariance with any other sensor is unchanged (because the added noise is uncorrelated with , so ). However, Equation 3.20 shows that the variance of increases as desired. In PCSD-JIGM, rather than adding , we divide by so that the variance goes to as , at which point the effect of would be completely removed.
Algorithm 9 gives the pseudo-code for PCSD-JIGM.
Algorithm 9 PCSD-JIGM
1: Data Structures and Parameters 2: : is the status of sensor 3: : is the mean value of 4: : covariance matrix 5: : anomaly detection threshold 6: : confidence level for -consistency 7: : learning rate 8: Procedure 9: for all 10: for all 11: Fit and to the training dataset 12: an matrix of all 1s 13: repeat 14: for do 15: for 16: 17: 18: 19: 20: 21: end for 22: for do 23: 24: end for 25: until converges 26: 27: return
3.6 Experiments and Results
We empirically assess the proposed probabilistic consistency-based diagnosis methods on the task of detecting blocked rain gauges. Blockages, caused by debris, can obstruct the funnel hole or restrict the sensor's measurement of rainfall. A completely blocked gauge will inaccurately report zero rainfall, during rainy days. Our evaluation utilizes rainfall data from two weather sensor networks, testing the methods in two scenarios: one with spatially random distribution of faulty sensors and another with spatially clustered faults. We compare the performance of our methods against four baseline quality control (QC) methods.
Before discussing the results, we will outline the evaluation setup, detail the datasets and metrics employed, and introduce the baseline methods against which we will compare the performance.
3.6.1 Datasets
Precipitation data from two weather networks are used to evaluate the performance of the QC methods described in Section 3.5. The first dataset contains weather data from 81 weather stations drawn from the Oklahoma Mesonet dataset [7, 49], collected in 2008 and 2009. The Oklahoma Mesonet dataset contains measurements for several weather variables including precipitation, air temperature, atmospheric pressure, relative humidity, wind speed, wind direction, and solar radiation. The observations are reported every 5 minutes with a time stamp along with a quality flag indicating instances of anomalous measurements or obvious sensor failures — these sensor failures include out of band readings (e.g., −999 mm of rainfall) and other type of fault. Our experimental approach is to simulate clogged rain gauges by replacing the observed precipitation with zeros. Hence, we discard observations from a station for any day in which any weather variable was flagged as bad. The Oklahoma Mesonet has excellent quality control procedures [49], so we can be confident that the remaining observations are correct (up to sensor measurement resolution). The second dataset consists of precipitation measurements from 23 weather stations from the Trans-African Hydro-Meteorological Observatory (TAHMO) [76] network collected in Kenya during the years 2020 and 2021. As with the Oklahoma data, these observations have been carefully checked to ensure that they are valid. Figure 3.5 presents a distribution of rainfall in training and test datasets from the Oklahoma Mesonet and the TAHMO Kenya weather networks.
We simulate fully and partially blocked rain gauges by inserting artificial faults into clean data in a way that reflects the expected behavior of blocked rain gauges. For the simulation of fully blocked rain gauges, we randomly replace a contiguous fraction of the observed values at a small proportion (e.g., ) of all rain gauges with zeros.
The faulty sensors can either exhibit spatially random or spatially clustered faults. For spatially random faults (SRF), faulty sensors are randomly selected and the onset dates of the anomalies are independent. Conversely, for spatially clustered faults (SCF), faulty sensors are geographical neighbors, with a single fault onset date applied within each cluster. We evaluate clustered faults under two scenarios, one where the cluster of faulty stations is surrounded by correctly working stations, which we refer to as SCF-IN, and a second scenario when at least one of the faulty sensors in the cluster is at the periphery of the network. We refer to the latter type of cluster faults as SCF-OUT. For both SCF-IN and SCF-OUT, we simulate different cluster sizes ranging from 2 to 5 for the TAHMO Kenya dataset and from 2 to 8 for the Oklahoma Mesonet dataset. Figure 3.6a and 3.6b illustrate examples of spatially random faults with 12 faulty sensors out of 81, and spatially clustered faults of size 8 (8 faulty sensors out of the 81) in the Oklahoma Mesonet test set.
3.6.2 Evaluation Metrics
Precision, recall, true positive rate (TPR), false positive rate (FPR), and the area under the receiver operating characteristic curve (AUROC) are the key metrics commonly used for binary classification. While these metrics are suitable when the objective is to maximize the prediction accuracy, our quality control context prioritizes the early detection of malfunctioning sensors to facilitate timely repair. In this scenario, the first alarm raised by a QC system serves as the sole indicator for sensor network managers to initiate a trouble ticket. Therefore, we evaluate the QC methods studied in this paper based on their average detection delay ( ) and false alarm rate (FAR) at a fixed missed alarm rate (MAR). The detection delay is the time span between the onset of fault to the time the QC system raises an alarm. If an alarm is raised on a sensor that has no fault, or if the sensor is faulty but the alarm is raised prior to the onset of the fault, this is considered a false alarm. If an alarm is never raised on a faulty sensor, we consider this a missed alarm. Formally, let be the time of onset of the fault in sensor , such that if is never faulty, and let be the predicted fault onset time for . Let and indicate if there is a false alarm or a missed alarm for , such that if the QC algorithm raised a false alarm on , and otherwise. Similarly, if the QC algorithm missed a true alarm on , and otherwise. Note that
and cannot be true at the same time for the same sensor. With these definitions, we can compute the average detection delay, false alarm rate, and missed alarm rates as
where takes value 1 when z is true, and 0 otherwise.
3.6.3 Baseline Methods
We compare the joint reasoning methods PCSD-SAT, PCSD-JIKR, and PCSD-JIGM with the following baseline QC methods.
• Joint Gaussian model (GM): fits a joint Gaussian model to the historical data observed at all stations and employs the conditional distribution of each station conditioned on the rest of the network to predict the expected rainfall. Faults are detected by applying a threshold to the likelihood of observed rainfall under the conditional distribution.
• Conditional mixture model (CMM) [86]: fits a log-linear regression to the historical data observed at each station and up to five neighboring stations. The probability of zero rain is handled by a second logistic regression model for predicting the presence or absence of rain.
- PWSQC (Fz-filter) [17]: first calculates the median rainfall reported by neighboring sensors, excluding any missing values. If the median is greater than zero, the day is classified as a “wet day”, else it is classified as a “dry day”. If a target sensor reports zero rainfall on a wet day, it is considered a “wet zero” day for sensor . If experiences consecutive wet zero days (not counting dry days), it is declared to be blocked. This method is specifically designed only to detect clogged
rain gauges.
- Kernel Regression (KR): a neighbor regression method that estimates the expected rainfall at each station as a weighted average of the neighbors' observation. The weights are inversely proportional to the distance between target station and each neighbor. We implement a version neighbor regression similar to [49], but with a radial basis function (RBF) kernel for regression weight computation.
3.6.4 Experiment Setup
We introduce simulated faults into 20 copies of the two datasets described in section 3.6.1 for both spatially random and clustered faults, using different random seeds to evaluate the models' effectiveness in detecting these faults. For the CMM method, we consider up to five closest neighbors within 100 km of each target sensor/station ; for all other methods, we include all available sensors as neighbors when diagnosing .
The length-scale parameters for the kernel regression models are empirically estimated using the training set to minimize the mean squared residuals. A length scale of 60 achieved the lowest error. The learning rate for in PCSD-JIKR and PCSD-JIGM was set to . The IBM ILOG CPLEX optimizer was invoked to solve the integer linear programming problems in PCSD-SAT [11]. Lastly, we used values of , and for -consistency in PCSD-SAT, PCSD-JIKR, and PCSD-JIGM respectively.
We compare the proposed PCSD-SAT, PCSD-JIKR, and PCSD-JIGM methods against baseline approaches using average detection delay and false alarm rate (FAR) at 5% missed alarm rate (MAR), which corresponds to a recall of 95%. Recall represents the proportion of actual faulty sensors correctly identified by a QC method out of all the faulty sensors. Both the PCSD-SAT method and the PWSQC (FZ-filter) baseline generate daily boolean fault indicators for each station. To evaluate average detection delay and FAR at 5% MAR, we slide a window of varying sizes across each station's predictions, and declare an alarm when a sequence of flags matches the window size. We compute the average detection delay, MAR, and FAR for each window size (from 1 to the maximum number of consecutive days flagged by the QC method), and we report the average detection delay ( ) and FAR at 5% MAR. Other baseline QC methods output continuous scores, whereas PCSD-JIKR and PCSD-JIGM generate as their belief about the correct functioning state of sensor . We use as the fault score for PCSD-JIKR and PCSD-JIGM.
Inspired by the PWSQC (Fz-filter) algorithm [17], which flags daily rainfall as anomalous when zero rainfall is reported while neighboring values are non-zero, we assess quality control (QC) methods based on varying levels of flag aggregation. Specifically, we evaluate these methods by selecting a fault threshold such that sensors with a fault score above on a given day are flagged. We then use a sliding window approach, akin to the PCSD-SAT and PWSQC (FZ-filter) techniques, to aggregate these flags. An alarm is triggered when the number of flags within the window equals the window size. For each window size, we report and FAR metrics that achieve a 5% MAR. We consider window sizes ranging from 1 to 7 days, allowing up to a week of evidence to inform the diagnosis.
High MAR or FAR can be costly in sensor networks: missed alarms may lead to the publication of inaccurate observations, while false alarms incur economic costs due to unnecessary technician visits. Our goal is to ensure data quality by minimizing missed alarms and subsequently reducing false alarms and detection delays.
3.6.5 Results and Discussion
We assess the methods under three distinct fault spatial distributions:
• Spatially Random Faults (SRF): Faulty sensors are distributed randomly and independently across the network, each with different fault onsets.
• Spatially Clustered Faults Inside (SCF-IN): Faulty sensors are grouped as neighbors within the network, all sharing the same fault onset.
• Spatially Clustered Faults Outside (SCF-OUT): Faulty sensors are located at the periphery of the network, also sharing the same fault onset.
3.6.5.1 Detection of Spatially Random Faults (SRF)
In the SRF fault configuration, we evaluate the quality control (QC) methods using both the Oklahoma Mesonet and the TAHMO Kenya network, each with 15% faulty sensors. Our goal is to minimize detection delay, missed alarms, and false alarms. We compare the methods based on their average detection delay at a fixed missed alarm rate.
(MAR) of 5% (equivalent to 95% recall) and various maximum false alarm rates (FAR). Specifically, we consider FARs of 5%, 10%, 15%, and 20%. We aim to determine how long each method takes to detect at least 95% of faulty sensors while maintaining FARs below these thresholds. Figure 3.7 illustrates the trade-off between average detection delay ( ) and FAR for both networks. Tables 3.10 and 3.9 summarize performance within the FAR ranges of 0% to 5%, 10%, 15%, and 20%.
In the Oklahoma Mesonet network, the CMM method demonstrates the best detection performance with an average detection delay of 23 days at FARs of 10%, 15%, and 20%. PCSD-JIKR follows with a delay of 36 days. Other methods, such as PCSD-JIGM, PCSD-SAT, KR, and GM, have delays of 44, 58, 63, and 66 days, respectively. In the more constrained FAR range of 5%, PCSD-JIKR remains the best with a delay of 36 days. Figures 3.8 and 3.9 provide examples of rainfall data from the Oklahoma Mesonet, highlighting faulty sensors and showing the evolution of for PCSD-JIKR and PCSD-JIGM during days 86 and 161.
In the TAHMO Kenya network, CMM also achieves the best performance at FARs of 15% and 20%, with an average detection delay of 38 days. At FAR 15%, KR, PCSD-JIGM, and PCSD-JIKR show delays of 41, 48, and 48 days, respectively. At FAR 20%, KR, PCSD-JIGM, and GM have delays of 41, 39, and 118 days, respectively. For the more stringent FAR ranges of 5% and 10%, PCSD-JIGM is the best performer with a delay of 48 days.
For spatially random faults, when a FAR greater than 5% is unacceptable, the consistency-based methods PCSD-JIGM and PCSD-JIKR are preferable. If a slightly higher FAR is tolerable, CMM provides a significantly lower detection delay. Additionally, the Oklahoma Mesonet network shows shorter detection delays compared to TAHMO Kenya, likely due to its denser and more uniformly distributed stations, as well as more frequent heavy rainfall (see Figure 3.5). The PWSQC (Fz-filter) method is absent from the because its detection delays predominantly exceed the stringent MAR requirement of 5%.
| Method | FAR ≤ 5% | FAR ≤ 10% | FAR ≤ 15% | FAR ≤ 20% |
|---|---|---|---|---|
| PCSD-SAT | - | 58 | 58 | 58 |
| PCSD-JIGM | 44 | 44 | 44 | 44 |
| PCSD-JIKR | 36 | 36 | 36 | 36 |
| GM | 66 | 66 | 66 | 66 |
| KR | 63 | 63 | 63 | 63 |
| CMM | 42 | 23 | 23 | 23 |
| Fz-filter | - | - | - | - |
Table 3.9: Average detection delay in the Oklahoma Mesonet network at a maximum MAR of 5%, and a maximum FAR of 5%, 10%, 15%, and 20%. The best performing QC method in boldface.
| Method | FAR ≤ 5% | FAR ≤ 10% | FAR ≤ 15% | FAR ≤ 20% |
|---|---|---|---|---|
| PCSD-SAT | - | - | - | - |
| PCSD-JIGM | 48 | 48 | 48 | 39 |
| PCSD-JIKR | 71 | 67 | 48 | |
| GM | - | - | - | 118 |
| KR | 51 | 51 | 41 | 41 |
| CMM | 70 | 51 | 38 | 38 |
| Fz-filter | - | - | - | - |
Table 3.10: Average detection delay in the TAHMO Kenya network at a maximum MAR of 5%, and a maximum FAR of 5%, 10%, 15%, and 20%. The best performing QC method in boldface.
3.6.5.2 Detection of Clustered Faults
We compare the QC methods in the two clustered faults configurations SCF-IN and SCF-OUT. The two settings offer different challenges for the QC methods. When a cluster of faulty sensors is surrounded by nominal sensors, there's more opportunity for detection than when the cluster borders the edge of the network. In principle, on heavily rainy days, the sensors at the edge of the cluster will pull signal from nominal ones that are outside the cluster, increasing the chances of the QC methods to flag those faulty sensors. When the clusters are at the periphery of the network, however, the majority of the neighbors of those faulty sensors will also be faulty, which makes harder to detect them due to a lower signal-to-noise ratio.
We evaluate the average detection delay ( ) of various QC methods at 5% MAR for clusters of sizes 2-8 in the Oklahoma Mesonet network and sizes 2-5 in the TAHMO Kenya network. The TAHMO Kenya network is too small to permit larger cluster sizes. We examine performance in two FAR ranges: and . Figure 3.10 and 3.11 present the trade-off between average detection delay and FAR in both the Oklahoma Mesonet and the TAHMO Kenya network, while Table 3.11 and 3.12 summarize each QC method's best performance within the 5% MAR and the two FAR ranges and , in both networks.
In the Oklahoma Mesonet network:
-
At MAR = 5% and FAR ≤ 20%, CMM achieves the lowest detection delays for clusters of sizes 2-5, with average delays of 50, 37, 37, and 38 days. PCSD-JIKR and PCSD-JIGM are next, performing best for clusters of sizes 2-4 and 4-5, respectively. For clusters larger than 5, CMM's performance degrades, while PCSD-JIGM and PCSD-JIKR outperform other methods.
-
In the stricter performance space (MAR = 5% and FAR ≤ 10%), CMM is best for clusters of size 2-4. PCSD-JIGM excels overall, with detection delays of 44, 47, 48, and 42 days for sizes 5-8. PCSD-JIKR has the lowest delay for size 7 at 33 days. GM performs well for clusters of sizes 6 and 8, with delays of 60 and 54 days.
For SCF-OUT in the Oklahoma Mesonet network:
-
At MAR = 5% and FAR ≤ 20%, CMM leads for cluster sizes 2 and 4, with delays of 40 and 36 days. PCSD-JIGM has the lowest delays for sizes 3 (39 days) and 5-8 (46, 48, and 30 days).
-
In the stricter MAR = 5% and FAR ≤ 10% space, PCSD-JIGM achieves the lowest delays for sizes 3 and 5-8.
In the TAHMO Kenya network:
-
At MAR = 5% and FAR ≤ 20%, different methods excel in different cluster sizes. For size 2, CMM and PCSD-JIGM achieve the best delays of 25 and 47 days, respectively. For size 3, PCSD-JIKR and CMM perform best with delays of 62 and 63 days. For clusters larger than 3, CMM's performance drops, while GM and PCSD-JIKR perform well.
-
In the MAR = 5% and FAR ≤ 10% space, PCSD-JIGM and KR perform best for sizes 2 and 3. PCSD-JIKR and KR are best for size 4. In the stricter MAR = 5% and FAR ≤ 5% space, PCSD-JIGM leads for sizes 2-4, with delays of 47, 87, and 83 days. For SCF-OUT, PCSD-JIGM and CMM achieve detection delays of 44 and 66 days for size 2, with PCSD-JIGM being the only method to perform within the space for size 3 (74 days).
In summary, the detection delays of SCF are higher than those of SRF. This is expected, since a cluster of simultaneously faulty sensors provides a weaker signal when diagnosing faults within the cluster and therefore reduces the likelihood of timely detection. For spatially clustered faults, in the Oklahoma Mesonet network, CMM excels when the cluster size does not exceed 4. Beyond size 4, CMM breaks down if more than 10% FAR is unacceptable, while consistency-based methods PCSD-JIKR and PCSD-JIGM outperform all baselines. PCSD-JIKR and PCSD-JIGM also offer the second lowest detection delay in cluster sizes less than or equal to 4. When the faulty sensors are at the periphery, PCSD-JIGM is generally the best model at low FAR of 10% or less, with GM generally being the second best method. CMM's leading performance in small size clusters can be explained by its reliance on local neighbors solely for fault detection. This gives CMM a high predictive power over the rest of the methods that use the contribution of all available sensors for diagnosis. As the cluster size gets bigger, the signal from the neighbors becomes weaker, and the predictive power of CMM decreases. In that bigger cluster setting, consistency-based methods PCSD-JIKR and PCSD-JIGM, through their joint reasoning process, increasingly discount the contribution of those faulty sensors that are at the periphery of the cluster and pull information from nominal sensors outside of the cluster. Throughout the iterations, the signal penetrates into the cluster as the contribution of those sensors at the periphery of the cluster is increasingly discounted. GM and KR also outperform CMM, albeit with longer detection delays than PCSD-JIKR and PCSD-JIGM. This is because despite not doing joint reasoning, GM and KR, use all available neighbors for detection, and are still able to extract some signals from distant sensors in SCF.
For TAHMO Kenya, only PCSD-JIGM is achieves the lowest detection delay in more than one cluster size. With different methods scoring the best in different cluster sizes. This highlights the dominance of dry days in the TAHMO Kenya dataset, coupled with
| Method | FAR ≤ 20% | FAR ≤ 10% | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | |
| PCSD-SAT | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| PCSD-JIGM | 71 | 67 | 48 | 44 | 47 | 48 | 42 | 71 | 67 | 71 | 44 | 47 | 48 | 42 |
| PCSD-JIKR | 56 | 43 | 73 | 45 | 53 | 33 | 35 | 56 | 43 | 73 | 45 | 99 | 33 | 70 |
| GM | 68 | 57 | 76 | 52 | 60 | 55 | 54 | 68 | 57 | 76 | 52 | 60 | 55 | 54 |
| KR | 84 | 76 | 88 | 70 | 77 | 83 | 74 | 84 | 76 | 88 | 70 | 77 | 83 | 74 |
| CMM | 50 | 37 | 37 | 38 | - | - | - | 50 | 37 | 67 | 46 | - | - | - |
| Fz-filter | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| PCSD-SAT | 68 | - | - | - | - | - | - | - | - | - | - | - | - | - |
| PCSD-JIGM | 47 | 39 | 47 | 46 | 48 | 51 | 30 | 67 | 60 | 47 | 46 | 55 | 51 | 50 |
| PCSD-JIKR | 45 | - | - | 53 | - | - | - | 45 | - | - | 53 | - | - | - |
| GM | 65 | 53 | 65 | 55 | 48 | 55 | 67 | 70 | 75 | 65 | 62 | 69 | 72 | 67 |
| KR | 57 | - | 43 | 55 | 48 | 33 | 52 | 57 | - | 43 | 55 | - | 83 | - |
| CMM | 40 | 55 | 36 | 48 | - | - | - | 50 | 82 | 50 | 60 | - | - | - |
| Fz-filter | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
Table 3.11: Average detection delay at a maximum MAR of 5%, and a maximum FAR of 20% for spatially clustered faults SCF-IN and SCF-OUT in the Oklahoma network. The columns show the cluster size and the rows are the QC methods. The boldface and underline highlight the best and the second best performing QC methods.
the sparse geographical distribution of the sensors.
The PCSD-SAT and FZ-filter methods, by their more rigid binary flagging system, result in them not being able to achieve 5% MAR (or 95% recall) without an exploding FAR.
3.7 Conclusions
In this paper, we have introduced three joint reasoning quality control (QC) methods for fault detection. We empirically evaluated these methods on two real-world rainfall datasets from the Oklahoma Mesonet and the TAHMO Kenya weather networks and compared them to four baseline methods for detecting blocked rain gauges. We measured the fault detection delay, false alarm rate, and missed alarm rate. Our results indicate that QC methods utilizing joint reasoning—especially, PCSD-JIKR and PCSD-JIGM—are particularly effective at detecting large clusters of simultaneously faulty sensors.
| Method | FAR ≤ 20% | FAR ≤ 10% | FAR ≤ 5% | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 3 | 4 | 5 | 2 | 3 | 4 | 5 | 2 | 3 | 4 | 5 | |
| - | - | - | - | - | - | - | - | - | - | - | - | |
| 47 | 75 | 75 | 128 | 47 | 93 | 75 | - | 47 | 87 | 83 | 140 | |
| 61 | 62 | 63 | - | 67 | 88 | 63 | 140 | - | - | - | - | |
| 81 | 93 | 49 | 104 | 137 | 93 | 113 | 161 | - | - | - | ||
| 65 | 65 | 64 | 87 | 65 | 73 | 64 | 102 | 71 | - | 83 | 102 | |
| 45 | 63 | - | - | 70 | 63 | - | - | - | - | - | - | |
| - | - | - | - | - | - | - | - | - | - | |||
| - | - | - | - | - | - | - | - | - | - | - | - | |
| 44 | 74 | - | - | - | - | - | - | - | - | - | - | |
| - | - | - | - | - | - | - | - | - | - | - | - | |
| 108 | - | - | - | 108 | - | - | - | - | - | - | - | |
| - | - | - | - | - | - | - | - | - | - | - | - | |
| 66 | - | - | - | - | - | - | - | - | - | - | - | |
| - | - | - | - | - | - | - | - | - | - | - | - | |
Table 3.12: Average detection delay at a maximum MAR of 5%, and a maximum FAR of 20% for spatially clustered faults SCF-IN and SCF-OUT in the TAHMO Kenya network. The columns show the cluster size and the rows are the QC methods. The boldface and underline highlight the best and the second best performing QC methods.
Conversely, the CMM method, currently deployed in the TAHMO network, excelled in scenarios involving spatially random faults or small clustered faults. We recommend that network managers integrate CMM, PCSD-JIKR, and PCSD-JIGM into a unified method as follows. If CMM raises an alarm, the unified method should also raise an alarm. In addition, if either of the joint methods detects a cluster of faults, an alarm should be raised for each station in the cluster.
Finally, we note that the PCSD methods are not specialized to detecting only blocked rain gauges. We hypothesize that they will work well on other geospatial QC problems provided that the data can be transformed so that linear regression, kernel regression, or joint Gaussian models can be applied.
Oklahoma Mesonet rainfall distribution 2008

Oklahoma Mesonet rainfall distribution 2009
Oklahoma Mesonet rainfall distribution 2009
Kenya rainfall distribution 2020
Kenya rainfall distribution 2021
Day
rainfall (mm)
Figure 3.5: Historical training and testing rainfall distribution in the Oklahoma Mesonet and the Kenya dataset.

(a)

(b)
Figure 3.6: Distribution of faulty sensors in the Oklahoma Mesonet dataset. (a) Spatially random blocked rain gauges. (b) Spatially clustered blocked rain gauges with cluster size 8 and fault onset day 145.

Figure 3.7: Detection performance for spatially random faults (SRF) in both the Oklahoma Mesonet (left) and the TAHMO Kenya (right) networks, with 15% faulty sensors. The shapes represent the methods and the colors represent the number of days of evidence need to mark a sensor as faulty.
Observed rainfall - Oklahoma Mesonet

(a) Rainfall observed on day 86 in the Oklahoma Mesonet test dataset. The sensor locations with red labels are the ground truth faulty sensors, and the color of the marker represents the amount of rainfall observed (see color-bar).

(b) Belief update steps by PCSD-JIGM.

(c) Belief update steps by PCSD-JIKR.
Figure 3.8: Example of joint inference learning in Oklahoma Mesonet test dataset with spatially random faults (SRF) on day 86. The labels show the final value of s for the 15 sensors with the smallest values. The smaller the , the stronger the belief that is faulty. The sensors with red colors are the ground truth faulty sensors.
Observed rainfall - Oklahoma Mesonet

(a) Rainfall observed on day 161 in the Oklahoma Mesonet test dataset. The sensor locations with red labels are the ground truth faulty sensors, and the color of the marker represents the amount of rainfall observed (see color-bar).

(b) Belief update steps by PCSD-JIGM.

(c) Belief update steps by PCSD-JIKR.
Figure 3.9: Example of joint inference learning in Oklahoma Mesonet test dataset with spatially clustered faults (SCF) on day 161. The labels show the final value of s for the 15 sensors with the smallest values. The smaller the , the stronger the belief that is faulty. The sensors with red colors are the ground truth faulty sensors.

Figure 3.10: Detection performance for spatially cluster faults SCF-IN and SCF-OUT on the Oklahoma Mesonet dataset with cluster size 2, 3, and 4. The shapes represent the methods and the colors represent the number of days of evidence need to mark a sensor as faulty.

Figure 3.10: Detection performance for spatially cluster faults SCF-IN and SCF-OUT on the Oklahoma Mesonet dataset with cluster size 6, 7 and 8. The shapes represent the methods and the colors represent the number of days of evidence need to mark a sensor as faulty.

Figure 3.11: Detection performance for spatially cluster faults SCF-IN and SCF-OUT on the TAHMO Kenya dataset with cluster size 2, 3 and 4. The shapes represent the methods and the colors represent the number of days of evidence need to mark a sensor as faulty.

Figure 3.11: Detection performance for spatially cluster faults SCF-IN and SCF-OUT on the TAHMO Kenya dataset with cluster size 5. The shapes represent the methods and the colors represent the number of days of evidence need to mark a sensor as faulty.
Novel-SS: A Benchmark for Integrated Novelty-Aware Computer Vision Systems
Irené Tematelewo, Amin Ullah, Alexander Guyer, Li Fuxin, Stefan Lee, and Thomas G. Dietterich
Chapter 4: Novel-SS: A Benchmark for Integrated Novelty-Aware Computer Vision Systems
4.1 Abstract
Most computer vision systems encounter a wide variety of novel situations after deployment. Researchers have studied many kinds of novelty separately including changes in object appearance and style, changes in class distribution, novel object classes, novel activities, and novel imaging conditions. To detect and respond to these novelties, various techniques have been developed, each with separate benchmarks. This paper argues that it is time for the field to build integrated systems that can detect and accommodate many types of novelty, not just one type. To promote this effort, we introduce Novel-Snapshot Serengeti (Novel-SS), a benchmark derived from the Snapshot Serengeti camera trap dataset collected by a network of 225 camera traps deployed in Serengeti National Park (Tanzania). In this application, many forms of novelty arise. In our Novel-SS protocol, the vision system has the option to request annotations for individual images, which allows it to obtain a small amount of supervised data through active learning to support novelty accommodation. The overall goal is to maximize task performance while minimizing the number of requested annotations. This paper describes the training data, performance task, types of novelty, evaluation protocol, and evaluation metrics. To demonstrate the feasibility of the task, we present a novelty-aware system, DCA-SS, and compare it to a baseline system that is completely unaware of novelty.
4.2 Introduction
The fundamental assumption of machine learning is that the training data is representative of the post-deployment data. However, this is rarely the case in practice. Instead, deployed systems encounter many different types of novelty including changes in object appearance and style, changes in class distribution, novel object classes, novel activities, and novel imaging conditions. Researchers have studied the problem of detecting and, in some cases, adapting to these kinds of novelty, but each type has been studied separately. Many techniques have been developed including novelty detection [57, 63, 58], meta learning [34, 26], transfer learning [87, 74, 83], active learning [65, 61, 64], domain adaptation [80, 12], and continual learning [31, 55, 44, 36]. Benchmarks corresponding to each of these problems have been developed and well-studied [78, 56, 38, 82, 70].
However, deployed systems do not encounter just one type of novelty that can be detected and handled by one technique. Instead, these systems must be capable of detecting and responding to all of these different types of novelty. This introduces the need to not only detect novelty but to characterize the type of the novelty so that the appropriate repair strategy can be applied. This paper proposes a new benchmark task that challenges computer vision systems to detect multiple kinds of novelty, characterize the novelties, and apply appropriate strategies to accommodate the novelties (i.e., adapt to them). Integrating these three processes in a single system is a step toward overcoming the well-known brittleness of existing computer vision systems. The benchmark—which we call Novel-SS—is derived from the Snapshot Serengeti camera trap dataset [72], and it exhibits five types of real-world novelty: novel animal species, novel animal behaviors, novel combinations of animal species, novel combinations of animal behaviors, and novel imaging conditions (lighting, weather). These different kinds of novelty pose different detection and accommodation challenges. Detecting novel species and behaviors are instances of open set recognition, and accommodating them requires online continual learning of new classes. Detecting combinations of species and behaviors requires the classification strategy to change from multi-class classification to multi-label classification. Detecting novel imaging conditions involves detecting changes in lower-level image features. Accommodating those novel conditions could require continual learning with additional augmentations as well as continual learning of new styles. In Novel-SS, the system can request image-level annotations (within a budget). Selecting which images to query adds an active learning aspect to the benchmark.
The protocol for evaluating a novelty-aware system operates in four phases (see Fig. 4.2). In phase 0, a vision system is trained in the usual way on a large training set that contains no novelty. A small validation dataset that contains some “known novelties” is made available as well. (However, these types of known novelties will not appear in phase 3.) In phase 1 (“pre-novelty”), the system is presented with a sequence of images. For each image, it must perform various recognition and counting tasks. Like the training images, the phase 1 images do not contain novelty. The purpose of this phase is to measure the performance of the system in the absence of novelty. The learning system is not told where the pre-novelty phase ends and the post-novelty phase begins. In phase 2 (“post-novelty”), the system is presented with a sequence of images where an unknown fraction of the images exhibit novelty. The images are presented in batches of 10. The system computes and outputs its predictions for the recognition and counting tasks. It can then choose a subset of images and request the annotations of those images, where is the query budget. This supervised feedback can be applied to update the vision system. Note that can be zero, which is to say that phase 2 may contain no novelty. Finally, in phase 3 (“test”), the system is evaluated, without further feedback or training, on a test set containing a mix of images of which fraction exhibit novelty.
The evaluation is divided into a set of trials. Each trial consists of new phases 1, 2, and 3, and only one type of novelty occurs. In the NOVEL-SS evaluation protocol, each trial consists of 500 Phase 1 images, 1500 Phase 2 images, and 1000 Phase 3 images. Each trial is independent of the others, so that they can all be run concurrently starting from the same Phase 0 trained system.
We make the following contributions. The primary contribution is the Novel-SS dataset, task structure, and evaluation metrics (section 4.3). A secondary contribution is a baseline system, DCA-SS (Detect, Characterize, and Accommodate), that demonstrates both that existing methods can achieve non-trivial performance on the Novel-SS benchmark and that there is substantial room for improvement (section 4.4). Experiment results(section 4.5) show that DCA-SS outperforms a novelty-unaware baseline (NU) for many kinds of novelty. However, the performance improvements achieved by the state-of-the-art continual learning method, EWC, are somewhat disappointing and far too computationally expensive. This shows that developing effective and computationally efficient online continual learning remains a significant open problem.
Instructions for downloading the dataset, as well as code for the evaluation harness and DCA-SS are available at https://github.com/guyera/NOVEL-SS-and-DCA-repos.
4.3 Novel-SS Dataset, Task Structure, and Evaluation Metrics
To design a dataset for integrated novelty-aware computer vision, we sought a real-world application rather than working with collections of arbitrary images such as ImageNet
[18] or CIFAR-100 [41]. Camera traps are revolutionizing biological conservation and field ecology. A camera trap is triggered by a motion detector and then collects one or more images. Over time, the traps collect millions of images, which must then be analyzed to estimate the presence of each species, the presence of various activities, and, ideally, the number of animals of each species in the image. Species presence/absence is important for modeling the habitat requirements of different species [23] and their migration dynamics [67, 66]. Species co-occurrence helps ecologists understand species-species interactions [28, 71]. Activities, and their co-occurrence, are important for understanding the degree to which a species is under stress (e.g., from food scarcity or predation). Animal counts provide a valuable input to estimating species abundance [35], which is critical for monitoring endangered species. Camera traps also provide an ideal computer vision challenge, because they encounter many natural types of novelty including novel species, activities, and imaging conditions.
One of the largest datasets of labeled camera trap images is Snapshot Serengeti (SS). SS contains over 7 million camera trap images from 225 sites in Serengeti National Park, Tanzania [72]. Each time the motion detector is triggered, the camera captures an image sequence of three images, each separated by one second. Each image sequence is annotated by several volunteers. For each species present in the image, a count annotation gives the minimum, maximum, and median counts assigned by the volunteers. The counts take values in the set . The activity annotation is given as the fraction of volunteers who judged that at least one individual from the given species is engaged in the activity. The activities are standing, moving, interacting, eating and resting.
4.3.1 The Novel-SS Dataset
Our Novel-SS dataset is a collection of 163,560 images extracted from the Snapshot Serengeti (SS) camera trap dataset. It is composed of two groups: non-novel images and novel images. All non-novel images contain one or more animals from a single known species engaged in a single known activity, and they are captured only during daylight hours (defined as the period from one hour after sunrise to one hour before sunset). We refer to daytime as the “known environment”, all non-novel species as the “known species”, and all non-novel activities as the “known activities”.

Figure 4.1: Example no-novelty and novelty images from the Novel-SS dataset.
The properties of the non-novel images imply that the image-level annotations can be “pushed down” to the individual bounding boxes for each detected animal, and classifiers for species and activities can be trained on these bounding boxes using standard multiclass supervised learning. To make image-level predictions, the predictions of the individual bounding boxes can be voted to determine the most likely single species and activity present in the image.
Novelty types. The Novel-SS novelties are divided into five types: (a) Novel species:
Phase 0: Training

Phase 1: Pre-Novelty
Individual Trial
Phase 2: Post-Novelty Budgeted Feedback Available

Phase 3: Test
Figure 4.2: Schematic diagram of the training and execution phases of the Novel-SS task.
Table 4.1: Known and novel species, activities and environments.
| Novelty types | Categories |
| Known species | Elephant, Gazelle grants, Gazelle Thomson, Giraffe, Hyena Spot-ted, Lion female, Other bird, Topi, Wildebeest, Zebra |
| Novel species | Baboon, Buffalo, Cheetah, Dikdik, Eland, Guineafowl, Harte-beest, Impala, Jackal, Koribustard, mongoose, Ostrich, Reedbuck, Warthog, InsectSpider |
| Known activities | moving, standing |
| Novel activities | eating, resting |
| Known envs | daytime |
| Novel envs | dawn/dusk, night time, fog, snow |
images captured under the same conditions as the no-novelty data, but containing at least one novel species and with all animals engaged in a single known activity. These images contain at most one known species. (b) Novel combination of known species: images captured under the same lighting conditions as the no-novelty data, but containing two or more known species and all animals engaged in the same known activity. This kind of novelty is of great interest to ecologists, because it generally reveals which species can comfortably co-occur. (c) Novel activity: images captured under the same conditions as the no-novelty data, but containing a single known species with at least one animal engaged in a novel activity. All animals not engaged in a novel activity are engaged in the same known activity. More than one novel activity may be present. (d) Novel combination of activities: images captured under the same conditions as the no-novelty data, but containing animals from a single known species engaged in the two or more known activities. (e) Novel environment: images captured under a different imaging condition (or environment) than no-novelty images and containing a single known species with all animals engaged in the same known activity. Note that the first four novelty types require a change in the prediction strategy, because it is no longer possible to vote the species and activity predictions of the individual bounding boxes.
Image selection. To build Novel-SS, we partition the species, activities and environments as shown in Table 4.1. The species were split into known and novel subsets such that each set contains species that are grazers, predators, and scavengers. Each subset exhibits class imbalance, because grazers are more common than scavengers, and predators are very rare. After this split, all SS image sequences satisfying the criteria of either the no-novelty data or any of the five novelty types are selected. We define four novel environments. Dawn/dusk images are captured during the period from 30 minutes before to 30 minutes after sunrise or sunset. Night images are captured during the period from 1 hour after sunset to 1 hour before sunrise. The snow and fog images are constructed by randomly selecting some no-novelty images, removing them from the no-novelty set, and transforming them using image corruption techniques [33].
Image filtering. The crowd-sourced annotations are provided only at the level of each sequence of 3 images. As our goal is to treat each image separately and ensure that its annotations are sensible, we apply a series of filters and annotation adjustments, as described in Appendix B.2.
The resulting Novel-SS dataset contains 120,343 training, 4,902 validation, and 38,315 testing images. All training images are from the no-novelty set. To construct a validation set, a few of the potential novelties are declared to be “known novelties” (see Table B.1). Images containing these novelties are removed from the test set and placed in the validation set. The test set contains 9,420 no-novelty images and 28,895 novel images. Because images are captured in sequences, eligible images from the same sequence are all put in the same set (i.e., training, validation, or test). Appendix B.2 provides detail on the distributions of species, activities, and co-occurrence in Novel-SS.
4.3.2 Task Structure
For each image in Novel-SS we provide a list of bounding boxes specifying the location in the image of each detected animal. These are computed using the excellent Megadetector [4, 50]. Let and be the number of known species and known activities in the no-novelty set, and and be upper bounds on the number of novel species and novel activities in the novelty set. We convert the crowd-sourced annotations into three vectors: (i) a -dimensional vector of counts per species; (ii) a -dimensional Boolean vector of species presence, and (iii) a -dimensional Boolean vector of activity presence. The task is to predict these three vectors for each image. We denote the predictions by , , and .
The learning system can request feedback on image i, which is provided as .
To evaluate performance on each novelty type, Novel-SS provides 9 trials. One trial contains no novelty, and there is one trial each for novel species, novel activities, novel species combinations, and novel activity combinations. Finally, there are four trials for novel environments (night, dawn/dusk, snow, fog). The vision system does not know which type of trial it is processing, so it must be able to handle all novelty types.
4.3.3 Evaluation Metrics
We measure several metrics on each trial during the post-novelty and test phases.
Species and activity presence. For each species and activity, we compute the score and then average those scores across all of the species (or activities, respectively). We adopted rather than the area under the ROC curve (AUROC) because the average AUROC does not correspond to a coherent threshold setting across all classes and, hence, exaggerates performance. We also discovered that the AUROC value was influenced by the values of and . The mean F1 for species and activity presence is computed as
where precision and recall are the precision and recall of species (or activity) j, Q is the set of known and novel species (or activities) present in the trial, and is the cardinality of Q.
Species counts. For scoring species counts on a set of images, we compute the average across the species of the mean absolute error between the predicted number and the true number of animals as follows. Let index the images, index the species, be the number of images containing species , be the number of ground truth animals in species summed across all images, and be the number of predicted animals in species summed across all images. The mean absolute error is defined as

Figure 4.3: Architecture of the DCA-SS system. Initial training is not shown. The network iterates over each bounding box in the image. The resulting predictions for species and activity are aggregated by probabilistic inference to produce predictions for the species counts, species presence, and activity presence tasks.
Feedback queries. We measure the number of feedback queries made by the classifier. We also report the area under the ROC curve for the novelty detectors for species, activities, and environments to separately assess novelty detection performance.
In order to perform well on the evaluation metrics, a system needs to detect images containing novel species and novel activities, request annotations for those images, and learn to recognize them in new images. To achieve high average F1 scores, it must do well on both rare and common species—hence, it must handle class imbalance well. Finally, the system must learn to handle the novel environments while recognizing the known species and activities.
4.4 Baseline Solution: DCA-SS (Detect, Characterize, and Accommodate)
We developed a baseline solution, DCA-SS, for Novel-SS. Our goal is to show that the task is feasible. We describe our solution in terms of three subcomponents: detect, characterize, and accommodate. The architecture of DCA-SS is depicted in Fig. 4.3. The heart of the system is a Swin transformer backbone with two classification heads, one for species and one for activities. It is trained on the training images and then calibrated with temperature scaling [29] on the validation images. Training and calibration requires 2.5 days on a 4-GPU NVidia dgx2. This network is applied to each bounding box in the image . The resulting probabilities and , along with the predicted novelty type, are combined through probabilistic reasoning to compute the predicted outputs , , and . We now discuss the novelty detection, characterization, and accommodation methods.
4.4.1 Detect and Characterize
The first step of our solution is to predict what type of novelty, if any, each image contains. This formulation provides novelty detection and characterization simultaneously. Our strategy is to extract a set of novelty signals (Mean of Max Logit, Max of Mean Logit, and Image Density Estimation) from the two-headed network trained on the no-novelty data (details below). A multinomial logistic regression model (the “novelty classifier” in Fig. 4.3) is then trained to predict the novelty type using the known novelties from the validation set.
Mean of Max Logit. Let be the logit score for class of classifier on bounding box of image . Vaze et al. [77], among others, has shown that the (negative of the) maximum of the softmax probabilities is a state-of-the-art novelty score. Dietterich and Guyer [22] show that the logits can be viewed as measures of object familiarity, so unfamiliar objects produce small logit scores. We define to be the average of the species max logit scores, and to be the mean of the activity max logit scores for image with bounding boxes:
This signal is useful for images containing only a single species or a single activity. If either the species or the activity is novel, then every max logit will be small, so their mean will be small.
Max of Mean Logit. A second novelty signal is the maximum of the mean logit scores. We define and analogously:
This is intended to capture cases where there are multiple combinations of known species or known activities. In such cases, the logits for known class k will vary across the bounding boxes with some high and some low. Hence, the mean will be intermediate, and the max of these mean logit scores will not be large.
Image Density Estimator. To extract a useful signal for detecting novel environments, we estimate , the probability density of image computed with respect to the distribution of the training images. We fit the density estimator by first applying PCA to the training set activations of an early layer in the network. We keep the top PCA dimensions capturing the highest variance and discard the rest. Then we fit a Gaussian kernel density estimator with bandwidth 50 in this reduced PCA space to the activations of the non-novel validation set images. Let . The values of and bandwidth were selected using the validation data.
Training the Novelty Type Classifier. In Novel-SS, each image belongs to exactly one of six novelty types: no-novelty, novel species, novel combination of known species, novel activity, novel combination of known activities, novel environment. Let index these, and let denote the index of the novelty type for image . We train a multinomial logistic regression model to take the vector of novelty detection signals and predict the probability . This logistic regression is fit to a held-out subset of the (no-novelty) training data and the validation set of “known novel” images. After training this classifier, we estimate the probability that an image is novel as . Note that feedback during the post-novelty phase can eliminate some novelty types. We incorporate this by removing those novelty types and renormalizing over the remaining novelty types.
Probabilistic Inference to Compute Counts and Presence. For each image i, once DCA-SS has predicted the probabilities for the species and activity of each bounding box, along with the probabilities of each possible novelty type for the image, it applies probabilistic inference to compute the image-level predictions for species counts ( ), species presence ( ), and activity presence ( ). Because the bounding box predictions output by the classifier are computed separately from the novelty type prediction , they may be inconsistent. For example, the classifier may predict that a bounding box belongs to a novel species class with high probability even though the multinomial logistic regression predicts with high probability that the image contains no novelty. To reconcile these predictions, we assume that the multinomial logistic regression is well-calibrated, and we transform and aggregate the bounding box predictions in a manner that respects the outputs of the logistic regression. For image i, let denote the count of species k, let denote the binary presence label (0 for absent, 1 for present) of species k, and let denote the binary presence label for activity k. The expected count of species k in image i is predicted as
Similarly, the probabilities of species and activity presence are predicted as
(4.4)
The quantities , , and are predicted separately for each novelty type by conditioning the predictions of the bounding box labels on and aggregating them under a conditional independence assumption. The details are given in Appendix B.3.
Recall that the overall objective of a solution to Novel-SS is to maximize prediction accuracy while minimizing the number of feedback queries. To avoid making queries during the pre-novelty period, we apply a change point detection method to determine when to start making queries. Specifically, as DCA-SS processes the images in a trial, it conducts a Kolmogorov-Smirnov test (KS test, [69]) to compare the distribution of the scores of the first 300 images in the trial to the scores of the most recent images. If the p-value of this test drops below a specified threshold , DCA-SS raises the “novelty alarm” and begins requesting feedback and accommodating novelty. This strategy assumes that there is no novelty in the first 300 images. Similar assumptions are usually safe to make in real applications. (Alternatively, one could use held out non-novel images.) To choose , we set , simulate 1,000 non-novel trials constructed from held-out training data, and set to achieve a false alarm rate of 10%. Note that a larger value of decreases the variance of the KS test’s p-value but increases the system’s novelty detection delay.
4.4.2 Accommodate
Once the novelty alarm is raised, DCA-SS begins requesting feedback. Recall that the system is permitted to request feedback on fraction of the 10 images in each batch. DCA-SS sorts the images in descending order of and selects the top sorted images. The goal is to request feedback on the images that are most likely to contain novelty. In all of our experiments, .
Ideally, we would update the species and activity classifiers after each batch of feedback is received. However, such online learning is very expensive, so we opted to collect all feedback information and apply the Elastic Weight Consolidation (EWC) continual learning method [36] at the end of the post-novelty phase. EWC constrains weight updates to stay close to an ellipsoidal region centered on the original trained weights. It has a hyperparameter that controls the trade-off between fitting the new (feedback) data versus retaining performance on the original training data. This was set to 10,000 based on experiments with the validation data. We allow EWC to update all of the weights in the network.
As we have seen, the feedback information is provided at the image level. If an image contains multiple species or multiple activities, this creates a multiple instance problem [21]. To bridge the gap between the bounding box classifiers and the image-level annotations, we compute the negative log likelihood that the image-level feedback labels are satisfied by the box-level predicted probabilities, and rely on auto-differentiation to implement backpropagation through this computation. A naive computation of the negative log likelihood requires considering all possible assignments of species and activity labels to the bounding boxes in the image. Fortunately, Shukla et al. [68] provide an efficient dynamic program for the negative log likelihood for two-class classifiers, and we extended their method to the multiclass case. (See Appendix B.3 for details.)
Updating the network with EWC causes the novelty detection features to change. Hence, the novelty type classifier must be retrained each time EWC is run.
4.4.2.1 Formulating image-level predictions from box-level predictions
Given the box-level predictions for species and activities (for each bounding box in image ) and the probability distribution over the novelty type of image , , from the multinomial logistic regression, we want to compute three image-level values:
• The expected number of animals belonging to each species k:
• The probability that species k is present in the image:
• The probability that activity a is present in the image:
We do this by first conditioning the bounding box predictions on the novelty type , and , and then marginalizing out based on as in equation (4.3).
4.5 Experimental Assessment of Feasibility
A good dataset challenge should be scientifically interesting and feasible. We assess the feasibility of Novel-SS through the following experiment.
Table 4.2: Animal counts and species presence during the test phase. The best value for each trial/metric is in boldface.
| Trial Type | DCA Feedback Queries | Animal Counts (MAE ↓) | Species Presence ( ↑) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Known | Novel | Known | Novel | ||||||
| NU | DCA | NU | DCA | NU | DCA | NU | DCA | ||
| No Novelty | 570 | 0.28 | 0.34 | - | - | 0.83 | 0.84 | - | - |
| Novel Species | 720 | 0.30 | 0.40 | 2.58 | 2.56 | 0.84 | 0.88 | 0.05 | 0.07 |
| Species Combination | 735 | 0.28 | 0.44 | 7.64 | 2.45 | 0.85 | 0.82 | 0.46 | 0.60 |
| Dawn/Dusk | 735 | 0.34 | 0.34 | 1.30 | 1.30 | 0.84 | 0.84 | 0.47 | 0.49 |
| Night | 740 | 0.34 | 0.40 | 1.52 | 1.42 | 0.81 | 0.81 | 0.29 | 0.32 |
| Snow | 735 | 0.30 | 0.34 | 1.12 | 1.16 | 0.84 | 0.85 | 0.74 | 0.74 |
| Fog | 745 | 0.32 | 0.38 | 0.86 | 0.90 | 0.83 | 0.82 | 0.77 | 0.78 |
4.5.1 Experiment Design
We evaluate the performance of DCA-SS on the 8 novelty trials of Novel-SS and compare it to a novelty-unaware baseline. Let be the two-headed neural network trained on the training data. We employ a SWIN-T architecture [45] with one head for species and the other for activities. Each head consists of two fully-connected layers. The first layer contains 256 units, and the second layer contains units for the species head and units for the activity head. Hence, given bounding box , , where ranges over the species, and ranges over the activities. As a basis for comparison, NU (Novelty Unaware) is a version of DCA-SS that performs no novelty detection, characterization, or accommodation. It applies to the task without any changes during the trial. It makes no feedback queries.
4.5.2 Results
Table 4.2 compares the performance of NU and DCA-SS on the species count and species presence metrics during the test phase of each trial, and Table 4.3 reports the results for activities. Each pair of columns shows the performance of NU and DCA-SS on the relevant metric. Note that when new classes are added to a classification problem,
Table 4.3: Activity presence during the test phase. The best value for each trial/metric is in boldface.
| Trial Type | DCA Feedback Queries | Activity Presence () | |||
|---|---|---|---|---|---|
| Known | Novel | ||||
| NU | DCA | NU | DCA | ||
| No Novelty | 570 | 0.95 | 0.88 | - | - |
| Novel Activities | 735 | 0.87 | 0.86 | 0.17 | 0.19 |
| Activity Combination | 0 | 0.86 | 0.86 | 0.68 | 0.70 |
| Dawn/Dusk | 735 | 0.85 | 0.85 | 0.67 | 0.69 |
| Night | 740 | 0.88 | 0.88 | 0.57 | 0.60 |
| Snow | 735 | 0.88 | 0.88 | 0.76 | 0.78 |
| Fog | 745 | 0.88 | 0.88 | 0.82 | 0.81 |
the problem becomes more challenging, and accuracy drops. Hence, even if a metric is unchanged in a novelty trial, this is a positive result. A second subtlety is that the test images for each novelty trial are different, because of the constraints imposed on the data. For example, the only trials that involve multiple species within a single image are Novel Species and Species Combination. The MAE values for those trials are much larger than in other trials. This shows that comparisons across rows in the tables are not meaningful.
There are two things to immediately note. First, the NU system gives excellent scores when there is no novelty—it is a good closed-world classifier. Second, DCA-SS incorrectly detects novelty in the No Novelty trial (and makes 570 feedback queries as a result), and it fails to detect novelty in the Activity Combinations trial (and makes 0 feedback queries as a result). In all of the other trials, the KS-test novelty detection was excellent (the number of feedback queries is close to the best possible value of 750). To assess the impact of these novelty detection errors, we ran a version of DCA-SS with perfect novelty detection. The results on Activity Combination are 0.84 (known) and 0.74 (novel) based on 750 feedback queries. The AUROC for DCA-SS detecting novel images during the post-novelty period are as follows: 0.83 (novel species), 0.71 (novel activities), 0.96 (species combinations), 0.00 (activity combinations), 0.84 (dawn/dusk), 1.00 (night), 0.74 (snow), and 0.56 (fog).
The need for novelty-aware computer vision is clearly demonstrated by the drop in performance of NU on the novel images in all trials, where it makes errors on all novel images. However, even though DCA-SS is novelty-aware, it still struggles to beat the NU system. For Animal Counts, it beats NU on novel images in two trials, but in both of those trials, this comes at the cost of slight drops in performance on known images, and the DCA-SS performance is still very poor. For Snow and Fog, NU is better on both known and novel images. For Species Presence, the story is better: DCA-SS is able to match or exceed NU in 5 trials on known images and in all trials on novel images. Finally, for Activity Presence, DCA-SS is able to match or exceed NU on both known and novel images in five trials, and it is only slightly worse on one or the other in two trials. NU is never better on both known and novel images.
4.5.3 Lessons Learned
The failures of the KS-test could be addressed by combining the test with a small number of feedback queries. The queries could confirm or contradict the findings of the KS-test and prevent these failures. The poor F1 performance of DCA-SS on recognizing novel species and activities is caused by a total failure to recognize rare novel species and activities. We employed a loss-reweighting strategy in EWC to give more weight to the losses of rare categories, but this was not sufficient. Better methods are needed for handling continual learning of rare categories.
4.6 Limitations
The Novel-SS dataset and task includes many forms of novelty (novel species, novel activities, novel environments) that pose major challenges for existing computer vision and machine learning methods. However, Novel-SS does not evaluate camera traps at novel locations, especially ones that might observe a different distribution of species. Each trial in Novel-SS also only exercises a single novelty type. Because novelty is relatively rare in real applications (at least those where a substantial training dataset has been collected), this is not an unrealistic assumption. But it would be nice to create trials that simultaneously exhibited multiple types of novelty. We anticipate releasing a second version of Novel-SS that can address both of these novelty configurations.
A methodological weakness of the validation set is that it contains validation data for three of the four novel environments that will be encountered in the trials. This did not have any detectable effect on the performance of DCA-SS. In fact, DCA-SS gives improvements on the Night environment, which was not included in the validation set. Nonetheless, in the second version of Novel-SS, we will replace the validation novel environments with other synthetic novel environments.
Novel-SS also does not test the ability of object detectors to detect novel classes of objects. Addressing this would involve requiring any proposed solution to also learn to detect novel species. In our data release, we do provide the original images, so researchers can explore this task as well, but the evaluation scripts would need to be extended to score the detection process.
The paper did not explore an additional benefit of Novel-SS, namely that it can be applied to evaluate and compare individual methods for novelty detection, domain adaptation, and continual learning. It would be worthwhile to write additional evaluation scripts for this purpose.
4.7 Conclusion
This paper has argued that research on novelty-aware computer vision would benefit from a benchmark that requires detecting, characterizing, and accommodating multiple forms of novelty. The benchmark should stress online, continual learning based on budgeted annotation feedback. The paper has presented the Novel-SS benchmark dataset, evaluation protocol, and metrics, which meets these requirements. Our baseline system, DCA-SS, demonstrates that current methods in computer vision are able to achieve some improvements in performance compared to a novelty-unaware system. But a strong solution to Novel-SS will require integrating novelty detection, active learning, and online continual learning for novel categories and novel imaging conditions. We encourage researchers to tackle these challenges and measure their progress using Novel-SS.
4.8 Acknowledgements
We would like to acknowledge Alexander Guyer for his contribution to extending the dynamic program by Shukla et al. [68] to the multicalss setting for the proposed DCA baseline. We would also like to acknowledge Dr. Amin Ullah for his implementation of DCA's novelty accommodation strategy.
Chapter 5: Conclusion
5.1 Conclusion
In this thesis we discussed the problem of anomaly detection in weather sensor networks and novelty detection computer vision. For anomaly detection in weather sensor network, given the crucial role of rainfall prediction for food security, disaster prevention and management, we focused our investigation on the problem of detecting blocked rain gauges, to improve data reliability and rainfall data products. For novelty detection in computer vision, we concentrated on the problem of multiple novelties.
In chapter 2, we described four existing methods for detecting blocked rain gauges, the conditional mixture model (CMM), the PWSQC (Fz-filter), a kernel regression model and a joint Gaussian model. Using precipitation data from the Oklahoma Mesonet and the TAHMO Kenya weather networks, we compared the methods on simulated blocked rain gauges. We evaluated these methods under three fault conditions including (a) varying the proportions of faults, (b) varying the distance from each station to its nearest neighbors, and (c) varying the different spatial distribution of faults. We studied two types of spatial distribution of faults: when the faulty sensors are randomly distributed and become fail independently, and when the faulty sensors are spatially clustered and fail simultaneously. We further studied scenarios where the clustered faults are surrounded by working sensors versus scenarios where they are at the periphery of the network. We analyzed the detection delay, the missed alarm rate, and the false alarm rate of the methods. This analysis identified the conditions under which each method performed well and showed that the these methods are not robust to large clusters of faulty sensors.
In chapter 3, we designed three general purpose QC methods, PCSD-SAT, PCSD-JIKR, and PCSD-JIGM. These methods integrate probabilistic fault detection into a consistency-based diagnosis framework to perform joint reasoning. Using rainfall from the Oklahoma Mesonet and the TAHMO Kenya weather networks, we evaluated the proposed methods on the task of detecting blocked rain gauges. We specifically tested them on the detection of spatially random faults (SRF) and spatially clustered faults (SCF-IN and SCF-OUT). Using detection delay, false alarm rate and missed alarm rate, we compared PCSD-SAT, PCSD-JIKR, and PCSD-JIGM against the QC methods from Chapter 2 as baselines. We showed empirically that PCSD-JIKR and PCSD-JIGM outperform all the baselines at detecting large clusters of faults.
In chapter 4, we introduced NOVEL-SS, a benchmark dataset for multiple novelty detection and accommodation in computer vision. Along with NOVEL-SS, we presented DCA (detect, accommodate and characterize), a baseline system for NOVEL-SS. We showed empirically that computer systems that can handle multiple types of movelty are more robust than systems trained in a closed world manner.
Bibliography
[1] András Bárdossy and Geoffrey Pegram. Infilling missing precipitation records – A comparison of a new copula-based method with other techniques. Journal of Hydrology, 519:1162–1170, 2014. doi: 10.1016/j.jhydrol.2014.08.025.
[2] Stanley L. Barnes. A Technique for Maximizing Details in Numerical Weather Map Analysis. Journal of Applied Meteorology, 3:396–409, 1964.
[3] Tamás Bartha and Endre Selényi. Probabilistic fault diagnosis in large, heterogeneous computing systems. Periodica Polytechnica Electrical Engineering (Archives), 43(2):127–149, 1999.
[4] Sara Beery, Dan Morris, and Siyu Yang. Efficient pipeline for camera trap image review. arXiv preprint arXiv:1907.06772, 2019.
[5] Christopher M Bishop and Nasser M Nasrabadi. Pattern recognition and machine learning, volume 4. Springer, 2006.
[6] Helene Blanchonnet and Ruth Coughlan. Ecmwf dissemination schedule. https://confluence.ecmwf.int/display/DAC/Dissemination+schedule, 2024.
[7] Fred V Brock, Kenneth C Crawford, Ronald L Elliott, Gerrit W Cuperus, Steven J Stadler, Howard L Johnson, and Michael D Eilts. The Oklahoma Mesonet: a technical overview. Journal of Atmospheric and Oceanic Technology, 12(1):5–19, 1995.
[8] Baoping Cai, Lei Huang, and Min Xie. Bayesian networks in fault diagnosis. IEEE Transactions on industrial informatics, 13(5):2227–2240, 2017.
[9] John L Campbell, Lindsey E Rustad, John H Porter, Jeffrey R Taylor, Ethan W Dereszynski, James B Shanley, Corinna Gries, Donald L Henshaw, Mary E Martin, Wade M Sheldon, et al. Quantity is nothing without quality: Automated qa/qc for streaming environmental sensor data. BioScience, 63(7):574–585, 2013.
[10] Dean Cazes and Meir Kalech. Model-based diagnosis with uncertain observations. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 2766–2773, 2020.
[11] IBM ILOG Cplex. V12. 1: User's manual for cplex. International Business Machines Corporation, 46:157, 2009.
[12] Gabriela Csurka. Domain adaptation for visual applications: A comprehensive survey. arXiv preprint arXiv:1702.05374, 2017.
[13] C Daly, G H Taylor, W P Gibson, T W Parzybok, G L Johnson, and P A Pasteris. High-quality spatial climate data sets for the United States and beyond. Transactions of the ASAE, 43(6):1957–1962, 2000.
[14] Christopher Daly, Jack S. Rothacher, Mark D. Schulze, Greg M. Cohn, Adam M. Kennedy, and Stephanie A. Schmidt. Ms004: Precipitation measurements from historic and current standard, storage and recording rain gauges at the andrews experimental forest, 1951 to present. https://andlter.forestry.oregonstate.edu/data/abstract.aspx?dbcode=MS004, 2019.
[15] Christopher Daly, Matthew K. Doggett, Joseph I. Smith, Keith V. Olson, Michael D. Halbleib, Zlatko Dimcovic, Dylan Keon, Rebecca A. Loiselle, Ben Steinberg, Adam D. Ryan, Cherri M. Pancake, and Eileen M. Kaspar. Challenges in Observation-Based Mapping of Daily Precipitation across the Conterminous United States. Journal of Atmospheric and Oceanic Technology, 38(11):1979–1992, 2021. ISSN 15200426. doi:10.1175/JTECH-D-21-0054.1.
[16] Johan De Kleer and Brian C Williams. Diagnosing multiple faults. Artificial intelligence, 32(1):97–130, 1987.
[17] Lotte Wilhelmina de Vos, Hidde Leijnse, Aart Overeem, and Remko Uijlenhoet. Quality control for crowdsourced personal weather stations to enable operational rainfall monitoring. Geophysical Research Letters, 46(15):8820–8829, 2019.
[18] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. Ieee, 2009.
[19] Ethan W Dereszynski and Thomas G Dietterich. Spatiotemporal models for data-anomaly detection in dynamic environmental monitoring campaigns. ACM Transactions on Sensor Networks (TOSN), 8(1):1–36, 2011.
[20] Ethan W Dereszynski and Thomas G Dietterich. Probabilistic models for anomaly detection in remote sensor data streams. arXiv preprint arXiv:1206.5250, 2012.
[21] T. G. Dietterich, R. H. Lathrop, and T. Lozano-Perez. Solving the multiple-instance problem with axis-parallel rectangles. Artificial Intelligence, 89(1–2):31–71, 1997.
[22] Thomas G. Dietterich and Alexander Guyer. The Familiarity Hypothesis: Explaining the behavior of deep open set methods. arXiv, 2203.02486(v1), 2022. URL http://arxiv.org/abs/2203.02486.
[23] Robert M Dorazio and J. Andrew Royle. Estimating size and composition of biological communities by modeling the occurrence of species. Journal of the American Statistical Association, 100(470):389–398, June 2005. ISSN 0162-1459. doi:10.1198/016214505000000015. URL http://pubs.amstat.org/doi/abs/10.1198/016214505000000015.
[24] Tom Fawcett and Foster Provost. Activity monitoring: Noticing interesting changes in behavior. In Proceedings of the fifth ACM SIGKDD international conference on Knowledge discovery and data mining, pages 53–62, 1999.
[25] Christopher A. Fiebrich, Kevin R. Brinson, Rezaul Mahmood, Stuart A. Foster, Megan Schargorodski, Nathan L. Edwards, Christopher A. Redmond, Jennie R. Atkins, Jeffrey A. Andresen, and Xiaomao Lin. Toward the standardization of mesoscale meteorological networks. Journal of Atmospheric and Oceanic Technology, 37(11):2033–2049, 2020. ISSN 15200426. doi: 10.1175/JTECH-D-20-0078.1.
[26] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International conference on machine learning, pages 1126–1135. PMLR, 2017.
[27] Ildikó Flesch, Peter Lucas, and Theo P van der Weide. Conflict-based diagnosis: Adding uncertainty to model-based diagnosis. 2007.
[28] Quentin Groom, Nadja Pernat, Tim Adriaens, Maarten De Groot, Sven D Jelaska, Diana Marčiulynienė, Angeliki F Martinou, Jirí Skuhrovec, Elena Tricarico, Ernst C Wit, and Helen E Roy. Species interactions: Next-level citizen science. Ecography, 44:1781–1789, 2021. doi: 10.1111/ecog.05790.
[29] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks. arXiv, 1706.04599(v1), 2017. ISSN 1938-7228. URL http://arxiv.org/abs/1706.04599.
[30] Gurobi Optimization, LLC. Gurobi Optimizer Reference Manual, 2024. URL https://www.gurobi.com.
[31] Raia Hadsell, Dushyant Rao, Andrei A Rusu, and Razvan Pascanu. Embracing change: Continual learning in deep neural networks. Trends in cognitive sciences, 24(12):1028–1040, 2020.
[32] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016.
[33] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019.
[34] Timothy Hospedales, Antreas Antoniou, Paul Micaelli, and Amos Storkey. Meta-learning in neural networks: A survey. IEEE transactions on pattern analysis and machine intelligence, 44(9):5149–5169, 2021.
[35] Hayato Iijima. A Review of wildlife abundance estimation models: Comparison of models for correct application. Mammal Study, 45(3):177–188, 2020. ISSN 13486160. doi: 10.3106/ms2019-0082.
[36] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences of the United States of America, 114(13):3521–3526, 2017. ISSN 10916490. doi: 10.1073/pnas.1611835114.
[37] Johan De Kleer. Local methods for localizing faults in electronic circuits. Artificial intelligence, 1976.
[38] Pang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie, Marvin Zhang, Akshay Balsubramani, Weihua Hu, Michihiro Yasunaga, Richard Lanas Phillips, Irena Gao, et al. Wilds: A benchmark of in-the-wild distribution shifts. In International conference on machine learning, pages 5637–5664. PMLR, 2021.
[39] Daphne Koller and Nir Friedman. Probabilistic graphical models: principles and techniques. MIT press, 2009.
[40] Chandra R. Kondragunta and Kiran Shrestha. Automated Real-Time Operational Rain Gauge Quality-Control Tools in NWS Hydrologic Operations. In 86th AMS annual meeting, page 9, 2006.
[41] Alex Krizhevsky. The CIFAR-10 and CIFAR-100 datasets, 2009. https://www.cs.toronto.edu/kriz/cifar.html.
[42] Elizabeth Lewis, Niall Quinn, Stephen Blenkinsop, Hayley J Fowler, Jim Freer, Maliko Tanguy, Olivia Hitt, Gemma Coxon, Paul Bates, and Ross Woods. A rule based quality control method for hourly rainfall data and a 1 km resolution gridded hourly rainfall dataset for great britain: Ceh-gear1hr. Journal of Hydrology, 564: 930–943, 2018.
[43] Elizabeth Lewis, David Pritchard, Roberto Villalobos-Herrera, Stephen Blenkinsop, Fergus McClean, Selma Guerreiro, Udo Schneider, Andreas Becker, Peter Finger, Anja Meyer-Christoffer, et al. Quality control of a global hourly rainfall dataset. Environmental Modelling & Software, 144:105169, 2021.
[44] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence, 40(12):2935–2947, 2017.
[45] Z. Liu, Y. Lin, Y. Cao, H. Hu, Y. Wei, Z. Zhang, S. Lin, and B. Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In 2021 IEEE/CVF International Conference on Computer Vision (ICCV), pages 9992–10002, Los Alamitos, CA, USA, oct 2021. IEEE Computer Society. doi: 10.1109/ICCV48922.2021.00986. URL https://doi.ieeecomputersociety.org/10.1109/ICCV48922.2021.00986.
[46] Peter JF Lucas. Bayesian model-based diagnosis. International Journal of Approximate Reasoning, 27(2):99–119, 2001.
[47] H. Madsen. Algorithms for correction of error types in a semi-automatic data collection. precipitation measurement and quality control. In Proceedings Of Symposium On Precipitation and Evaporation, volume 1, Bratislava, Slovakia, September 20-24 1993.
[48] John McCarthy. Applications of circumscription to formalizing common-sense knowledge. Artificial intelligence, 28(1):89–116, 1986.
[49] Renee A McPherson, Christopher A Fiebrich, Kenneth C Crawford, James R Kilby, David L Grimsley, Janet E Martinez, Jeffrey B Basara, Bradley G Illston, Dale A Morris, Kevin A Kloesel, et al. Statewide monitoring of the mesoscale environment: A technical update on the Oklahoma Mesonet. Journal of Atmospheric and Oceanic Technology, 24(3):301–321, 2007.
[50] Microsoft. Pytorch-wildlife: A collaborative deep dearning framework for conservation, 2024. URL https://github.com/microsoft/CameraTraps/blob/main/megadetector.md. Accessed = 2024-01-27.
[51] Blackford Middleton, AM Shwe, ED Heckerman, Max Henrion, JE Horvitz, PH Lehmann, and FG Cooper. Probabilistic diagnosis using a reformulation of the internist-1/qmr knowledge base. Methods of information in medicine, 30(04): 256–267, 1991.
[52] Kevin P Murphy. Machine learning: a probabilistic perspective. MIT press, 2012.
[53] Tomas Olsson, Daniel Gillblad, Peter Funk, and Ning Xiong. Explaining probabilistic fault diagnosis and classification using case-based reasoning. In Case-Based Reasoning Research and Development: 22nd International Conference, ICCBR 2014, Cork, Ireland, September 29, 2014-October 1, 2014. Proceedings 22, pages 360–374. Springer, 2014.
[54] Divyang Harivadan Pandya, Sanjay H Upadhyay, and Suraj Prakash Harsha. Fault diagnosis of rolling element bearing by using multinomial logistic regression and wavelet packet transform. Soft Computing, 18:255–266, 2014.
[55] German I. Parisi, Ronald Kemker, Jose L. Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural networks, 113:54–71, 2019.
[56] Xingchao Peng, Ben Usman, Neela Kaushik, Judy Hoffman, Dequan Wang, and Kate Saenko. Visda: The visual domain adaptation challenge. arXiv preprint arXiv:1710.06924, 2017.
[57] Pramuditha Perera and Vishal M Patel. Deep transfer learning for multiple class novelty detection. In Proceedings of the ieee/cvf conference on computer vision and pattern recognition, pages 11544–11552, 2019.
[58] Marco AF Pimentel, David A Clifton, Lei Clifton, and Lionel Tarassenko. A review of novelty detection. Signal processing, 99:215–249, 2014.
[59] Belarmino Pulido and Carlos Alonso González. Possible conflicts: a compilation technique for consistency-based diagnosis. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 34(5):2192–2206, 2004.
[60] Raymond Reiter. A theory of diagnosis from first principles. Artificial intelligence, 32(1):57–95, 1987.
[61] Pengzhen Ren, Yun Xiao, Xiaojun Chang, Po-Yao Huang, Zhihui Li, Brij B Gupta, Xiaojiang Chen, and Xin Wang. A survey of deep active learning. ACM computing surveys (CSUR), 54(9):1–40, 2021.
[62] Johan Rockström and Malin Falkenmark. Agriculture: Increase water harvesting in africa. Nature, 519(7543):283–285, 2015.
[63] Mohammad Sabokrou, Mohammad Khalooei, Mahmood Fathy, and Ehsan Adeli. Adversarially learned one-class classifier for novelty detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3379–3388, 2018.
[64] Ozan Sener and Silvio Savarese. Active learning for convolutional neural networks: A core-set approach. arXiv preprint arXiv:1708.00489, 2017.
[65] Burr Settles. Active learning literature survey. 2009.
[66] Daniel Sheldon and Thomas G. Dietterich. Collective graphical models. In John Shawe-Taylor, Richard S. Zemel, Peter L. Bartlett, Fernando C. N. Pereira, and Kilian Q. Weinberger, editors, Advances in Neural Information Processing Systems 24: 25th Annual Conference on Neural Information Processing Systems 2011. Proceedings of a meeting held 12-14 December 2011, Granada, Spain, pages 1161–1169, 2011.
[67] Daniel Sheldon, M. A. Saleh Elmohamed, and Dexter Kozen. Collective inference on Markov models for modeling bird migration. In John C. Platt, Daphne Koller, Yoram Singer, and Sam T. Roweis, editors, Advances in Neural Information Processing Systems 20, Proceedings of the Twenty-First Annual Conference on Neural Information Processing Systems, Vancouver, British Columbia, Canada, December 3-6, 2007, pages 1321–1328. Curran Associates, Inc., 2007.
[68] Vinay Shukla, Zhe Zeng, Kareem Ahmed, and Guy Van den Broeck. A unified approach to count-based weakly-supervised learning. In ICML 2023 Workshop on Differentiable Almost Everything: Differentiable Relaxations, Algorithms, Operators, and Simulators, 2023. URL https://openreview.net/forum?id=TBmi7sLuzI.
[69] Nikolai V Smirnov. Estimate of deviation between empirical distribution functions in two independent samples. Bulletin Moscow University, 2(2):3–16, 1939.
[70] Yisheng Song, Ting Wang, Puyu Cai, Subrota K Mondal, and Jyoti Prakash Sahoo. A comprehensive survey of few-shot learning: Evolution, applications, challenges, and opportunities. ACM Computing Surveys, 55(13s):1–40, 2023.
[71] Tanya Strydom, Michael D Catchen, Francis Banville, Dominique Caron, Gabriel Dansereau, Philippe Desjardins-proulx, Norma R Forero-muñoz, Gracielle Higino, Benjamin Mercier, Dominique Gravel, Laura Pollock, and Timothée Poisot. A roadmap towards predicting species interaction networks (across space and time). Philosophical transactions of the Royal Society Series B, 376:20210063, 2021.
[72] Alexandra Swanson, Margaret Kosmala, Chris Lintott, Robert Simpson, Arfon Smith, and Craig Packer. Snapshot Serengeti, high-frequency annotated camera trap images of 40 mammalian species in an African savanna. Scientific data, 2(1):1–14, 2015.
[73] Jan Szturc, Katarzyna Ośródka, Anna Jurczyk, Irena Otop, Joanna Linkowska, Bogdan Bochenek, and Magdalena Pasierb. Quality Control and Verification of
Precipitation Observations, Estimates, and Forecasts. In Precipitation Science, chapter 3, pages 91–133. Elsevier, 2022. doi: 10.1016/B978-0-12-822973-6.00002-0. URL https://doi.org/10.1016/B978-0-12-822973-6.00002-0.
[74] Chuanqi Tan, Fuchun Sun, Tao Kong, Wenchang Zhang, Chao Yang, and Chunfang Liu. A survey on deep transfer learning. In Artificial Neural Networks and Machine Learning–ICANN 2018: 27th International Conference on Artificial Neural Networks, Rhodes, Greece, October 4-7, 2018, Proceedings, Part III 27, pages 270–279. Springer, 2018.
[75] Ramesh S. V. Teegavarapu and Chandra Pathak. Infilling of Rain Gage Records using Radar (NEXRAD) Data: Influence of Spatial and Temporal Variability of Rainfall Processes. In World Environmental and Water Resources Congress 2008 Ahupua'a, pages 1–9, 2008.
[76] Nick van de Giesen, Rolf Hut, and John Selker. The Trans-African Hydro-Meteorological Observatory (TAHMO). WIREs Water, 1(4):341–348, 2014. doi: https://doi.org/10.1002/wat2.1034. URL https://wires.onlinelibrary.wiley.com/doi/abs/10.1002/wat2.1034.
[77] Sagar Vaze, Kai Han, Andrea Vedaldi, and Andrew Zisserman. Open-set recognition: A good closed-set classifier is all you need. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=5hLP5JY9S2d.
[78] Eli Verwimp, Kuo Yang, Sarah Parisot, Lanqing Hong, Steven McDonagh, Eduardo Pérez-Pellitero, Matthias De Lange, and Tinne Tuytelaars. Clad: A realistic continual learning benchmark for autonomous driving. Neural Networks, 161:659–669, 2023.
[79] Roberto Villalobos-Herrera, Stephen Blenkinsop, Selma B. Guerreiro, Tess O'Hara, and Hayley J. Fowler. Sub-hourly resolution quality control of rain-gauge data significantly improves regional sub-daily return level estimates. Quarterly Journal of the Royal Meteorological Society, 148(748):3252–3271, 2022. ISSN 1477870X. doi:10.1002/qj.4357.
[80] Mei Wang and Weihong Deng. Deep visual domain adaptation: A survey. Neurocomputing, 312:135–153, 2018.
[81] Suhas Pralhad Wani, Johan Rockström, and Theib Oweis. Rainfed agriculture: unlocking the potential. CABI, 2009.
[82] Jingkang Yang, Pengyun Wang, Dejian Zou, Zitang Zhou, Kunyuan Ding, Wenxuan Peng, Haoqi Wang, Guangyao Chen, Bo Li, Yiyou Sun, et al. Openood: Benchmarking generalized out-of-distribution detection. Advances in Neural Information Processing Systems, 35:32598–32611, 2022.
[83] Qiang Yang, Yu Zhang, Wenyuan Dai, and Sinno Jialin Pan. Transfer learning. Cambridge University Press, 2020.
[84] HY Yeung, C Man, ST Chan, and A Seed. Development of an operational rainfall data quality-control scheme based on radar-raingauge co-kriging analysis. Hydrological Sciences Journal, 59(7):1293–1307, 2014.
[85] Zhu Yongli, Huo Limin, and Lu Jinling. Bayesian networks-based approach for power systems fault diagnosis. IEEE Transactions on Power Delivery, 21(2):634–639, 2006.
[86] Tadesse ZeMicheal and Thomas G Dietterich. Conditional mixture models for precipitation data quality control. In Proceedings of the 3rd ACM SIGCAS Conference on Computing and Sustainable Societies, pages 13–21, 2020.
[87] Fuzhen Zhuang, Zhiyuan Qi, Keyu Duan, Dongbo Xi, Yongchun Zhu, Hengshu Zhu, Hui Xiong, and Qing He. A comprehensive survey on transfer learning. Proceedings of the IEEE, 109(1):43–76, 2020.
APPENDICES
Appendix A: Integrating Probabilistic Consistency-Based Diagnosis and Joint Inference for Advanced Sensor Diagnosis
A.1 Reduction of the boolean formula
Appendix B: Novel-SS: A Benchmark for Integrated Novelty-Aware Computer Vision Systems
B.1 Appendix / supplemental material
B.2 Novel-SS Dataset Details
B.2.1 Filtering and Annotation Adjustment
The SS dataset annotations are given at the sequence level. In Novel-SS, we “push” these annotations down to the individual images. This can lead to a mismatch between the annotation and the actual number of animals visible in the individual image. One case arises when an animal runs very close to the camera, gets captured in the first frame, but leaves the field of view by the time the second and third frames are captured. Another case occurs when an animal at the edge of the field of view triggers the camera and then moves out of view (see the last 2 images of Fig. B.2c). To improve the per-image labels, we run all candidate images through the MegaDetector animal detector [4, 50] and adjust the animal counts so that the total counts match the number of bounding boxes returned by the MegaDetector. For images annotated as containing only one species, we accept the MegaDetector’s count as the ground truth. Images annotated as containing more than one species are processed as follows. If the MegaDetector’s count matches both the sum of per-species maximum counts and the sum of per-species median counts, then we accept the annotation. If the annotation involves only two species and if the MegaDetector’s count matches either the sum of per-species maximum counts or the sum of per-species median counts (but not both), then we adopt the corresponding annotation count (max or median) as ground truth for the minority species and label the majority species with the difference between the MegaDetector’s count and the minority species count. All other cases where the annotation does not match the MegaDetector are discarded. Examples of detection are presented in Fig. B.2a.
To further improve the quality of the images in the Novel-SS, the images containing novel species that successfully passed through the filtering process above are manually curated to exclude highly-occluded images, as well as dawn/dusk images that are visually indistinguishable from no-novelty images.
Visual inspection of single images suggested to us that it is not easy to distinguish between the “standing” and “moving” activities. To test whether a deep net can perform this task, we fine-tuned a ResNet18 model pre-trained on ImageNet on the binary task of predicting moving vs. standing behavior [18, 32]. The dataset was the union of the no-novelty and novelty images containing a single species either standing or moving. Somewhat to our surprise, the network was able to achieve 78.5% correct discrimination. Hence, we retained standing and moving as distinct activities.
B.2.2 SS-NOVEL Dataset Statistics
Table B.1 summarizes species and activities that define the training, validation, and testing datasets. Figure B.1 summarizes the number of bounding boxes per image in Novel-SS. Figure B.2 provides examples of bounding boxes including failures of the Megadetector and cases where a single animal either fills the entire image (with extreme clipping/occlusion) or is barely visible in the image. Table B.3 provides statistics on the number of images in the validation and test set where pairs of species co-occur. Unsurprisingly, most animals are not observed with either hyenas or lions. Note that animal counts vary hugely across species. Table B.3 provides similar information for the co-occurrence of activities. We can observe that lions spend virtually all of their time resting, and we only have one image of a lion eating. Figure B.3 provides statistics on the number of images per species in the training, validation, and test sets.
| no-novelty | Novel species | Novel comb species | Novel activities | Novel comb activities | Novel env | ||
|---|---|---|---|---|---|---|---|
| Train | spe | all known | - | - | - | - | - |
| act | or | - | - | - | - | - | |
| env | - | - | - | - | - | ||
| Valid | spe | - | or | or | or | or | |
| act | - | or | or | and | or | ||
| env | - | ||||||
| Test | spe | all known | novel spe not in valid | other comb not in valid | known spe not in valid | known spe not in valid | known spe not in valid |
| act | or | or | or | and/or | and | or | |
| env | |||||||
Table B.1: Summary of species (spe), activities (act) and environment (env) in the training, validation and test data sets of the Novel-SS. Notation means that A and B are simultaneously present in the image while means that at least one of A and B is present. The red color mean the species, activity or environment is novel. Species abbreviation: , , , , , , , Thomsonsons, bird. Activities abbreviation: , , , .

Figure B.1: Distribution of bounding boxes counts in the Novel-SS.

(a) Examples of excellent detections by the Megadetector.

(b) Example of miss-detection by the Megadetector including false detections, missed detections, and poorly-aligned bounding boxes.

(c) Additional missed detections (circled) and cases where the image boundary clips much or all of the animal.
Figure B.2: Images illustrating the behavior of the Megadetector.

(a) Number of images per species in the training set (no-novelty images).

(b) Number of images per species in the no-novelty set of the test set.

(c) Number of images per species in the test set of the novel species novelty type..

(d) Number of images per species in the validation set of the novel species novelty type.

(e) Number of images per species in the test set of the novel combination of known activities novelty type.

(f) Number of images per species in the validation set of the novel combination of known activities novelty type.
Figure B.3: Statistics of images in the Novel-SS.

(g) Number of images per species in the test set of the novel environment novelty type.

(h) Number of images per species in the validation set of the novel environment novelty type.
Figure B.3: Statistics of images in the Novel-SS (cont.).
| Species | Zebra | Wildebeest | Gazelle Thom. | Gazelle Grants | Other bird | Topi | Giraffe | Elephant | Hyena spotted | Lion female |
|---|---|---|---|---|---|---|---|---|---|---|
| Zebra | 547;727 | 42 ; 55 | 12 ; 4 | 25 ; 32 | 18 ; 9 | 21 ; 19 | 8 ; 6 | 0 ; 4 | 0 ; 2 | |
| Wildebeest | 547;727 | 20 ; 11 | 11 ; 10 | 19 ; 25 | 4 ; 2 | 4 ; 0 | 0 ; 1 | 0 ; 3 | ||
| Gazelle Thom. | 42 ; 55 | 20 ; 11 | 50 ; 12 | 109;17 | 10 ; 11 | 6 ; 6 | 0 ; 3 | 3 ; 0 | ||
| Gazelle Grants | 12 ; 4 | 11 ; 10 | 50 ; 12 | 9 ; 3 | 2 ; 0 | 0 ; 3 | ||||
| Other bird | 25 ; 32 | 19 ; 25 | 109;17 | 9 ; 3 | 3 ; 0 | 1 ; 8 | 2 ; 7 | 2 ; 3 | ||
| Topi | 18 ; 9 | 10 ; 11 | 2 ; 0 | 3 ; 0 | ||||||
| Giraffe | 21 ; 19 | 4 ; 2 | 6 ; 6 | 0 ; 3 | 1 ; 8 | |||||
| Elephant | 8 ; 6 | 4 ; 0 | 0 ; 3 | 2 ; 7 | ||||||
| Hyena spotted | 0 ; 4 | 0 ; 1 | 3 ; 0 | 2 ; 3 | ||||||
| Lion female | 0 ; 2 | 0 ; 3 |
Table B.2: Validation and test image counts for novel combination of known species novelty type. The cells with yellow background are the combination of species in the validation set and the ones with white background are the test set. The red colored numbers are the counts of images with animals engaged in the activity "standing" and the blue ones are those with animals engaged in the activity "moving". Four validation images (not included in the table) contain 3 species: 2 of them contain the triplet (giraffe, wildebeest, zebra) and 2 contain the triplet (gazelle Thomsons, gazelle Grants, zebra). The test set on the other hand contains only 1 image with 3 species (other bird, wildebeest and zebra).
| Zebra | Wildebeest | Gazelle Thom. | Gazelle Grants | Other bird | Topi | Giraffe | Elephant | Hyena spotted | Lion female | |
|---|---|---|---|---|---|---|---|---|---|---|
| eating | 1,306 | 892 | 1,895 | 346 | 9 | 40 | 38 | 14 | 1 | |
| moving + eating | 24 | 10 | 15 | 4 | ||||||
| standing + eating | 96 | 52 | 380 | 17 | 2 | |||||
| resting | 16 | 412 | 405 | 126 | 18 | 31 | 249 | 1,626 | ||
| moving + resting | 7 | 1 | 6 | |||||||
| standing + resting | 23 | 393 | 341 | 10 | 7 | 1 | ||||
| eating + resting | 10 | 2 | ||||||||
| standing + eating + resting | 7 | 12 |
Table B.3: Validation and test image counts for novel activities novelty type. The cells with yellow background are the species and activities in the validation set and the ones with white background are the test set. The red colored activities are the novel activities and the lack ones are the known activities.
B.3 Further details on DCA-SS
B.3.1 Conditioning species probabilities for each bounding box on the novelty type
We begin by describing how we handle species predictions. Let known denote the set of all known species class labels, and let novel denote the set of all novel species class labels. We will break the task into three cases based on the novelty type.
B.3.1.1 Species probabilities when only one species can be present
For some novelty types, conditioning the bounding box predictions on the novelty type is relatively easy. We first consider . Under these novelty types, every bounding box in the image must belong to the same known species. Let denote the event that all bounding boxes in image belong to species . Then there are only possible events: . Hence, if we consider bounding box , the . We can compute this as
For every novel species , we set to respect the property that images with these novelty types cannot contain novel species. In the remaining derivations, we will omit the explicit conditioning on for clarity.
B.3.1.2 Species probabilities for the novel species type
We now consider the case where the novelty type . In this case, we know that at least one novel species must be present in the image and there can be at most one known species present in the image. We will name these two conditions. Let denote the event that there is at most one known species present in , and let denote the event that there is at least one novel species present in . Our goal can be expressed as for each bounding box . Conditioning on and is equivalent to conditioning on . We will condition on one event at a time, starting with .
Let denote the event (“all other bounding boxes in image either belong to class or belong to a novel class”). Making an independence assumption across bounding boxes, for each known species class , we compute
Next, we compute the same probabilities for each novel species class k:
].
Let denote the event . We can simplify (B.3) as follows:
can be computed as in (B.2), and can be computed similarly.
Next, we compute the following conditional probabilities for each class :
We must now further condition on . To this end, we compute the following for each known class k and bounding box b:
We then compute the same probabilities for each novel class k and bounding box b, which is trivial:
Notice that this has already been computed in (B.5).
Finally, we condition on like so:
B.3.1.3 Species counts for novel combinations of existing species
This case is simpler and can be handled with techniques very similar to those used in the previous section. The general pattern is the same. We break down each novelty type t into sub-events, and we condition our predictions on the sub-events one at a time. To condition on a sub-event E, we simply compute:
Once the numerator has been computed, the denominator can be computed by further marginalizing out the species class (i.e., by normalization).
B.3.2 Conditioning activity presence for each bounding box on the novelty type
Activities can be handled in exactly the same way as species. For images whose novelty type is no-novelty, novel species, novel combination of species, or novel environment, all bounding boxes must have the same activity. For the novel activity type, at least one novel activity must appear and at most one known activity can appear. Finally, in the novel combination of known activities, at least two known activities (and no novel activities) must be present.
B.3.3 Dynamic programs for weak image-level labels
The feedback received in the accommodation phase only contains weak count-based species labels and presence-based activity labels at the image level rather than class labels at the box level. Accommodating this feedback requires solving two separate multiple instance problems. Shukla et al. [68] provides a formulation of a dynamic program that computes the predicted likelihood of satisfying a weak count-based label in the binary classification setting. We extend this method to the multiclass setting, computing the predicted likelihood of a combination of box-label assignments that jointly satisfies the weak count-based labels for all species classes during the accommodation phase. We further adapt it for the presence-based multiple instance problem for activities as well.
B.3.3.1 Dynamic program for count-based multiple instance problem
This section explains our multiclass extension of the dynamic program provided by Shukla et al. [68] to accommodate feedback for images containing multiple unique species.
Consider image wherein there are bounding boxes each belonging to one of classes. Let denote the vector of ground truth counts for each class across the bounding boxes, such that is the number of the bounding boxes that belong to class .
Let us impose an ordering on the bounding boxes and let denote the probability predicted by the classifier that bounding box belongs to class . We now introduce the dynamic programming table. Let denote the predicted probability that, of the first boxes, of them belong to class 1, of them belong to class 2, and so on. Our goal is to compute the probability for the ground truth (and then take gradient ascent step to increase it). ; this is the predicted likelihood that the weak count-based ground truth label is satisfied.
can be computed as the sum of at most disjoint sub-events about the first bounding boxes: in order for the first boxes to contain class counts , one possibility is that the first boxes contain class counts , and the box belongs to class 1; another possibility is that the first boxes contain class counts , and the box belongs to class 2; and so on. Since these events are disjoint, can be computed as the sum of the probabilities of each of these events. Some of these events are inherently impossible, such as when any of are negative; such events' probabilities are trivially zero.
Each of these events’ respective probabilities can be computed recursively. For example, the predicted probability that the first boxes contains class counts is exactly , and the predicted probability that the box belongs to class 1 is simply . To compute the joint probability of these two events, we make an independence assumption and naively multiply them together. Assuming that all probabilities are computed by conditioning on the respective boxes, this can be viewed as assuming that the labels of the boxes are conditionally independent given the boxes themselves.
can only be nonzero when because each image belongs to exactly one class. The base cases are the nonzero values of the form (i.e., an event signifying that the first image belongs to some particular class). In these cases, exactly one of must be 1 while the rest must be 0. Let be the nonzero value among . Then represents the predicted probability that the first image belongs to class , which is simply .
can be computed via a dynamic program. The recursive definition of can depend on only if , and . The goal is to compute , so the space of the dynamic program can be represented with a tensor with dimensions with respective sizes .
Equivalently, a slice of dummy values can be prepended to the last dimension to reflect probabilities of events about the first 0 out of images, and these dummy values can serve as the base cases instead. In such a case, since it reflects the probability that 0 classes are observed among the first 0 images, and all other since they reflect the impossibility that a nonzero number of classes are observed among the first 0 images. This is similar to the formulation depicted by Shukla et al. [68].
B.3.3.2 Dynamic program for presence-based multiple instance problem
The above dynamic program can easily be adapted to the presence-based multiple instance problem for activities as well. In this problem, there are still bounding boxes each belonging to one of classes, but the ground truth is a vector of 0s and 1s corresponding to absent and present classes across the boxes. That is, if the class is present among the boxes, and otherwise. The value of is the predicted probability that bounding box belongs to class .
The solution formulation is very similar. Let denote the probability that, of the first images, class 1 is absent if and present if ; class 2 is absent if and present if ; and so on. The goal, then, is to compute ; this is the predicted likelihood that the weak presence-based ground truth label is satisfied.
In this case, each can be computed as the sum of at most 2K disjoint sub-events about the first images. For example, suppose the goal is to compute the probability that the first images only contain classes 1 and 2 (i.e., the goal is to compute ). In this case, there are four possible sub-events:
-
The first images only contain classes 1 and 2, and the image belongs to class 1.
-
The first images only contain classes 1 and 2, and the image belongs to class 2.
-
The first images only contain class 1, and the image belongs to class 2.
-
The first images only contain class 2, and the image belongs to class 1.
As in the count-based problem, each of these events’ respective probabilities can be computed recursively. For example, the predicted probability that the first images only contain classes 1 and 2 is exactly , and the predicted probability that the image belongs to class 1 is simply . Once again, we compute the joint probability of these two events by making an independence assumption.
Again, the base cases are values of the form where exactly one of is 1 and the rest are 0 (i.e., an event signifying that the first image belongs to some particular class). Let be the nonzero value among . Then represents the predicted probability that the first image belongs to class , which is simply .
Again, can be computed via a dynamic program. The recursive dependency pattern is the same as in the count-based problem: the recursive definition of can depend on only if , and . The goal is to compute , so the space of the dynamic program can be represented with a tensor with at most dimensions with respective sizes 2, 2, ..., 2, N. For classes that don't appear in any of the images, their respective dimensions are omitted from the dynamic program entirely (or, equivalently, they can be represented with dimensions of size 1).
B.4 Additional DCA-SS Results
B.4.1 Tuning Continual Learning
We ran several other configurations of EWC to see whether its performance could be improved. We varied two aspects. First, we varied the strength of the regularization parameter. The larger its value, the more EWC is encouraged to remain close to the

Figure B.4: Comparison of Mean Average Error for Selected Trials of Various Continual Learning Configurations
pre-training weights. The second aspect that we varied was whether to have EWC modify all of the weights in the network or only the weights in the classifier heads (each a 2-layer fully-connected network). We also ran one experiment (“End-to-End”) in which we combined all of labeled data obtained from post-novelty feedback queries with all of the pre-training data and retrained the entire network from scratch. Figure B.4, B.5, and B.6 plot MAE and values for various configurations. The values plotted are the combined scores during the Test Phase (40% novel and 60% known images). EWC 10000 is the configuration of DCA-SS based on the validation set. The “EWC H” configurations apply EWC only to the classifier Heads and vary the EWC regularization parameter. Several trends are apparent. First, the End-to-End configuration generally performs poorly, despite the fact that it includes a class balancing mechanism. Second, EWC 10000 performs quite well. Third, the best overall performer is “EWC H 100,000”, but the setting of the EWC regularization parameter has relatively little effect.

Figure B.5: Comparison of Species Presence for Selected Trials of Various Continual Learning Configurations

Figure B.6: Comparison of Activity Presence for Selected Trials of Various Continual Learning Configurations
The quick brown fox jumps over the lazy dog.