Detection of Spatiotemporally Coherent Rainfall Anomalies Using Markov Random Fields
Adway Mitra, Ashwin K. Seshadri

TL;DR
This paper introduces a Markov Random Field-based method to detect spatio-temporally coherent rainfall anomalies in Indian annual rainfall data from 1901-2005, revealing nonstationarities and changing rainfall patterns.
Contribution
The paper presents a novel application of MRFs for anomaly detection in rainfall data, incorporating spatial and temporal coherence, and demonstrates its effectiveness on historical Indian climate data.
Findings
Detected nonstationarities in rainfall anomalies over the 20th century.
Identified decreases in rainfall during June-September and increases in other months.
Provided a framework for testing climate model simulations against observed anomalies.
Abstract
Precipitation is a large-scale, spatio-temporally heterogeneous phenomenon, with frequent anomalies exhibiting unusually high or low values. We use Markov Random Fields (MRFs) to detect spatio-temporally coherent anomalies in gridded annual rainfall data across India from 1901-2005. MRFs are undirected graphical models where each node is associated with a \{location,year\} pair, with edges connecting nodes representing adjacent locations or years. Some nodes represent observations of precipitation, while the rest represent unobserved (\emph{latent}) states that can take one of three values: high/low/normal. The MRF represents a probability distribution over the variables, using \emph{node potential} and \emph{edge potential} functions defined on nodes and edges of the graph. Optimal values of latent state variables are estimated by maximizing the posterior probability of the…
| Method | N1Y | N2Y | N1H | N2L | D12H | D21L |
|---|---|---|---|---|---|---|
| LWA | 54 | 54 | 107 | 111 | 101 | 86 |
| MRF | 62 | 58 | 132 | 129 | 118 | 103 |
| Method | N1 | N2 | NG1 | NG2 | NL1 | NL2 |
|---|---|---|---|---|---|---|
| LWA | 5666 | 5621 | - | - | - | - |
| MRF-SC | 6561 | 6038 | 481 | 678 | 1376 | 1095 |
| MRF-TC-0.50 | 7905 | 7645 | 2248 | 2031 | 9 | 7 |
| MRF-TC-0.75 | 6687 | 6379 | 1319 | 1079 | 298 | 321 |
| MRF-TC-0.90 | 5482 | 4725 | 1065 | 725 | 1249 | 1621 |
| MRF-TC-0.99 | 3555 | 2178 | 910 | 408 | 3028 | 3844 |
| MRF-STC-0.50 | 6484 | 6049 | 1313 | 1090 | 495 | 663 |
| MRF-STC-0.75 | 4916 | 4322 | 583 | 410 | 1333 | 1709 |
| MRF-STC-0.90 | 3447 | 2282 | 361 | 185 | 2580 | 3524 |
| MRF-STC-0.99 | 1828 | 1105 | 204 | 96 | 4042 | 4612 |
| MRF-STC-unif | 1755 | 1013 | 192 | 83 | 4103 | 4691 |
| MRF-STC-prop | 1828 | 1105 | 204 | 96 | 4042 | 4612 |
| MRF-STC-anml | 1808 | 1109 | 196 | 113 | 4054 | 4625 |
| MRF-STC-mxd1 | 3125 | 1785 | 704 | 276 | 3252 | 4105 |
| MRF-STC-mxd2 | 2200 | 1328 | 379 | 166 | 3934 | 4597 |
| #Anomalies | S-T size | Spatial sizes | Temporal sizes | Intensity | ||||||
| Method | NP | NN | STSP | STSN | SSP | SSN | TSP | TSN | IP | IN |
| LWA | 1085 | 1163 | 5.3 | 5.0 | 5.0 | 4.4 | 1.1 | 1.2 | 1.34 | 0.70 |
| MRF-SC | 519 | 472 | 11.5 | 12.5 | 10.8 | 11.0 | 1.1 | 1.2 | 1.37 | 0.69 |
| MRF-TC-0.50 | 1083 | 1155 | 6.9 | 6.6 | 6.3 | 5.8 | 1.2 | 1.2 | 1.24 | 0.80 |
| MRF-TC-0.75 | 1000 | 1105 | 6.7 | 6.1 | 5.7 | 5.1 | 1.3 | 1.2 | 1.26 | 0.78 |
| MRF-TC-0.90 | 795 | 825 | 6.5 | 5.9 | 4.8 | 5.0 | 1.6 | 1.5 | 1.30 | 0.76 |
| MRF-TC-0.99 | 472 | 365 | 6.7 | 6.8 | 3.4 | 2.8 | 2.3 | 2.6 | 1.34 | 0.73 |
| MRF-STC-0.50 | 550 | 459 | 10.8 | 12.6 | 10.0 | 11.1 | 1.2 | 1.2 | 1.32 | 0.75 |
| MRF-STC-0.75 | 401 | 317 | 11.5 | 13.5 | 10.0 | 11.0 | 1.3 | 1.3 | 1.37 | 0.71 |
| MRF-STC-0.90 | 303 | 137 | 9.5 | 15.3 | 7.5 | 9.3 | 1.4 | 1.8 | 1.44 | 0.68 |
| MRF-STC-0.99 | 208 | 75 | 7.0 | 15.8 | 3.9 | 6.4 | 1.9 | 2.7 | 1.47 | 0.67 |
| Temp.size | Spat-temp.size | Spat-temp.size | Spat-temp size | |||||
| Spat.size | Spat.size | Temp.size | Intensity | |||||
| Method | Pos | Neg | Pos | Neg | Pos | Neg | Pos | Neg |
| LWA | 0.42 | 0.40 | 0.99 | 0.94 | 0.49 | 0.61 | 0.15 | -0.1 |
| MRF-SC | 0.43 | 0.33 | 0.99 | 0.93 | 0.51 | 0.61 | 0.01 | 0.1 |
| MRF-TC-0.5 | 0.45 | 0.44 | 0.99 | 0.96 | 0.50 | 0.60 | 0.23 | -0.2 |
| MRF-TC-0.7 | 0.43 | 0.44 | 0.98 | 0.96 | 0.52 | 0.59 | 0.19 | -0.2 |
| MRF-TC-0.9 | 0.38 | 0.37 | 0.95 | 0.82 | 0.57 | 0.69 | 0.18 | -0.1 |
| MRF-TC-0.99 | 0.33 | 0.29 | 0.80 | 0.70 | 0.69 | 0.65 | 0.06 | -0.1 |
| MRF-STC-0.5 | 0.40 | 0.26 | 0.99 | 0.94 | 0.48 | 0.53 | 0.14 | -0.2 |
| MRF-STC-0.7 | 0.38 | 0.31 | 0.97 | 0.87 | 0.52 | 0.68 | 0.06 | -0.1 |
| MRF-STC-0.9 | 0.34 | 0.18 | 0.94 | 0.79 | 0.57 | 0.67 | 0 | 0 |
| MRF-STC-0.99 | 0.32 | 0.22 | 0.87 | 0.65 | 0.60 | 0.76 | -0.1 | 0 |
| Method | NP | NN | STSP | STSN | SSP | SSN | TSP | TSN |
|---|---|---|---|---|---|---|---|---|
| NP1 | 185 | 76 | 9.4 | 13.9 | 4.6 | 4.6 | 2.5 | 2.9 |
| NP2 | 211 | 83 | 11.5 | 12.8 | 4.9 | 4.5 | 2.8 | 2.7 |
| NP3 | 185 | 111 | 9.9 | 12.9 | 4.6 | 4.4 | 2.6 | 3.4 |
| NP4 | 206 | 116 | 11.7 | 13.8 | 5.1 | 4.4 | 2.8 | 3.0 |
| NP5 | 186 | 75 | 10.1 | 14.1 | 4.6 | 4.7 | 2.7 | 2.9 |
| NP6 | 188 | 88 | 9.8 | 13.3 | 4.5 | 4.4 | 2.6 | 2.9 |
| NP7 | 189 | 80 | 11.1 | 12.8 | 5.1 | 4.6 | 2.7 | 2.8 |
| NP8 | 185 | 75 | 9.7 | 14.5 | 4.5 | 4.7 | 2.6 | 2.9 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Detection of Spatiotemporally Coherent Rainfall Anomalies Using Markov Random Fields
Adway Mitra
International Center for Theoretical Sciences (ICTS), Bangalore, India
Ashwin K. Seshadri
Divecha Centre for Climate Change, IISc, Bangalore, India
Abstract
Precipitation is a large-scale, spatio-temporally heterogeneous phenomenon, with frequent anomalies exhibiting unusually high or low values. We use Markov Random Fields (MRFs) to detect extended anomalies in gridded annual rainfall data across India from 1901-2005, that are spatio-temporally coherent but permitting flexibility in size. MRFs are undirected graphical models where each node is associated with a {location,year} pair, with edges connecting nodes representing adjacent locations or years. Some nodes represent observations of precipitation, while the rest represent unobserved (latent) states that can take one of three values: high/low/normal. The MRF represents a probability distribution over the variables, using node potential and edge potential functions defined on nodes and edges of the graph. Optimal values of latent state variables are estimated by maximizing their posterior probability using Gibbs sampling, conditioned on the observations. These latent states are used to identify spatio-temporally extended rainfall anomalies, both positive and negative. Edge potentials enforce spatial and temporal coherence, and can adjust the competing influences of these types of coherence. We study spatio-temporal properties of rainfall anomalies discovered by this method, using suitable measures. We also study the relations between spatio-temporal sizes and intensities of anomalies. Identification of such rainfall anomalies can help in monitoring and studying floods and droughts in India. Additionally, properties of anomalies learnt from this approach could present tests of regional-scale rainfall simulations by climate models and statistical simulators.
1 Introduction
In many parts of the world, such as India, rainfall plays an important role in the economy and the well-being of millions of people. Consequently, excess or deficient rainfall can have very significant effects, especially if it is spread over a large region, or a long time. It is known that low annual rainfall has an adverse effect on India’s GDP [1]. Hence, identification of such spatio-temporally extended events of excess or deficient rainfall is important in both observed historical data and simulations of future scenarios by climate models. In this work, we call such events “anomalies”.
In climate science, “anomaly” of a climatic variable (such as precipitation) at a particular location and time is defined quantitatively, as the amount of deviation from its climatological value, averaged over many years. But in this work, we will use the term “anomaly” to indicate deviation not only from climatological value at individual locations but also with respect to spatial/temporal neighbors. Instead of individual locations such as grid-points in individual years, we consider spatially or temporally extended anomalies, with flexible spatio-temporal sizes. Anomalies can occur at different spatial and temporal scales, and their occurrence is heterogeneous (the statistics are location-dependent) and anisotropic (not uniform in all directions). The more consequential anomalies are the ones with significant spatiotemporal extent, and therefore it is important to identify them. Identification of such anomalies of rainfall are very useful in monitoring floods [2] and droughts [3, 4, 5] in India, as it gives us the information about which regions received excess or deficient rainfall in any given year. Of course, floods and droughts can occur at sub-annual time scales, and any approch to detection of such anomalies should be general enough to work at any time scale of interest. Another factor is that with climate change, the frequency of rainfall extremes may increase, along with changes in the spatial pattern of rainfall[6]. To understand past and future changes, scientists rely on climate models like general circulation models (GCMs) which simulate global climatic variables including rainfall. Algorithms are necessary for analyzing large-scale simulations as well as observational data procured from sensors, and such analyses should include detecting and summarizing statistics of rainfall anomalies ([7, 8, 9]). Such analysis cannot be done manually because of the large and growing volume of data and simulation results, raising the need for automated procedures.
Automating anomaly detection is challenging, because anomalies are inherently subjective, depending on definition and detection threshold [10]. Anomaly detection in general, and spatiotemporal anomaly detection in particular are considered important research areas in Data Science [11]. Anomalies can be both positive and negative depending on the sign of deviation of rainfall volume from the long-term mean. However, the magnitude of deviation to be considered as “anomaly” is a design choice. The simplest approach to anomaly detection is based on a predefined threshold, relative to statistics of the corresponding variable at individual spatial locations. With rainfall, one might consider the time-series of annual mean rainfall at each grid location, estimate its mean and variance, and identify years departing significantly from the mean. However, accounting for effects of spatiotemporal neighbours is important for detection [12] of extended anomalies, and the aforementioned location-wise threshold-based approach cannot do this. Neither is it suitable to establish fixed thresholds for spatio-temporal sizes defining anomalies, as these have a wide range of sizes. Several spatially separated anomalies are present within the same year, some of which may be of different signs. Basically, we need to make a compromise between the magnitude and spatio-temporal extent.
Anomalies can occur at different spatial scales, ranging from that of the entire domain, in this case the country scale, down to grid levels. An anomaly of all-India rainfall is likely to be manifested through several smaller anomalies of the same sign. For example if the entire country has a negative anomaly in a given year, then several grid-locations within the country are likely to be parts of negative anomalies during the same year. The Indian Meteorological Department (IMD) declares years to be “excess rainfall” (positive anomaly), “deficient rainfall” (negative anomaly) or normal, by comparing the aggregate all-India annual rainfall against thresholds. In some applications, whether or not an anomaly is identified at a large spatial scale should also depend on the presence/absence of anomalies at smaller scales, and the methods illustrated here facilitate this. For example, a year with widespread drought and many grid-locations under negative anomalies, could be considered as a year of negative anomaly at the all-India scale, even if all-India rainfall were not below the threshold.
Furthermore the anomaly detection problem is broader, especially when the anomaly is conceived as a conceptual or abstract quantity represented by a state variable that cannot be directly observed or measured and must be inferred indirectly. Here we consider anomalies in rainfall as a latent variable, as often done in statistical modelling [13] including spatiotemporal modelling [15]. Such latent (i.e. unobserved) states are best estimated through probabilistic methods [13, 14]. We associate a latent state variable with each spatiotemporal location, i.e. each combination of grid-point and year. A graph is constructed with all these spatio-temporal variables as nodes, where pairs of nodes corresponding to neighboring locations are connected by edges. An anomaly is a connected component of such a graph, such that at each node in the component the associated latent variables have equal value. The approach of using local wet/dry conditions along with their spatio-temporal extents for monitoring floods and droughts has been attempted earlier also [16], though using standard precipitation index instead of discrete variables.
In this work we model these latent variables to be spatiotemporally coherent through parameters of a Markov Random Field. We estimate these latent variables as the maximum posterior (MAP) solution of a Markov Random Field (MRF). MRFs are undirected random graphical models satisfying Markov properties, and are generally used to model joint distributions of several variables [17]. Given a likelihood model of the data conditional on the states of this graph, the posterior density and correspondingly the MAP solution of these variables can be estimated. Each latent state node has three values: 1 (positive anomaly), 2 (negative anomaly) or 3 (normal). We also have additional nodes for all-India states each year, which are connected to the local nodes to account for the interaction between spatial scales. MRFs are defined using “potential functions” for nodes and edges of the graph, which encode interactions between neighbouring variables. In our application, these functions influence the spatial and temporal coherence of the state variables. The local Markov properties inherent to MRFs imply that, for any node, its value is conditionally independent of all other nodes except its neighbours.
To identify the MAP configuration of the latent states we use Gibbs sampling. Based on the inferred latent states we identify spatiotemporally coherent anomalies, and quantify their properties. Effects of enforcing spatial and temporal coherence on the resulting anomalies are examined, and sensitivity to parameters is studied. We compare the spatial extents of positive and negative anomalies. There is an inherent trade-off between spatial and temporal extents of anomalies in any procedure, originating in the values of parameters enforcing spatial and temporal coherence. Furthermore, even for any fixed set of parameters, there is variability in the spatial and temporal sizes of the anomalies detected across the spatio-temporal domain. Both of these effects are examined. Finally, we also study the intensity of anomalies, i.e.the degree by which the annual rainfall in a set of locations suffering an anomaly differs from the long-term rainfall there. We also study how this intensity is related to spatial and temporal extents of the anomalies. Somewhat similar properties of droughts have been studied earlier [18], with an aim to filter out minor droughts. We illustrate our analysis with case studies of some spatially and temporally extended anomalies that our method detected.
The contribution of this paper is to study a new problem - detection of spatio-temporally extended rainfall anomalies. We cast the problem into the anomaly detection framework of Data Mining, and use probabilistic approach based on mixture models and latent variables. We use Markov Random Fields for spatio-temporal coherence. A major advantage of this approach is that no thresholds are needed, and anomalies of arbitrary shapes and sizes can be detected. Also, we consider the interaction between different spatial scales. The properties of the model are studied extensively.
2 Methodology
2.1 Definitions and Notation
We consider locations and years, and spatiotemporal observations of a geophysical variable such as annual-mean rainfall. Then indexes location and indexes time, and signifies rainfall received by location at time . Unlike time, 2-dimensional spatial locations have no natural ordering. So we order the spatial locations based on their longitude first, latitude next. Each location in the 2-dimensional spatial grid system has 8 neighbors. For each location , we denote by the set of its neighboring locations, according to the grid system. Thus, for a location having coordinates , its neighbors will be , where . This particular way of ordering and indexing the spatial locations has no bearing on the analyses undertaken below, and any other indexing scheme is also equally compatible with it. This is because, the indexing does not indicate any sequence of the spatial locations, it just identifies them. The important thing in our analysis is the neighborhood structure, which is based on the spatial locations of the grids and independent of the indexing scheme.
Let us consider a graph , where each node is associated with a pair . Further, for each spatio-temporal location we have two nodes, one corresponding to and one for . is a discrete variable which indicates the state of rainfall at location , time . While is known from the dataset, is unknown, and must be estimated. We put edges between pairs of nodes corresponding to and for each year if and are neighbouring grid-points, i.e. . We call such edges as spatial edges. Again, we put edges between pairs of nodes corresponding to and for each location , and such edges are called temporal edges. Finally, for each spatio-temporal pair we have an edge between and , and we call such edges as data edges. Thus a spatial edge connects a -nodes associated with neighboring locations and same time, a temporal edge connects -nodes associated with same location but adjacent times, and a data-edge connects -node and -node at the same location and time. Thus, we have nodes, data edges, temporal edges, and spatial edges.
We consider each location to be in one of three possible states in any year - high (1), low (2) or normal (3), which is encoded by . This follows the conventional classification of rainfall-years as excess rainfall, deficient rainfall, or normal, at each location. The state is represented by a latent discrete variable taking one of 3 values. In such a graph, an anomaly is a connected component of the -nodes corresponding to spatio-temporal locations, such that all of the nodes in the component have the same value of : either 1 (positive anomaly) or 2 (negative anomaly). A goal of anomaly detection is to estimate these latent variables, from which the connected components can be computed and thus spatio-temporally coherent anomalies identified [10].
2.2 Location-wise Analysis (LWA)
A naive solution to anomaly detection is to treat the time-series at each location individually. For each time-series we compute mean and standard deviation . We then set (high) for those years where , (low) for those years where , and (normal) for all other years, where and are thresholds specific to location . We call this method Location-Wise Analysis (LWA), since it treats each location independently without considering the state of its neighbours. Corresponding assignments to the latent variables by this method are denoted as .
This approach suffers from two major limitations. Firstly, it is not clear how to choose the thresholds, and results vary strongly with the choice. The histogram of annual rainfall in most locations resembles the bell-shaped curve of Gaussian distribution. So, it is reasonable to set and . Through the rest of this paper, we will use this choice. However, an approach that circumvents the need to specify such thresholds is a better solution.
The second major limitation of this approach is of course its neglect of spatial coherence in the latent variable. For example an individual location may be in a certain mode, while all its neighbours are in a different mode in the same year. Isolated anomalies need not be spurious, but spatially or temporally extended anomalies are more consequential. An alternate approach might be to undertake location wise analysis, after having smoothed data onto a coarser grid. This enlarges the scales of interest, but involves loss of spatial information. It also does not permit anomalies at multiple scales, or naturally accommodate spatial heterogeneity or anisotropy in anomalies. This is the most important limitation of LWA, and we need a fundamentally new approach to circumvent it.
Finally, this approach also neglects temporal coherence in each of the location-specific time-series. This shortcoming can be solved by using an approach like Hidden Markov Models, which consider a discrete state space for a time-series and models the state transition distributions. However, Hidden Markov Models are most suitable when there exists some natural ordering between the states and one particular state is likely to be followed by another state. In this case, we do not have any such ordering. Rather, we simply need state persistence to achieve temporal coherence. This can be achieved by the method proposed below.
2.3 Modeling by Markov Random Fields
Detecting extended anomalies requires a different lens from LWA, one inducing spatial or temporal coherence during assignment of the -variables. To address this shortcoming, we take the approach that assigns probabilities to different configurations of latent -variables, with higher weights to configurations where -assignments are spatially or temporally coherent. This is achieved by modelling the latent variable as an MRF, along the lines of the drought discovery technique in [19]. We seek to discover spatial and temporal clusters within which -values are the same.
Markov Random Field is an undirected graphical model, where a probability distribution are defined on an undirected graph. Each node in the graph corresponds to a random variable, and each edge has an associated potential function that depends on the random variables corresponding to the two nodes connected by that edge. The full likelihood of the model is defined as the product of all the edge potential functions.
As already stated, we have 2 nodes for every spatio-temporal pair - corresponding to and . Spatial edges, temporal edges and data edges are defined between pairs of variables as mentioned above. In addition to grid-wise latent states, these can also be defined for the all-India mean, relative to its corresponding distribution across years. The Indian Meteorological Department (IMD) currently makes annual forecasts of spatial aggregate rainfall over India during the summer monsoon months of July-September (JJAS), called Indian Summer Monsoon Rainfall (ISMR). We define an analogous quantity for the entire year, All-India Mean Rainfall (AIMR), and denote by . Its anomalies are relative to its interannual mean and standard deviation . Once again, we define discrete latent variable corresponding to AIMR, which can take 3 values.
A Markov Random Field is an undirected graph, with nodes for each pair. Corresponding to each pair is associated a latent variable and an observation . Each observation node has a single edge, to the corresponding latent variable node . The graph also contains nodes corresponding to each year, associated with latent and observed , corresponding to AIMR. For any year , is linked by edges to all nodes for that year for every location . Large anomalies in ISMR are declared by IMD as excess or deficient rainfall years. However, rainfall is highly heterogeneous spatially. Therefore in order to define anomalies in the aggregate measure of AIMR, we consider not only calculations of but also the frequencies of local anomalies in the corresponding year. This is achieved by linking the and nodes. Figure 1 illustrates the model.
Probabilities are assigned to each configuration of using node potential functions on each node, edge potentials on each edge occurring between spatiotemporal nodes and on each edge occurring between spatiotemporal nodes and AIMR nodes. Edge potentials influence spatial and temporal coherence and node potentials influence the threshold for anomaly detection. Edge potentials describe prior probabilities that the nodes connected by the edge are in the same state. The node potential functions can be interpreted as describing the prior probability distribution across different states.
The precipitation amount at any location and year, given by , is modelled using a Gaussian distribution with parameters specific to the location and latent state . These conditional distributions can be interpreted as edge potentials on the data edges connecting the latent and observed states respectively.
The likelihood function is:
[TABLE]
This defines the likelihood function, i.e. the probability of observing the data given the latent variables in the graph.
2.4 Spatial and Temporal Coherence through MRF
The spatiotemporal rainfall volume is modeled as a multi-modal Gaussian distribution, and specifies the mode (1:high,2:low,3:normal). The parameters of this distribution depend on the latent state as well as location , and are estimated from data. Similarly for spatial mean rainfall we use a Gaussian distribution with state-specific parameters . Initial estimates of these parameters can be made from the dataset using LWA to assign states.
We define edge potential functions so that if two vertices connected by an edge have same values of then the corresponding edge potential is larger than if the values were different. Since the likelihood function is multiplied by these edge potentials, this encourages spatial and temporal neighbours to have same state, leading to spatial and temporal coherence. For each edge between location state node and the corresponding AIMR state node for the same year, the edge potential influences the extent to which the local state is sought to be made coherent with the aggregate state. We define potential functions for different edges as follows:
[TABLE]
To emphasize spatial coherence, is a small constant compared to . The latter describes edge potentials if spatial neighbours are in the same state. As described previously, these edge potentials can be viewed as prior probabilities on the neighbours being in the same state. Therefore represents a prior probability that the states in locations and are the same, and is estimated from data. Two neighbouring grid-locations need not be highly correlated, for e.g. on either side of a narrow mountain range (such as the Western Ghats). Therefore unlike the MRF estimated by [19], where all edges between neighbouring pairs have the same potential function, here the potentials on edges are estimated from data and are location-dependent.
The value of edge potential , for edges connecting nodes with neighbouring years, lies between zero and one. It induces temporal coherence, and hence is called the temporal coherence parameter. Higher values induce a higher emphasis on temporal coherence.
The third set of edge potentials describes behaviour of edges between the location nodes in any given year and the AIMR-node for that year. It is defined using the exponential, so that the contribution depends on the total number of locations whose states coincide with the state assigned to the spatial mean node. is the total number of locations. The edge potential is higher when the location nodes are in the same state as the spatial mean node.
Next, we define the node potential functions. These are directly proportional to the prior probabilities of the nodes being in the different states, and generally influence the threshold for anomaly detection in most real situations when data is limited and the prior is not immaterial in the MAP solution. The state that is eventually assigned in the MAP solution depends only on the relative values of these node potentials. For the default model, all node potentials are set equal to the same value, which is set to 1. But they can be varied according to the problem of interest, as described further in the Appendix.
MRF parameter settings: Only the part of the likelihood function that varies with the state affects the MAP solution. Therefore a node or edge potential can be made irrelevant to the particular analysis by making it constant, independent of the value of . In the subsequent sections, we will use this device to consider alternate settings of the MRF, including where either spatial or temporal coherence are considered in isolation.
2.5 Anomaly Detection by Markov Random Fields
Having defined the likelihood function, we carry out inference on the latent variables and estimate parameters , , for locations , corresponding neighbours and conditioned on latent state . Unlike the maximum likelihood estimation of [19] that is based on integer programming, here we carry out inference by Gibbs Sampling, which is computationally simpler [24].
Each latent variable is initialized based on location-wise analysis described earlier, and corresponding parameters are estimated. The Gibbs sampling technique entails, at each iteration, sampling each -variable from its updated conditional distribution by conditioning on values of other variables estimated thus far in the iteration, and then re-estimating the parameters. The procedure is repeated for several iterations, and samples are collected at regular intervals. The stationary distribution of this Markov chain Monte Carlo procedure is the posterior distribution on the latent variables. The maximum a-posteriori (MAP) estimate of -variables can then be made from the samples.
The Gibbs Sampling equation for any latent variable or is given by:
[TABLE]
where refers to neighbours of , to the previous and next years, i.e. and , the state , and means all the -variables except . While applying this equation, we do not consider variables corresponding to spatiotemporal locations that are not neighbours of , since the Markov property of MRF holds that each node is conditionally independent of all non-neighbouring nodes conditioned on the neighbouring nodes. The Gibbs Sampling proceeds by drawing samples for each and each from Equation 3, and the optimal value for each latent variable is estimated from the distribution across these samples.
After estimating the latent-variable-set , we identify anomalies by discovering spatially and/or temporally coherent sets of spatiotemporal locations. Spatiotemporal anomalies are estimated as connected components of the MRF, such that each node of the connected component has the same value of . These values of can be either 1 or 2, corresponding to positive and negative anomalies respectively. Due to coherence, the clusters thus identified can be at a single location but extending over several continuous years, or spatially contiguous locations in a single year, or both. Clearly, the spatio-temporal extents of the anomalies discovered this way are not fixed.
2.6 Related Works
Anomaly Detection is well-studied area of Data Mining [10]. However, its main challenge is that anomalies cannot be precisely defined, and are subjective by definition, and most papers on anomaly detection solve a specific formulation of the problem. Much of the work on anomaly detection is about classifying each individual data-point as normal or anomalous, with respect to either its immediate neighbors or the entire dataset. It is more difficult when we deal with collections of data-points rather than individually.
While there are other approaches to anomaly detection [10] including in case of spatiotemporal anomalies [11], here we use MRFs for studying coherent rainfall anomalies. MRFs themselves have been used in similar applications involving geospatial fields [21], including rainfall [19]. Fu et al. (2012) [19] have used MRFs to detect coherent droughts of the last century, and find that their procedure can identify well-known droughts around the world. Theirs appears to be the first formulation of the rainfall anomaly detection problem in terms of MRFs. Other Bayesian models have also been considered for studying floods and droughts, such as [20] which also incorporate spatial dependence of flood properties at local scales. The present paper is partly motivated by the aforementioned work [19]. We focus on grid-level annual rainfall over India, but our method is general enough to work on rainfall data at any spatial and temporal resolution. Like [19] we use Markov Random Fields, but an important difference is that both positive and negative anomalies are considered, so that the latent variable in each node is in one of three states (positive, negative, normal). In addition the relation between anomalies at small scales (grid-wise) and large scale (all-India spatial mean) is explicitly modelled.
To identify the MAP configuration of the latent states [19] used integer programming. However, integer programming is very slow, increasing exponentially in the size of the problem, thereby necessitating probabilistic inference techniques [13, 14]. In this work we use Gibbs sampling to infer the latent variables. Gibbs sampling works by creating a Markov chain whose stationary distribution is the distribution we seek, and then carrying out a random walk on this Markov chain ([22, 23]). Gibbs sampling has been used previously in estimating MRFs (e.g. [24, 21]), and here we illustrate its usefulness in estimating latent states corresponding to large and heterogeneous geospatial fields such as rainfall. A survey of inference techniques for Markov Random Fields is given in [25].
Geophysical spatio-temporal processes have often been studied by approaches somewhat similar to the proposed one. Models such as STARMAX [26] which are inspired by time-series models, express the -dimensional observation vector at each time-step in terms of that in the previous time-step, as where is noise, is input vector, and C, D are matrices that introduce spatial correlation in the elements of . [27] proposes an approach for temporal segmentation of multivariate time-series based on latent factors, but it is not geared for spatial coherence or anomalies. In other models such as Gaussian Random Fields [30] or Gaussian Process [28, 29] the spatial correlations are more strongly captured through covariance matrices of a latent process , which is however continuous unlike our discrete process . At each time-step , the observations are expressed in terms of as , while is itself modelled with a Gaussian prior as or where is covariance function and is covariance matrix. As in our case, is latent and needs to be estimated conditioned on , which involves lengthy computations with the covariance matrices. Indeed a lot of research has recently investigated how such computations can be speeded up by considering covariance matrices of special forms (close to diagonal) [28, 29], or by a clever re-grouping of spatial locations which enables the -variables there to be sampled simultaneously [30]. Use of discrete latent variables allow us to circumvent these issues, while providing a natural solution to anomaly detection.
2.7 Discussion of Model
Having discussed the model in details, and before starting its empirical evaluation, we discuss certain aspects of the model which may place it in perspective of existing models for similar problems.
2.7.1 Relation to other models
Although we consider latent variables to model a spatio-temporal process, our approach is different from [28, 29, 30] because we explictly want three modes - positive anomaly, negative anomaly and normal. So, a discrete latent variable serves us better than continuous. This helps us avoid the matrix computations involved in the GP-type approaches. Unlike the STARMAX-type models we do not model the temporal dynamics explicitly, nor do we ignore it as in the Gaussian Process-type models. We do not use a directed graphical model like Bayesian Networks because spatial locations cannot be ordered naturally, nor is there any known causal relation between spatial locations. So we attempt to model the joint distribution of all spatial variables instead of using conditionals as in a directed model. The spatial and temporal interactions among the variables are modelled locally, between pairs of nodes, and the global configuration of is inferred based on these local properties. This discrete representation used by our model is physically interpretable, and so are the local interactions. On the downside, this model is not suitable for prediction or simulation purposes for , as no conditional distribution is modelled.
2.7.2 Computational Complexity
This inference process based on Gibbs Sampling is iterative, and in each iteration we need to sample the -variable for each pair, and also the -variables at all-India scale for each day. So, each iteration requires sampling steps, where is the number of locations, and the number of years. However, the sampling for each pair can be done in constant time since can take only 3 values, and their probabilities can be computed easily based on the current -assignments to other locations. The complexity is thus linear in the number of spatio-temporal locations. Moreover, this sampling step can be sped-up by parallelized computation, where sets of -variables that are independent of each other can be sampled simultaneously. Some of these aspects have been discussed in [30]. However, a detailed study of this matter is beyond the scope of this paper.
2.7.3 Spatio-temporal Separability
An important issue in spatio-temporal model is that of spatio-temporal separability, i.e. whether the covariance matrix can be written as a product of a purely spatial and a purely temporal component [31]. A separable covariance matrix implies that the spatial and temporal effects can be modeled independently, which is not a good assumption in most circumstances. But in our model no such assumption is made. The covariance is a function of the edge potentials, and the covariance between the -variables at a pair of spatio-temporal locations and can be written as a product of all edge potentials along the graph path between these two nodes, through and along the spatial and temporal edges joining them (see Fig 1), marginalizing over the -variables on this path. The sum-product form of this term, along with the form of the edge-potential functions, ensures that spatial and temporal effects are not separable in this model, which is a good assumption for spatio-temporal data. Since the latent space being modelled here is discrete rather than continuous, we are able to avoid making separability assumptions without using complex computations, as discussed in [31].
3 Test of Method
We fit the MRF model discussed above, and also perform the location-wise analysis (LWA) discussed previously in Section 2.1 on a dataset of gridded rainfall data measured all over India, for the period 1901-2011. This grid system has 357 locations over India (). The data is available at daily scale, but for the analysis in this paper we compute annual aggregate values. The -values are computed and anomalies are discovered. Before going into details of spatio-temporal properties, we first provide a test of the method, by reproducing some known results about AIMR. The results from the MRF are compared with LWA to highlight the differences and benefits.
3.1 Local Anomalies in given years
We examine results from two years: 1998 (declared excess-rainfall year by IMD) and 2002 (declared deficient-rainfall year). Maps of positive and negative anomalies in these two years are shown in Figure 2. The first panel in each pair shows results from the LWA, while the second panel shows those of the MRF. Overall the maps have many similarities, which seem to validate the MRF approach.
It was noted previously that LWA may yield isolated anomalies as well, and this is seen in the figure. By contrast, the constraint of spatial coherence in the MRF yields more spatially connected and extensive anomalies, with fewer isolated anomalies. Anomalies of both kinds are more spatially contiguous with the MRF.
Furthermore, for the excess rainfall year, the MRF yields a larger number of locations with positive anomaly state compared to LWA (84 in MRF as compared to 75 in LWA). Likewise, in the deficit-rainfall year, the MRF yields more locations having negative anomalies (194 in MRF compared to 147 in LWA). This is a result of the edges connecting the location-specific states to the aggregate state in the MRF, which have higher edge potential when the corresponding nodes are in the same state, as well as the effects of spatial coherence.
3.2 AIMR anomalies and local anomalies
The variables denote the anomaly corresponding to All-India spatial mean rainfall (AIMR). For each year we compute AIMR from local measurements , and from this time-series estimate mean and standard deviation across years. The excess rainfall years are defined as those with and deficient-rainfall years have .
These definitions do not depend on how widespread are local anomalies but only on amount of spatial mean rainfall. We can instead define all-India anomalies so as to depend on the widespread occurrence of local anomalies. For any year , we compute the number of locations under anomalies of either kind ( and ) as found by LWA, and corresponding means (, ) and standard deviations (, ) across the years. Based on these, we identify those years with exceptionally large numbers of locations under positive anomalies and exceptionally large numbers of locations under negative anomalies . In other words, and . It turns out that and are not equal, and their overlap is only 0.7. Similarly and are also not equal, and is only 0.7. This illustrates that the aggregate state when defined based on spatial mean rainfall often takes different values from when it is defined based on widespread occurrence of local anomalies.
In the MRF model, edge potentials ensure that assignment of is also influenced by values of the location-wise latent states , and large numbers of local anomalies of one kind increase the probability of being assigned to the same anomaly. At the same time, it also takes into account the AIMR estimate . Hence in the MRF the value of should be able to capture all kinds of all-India anomalies defined so far - .
Let and be the positive and negative years identified by the MRF, i.e. and . The set captures very well the contents of both and , with and . Similarly also overlaps well with and , with and . This shows that the MRF model helps discover both types of all-India anomalies, based on spatial-mean rainfall as well as widespread occurrence of local anomalies, simultaneously.
We describe anomaly statistics from the MRF for extreme years (), where all-India rainfall is either excess or deficient. Generally, across approaches it can be expected that in years of (excess rainfall) the number of locations (N1H) assigned as positive state is much higher than positive state locations in all other years (N1Y), while the number of locations (N2L) assigned to negative state in (deficit rainfall years) is much higher than in all other years (N2Y). These relationships are seen for the MRF with spatial coherence and LWA in Table 2.
Spatial coherence in the MRF causes the mean number of nodes with positive state in years of excess rainfall to be higher than in case of LWA (Table 2). Similarly there are more negative state assignments in years of deficit rainfall as compared to LWA. Furthermore, the mean difference between number of locations with positive and negative states in H and L years respectively (D12H, D21L) is more pronounced with the MRF than in case of location wise analysis (Table 2). Spatial coherence favours occurrence of the corresponding anomaly states in excess or deficit rainfall years.
Thus the proposed approach links AIMR states to local states, which helps to identify extreme-rainfall years in a more inclusive way. It also helps to localize the anomalies formed in such years.
4 Effects of MRF edge potentials
Clearly, the assignment of the latent state variables at the different spatio-temporal locations is strongly influenced by the edge potentials of the MRF. It can be generally expected that many isolated locations that are assigned to states 1 or 2 by LWA, will be assigned to state 3 by MRF to preserve spatial coherence. On the other hand, some locations assigned to state 3 by LWA may be assigned to states 1 or 2 if several of their neighbors are in such states. In this section, we study how the -assignments are affected by different parameter settings of the MRF involving the edge potentials.
4.1 Assignment Statistics
For different parameter settings, we compute the total number of nodes in the entire graph assigned states 1 and 2 (, ). We also compute confusion matrices to describe the degree of overlap between anomaly nodes found by location-wise analysis and the MRF. denotes the number of positive state nodes “gained” by the proposed method when compared to LWA, i.e. nodes satisfying (Recall that state assignments by LWA are ). These are nodes not part of positive anomalies by LWA, but part of positive anomalies in the corresponding MRF. Similarly is the number of positive state nodes “lost” by the proposed method compared to LWA, i.e. nodes satisfying . The number of negative state nodes “gained” and “lost” in this way are denoted as and respectively.
4.2 Edge Potential Settings
First we isolate effects of spatial coherence, in the absence of temporal coherence. Absence of temporal coherence is implemented by using constant edge potentials for all edges across years. We also use constant node potentials for all nodes and states.
Next we study the effects of temporal coherence alone, leaving out spatial coherence effects. We consider effects of temporal coherence with parameter (), with increasing denoting increasing emphasis on temporal coherence. The node potential is uniform, independent of the assignment of latent variable . Results are shown in Table 2 and Figure 3.
In the presence of temporal coherence, the number of nodes in positive state is much larger than that of nodes in negative state. The relative difference increases as the temporal coherence parameter increases.
As the role of temporal coherence is increased, by increasing from 0.5 to 0.99, the number of anomaly-states decreases. Increasing coherence generally leads to fewer anomaly-states. That is why it is not possible to generalize the effect of MRF compared to LWA, without also specifying the coherence parameters.
In general the number of anomaly-states “lost” when switching from LWA to the MRF is higher as either spatial or temporal coherence is introduced, and as the temporal coherence parameter is increased. This is expected, as many anomalies found by LWA are isolated and do not reflect coherent effects on larger scales. A less expected effect of introducing coherence is that a significant number of new anomalies are “gained”, i.e. identified when LWA could not extract them. Such anomalies are manifested at larger scales only.
Finally we consider the MRF where both spatial coherence and temporal coherence, the latter having parameter , are present (). In the presence of spatial coherence, the effects of increasing the temporal coherence parameter are similar to the previous discussion in the context of temporal coherence alone: higher temporal coherence parameter leads to fewer anomaly-states. Furthermore, the number of positive states is larger than the number of negative states, and the relative difference becomes larger as temporal coherence is increased.
There can be different approaches to enforcing spatial coherence based on Equation 2, and we consider the effects in the following. We contrast five different approaches, for which the results are shown in the last part of Table 2. For this analysis, is kept at 0.9.
In the first three cases, . That is, the edge potentials for spatial neighbours have zero weight if the latent states differ. These approaches differ in the choice of edge potentials between spatial neighbours in case the latent states are the same: “prop”, where for neighbouring pairs of locations, is proportional to the number of years that the locations have the same phase i.e. sign of rainfall change; “anml” where for neighbouring pairs of locations, is proportional to the number of years that the locations had the same state as estimated by LWA; and “unif” where for neighbouring pairs of locations, values are equal. An important result is that these three approaches do not have much effect on statistics of state assignments(Table 2). Therefore anomaly detection using MRFs does not depend much on details of the spatial coherence model as long as the edge potentials in the presence of spatial coherence are much higher than edge potentials when the neighbouring states differ; recall that for these three cases so that ratio is infinity.
In the last two approaches towards spatial coherence, we relax the constraint that . This is essentially a weakening of the spatial coherence requirement. The ratio of and can, however, affect the relative weight given to spatial coherence, with higher ratios emphasizing spatial coherence more. We consider two settings: “mxd1” where and “mxd2” where . If ratio is higher, there are fewer anomaly nodes (Table 2). The “prob” setting with has been used for all the analysis done before and after this analysis.
5 Properties of Discovered Anomalies
In Section 2.5, we discussed how the local state variables assigned by MRF or LWA are used to identify spatio-temporally coherent zones as positive or negative anomalies. In this section we study the properties of these anomalies, under the different settings of the MRF discussed in the previous section.
An important question is how widespread and persistent positive and negative rainfall anomalies are. Another important question is, how much different the rainfall volumes are from the long-term climatology, in case of each anomaly. To evaluate these, we first define several properties of the anomalies.
5.1 Anomaly Statistics
The spatiotemporal size of each anomaly is the size of the corresponding connected component in the graph, i.e. the number of nodes present in it. We measure the STS: mean spatiotemporal size of all anomalies, including all years; and similarly the STSP: mean spatiotemporal size of all positive anomalies; and STSN: mean spatiotemporal size of all negative anomalies. We define the spatial size of an anomaly as the number of distinct spatial locations included in the nodes covered by it. The temporal size of an anomaly is similarly defined as the number of distinct years included in it. We thereby estimate mean spatial size of all anomalies (SS), only positive (SSP) and only negative (SSN) anomalies. Similarly we measure (TS, TSP, TSN) for corresponding mean temporal sizes.
Each state of at each location is associated with a distribution over rainfall values. Fig 4 shows the mean rainfall values for each of the locations and each state of . Mathematically, these are for positive anomalies, and for negative anomalies. Two different settings of the MRF are considered: using spatio-temporal coherence with temporal coherence parameters and , and the “prop” setting of spatial coherence. The plots show that these mean rainfall fractions for the different states (shown by green, blue and red plots) are clearly well-separated in most locations.
To quantify the severity or “anomalousness” of each anomaly quantitatively, we first compute the ratio of the rainfall received at each spatio-temporal location covered by the anomaly, and the long-term mean rainfall over each of these locations. We define the intensity parameter of the anomaly as the mean of these ratios. Mathematically, let be the set of spatio-temporal locations affected by a particular positive or negative anomaly . For each , we compute . Then the intensity of anomaly is given by .
5.2 Effect of MRF settings
We consider location-wise analysis (LWA), and using MRFs under different settings. These settings include only spatial coherence (SC), only temporal coherence with parameter () and both spatial and temporal coherence (). Results are shown in Table 3. The different groups of columns show the number of anomalies, spatiotemporal size, spatial size, temporal size and intensity respectively, each one separately for positive and negative anomalies.
The results indicate complex relationships involving spatial and temporal scales of anomalies. As expected, with LWA, the number of anomalies is much larger and their mean sizes much smaller, in comparison to versions of the MRF where various constraints of coherence are present. In the absence of spatial coherence, as the temporal coherence parameter is increased, the spatial size of anomalies becomes smaller. Larger temporal coherence parameter selects for more long-lived anomalies and hence these tend to become smaller in spatial extent. The spatiotemporal size decreases as the temporal coherence parameter is increased. The aforementioned effect is also present when spatial coherence is included in the MRF. The selection for longer but spatially less extended anomalies when the temporal coherence parameter is increased creates a trade-off between spatial and temporal extents. Such a trade-off is intrinsic to spatio-temporal anomaly detection: with a larger emphasis on a certain type of coherence (spatial or temporal) the corresponding size of anomalies increases while the other size decreases.
In Table 3, we also study the mean intensity of the anomalies under different settings of MRF. Clearly, as either type of coherence is increased, the mean intensity parameter of positive anomalies increases, and that of negative anomalies decreases, and given the aforementioned definition of this parameter the selected anomalies are more “intense”. This is a welcome result, indicating that use of spatio-temporal coherence helps us to identify severe anomalies, rejecting mild ones.
5.3 Variations among Anomalies
The above discussion pertained to parameter-based tradeoffs in mean spatial and temporal sizes of anomalies. However, even for fixed parameter settings of the MRF, there is substantial variation in size and intensity of the detected anomalies. Such variation of spatial and temporal sizes is shown in Figure 5 for two realizations of the MRF. It is seen that generally larger anomalies tend to be shorter-lived, but there are individual exceptions. There is a large range of temporal sizes for a known spatial size, for both positive and negative anomalies. In Figure 5 we also plot the variation of intensity with spatio-temporal size of the anomalies in two realizations of MRF. Here the correlation is even weaker.
We compute the correlations between these statistics of individual anomalies. Once again, this is done separately for each setting of the MRF considered in Table 3, and separately for positive and negative anomalies. The results are shown in Table 4. It shows that in almost all the settings the correlation between spatio-temporal size and spatial size is very strong, though it reduces as the temporal coherence parameter is increased (i.e. the mean temporal size of the anomalies increase). The correlation between spatio-temporal and temporal sizes is less strong, though it increases slightly with . The spatial and temporal sizes are less well correlated. There is no noticeable correlation between spatio-temporal size and intensity.
6 Case studies of some Anomalies
Next, we investigate some of the anomalies individually, which were discovered using MRF with spatio-temporal coherence, with temporal coherence parameter .
We first consider a positive anomaly that occurred in the states of Odisha and Jharkhand along the eastern coast (Fig 6A), in the year 1994. This anomaly covered 20 grid-locations, but persisted for only 1 year (spatial size 20, temporal size 1). The long-term mean annual rainfall over the concerned 20 grid-locations is 4.18 mm per day per location, but that year the mean rainfall over these locations was 5.84 mm per day per location (anomaly intensity of ). Overall, the year 1994 was classified as a positive anomaly year in terms of AIMR, with mean rainfall of 4.23 mm per day per location, compared to the long-term mean of 3.94 mm per day per location (intensity of ). The map of locations having local positive and negative anomalies in 1994 are shown in Fig 6B, which indicates that the Odisha anomaly was quite significant. The LWA-based local anomalies are shown in Fig 6C. Another major anomaly occurred roughly in the same area (Fig 6D) in 2001, covering 11 locations. The mean rainfall that year over this anomaly was 5.5 mm per location per day, compared to the long-term mean of 4.1 mm per location per day (intensity of ). The year 2001 was classified as normal at all-India scale, and the map in Fig 6E shows the locations under positive and negative anomalies according to MRF.
A significant negative anomaly occurred around a stretch of Central India (Fig 7A) in 2000, which was classified as an all-India negative anomaly year. The anomaly map by MRF of the year is shown in Fig 7B. The anomaly covered 22 locations which receive 3.88 mm per day per location rainfall on average, but in that year they received only 2.17 mm (anomaly intensity of ). Again, around 10 locations in Odisha near the eastern coast (Fig 7D) had a negative anomaly in 2002, which was a major drought year in terms of AIMR. These locations, which receive 4.18 mm on average, received only 2.4 mm in 2002 (intensity of ). The MRF-based anomaly map for 2002 is shown in Fig 7E, while Fig 7F shows the local anomalies by LWA.
Some anomalies are temporally extended, i.e. they cover several years. A good example is a positive anomaly that covered 5 years from 1987 to 1991, over the Meghalaya and Southern Assam region, covering 24 locations (Fig 8A). The mean annual rainfall over these locations is 6.35 mm per location per day, but in these 5 years, the mean rainfall volumes were 6.99, 8.53, 6.92, 7.14 and 7.45 mm per location, per day. Among these years, only 1988 and 1990 were classified as positive anomaly at all-India scale, while the other three years were classified as normal. The MRF-based anomaly map of 1987 is shown in Fig 8B. Again, 11 locations in the south-western state of Kerala (Fig 8D), one of the wettest parts of India, suffered a negative anomaly stretching over 1985-87, all of which were classified as normal years. The mean rainfall over these locations is 6.15 mm per location per day, but during these three years, this mean was 4.83, 4.59 and 4.9 respectively. The MRF-based anomaly map of 1985 is shown in Fig 8E.
7 Conclusions
This paper describes a method for coherent anomaly detection using Markov Random Fields (MRFs), where each node is associated with a location and year. Coherence is emphasized because it is an inherent property of rainfall, and also because anomalies are consequential especially when extended spatially or temporally. The anomaly states are represented as latent random variables, so probabilistic methods are required for their estimation. For this purpose we use Gibbs sampling, a type of Markov chain Monte Carlo method. We also consider sensitivities of the results to parameters of the MRF.
The MRF is able to identify more coherent anomalies compared to traditional analysis using location-specific thresholds. MRFs offer a principled approach to handling the heterogeneity and anisotropy in the occurrence of anomalies, where more traditional methods such as wavelets may not be appropriate. The method can discover intense positive and negative anomalies of various sizes, without requiring any thresholds. Furthermore the method can be used to characterize both the occurrence of anomalies at large spatial scale by assigning a state variable for All-India spatial-mean rainfall, as well as the widespread occurrence of grid-scale anomalies through effects of edge potentials and spatial coherence in the MRF.
The effects of edge potentials enforcing coherence as well as node potentials influencing the threshold for anomaly detection within the MRF are described. We show that adjusting the parameters has effects that are consistent with intuition. However the results are not overly sensitive to the parameters. One effect of coherence is to reveal anomaly states that are classified as normal in location-wise threshold-based analysis, because of the influence of neighbouring locations being assigned to anomaly states. Increasing spatial coherence through edge potentials leads to fewer but larger anomalies. Enforcing any one type of coherence more strongly, selects for either longer-lived or spatially more extended anomalies, though fewer in number. On the other hand, increasing spatio-temporal coherence results in selection of more “intense” anomalies instead of mild ones.
There is also variability in the spatial and temporal sizes of anomalies. Anomalies longer in one dimension (spatial/temporal) tend to be shorter in the other. Furthermore positive anomalies are not necessarily larger or smaller than negative anomalies, as the results vary with choice of parameters.
Overall, this study provides some understanding of heterogeneities in rainfall over Indian region. The results also raise the question of whether the anomalies discovered by this method are relevant for understanding hydrological floods and droughts, which are based on considering multiple variables, including soil moisture. A natural extension of this work would be to infer anomaly states based on the inclusion of additional climatic and hydrological variables.
Clearly, anomalies are a very significant feature of rainfall in general and Indian rainfall in particular, and any realistic simulation of regional rainfall should be able to capture their salient properties. Statistics of coherent anomalies learnt from MRF-based approaches could present further tests and benchmarks of regional-scale rainfall simulations made from climate models and statistical simulators.
8 Acknowledgments
This research was supported by Airbus India Postdoctoral Fellowship and Divecha Centre for Climate Change, Indian Institute of Science. We are thankful to Dr. J. Srinivasan and Dr. V.Venugopal for valuable inputs.
9 Appendix
9.1 Choice of Node Potentials
As described in Section 2.4, node potentials can be varied depending on the problem being considered. These potentials can be viewed as prior probabilities on the occurrence of different states.
For example, a lower threshold on anomaly detection is achieved by specifying , and , where and are high while is low. Relative frequencies of positive and negative anomalies can be adjusted by changing and accordingly. Another application might be to vary node potentials by location. In locations receiving low average rainfall ( is small), negative anomalies may be more consequential and hence important to detect. Likewise, locations receiving higher average rainfall ( is high) might be more sensitive to flooding events. We define the set of locations receiving low average rainfall as and those receiving high average rainfall as . Then
[TABLE]
To achieve the above, we specify . On the contrary, the goal may be to identify positive anomalies in dry locations, or negative anomalies in wet locations, by specifying .
Yet another application may involve inducing homogeneity of heterogeneity in anomaly detection, by identifying positive anomalies especially during years of strong mean rainfall or negative anomalies in the reverse situation respectively. Alternatively, the objective may be to identify negative anomaly states during dry years or vice versa. For this type of problem, we denote sets of years with excess and deficient spatial mean rainfall as and . Once again defining node potentials as
[TABLE]
Homogeneity can be achieved by specifying to be low and high, and heterogeneity with the reverse specifications. There is clear analogy between the two sets of problems, one in which node potentials are adjusted by location and the second where the type of year is the primary factor.
9.2 Effects of node potentials
Node potentials influence the thresholds for anomaly detection, and can be interpreted as prior probabilities of the corresponding anomaly being present before any observations are made. To examine the effects we compute the mean number of positive (NP) and negative (NN) anomalies with spatiotemporal size above 1. In all cases, we maintain spatial and temporal coherence through edge potentials in the MRF, with temporal coherence parameter .
In setting NP1, we consider equal weights for all 3 states at each node; NP2 favours detection of positive anomalies by setting ; NP3 favours negative anomalies by setting in NP3; NP4 prioritizes both anomalies over the normal state using .
One might also set node-specific potentials depending on statistics at either the location or the year associated with the node. We define set LS of dry locations, where mean annual rainfall is atleast one standard deviation below the mean of this quantity across locations , i.e. . We also define set HS of wet locations, where .
In NP5 we set node potentials in nodes of HS, and in nodes of LS. This favours positive anomalies in wet locations, and negative anomalies in dry locations. In contrast, the values are reversed in NP6, favouring positive anomalies in dry locations and negative anomalies in wet locations.
For introducing year-specific node potentials, we consider deficient-rain years L and excess-rain years H once again. In NP7 we set in nodes of H, and in nodes of L. This favours positive anomalies in excess-rain years and negative anomalies in deficit-rain years. These settings are reversed in NP8, favouring positive anomalies in deficit-rain years and negative anomalies in excess-rain years.
Table 5 shows anomaly statistics for the various settings of node potentials examined here. When giving additional weight to positive anomalies (as in cases NP2, NP4) the number of positive anomalies increases as would be expected. Similarly when negative anomalies are given higher weight (as in cases NP2, NP4) the number of negative anomalies increases. A common tendency across these settings is that the number of distinct positive anomalies is much larger than that of negative anomalies, but negative anomalies have larger mean spatiotemporal size.
Emphasizing node-specific potentials that depend on features of either the location or the year associated with the node, in NP5-NP8, does not substantially change the overall statistics, but affects the particular anomalies detected (which are not shown). In NP7, where in AIMR anomaly years the local anomalies of the same type are favoured, the difference between mean sizes of negative and positive anomalies decreases. This is mainly because positive anomalies have higher spatial size than negative anomalies in this condition. The aforementioned situation is reversed in NP8, when in the anomaly years local anomalies of the reverse type are favoured.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Gadgil, Sulochana and Gadgil, Siddhartha; The Indian Monsoon, GDP and Agriculture , Economic and Political Weekly, 2006, pp 4887-4895
- 2[2] Dhar, ON and Nandargi, Shobha; Hydrometeorological aspects of floods in India , Flood Problem and Management in South Asia, 2003, pp 1-33
- 3[3] Cook, E R, Anchukaitis, K J, Buckley, B M, D’Arrigo, R D, Jacoby, G C and Wright, W E; Asian monsoon failure and megadrought during the last millennium , Science, Vol 328(5977), 2010, pp 486–489
- 4[4] Kumar, K N, Rajeevan, M, Pai, D S, Srivastava, AK and Preethi, B; On the observed variability of monsoon droughts over India , Weather and Climate Extremes, 2013, Vol 1, pp 42-50
- 5[5] Dracup, J.A.; Drought Monitoring , Stochastic Environmental Research and Risk Assessment, 1991, Vol 5(4), pp 261-266
- 6[6] Ghosh, Subimal and Das, Debasish and Kao, Shih-Chieh and Ganguly, Auroop R; Lack of uniform trends but increasing spatial variability in observed Indian rainfall extremes , Nature Climate Change, Vol 2(2), pp 86-91, 2012
- 7[7] Narisma, Gemma T and Foley, Jonathan A and Licker, Rachel and Ramankutty, Navin; Abrupt changes in rainfall during the twentieth century , Geophysical Research Letters, Vol 34(6), 2007
- 8[8] Ideião, Sandra Maria Araújo and Santos, Celso Augusto Guimarães; Analysis of precipitation time series using the wavelet transform , Revista Sociedade & Natureza, Vol. 1(1), 2009
