Spatial Analysis Applied for Gas Theft Modelling in Tabriz City , Iran

Unauthorized use of energy is the major source of the non-technical losses of the energy in developing countries. Gas theft as a kind of energy theft is an increasing issue in a number of countries particularly in developing countries. This study is an attempt to address the issue of gas theft through the deployment of Geographic Information System (GIS) capabilities (Spatial Analysis) to import external factors into the current gas theft detection methods, improve data mining processes, and offer some management solutions. To achieve the intended goals in the study, two types of data sources were collected and analyzed: internal data such as reported instances of gas theft, and some customer properties, and external data such as some demographic data. In order to analyze and modeling the gas theft and the relationships between variables we used Hotspot analysis, Ordinary Least Squares regression (OLS) and Geographically Weighted Regression (GWR) analysis with ArcGIS tools. The results from clustering test indicated that the gas theft is not a random phenomenon in all areas of Tabriz and there are underlying factors. Mapping clusters by the hotspot techniques suggested the locations of clusters and areas at risk. The results of the regression analysis illustrated the importance of external factors clearly. According to the results, we recommend a conceptual GIS framework to select high risk areas as a subset data for a meter data analysis. Results of this research are of great importance for GIS based spatial analysis and can be used as base of future researches.

such issues exist, the gas utility companies must provide a holistic and proactive approach to the problem with employment of new technologies to detect and prevent the gas theft [7] [8] [9] [10].Technically speaking, there are two kinds of methods and efforts in detecting and tackling energy theft [11].The first types use management functions and regulatory compliances [3] [12]- [17] and the second types employ technical approaches [8] [9] [18]- [25].Current theft detection solutions use a combination of methods and several data sources called proactive analytics approach [8].
Natural gas utility companies in Iran detect gas theft cases based on meter readers, service personnel and in some cases based on Meter Data Analytics (MDA) on monthly records in Customer Information System (CIS).Lack of adequate company control procedures for meter tampering and theft, ease of theft and low level of detection and high level of poverty are some important factors that can result in the gas theft [26].Using information from a wide variety of sources, advanced analytics and proven processes, utility resources can focus on cases that have the highest likelihood of uncovering theft and the maximum potential for revenue recovery.Traditionally, utilities detected gas theft cases based on meter readers and service personnel.Today, some of the utilities throughout the globe are using Smart Grid (Automatic Meter Reading and Advanced Metering Infrastructure) capabilities along with proactive analytical software solutions to monitor and identify instances of gas theft.Although the smart meters help to detect gas thefts, it does not seem to be a perfect system for detecting gas theft.This is because many smart utilities have discovered many false alarms as well as many customers have discovered clever tricky ways to bypass or tamper with the meter [8] [19] [20] [27] [28].Due to poor infrastructure in developing countries, the technical feasibility of using AMR and AMI systems has not been provided.Large changes in the economy and the government's decision to raise gas prices resulted in increasing gas theft in Iran.
According to the Iranian law, gas theft is considered a crime.In light of analyzing the reasons for gas theft, socioeconomic problems could be considered as one of the serious motivations for gas theft [18] [21] [22] [24] [29] [30].Thieves hire more sophisticated and creative ways to steal gas.Energy theft, especially gas theft, typically occurs in two ways: tampering and diversion.The most Today, GIS plays a significant role in analyzing and modeling to examine data and reveal its relationships, patterns, trends and anomalies that we are unable to detect directly at maps [31].Improving the data mining techniques [19] [27], extending the role of external and third-party data [8] [9] [32] [33], and integrating with GIS [33] [34] are the essential areas in the development of proactive approaches.So it seems that the foregoing areas are the best topics for further investigations and our study stands here to improve current efforts in energy theft detection even in traditional utilities.Spatial Analysis as the core of GIS is defined as the analysis of phenomena distributed in geographical space with physical dimensions [35].Spatial Analysis, moreover, is the process of examining the locations, attributes, and relationships of features in spatial data through overlay and other analytical techniques in order to address a question or gain useful knowledge.Spatial analysis extracts or creates new information from spatial data [36].Based on the argument, this study is an attempt to address the issue of gas theft through the deployment of GIS capabilities (Spatial Analysis) to import external factors into the current gas theft detection methods, improve data mining processes, and offer some management solutions.

Study Area
The study area was Tabriz city which is located in northern west part of Iran as center of East Azerbaijan province (Figure 1).Tabriz with a population of about 1.5 million is known as the largest and most important city in northwest of Iran.
Tabriz city covers a total area of 245 square kilometers and is one of the most densely populated urban centers in Iran.The number of natural gas consumers is 700,000 units and gas supply is available for 100% of city households.The missing gas volume in large cities and northwest provinces of Iran is significant [37] [38] and the gas theft from distribution network turned on as a serious challenge for East Azerbaijan Gas Company (Tabriz Region).Tabriz gas distribution system is traditional and there are no AMR/AMI systems to help gas theft detection process, thus it is very important to apply GIS based methods for assisting gas theft detection in Tabriz city.

Dataset
In this research the census blocks were used as the spatial mapping unit.There were a total of 7260 blocks and each block had its population and other joined attributes in a related table.
To achieve the intended goals in the study, two types of data sources were collected and analyzed: internal data such as reported instances of gas theft, and some customer properties, and external data such as some demographic data.In Journal of Geoscience and Environment Protection • G-rates (meter capacity) and unit counts for costumers.
• Census blocks data (2012, Statistical Centre of Iran): population, high education rate, unemployment rate, immigrant rate, income level and type of buildings (non-apartment ratio).• Administrative borders (2014, Tabriz Municipality).
Detected gas theft cases were collected for a two-year period based on EAGAS utility agent reports and then they were geocoded by x and y coordinates in study area as a layer map.The capacity of meters (G-Rate) and number of units for each costumer was extracted from EAGAS CIS (Costumer Information system).G-Rate and Units are two important technical indicators that we used in spatial analysis of gas theft.Census blocks data were collected from Statistical Centre of Iran.Census block level data have a comprehensive demographic data but for the purpose of this study we selected population, education, immigration, unemployment, income and type of buildings as main socio-economic factors for spatial analysis of gas theft.

Data Processing
Within this research we developed a GIS based dataset as base of GIS spatial analysis.The reason behind using census block level data is important that this data leads to a rich set of variables that might help explain gas theft volumes.Gas theft data was in the form of excel tables, therefore we converted it to location points GIS based shape format with attributes in the ArcGIS software.Incident gas theft data are points of those events with required costumer attributes, and for the purpose of analysis we needed to join them to adjacent census blocks for representing the number of gas thefts and mean attributes (mean of G-Rates and mean of Unit counts) in each census block.To better analyze the points, we aggregated near points (30 meter) with each other too (Figure 2).Candidate variables for regression models are also listed in Table 1.

Methods
Our research makes use of GIS spatial statistics capabilities for exploring and mapping spatial relationships in gas theft.The spatial statistics comprises a set of techniques for describing and modeling spatial data [39].Based on this potentiality, for a better deployment of spatial aspects of internal and external data in gas theft detection approaches we employed spatial statistical techniques as effective method in this study.We employed spatial statistics to identify statistically significant clusters and assess spatial patterns of gas theft.We also aimed to   model spatial correlation of some factors for gas theft.Figure 3 shows the proposed conceptual GIS framework and implemented steps within this research.

Analyzing the Spatial Patterns of Gas Theft
Within this research in order to examine clustering and provide better understanding of the Gas theft patterns, we employed Average Nearest Neighbor tool in ArcGIS software for incident points of gas theft.The average nearest neighbor Journal of Geoscience and Environment Protection tool calculates the distance between each feature and its nearest neighbor, then computes the average for all nearest neighbor distances [40].It then compares the computed average distance to a theoretical one that would be obtained if the points were randomly distributed inside a circle with the same area.
where O D is the observed mean distance between each feature and its nearest neighbor; And E D is the expected mean distance for the features given in a random pattern; 0.5 In the above equation, i d equals the distance between feature i and its nearest neighboring feature (census block), n corresponds to the total number of features, and A is the area of a minimum enclosing recangle around all blocks, or it's a user-defined area value.
The average nearest neighbor z-score for the feature is calculated as; where; After test of clustering, we used hotspot analysis for identify the locations of statistically significant hotspots and cold spots in data.The Hot Spot Analysis tool calculates the Getis-Ord Gi* statistic for each feature in a dataset.This tool looks at each feature within the context of neighboring features.For being statistically significant hotspot, a feature must have a high value and be surrounded by other features with high values as well [40].In this regard, Getis and Ord present a local clustering test based on the concentration of values in the neighborhood of a unit [39].This technique makes use of the following statistics; The other form of local Getis-Ord is Getis-Ord G* [36].The Gi* statistic includes the contribution of the ith unit in the calculation of local concentration.
The Getis-Ord G* is given as; ( ) 1 where j X is the variable for location j, , i j W is the spatial weight between lo- cations i and j, n is equal to the total number of locations and; ( ) The Gi* statistic returned for each location is a z-score.A positive value indicates clustering of high values and a negative value indicates a cluster of low values.

Modeling the Spatial Relationships of Gas Theft
In order to analyze the relationships between variables we used Ordinary Least Squares regression (OLS) and Geographically Weighted Regression (GWR) analysis with ArcGIS tools.OLS is a global model [39] and is a proper starting point for all spatial regression analyses [40].It provides a global model of the variable or process we are trying to understand or predict.In this research we use OLS tool as a start point for main analysis.In the case of a model with p explanatory variables, the OLS regression model writes; In the Equation (10), y is the dependent variable, the xs are the explanatory variables, the βs are regression coefficients, and the  is random error or residuals.Over the study area some variables might be strong in predicting the gas theft in some locations of our study area, but perhaps a weak predictor in other locations.For this reason we used GWR.For each location, 1, , i n =  , the GWR model is as below [36]; In the Equation ( 11), i y is the dependent variable at location i, ik x is the value of the kth covariate at location i, 0 i β is the intercept, ik β is the regres- sion coefficient for the kth covariate, p is the number of regressions, and i  is the random error at location.There is a distinction between regression terms and regression coefficients, and the number of regression coefficients is np.
The implemented GWR Analysis consists of four steps: 3) Performing the GWR: After finding the best combination of variables, we performed the GWR with that combination to create a local model for understand or predict the gas theft by fitting a regression equation to every block in the dataset.
4) Prediction of Gas Theft: Eventually, after verification of the model we predicted future behavior of gas theft in the study area by GWR tool.

Results
The Average Nearest Neighbor on gas theft cases indicates statistically significant clustering.In order to validate results, we apply the average nearest neighbor tool on the parcel layer for comparing the result against to the clustering for individual cases.The z-score for both parcels and individual cases are quite different.For gas theft cases, the z-score is −15.5 and there is less than 1% likelihood that this clustered pattern could be the result of random chance (Figure 4).
But for parcel points the z-score is 21.6 (Figure 5).It means that, results indicate that the gas theft pattern is completely clustered.In conclusion, according to the results of the ANN, it is safe to argue that the gas theft is not a random phenomenon in Tabriz and is related to the underlying factors.
After aggregating data and selecting appropriate distance band for polygon data, we used Hot Spot Analysis (Getis-Ord Gi*) tool for mapping patterns of gas theft.The result of the Hot Spot Analysis tool is a new map that is symbolized based on whether it is part of a statistically significant hotspot, a statistically significant cold spot, or is not part of any statistically significant cluster.The red color areas are identified as hotspots or areas where high numbers of Gas Thefts are surrounded by other areas with high numbers of Gas Thefts.The blue  areas are cold spots or areas where low numbers of Gas Thefts are surrounded by other areas with low numbers of Gas Thefts.Statistical significance is based on p-values and z-scores that are calculated when we apply the Hot Spot Analysis.Figure 6 shows results of Hot Spot Analysis.
The results of regression analysis showed a global relationship between some variables (Figure 7).
Model performance according to adjusted R-squared is 0.48.This indicates that the implemented model (the explanatory variables modeled using linear regression) explains approximately 48 percent of the variation in the dependent variable.To put it differently, our model explains approximately 48 percent of the gas theft story.
Regression models with statistically significant non-stationary are often proper candidates for Geographically Weighted Regression (GWR) analysis.In the OLS map (Figure 8) the red areas are under predictions (where the actual numbers of GT is higher than the model predicted) and the blue areas are over predictions (actual call volumes are lower than predicted).When a model is performing well, the over/under predictions reflect a random noise.The Jarque-Bera statistic indicated that the residuals are not normally distributed and we Figure 6.Hot spot analysis of aggregated point data to census tracts (polygon data).have statistically significant spatial autocorrelation for residuals (Figure 9).This proves that there is a strong heteroscedasticity or a key variable is missing from the model and so we need a non-stationary model.The histogram of standardized residuals (Figure 10) matches the normal curve and this shows that there is no biased model in the implemented approach.The OLS regression, however, fits a global regression for all dataset.With regard to the spatial differences of variables (non-stationary) and complexity of the study area, we cannot use the OLS for modeling or predicting gas theft.Rather, we need a model that has the required potential to explain the differences locally.But the OLS can tell us global statistics for selecting the best combination of explanatory variables as a starting point for running a local regression model.
The outputs generated from the GWR tool include a feature class (map) and a report of overall model results.The results of GWR analysis revealed a better relationship between variables and gas theft.Model performance according to Adjusted R-Squared is 0.6 (Table 2).This indicates that our model explains approximately 60 percent of the variation in the dependent variable (Gas Theft).In addition to total model performance (R 2 Adjusted), the GWR calculates the locally weighed R 2 between the observed and fitted values for each feature (Figure 11) which indicated how well the GWR model replicated the local GT around variables.
As mentioned previously, over and under-predictions for a well-specified regression model will be randomly distributed.Examine the patterns (Spatial Autocorrelation Moran's I) of the output in our GWR model residuals indicates that the GWR model is a well-specified model (Figure 12).
As with any regression, GWR can be used to predict.The obtained from GWR for the prediction of gas theft include two maps, predicted gas theft values per blocks and predicted gas theft hotspots (Figure 13 and Figure 14).

Conclusion
Today there is no need for data mining approaches offered by many vendors to process all data, they prioritize data for analysis based on a number of data sources and then execute data mining.In the current research, we employed gas theft instances, third-party and internal data to check spatial aspects of gas theft and finally indicated some areas as priority areas for further analysis and investigations.Data integration and using plenty of data sources are considered as the fundamental tasks in today's analytic energy theft detection methods.In our investigation, every attempt was made to use some different data sources to reveal some spatial aspects of gas theft.We believe that GIS is a complete repository for utilities to cover all spatial and non-spatial data from external and internal sources in an integrated space.Interoperability of GIS technology with other technologies and systems is opportunity that leading utilities are using it perfectly.In this research, we tried to show some capabilities of GIS for integration with utilities specifically for revenue protection programs.It is obvious that when a utility company wishes to properly take advantage of the capabilities of a GIS in revenue protection, they must develop an enterprise GIS.Planning for the deployment of an enterprise GIS is a critical managerial activity for utilities to move from traditional to smart utility.To sum up, the obtained research findings show a meaningful spatial correlation that we can use this potential and GIS capabilities to use external and internal data sources for proactive analytics more effectively.Therefore, according to the results and the literature review, we recommend a conceptual GIS framework to select high risk areas as a subset data for a meter data analysis.Results of this research are of great importance for GIS based spatial analysis and can be used as base of future researches.

Figure 1 .
Figure 1.Location of the study area in East Azerbaijan Province and Iran.

Figure 4 .
Figure 4. Average nearest neighbor results for gas theft cases.

Figure 5 .
Figure 5. Average nearest neighbor results for parcel points.
The results from clustering test indicated that the gas theft is not a random phenomenon in all areas of Tabriz and there are underlying factors.Mapping clusters by the hotspot techniques suggested the locations of clusters and areas at risk.The results of the regression analysis illustrated the importance of external factors clearly.The comparison of OLS regression results and GWR results revealed that the impact of factors differ from a location to another location.For example, the impact of educations is more distinct in the northern and southern parts of the city, but the impact of population density is almost the same and close in many neighborhoods.The accuracy of the model strongly depends on the number and combination of factors (data sources); so we can improve the

Figure 11 .
Figure 11.Spatial mapping of the locally weighed coefficient of determination (R 2 ) between the observed and fitted values by GWR.

Figure 13 .
Figure 13.Predicted gas theft values per census tracts.

Table 1 .
Candidate variables for regression analysis.
6056 Journal of Geoscience and Environment Protection