An Interactive WebGIS Integrating Environmental Susceptibility Mapping in a Self-Burning Waste Pile Using a Multi-Criteria Decision Analysis Approach

: Mining activities promote resulting wastes, so coal mines are prone to release contaminants to the environment, namely to the soil and water. Therefore, the analysis of this type of risk is crucial in waste pile management. The S ã o Pedro da Cova (Porto, Portugal) coal waste pile has been studied in recent years, with several data acquired from 2019–2021 under a research project using distinct methodologies. These results are now combined in a multi-approach method to estimate the environmental impacts of the waste pile and identify the contamination. With the integration of all the data in a Geographical Information System (GIS) environment, and to fulﬁll a scientiﬁc gap, this study aims: (i) to create a susceptibility map of contamination in the areas surrounding the self-burning coal waste pile in S ã o Pedro da Cova, using Analytical Hierarchy Process (AHP) and Fuzzy AHP approaches; and (ii) to develop a webGIS application incorporating all the information acquired that can be useful for the residents of S ã o Pedro da Cova and also to the decision-making public entities and researchers. The results obtained show that the contamination susceptibility is higher surrounding the abandoned mine, particularly along the waste piles and the corresponding runoff areas, which can be especially sensitive.


Introduction
Coal mining in Portugal was a significant economic activity until the closure of the last mine in 1994. This activity resulted in environmental liabilities as multiple industrial facilities are currently abandoned, with mine drainage discharges in the hydrographic systems and large amounts of mining residues stored.
The management of this type of risk of contamination represents an obstacle to the development of any region since such abandoned mines can cause environmental issues and decrease the health conditions of the surrounding areas. Consequently, the analysis of the environmental susceptibility of abandoned coal waste piles has become an important tool in their planning and management.
Several studies applied Multiple Criteria Decision Making (MCDM) methods to evaluate the risk of abandoned waste piles in several contexts. For instance, Alamanos and Papaioannou [12] presented an approach combining Geographical Information System (GIS) with multi-criteria analysis (MCA) to evaluate wetland effectiveness using multiple As so, the adopted methodology was implemented considering the available data acquired in the field and a webGIS was developed constituting the final product of the project. The result is crucial to understand how the surrounding areas can be negatively affected by the waste pile contaminants.
The next sections are organized as follows: Section 2 describes the study area, the data inventory maps, and the methodology adopted to estimate the environmental susceptibility mapping in a self-burning coal waste pile using a GIS-based MCDM approach. Section 3 presents the methodology adopted to design and implement the webGIS, considering the architecture, software, and tools. Section 4 presents the results and discussion of the obtained environmental susceptibility map and the outcomes in terms of performance, user interface, and utility of the webGIS. Section 5 presents the conclusions and future work.

Study Area
The São Pedro da Cova coal mine is located in Gondomar Municipality, Porto district (41 • 09 25 N; 8 • 30 06 W; Figure 1). The mine is located near the urban center, in the vicinity of multiple services and infrastructures and where many families practice subsistence agriculture. coal waste pile, through a freely available webGIS as open portal data.
As so, the adopted methodology was implemented considering the available data acquired in the field and a webGIS was developed constituting the final product of the project. The result is crucial to understand how the surrounding areas can be negatively affected by the waste pile contaminants.
The next sections are organized as follows: Section 2 describes the study area, the data inventory maps, and the methodology adopted to estimate the environmental susceptibility mapping in a self-burning coal waste pile using a GIS-based MCDM approach. Section 3 presents the methodology adopted to design and implement the webGIS, considering the architecture, software, and tools. Section 4 presents the results and discussion of the obtained environmental susceptibility map and the outcomes in terms of performance, user interface, and utility of the webGIS. Section 5 presents the conclusions and future work.

Study Area
The São Pedro da Cova coal mine is located in Gondomar Municipality, Porto district (41°09′25′′ N; 8°30′06′′ W; Figure 1). The mine is located near the urban center, in the vicinity of multiple services and infrastructures and where many families practice subsistence agriculture.
The São Pedro da Cova mine is one of the coal mines hosted in the Douro Coalfield, which is the most significant coal-bearing strata in Portugal of Upper Pennsylvanian age [28][29][30][31], with a length of 53 km from São Pedro de Fins to Janarde and a width that can be up to 250 m [32].  The São Pedro da Cova mine is one of the coal mines hosted in the Douro Coalfield, which is the most significant coal-bearing strata in Portugal of Upper Pennsylvanian age [28][29][30][31], with a length of 53 km from São Pedro de Fins to Janarde and a width that can be up to 250 m [32].

Coal Mine Inventory Map
In order to create a susceptibility map representing the areas that are prone to suffer contamination sourced from the abandoned mine, with particular highlight on the mine waste pile and the underground mining drainage discharge into the hydrographic network, the available environmental data obtained from different sources were incorporated in a GIS software (QGIS) using a MCDM approach to identify the potential zones where contaminants are deposited from the mining waste through multiple pathways such as gravity, wind, and water. The contamination potential was obtained through a Weighted Overlay Method (WOM) composed of five standardized parameters: (i) the waste pile location, (ii) runoff areas, (iii) downstream drainage, (iv) the distance from the waste pile, and (v) Normalized Difference Vegetation Index (NDVI). These parameters were selected based on their role in the transport of contaminants in the environment via different ways (e.g., aerial or aqueous) [5,33,34]. The parameters are detailed in Section 2.3. Each parameter was standardized through two techniques: using AHP and Fuzzy-AHP approaches. These two approaches were adopted mainly because: (i) both methods are widely used in studies similar to our study; (ii) both methods provide a simple and flexible model for any problem; (iii) it is possible to measure the consistency of decisionmaker's judgments, in both; and (iv) both can take into consideration the relative priorities of factors and represents the best alternative to use. The final parameter weights were determined using pairwise comparisons in the AHP method. Finally, the parameters were aggregated using the WOM method and the results were evaluated through the generation of the receiver operating characteristic (ROC) value and the area under the ROC curve (AUC).
The methodology adopted in this study was based on the available data for the São Pedro da Cova coal mine and on several approaches consulted in the literature [35,36]. The data were extracted from different sources and through several field campaigns ( Figure 2). The knowledge about the field was critical in the definition of the inventory maps. The maps related to each parameter were projected in the European Terrestrial Reference System (ETRS89)-PTTM06 coordinate system (EPSG:3763) and resampled to 10 m of spatial resolution (the same resolution as satellite imagery), with the extension of the study area. Table 1 presents the source data used, which will be described in Section 2.3, and Figure 2 presents a flowchart with the data used and the methodology adopted. . Figure 2. Flowchart presenting the data and methodology used in this study.

Satellite Data
An image from 6 October 2021 from Sentinel-2B was obtained from the United States Geological Survey (USGS) website [37]. The Sentinel-2B operates in a polar-orbiting, sunsynchronous orbit along with the Sentinel-2A (Copernicus Sentinel-2 mission). They have a wide swath width (290 km), with a revisit time of 5 days (considering both satellites)   [37]. The Sentinel-2B operates in a polar-orbiting, sunsynchronous orbit along with the Sentinel-2A (Copernicus Sentinel-2 mission). They have a wide swath width (290 km), with a revisit time of 5 days (considering both satellites) [38]. Table 2 presents the complementary information about the satellite data and Table 3 presents the characteristics of the bands used.  The RGB true color composition (RGB:432) was used to analyze the variability of the land cover of the study area, where several classes were present, namely: streets, residences, industrial, soil bail, and trees. A false-color map was also created (RGB:843) to highlight the vegetation (in red due to the NIR band) and distinguish from areas with anthropic changes (such as streets, industries, residences, etc.) (Figure 3b) [39].

Streams and Drainage
A Digital Elevation Model (DEM) was obtained from Copernicus Land Monitoring Service [38]. It is a hybrid product based on Shuttle Radar Topography Mission (SRTM) and ASTER Global Digital Elevation Model (GDEM) data fused by a weighted averaging approach. The information is divided by tiles (1000 × 1000 km) and projected in ETRS89-LAEA projection (EPSG:3035) with 25 m of spatial resolution. In this study, the product DEM-v1.1-E20N20 was downloaded.
The drainage network affected by the abandoned coal mine was considered in this study. The temporary drainage lines were obtained using the r.stream.extract algorithm from Geographic Resources Analysis Support System (GRASS) in QGIS software, which allows extracting the stream network from the DEM. The permanent streams were manually digitized from the georeferenced aerial image, from ArcGIS software [40]. This parameter is relevant since it can be responsible for contaminants dissemination through aqueous media and suspension from the mine to the surrounding ecosystems. Two main drainage systems were considered in this study, the western lines drain material from the waste pile into Paradela Stream, and the eastern drain water and precipitates from underground mining galleries, leading Silveirinhos Stream that flows to Ferreira River ( Figure 4). The RGB true color composition (RGB:432) was used to analyze the variability of the land cover of the study area, where several classes were present, namely: streets, residences, industrial, soil bail, and trees. A false-color map was also created (RGB:843) to highlight the vegetation (in red due to the NIR band) and distinguish from areas with anthropic changes (such as streets, industries, residences, etc.) (Figure 3b) [39].    [38]. It is a hybrid product based on Shuttle Radar Topography Mission (SRTM) and ASTER Global Digital Elevation Model (GDEM) data fused by a weighted averaging approach. The information is divided by tiles (1000 × 1000 km) and projected in ETRS89-LAEA projection (EPSG:3035) with 25 m of spatial resolution. In this study, the product DEM-v1.1-E20N20 was downloaded.
The drainage network affected by the abandoned coal mine was considered in this study. The temporary drainage lines were obtained using the r.stream.extract algorithm from Geographic Resources Analysis Support System (GRASS) in QGIS software, which allows extracting the stream network from the DEM. The permanent streams were manually digitized from the georeferenced aerial image, from ArcGIS software [40]. This parameter is relevant since it can be responsible for contaminants dissemination through aqueous media and suspension from the mine to the surrounding ecosystems. Two main drainage systems were considered in this study, the western lines drain material from the waste pile into Paradela Stream, and the eastern drain water and precipitates from underground mining galleries, leading Silveirinhos Stream that flows to Ferreira River ( Figure 4).

Parameters Description
The waste pile delimitation was obtained manually, as a vector file, under the Google Earth base map. In the study area, the higher focus of contamination is the waste pile itself,

Waste Pile Delimitation
The waste pile delimitation was obtained manually, as a vector file, under the Google Earth base map. In the study area, the higher focus of contamination is the waste pile itself, so it was defined as the main parameter in the MCDM model. Previous studies characterized the materials deposited in the waste pile geochemically, identified the presence of different Potentially Toxic Elements (PTEs) as well as Polycyclic Aromatic Hydrocarbons (PAHs) [2,27,41] that can be hazardous to the environment and human health. The contaminants present in mine wastes are expected to follow two major pathways for dispersion aerial and leaching [42].

Proximity to Waste Pile
The proximity to the contaminant sources is critical in the evaluation of contaminant transport and dispersion [35]. The contamination by particulate matter and aerial transportation was considered in the model using the Euclidean distance algorithm (from ArcGIS software [40]).

Downstream Drainage
The pollutants may be transported via water through the existent mine drainage systems [35]. The overall quality of groundwater from mine drainage galleries from São Pedro da Cova revealed contamination; this water quality near the discharge points is not appropriate for agriculture irrigation and revealed organic substances as PAHs with carcinogenic compounds [43].
Several studies mention higher concentrations of contaminants closer to drainage system [5,[43][44][45][46]. The downstream drainage system represents the pollutants transportation in the water through solution and suspension, from the contamination sources. In this case, the mining facilities and waste pile. A second drainage system can be considered after the underground water discharge of the mining effluents in Ribeiro de Silveirinhos ( Figure 4). In this study, the stream network was manually digitized based on the results obtained from GIS tools. Then, a buffer of 50 m was applied to each streamline to consider the effects of flooding from the streams during winter and sedimentation particles along the margins. The drainage areas were subdivided according to the expected concentration of elements and substances sourced by the mine. The different segments were incorporated as reflex of the pollution dilution effects caused by the successive apport of fresh water from tributary water lines downstream. One segment includes the Silveirinhos Stream after the mining underground effluents discharges, until it meets the Ferreira River, which is then divided into another segment. Along the western drainage considered from the waste pile, a segment starting along the temporary water lines located downstream of the mine waste pile until meeting the Paradela Stream was considered, and another is traced when this tributary meets the Ferreira River.

Waste Pile Runoff Areas
The runoff areas are defined by the areas immediately downslope of the waste pile and mining facilities that collect the surface waters and materials that were eroded and/or leached from the waste pile and coal processing areas. Geographically, these areas are comprised between the contamination sources, the waste piles and mining facilities, following downslope until the surrounding drainage lines. In this study, the runoff areas were manually digitized, considering the waste pile and the stream drainage network mentioned in the previous point.
The runoff areas consider the direct transport of pollutant materials from the waste pile to areas downslope. Previous studies demonstrated that leaching tests results performed on the waste pile materials shown that the leachates generated have considerably different concentrations of major (Al, Fe, K, Na, Ca, Mg, Cl, SO 4 , F, NO 3 , NO 2 , NH 4 ) and trace elements (As, Cd, Cr, Cu, Mn, Ni, Pb, Zn) [27,40].

Influence of Vegetation
Vegetation cover reduces the transport of contaminants through the wind, building a type of "barrier" [35]. The NDVI index [47] was adopted since it reflects the vegetation effects on the aerial dispersion of contaminants. It consists of a vegetation index that makes it possible to identify, classify and estimate the presence of vegetation/biomass at a study site [48,49]. In this study, the NDVI was estimated from the satellite image and the algorithm Raster Calculator (Equation (1)) was applied to the bands B4 and B8. The resulting map varies from 1 to −1. Values closer to 1 indicate that the vegetation is healthy, values close to 0 indicate that there is no presence of vegetation, and values close to −1, correspond to water bodies.
where NIR is the B8 band and RED is the B4 of the Sentinel-2 image.
In the NDVI map, the residential and industrial areas were highlighted in neutral tones and the vegetation areas were in green color. Areas with higher vegetation density were highlighted in dark green color ( Figure 5).
where NIR is the B8 band and RED is the B4 of the Sentinel-2 image.
In the NDVI map, the residential and industrial areas were highlighted in neutral tones and the vegetation areas were in green color. Areas with higher vegetation density were highlighted in dark green color ( Figure 5).   In order to identify potentially contaminated zones through multiple pathways such as gravity, wind, and water, MCDM approaches can be considered. AHP is one of the best-known MCDM methods used to derive ratio scales from paired comparisons [50]. It is used to identify a decision problem, decompounding it into a hierarchy or a network structure to represent that problem and into pairwise comparisons to establish relations within the structure [50][51][52]. AHP assumes that criteria/alternatives are independent of one another. There are several types of dependencies including partial/all inner dependence among criteria/alternatives and partial/all outer dependence among criteria/alternatives. The correlation between two layers is a measure of dependency between the layers [53]. It is the ratio of the covariance between the two layers divided by the product of their standard deviations. In this study, the criteria chosen are independent of one another. Since the decisions are performed by the user, fuzziness and uncertainty are considered, and for that reason, AHP is usually combined with other methods [13]. AHP is based on: (i) the decomposition in different hierarchical levels; (ii) the pairwise comparison of the factors, where the user establishes priorities for the main criteria judging them in pairs for their relative importance; and (iii) the logical consistency is determined and if it is higher than 10%, the pairwise classifications must be revised until the consistency index is below 10% [50]. The relationship between different factors is based on a numerical value (Table 4). If activity has one of the above numbers assigned to it when compared with activity j, then j has the reciprocal value when compared with i Rationals Ratios arising from the scale If consistency were to be forced by obtaining n numerical values to span the matrix According to Saaty [50], the Consistency Ratio (CR) is computed to describe the quality of the judgments (Equation (2)). CR = CI/RI (2) where CI corresponds to the Consistency Index (CI), computed through Equation (3), and RI corresponds to the Random Index (RI), a tabulated value that depends on the order of the matrix presented in Table 5 [50].
where λmax corresponds to the maximum eigenvalue of the matrix and n corresponds to the order of the matrix. In this study, the parameter weights were determined based on pairwise comparisons using the AHP process. Five parameters were considered in the mine contamination susceptibility modeling: (i) the waste pile, (ii) runoff areas, (iii) downstream drainage, (iv) the distance from the waste pile, and (v) the NDVI index.
Within the approach used in this study, the comparison of the contributions of each parameter was determined by an expert-based pairwise comparison matrix considering the previous knowledge of the study area, the availability of the data, and the experience of the researchers.
The pairwise comparisons decision matrix and the output parameter weights were based on the previous knowledge and perception of the existent contamination of soils and waters [20,27,41,43]. The most relevant parameter, with a higher contribution, was the waste pile areas as it is considered a primary source of contamination, followed by the runoff area and drainage network. These factors were considered as having higher significance, since the waste pile and the underground mining drainage galleries had been previously identified as the coal mine main contamination sources, concentrating multiple PTES and PAHs [20,41,43], that can be disseminated to the surrounding environment. It was considered that waste pile in pairwise comparison should present a higher rank since it represents a broader area of contaminants concentration subject to the atmospheric agents. Successive soil campaigns conducted in the end of rainy and dry season, on the surroundings of the mine, allowed us to understand the dispersion dynamics, pointing out that main transport of contaminants from the waste pile to surrounding soils in this area occurs under influence of water and surface drainage [20,41]. Therefore, in this model, the higher weights after the waste pile (where the pollutants are mostly concentrated) were given to the runoff areas. Regarding the drainage network weighting, was taken to account the distance to the respective contamination sources as well as the dilution effects caused by tributary water courses. In our case, the wind dispersion represents only a minor role on pollutants spreading. Very scarce particulate matter as fly ashes and rare magnetic spherules were found along the dominant wind direction. Aerial dispersion of contaminants from the studied waste pile does not seem as significant as water transportation, as from a first soil geochemical campaign, conducted at the end of the rainy season, to the second campaign, at the end of the dry season, there was a generalized trend for soils surrounding the waste pile to maintain or moderately reduce the concentrations of trace elements [20]. For this reason, lower weights were assigned to the waste pile Euclidean distance and to the NDVI index, which represent the contaminants dispersion by the winds and the presence of physical barriers to this dissemination as vegetation.

Fuzzy Logic AHP
Fuzzy membership has also been used for susceptibility estimations [13][14][15]54]. Fuzzy membership values reflect not only the relevance of each factor, but also the relative importance of each subgroup of each factor [55]. Fuzzy was introduced by Zadeh [56] and consists of a logic that all objects are considered as elements in a set where each element takes a value from 0 to 1. Several studies applied this method combined with AHP to improve the accuracy to produce susceptibility maps [13,14]. In this study, besides the AHP method, the fuzzy logic combined with AHP was used to compare and evaluate the most adequate method to generate the contamination susceptibility map. In this study, the fuzzy small algorithm (Fuzzify raster (small membership) from Raster Analysis (in QGIS software)) was used to transform input raster values to fuzzy membership values, where larger input values indicate a lower risk of contamination [35].

Weighted Overlay Method (WOM)
To combine the five parameters involved in the susceptibility map, the WOM was used [52]. The WOM was applied using the QGIS software to assign the ratings to each parameter and finally to sum all the parameters multiplied by the respective weights, providing the final susceptibility map (Equation (4)).
where, SM corresponds to the final susceptibility map (SM), Xi corresponds to each parameter map associated with the respective rankings and Wi corresponds to the weight of the parameter. The rankings and weights were determined using the AHP method and the Fuzzy AHP.

Model Evaluation and Validation
The evaluation of the predictive performance of the final susceptibility map obtained with AHP and Fuzzy AHP modeling was achieved through the receiver operating characteristic (ROC) value and the area under the ROC curve (AUC) score [57], both implemented in Python programming language using the scikit-learn library. The ROC curve is a graphic tool that allows the performance of binary discrimination as a certain threshold (the susceptibility score in this case) to be varied. It consists of a plot of the true positive rate (TPR) or sensitivity vs. the false positive rate (FPR), i.e., the fraction of false positives out of all negative samples (1-specificity). The ideal ROC curve should be close to the top left of the plot. A better way to evaluate the ROC curve and model performance is to compute the AUC score, which ranges from 0.5 to 1 for a good fit, while values below 0.5 represent random guesses [57].
As aforementioned, data from previous soil sampling campaign performed in the surroundings of the São Pedro da Cova waste pile were used for validation purposes; one sample was recognized as having moderate ecological risk and four samples were trending toward moderate risk, according to Potential Ecological Risk Index [58]. These five samples for the validation process should represent "true positive" values (value 1). To complement the validation dataset, 15 random samples were selected over the final susceptibility map to represent "false positive" values (value 0) ( Figure 6. This random sampling approach in areas where only true instances are known is fairly common in various applications from landslide susceptibility to mineral potential mapping [18,59]. The random samples were generated through Create Random Points algorithm from the System for Automated Geoscientific Analyses (SAGA) software.
To validate the susceptibility maps, the land cover map, estimated from two techniques (unsupervised image classification and using the Portugal official land cover map) was analyzed. Image classification is used to extract classes of information from remote sensing images [60]. Remote sensing data can be processed to obtain LULC using different approaches. All targets have their own spectral response and satellite sensors record the pixel value, enabling the data to be processed to understand the elements that make up its surface [61]. In this study, the LULC was analyzed using different band compositions of Sentinel-2B using ArcGIS Pro software [40]. The Classification Wizard tool available in ArcGIS software was used, considering the ISO Cluster classifier, which performs an unsupervised classification using the K-means method. In this case the bands B4, B3, B2 and B8 (RGB + NIR) were used. Land Use Land Cover (LULC) corresponds to physical material contained on the Earth's surface and describes human activities [62]. With a map of LULC it is possible to understand the local dynamics, study phenomena and propose public policies [63][64][65]. The classifier was able to separate the data concerning anthropically altered areas from those with the presence of vegetation or exposed soil. Even so, the ability to segregate the classes was not so efficient when dealing with the streets and areas of mixture between vegetation and exposed soil, which can be better observed in the RGB maps and in the false color composition. cessed on 20 June 2022). It is produced through space technologies and Artificial Intelligence (AI), which includes machine learning algorithms and expert knowledge rules to classify multispectral and intra-annual series of Sentinel-2 satellite optical image data [66]. In this work, LULC and COSSim were overlapped in order to identify if the susceptibility areas of contamination can interfere with surrounding houses, i.e., to identify how close the houses are to contaminated areas.  In Portugal, the official soil occupation chart is developed by Direção Geral do Território (DGT). In 2021, the COSSim, an experimental product, was created to provide complementary information to the DGT Land Use and Occupation Chart (COS), with a production frequency and annual update, in raster format and with a spatial resolution of 10 m (https://www.dgterritorio.gov.pt/Carta-de-Ocupacao-do-Solo-Simplificada-de-2021, accessed on 20 June 2022). It is produced through space technologies and Artificial Intelligence (AI), which includes machine learning algorithms and expert knowledge rules to classify multispectral and intra-annual series of Sentinel-2 satellite optical image data [66]. In this work, LULC and COSSim were overlapped in order to identify if the susceptibility areas of contamination can interfere with surrounding houses, i.e., to identify how close the houses are to contaminated areas.

WebGIS Development
A webGIS application was developed in the context of the project of the São Pedro da Cova coal waste pile (Figure 7a; [20]). The webGIS is a user interaction interface that enables easy access and visualization of geographical data. The developed application was based on Python programming language and available to society from https://gis.up.pt/coalmine (accessed on 20 May 2022). In the frontend, an easy and intuitive graphic interface was created to configure the design of the application. For this, Hyper Text Markup Language (HTML), Cascading Style Sheets (CSS) and JavaScript were used. Bootstrap, a powerful, extensible, and feature-packed frontend toolkit, was also used (https://getbootstrap.com/, accessed on 30 May 2022) to create buttons, action widgets, among others. As the backend, the database was configured using the PostGIS database, an open-source database that is an extension of the PostgreSQL database [67]. A server was also used in this study, the Geoserver, an open-source server for sharing geospatial data (https://geoserver.org/, accessed on 30 January 2022). All the data were hosted in the PostGIS database and connected to Geoserver. Several standard functionalities were implemented: (i) zoom in/out; (ii) measure buttons (m, km, mi); (iii) selection of three different base maps (Google Satellite, Open Street Map (OSM) and Water Color Map) in a radio button; (iv) search button for a specific location; (v) the presentation of the geographical coordinates of the position of the cursor; (vi) a home button to zoom to the layers of the project; (vii) the full-screen view, which extends the canvas to all the screen; (viii) the scale according to the zoom; (ix) a collapsible navigation bar composed of two links (About and WebGIS) that allows changing the pages between information about the project (About) and the webGIS application; and (x) a panel group with scroll action composed by collapsed headings with the years of the project (2019, 2020 and 2021), besides the water and soil samples. In this panel group, when the user clicks on a year, a set of maps appears defined in cards. These cards are composed of the title of the map, the description of the map, an illustrative image, and two horizontal sliders: the top small slider allows us to turn on/off the map on the canvas and the bottom slider (Opacity) allows applying transparency to the map, giving the possibility to overlap raster files with different information (Figure 7b).

WebGIS Development
A webGIS application was developed in the context of the project of the São Pedro da Cova coal waste pile (Figure 7a; [20]). The webGIS is a user interaction interface that enables easy access and visualization of geographical data. The developed application was based on Python programming language and available to society from https://gis.up.pt/coalmine. In the frontend, an easy and intuitive graphic interface was created to configure the design of the application. For this, Hyper Text Markup Language (HTML), Cascading Style Sheets (CSS) and JavaScript were used. Bootstrap, a powerful, extensible, and feature-packed frontend toolkit, was also used (https://getbootstrap.com/, accessed on 30 May 2022) to create buttons, action widgets, among others. As the backend, the database was configured using the PostGIS database, an open-source database that is an extension of the PostgreSQL database [67]. A server was also used in this study, the Geoserver, an open-source server for sharing geospatial data (https://geoserver.org/, accessed on 30 January 2022). All the data were hosted in the PostGIS database and connected to Geoserver. Several standard functionalities were implemented: (i) zoom in/out; (ii) measure buttons (m, km, mi); (iii) selection of three different base maps (Google Satellite, Open Street Map (OSM) and Water Color Map) in a radio button; (iv) search button for a specific location; (v) the presentation of the geographical coordinates of the position of the cursor; (vi) a home button to zoom to the layers of the project; (vii) the full-screen view, which extends the canvas to all the screen; (viii) the scale according to the zoom; (ix) a collapsible navigation bar composed of two links (About and WebGIS) that allows changing the pages between information about the project (About) and the webGIS application; and (x) a panel group with scroll action composed by collapsed headings with the years of the project (2019, 2020 and 2021), besides the water and soil samples. In this panel group, when the user clicks on a year, a set of maps appears defined in cards. These cards are composed of the title of the map, the description of the map, an illustrative image, and two horizontal sliders: the top small slider allows us to turn on/off the map on the canvas and the bottom slider (Opacity) allows applying transparency to the map, giving the possibility to overlap raster files with different information (Figure 7b).  The maps were generated in raster format, except for water and soil samples, which were created in vector format (points). In these two layers, an additional functionality was applied. At each point, when clicked by the user, a table appears with the information on the hydrogeochemical and soil characterization [20], along with the geographical coordinates of each point (Figure 8). In the future, the webGIS will be continuously maintained and updated when new data are collected. In the About link, all the information about the data and procedures, as well as the contacts, are provided.
The maps were generated in raster format, except for water and soil samples, which were created in vector format (points). In these two layers, an additional functionality was applied. At each point, when clicked by the user, a table appears with the information on the hydrogeochemical and soil characterization [20], along with the geographical coordinates of each point (Figure 8). In the future, the webGIS will be continuously maintained and updated when new data are collected. In the About link, all the information about the data and procedures, as well as the contacts, are provided.

Results and Discussion
As previously mentioned, the evaluation of the contamination that affects the surrounding areas of São Pedro da Cova's self-burning coal waste pile considered five parameters: (i) the waste pile, (ii) runoff areas, (iii) downstream drainage, (iv) the distance from the waste pile, and (v) the NDVI index. The factors were ranked and weighted based on their importance. The most important factors were the waste pile itself, the runoff, and the downstream drainage. The least important was the distance to the coal mine and the presence of vegetation. To produce the final susceptibility map, two methods were tested: the AHP method and the Fuzzy-AHP. The AHP method was applied through the pairwise comparison matrix ( Table 6). The matrix was applied to assess the class ratings in each parameter and to estimate the final weights for each parameter. The values of the CR were less than 10%, which is in accordance with the consistency defined by the pairwise comparison [50]. To obtain the final susceptibility map (Figure 9a), the WOM method was used (Equation (3)) in GIS software (QGIS open-source software), where the assignment of the rankings was performed to each factor and then each of them was multiplied by the respective weight. The final susceptibility map values range from 0 to 1 and indicate an increasing degree of susceptibility.
In the second approach, the fuzzy logic technique, which has been widely used in environmental risk assessment [13,14], was applied to standardize the criteria layers. In this study, the fuzzy logic was applied to the distance to waste pile, NDVI map, and downstream drainage map. Areas near to the waste pile have a higher susceptibility to contamination, as well as the areas in the downstream drainage system near the waste pile. Otherwise, areas with low NDVI values have a higher susceptibility to contamination due to soil instability and wind transport of pollutants. Finally, to obtain the susceptibility map (Figure 9b), the WOM method was applied (Equation (3)). Values ranging from 0 to 1 were assigned, where areas with values close to 1 are more susceptible to contamination than areas with values close to 0. The final maps were divided into five classes using "Natural Breaks" method from ArcGIS software.

Results and Discussion
As previously mentioned, the evaluation of the contamination that affects the surrounding areas of São Pedro da Cova's self-burning coal waste pile considered five parameters: (i) the waste pile, (ii) runoff areas, (iii) downstream drainage, (iv) the distance from the waste pile, and (v) the NDVI index. The factors were ranked and weighted based on their importance. The most important factors were the waste pile itself, the runoff, and the downstream drainage. The least important was the distance to the coal mine and the presence of vegetation. To produce the final susceptibility map, two methods were tested: the AHP method and the Fuzzy-AHP. The AHP method was applied through the pairwise comparison matrix ( Table 6). The matrix was applied to assess the class ratings in each parameter and to estimate the final weights for each parameter. The values of the CR were less than 10%, which is in accordance with the consistency defined by the pairwise comparison [50]. To obtain the final susceptibility map (Figure 9a), the WOM method was used (Equation (3)) in GIS software (QGIS open-source software), where the assignment of the rankings was performed to each factor and then each of them was multiplied by the respective weight. The final susceptibility map values range from 0 to 1 and indicate an increasing degree of susceptibility. In the second approach, the fuzzy logic technique, which has been widely used in environmental risk assessment [13,14], was applied to standardize the criteria layers. In this study, the fuzzy logic was applied to the distance to waste pile, NDVI map, and downstream drainage map. Areas near to the waste pile have a higher susceptibility to contamination, as well as the areas in the downstream drainage system near the waste pile. Otherwise, areas with low NDVI values have a higher susceptibility to contamination due to soil instability and wind transport of pollutants. Finally, to obtain the susceptibility map (Figure 9b), the WOM method was applied (Equation (3)). Values ranging from 0 to 1 were assigned, where areas with values close to 1 are more susceptible to contamination than areas with values close to 0. The final maps were divided into five classes using "Natural Breaks" method from ArcGIS software.  The evaluation of the results obtained was performed through the generation of the AUC curve, which is a statistical technique used by researchers to validate predictive results. As in Figure 10, the ROC curve is always above the reference line with the value of 0.5, with an AUC score of 0.813 indicating very good and accurate performance of the AHP approach. Fuzzy-AHP also indicates a very good value (0.800), despite the odd The evaluation of the results obtained was performed through the generation of the AUC curve, which is a statistical technique used by researchers to validate predictive results. As in Figure 10, the ROC curve is always above the reference line with the value of 0.5, with an AUC score of 0.813 indicating very good and accurate performance of the AHP approach. Fuzzy-AHP also indicates a very good value (0.800), despite the odd shape of the ROC curve. The obtained AUC scores indicate that the proposed models are suitable for susceptibility mapping.
As expected, in both methods, the zones more susceptible to mine contamination were identified over the waste pile and in the immediate surrounding areas affected by the runoff. These areas were classified as presenting very high and high susceptibility to mine contamination and are mostly dominated by forest use and there is no urban overlap. The contamination susceptibility ranged from high to moderate along the closest segment of the drainage network from the waste pile and the mine effluents discharge; along these segments there is evidence for agricultural practices and therefore a growing concern with the eventual usage of poor-quality water for irrigation purposes. The following segments downstream decrease to low susceptibility as there is a significant dilution on pollutants concentration caused by tributary water input to the drainage lines.  As expected, in both methods, the zones more susceptible to mine contamination were identified over the waste pile and in the immediate surrounding areas affected by the runoff. These areas were classified as presenting very high and high susceptibility to mine contamination and are mostly dominated by forest use and there is no urban overlap. The contamination susceptibility ranged from high to moderate along the closest segment of the drainage network from the waste pile and the mine effluents discharge; along these segments there is evidence for agricultural practices and therefore a growing concern with the eventual usage of poor-quality water for irrigation purposes. The following segments downstream decrease to low susceptibility as there is a significant dilution on pollutants concentration caused by tributary water input to the drainage lines.
A concentric area with approximately 1 km surrounding the waste pile is classified as moderate susceptibility as a reflex of contaminants deposition from the waste pile by areal dissemination. This area affects both urban, agricultural areas and forest.
To validate the results, the LULC maps were generated for the study zone, and the COSSim was used ( Figure 11). Comparing both maps and considering that the LULC map aggregates the classes from COSSim, from visual interpretation it can be concluded that the maps are coherent. The waste pile location is mainly characterized by vegetation (mainly eucalyptus) and bare soil zones. It can also be observed that the urban areas are very close to the waste pile. A concentric area with approximately 1 km surrounding the waste pile is classified as moderate susceptibility as a reflex of contaminants deposition from the waste pile by areal dissemination. This area affects both urban, agricultural areas and forest.
To validate the results, the LULC maps were generated for the study zone, and the COSSim was used ( Figure 11). Comparing both maps and considering that the LULC map aggregates the classes from COSSim, from visual interpretation it can be concluded that the maps are coherent. The waste pile location is mainly characterized by vegetation (mainly eucalyptus) and bare soil zones. It can also be observed that the urban areas are very close to the waste pile. The influence of urban contamination in the areas adjacent to the waste pile c be neglected. As previously mentioned in Teodoro et al. [20], there are multiple ty contamination sources contributing differently to the concentration of PTEs and oth ements registered in soils that surround the mine. The samples located in urban upstream of the mine demonstrated a moderate increase in PTEs (As, Pb, Mo, Cu, Z Ni and Ag). These values can influence the results obtained, suggesting that the con nation in the urban area can have different sources (external to the waste pile).
This study also provides the development of a webGIS constituting the client face, free and open source, so any user can access. The webGIS can be considered as to develop and apply the appropriate management and monitoring of the São Ped Cova waste pile, providing detailed information acquired in situ and also from dif geospatial techniques. In this context, the webGIS developed in this project, besides The influence of urban contamination in the areas adjacent to the waste pile cannot be neglected. As previously mentioned in Teodoro et al. [20], there are multiple types of contamination sources contributing differently to the concentration of PTEs and other elements registered in soils that surround the mine. The samples located in urban areas upstream of the mine demonstrated a moderate increase in PTEs (As, Pb, Mo, Cu, Zn, Co, Ni and Ag). These values can influence the results obtained, suggesting that the contamination in the urban area can have different sources (external to the waste pile).
This study also provides the development of a webGIS constituting the client interface, free and open source, so any user can access. The webGIS can be considered as a base to develop and apply the appropriate management and monitoring of the São Pedro da Cova waste pile, providing detailed information acquired in situ and also from different geospatial techniques. In this context, the webGIS developed in this project, besides being a final product for dissemination of the data acquired/generated, has a number of advantages: (i) the access is possible from a web browser with connection to Internet, without costs; (ii) it does not require knowledge about any GIS software or database; (iii) it was developed as a user-friendly interface, with intuitive and simplistic buttons to manipulate, consult and access the information; (iv) a wide range of clients can use the application simultaneously; and (v) the application is open to further development and extension of functionalities and it can be adapted to other regions and other studies. Some limitations were also identified, since in the future more actions and analyses can be implemented in the webGIS. Additionally, it depends on the internet connection because some data have a large size.

Conclusions
In this study, AHP and Fuzzy AHP methods were employed to create a susceptibility map to identify the zones that possibly can be affected by contaminants of the São Pedro da Cova coal waste pile. The multiple contamination pathways were considered, including water and air. The adopted approach was never applied in the context of the São Pedro da Cova coal waste pile and since the data were available, this study integrated all of them using MCDM methods to evaluate the contaminant susceptibility in the surrounding areas of the waste pile. The results obtained showed that the contamination susceptibility is higher surrounding the abandoned mine, particularly along the waste piles and the corresponding runoff areas, which can be particularly sensitive. Nearly 2 km of mine drainage along the hydrographic network, sourced by the waste pile and the mining effluents discharge, can also be an object of concern, as these areas are surrounded by agriculture fields that can be flooded with contaminated materials and the water can potentially be used for irrigation. The NDVI parameter did not influenced so much the susceptibility to contamination.
The predictive maps were evaluated using the ROC, which indicates an accuracy of 0.813 (AUC = 0.813) for AHP and 0.800 (AUC = 0.800) for Fuzzy AHP, both indicating a high accuracy. Furthermore, the LULC and COSSim maps were compared and analyzed considering the waste pile.
Regarding the susceptibility analysis performed, although the availability of data is not enough, the results of the AHP and Fuzzy AHP methods suggest that it can be applied to other abandoned mines. To disseminate the results obtained under the CoalMine project, a user-friendly webGIS was developed, allowing us to visualize and combine the data obtained during the project, with respect to terrain analysis and water and soil characterization. Regarding the webGIS developed, the data acquired during the CoalMine project can be disseminated for any user, with tools that can help to analyze and combine the information. With the development of the project, users will take great advantage of a variety of long-term information, which provides critical implications for São Pedro da Cova coal waste pile and can help with management decision-making. The access to more available data and a larger time window would have allowed for a more effective analysis. The chosen parameters were selected in order to model the contamination susceptibility on the immediate area surrounding the São Pedro da Cova mine. For this analysis, in such a restrained area, the focus was on the known contamination sources and the identified dissemination pathways. Other factors such as wind preferential direction, aquifer and underground modelling (pluviometry data, types of geologic substract, hydraulic conductivity), and social-economic parameters, should be addressed in future studies regarding risk modelling in broader areas.
The developed work intends to provide information related to the sites more susceptible to contaminants. This work can help to provide security/control measures for public health and safety, preventing potential exposure of the surrounding community to soils and water channels close to a waste pile. It is important to attract the attention of the inhabitants that live close to the waste pile, so they are aware of the potential contaminants In the future, the acquisition of more field measurements/data to improve this analysis is foreseen, integrating more factors in the MCDM approaches in order to obtain better outcomes. For instance, socio-demographic factors, to understand who is living close to the waste pile and consequently what kind of populations are more exposed or more vulnerable, and what kind of activities are taking place there, among others.