scieee AI-readable full text Open interactive document viewer

Analysis of water quality in underground wells with clustering and post-processing techniques

Muñoz Arroyo, Daniel

Abstract

El Ministeri del medi ambient de l'estat de Margarita vol establir un control de l'aigua de 36 pous subterranis de la zona amb la finalitat de poder utilitzar-la per la població. Per fer el control, van estar recollint dades ( mesurant la qualitat de l'aigua com el pH o observant l'entorn del pou, com la vegetació y litologia) durant 5 anys. Aquest projecte intenta ajudar contra l'escassetat d'aigua, adquirint les tendències generals dels pous, mitjançant tècniques de clusterització i postprocessament. Així, el Ministeri de Medi Ambient de l'estat de Margarita, podria fer servir aquesta informació per saber quin tipus d'aigua tenen els pous amb respecte l'ús que li poden donar els habitants de la població de Pedro González. Durant el projecte s'ha seguit el procés KDD, analitzant, entenent y preprocessant la base de dades proporcionada. També s'han dut a terme experiments per obtenir les variables significants, les millors mètriques utilitzades per obtenir els diferents grups i el millor número de classes. Una vegada hem aconseguit els millors, s'apliquen tècniques de postprocessat com TLP per obtenir les tendències dels grups obtinguts.

Full text

id183035   ANALYSIS OF WATER QUALITY IN UNDERGROUND WELLS WITH CLUSTERING AND POST-PROCESSING TECHNIQUES DANIEL MUÑOZ ARROYO Thesis supervisor: DANTECONTI(DepartmentofStatisticsandOperationsResearch) Thesis co-supervisor: KARINAGIBERTOLIVERAS(DepartmentofStatisticsandOperations Research) Degree:Bachelor'sDegreeinInformaticsEngineering(Computing) Bachelor's thesis Facultat d'Informàtica de Barcelona (FIB) Universitat Politècnica de Catalunya (UPC) - BarcelonaTech 26/01/2024  Index List of Figures: 4 List of Tables 6 Abstract 7 Resum 7 Resumen 8 Chapter 1: Introduction and contextualization 9 1.1 Introduction 9 1.2 Important definitions 9 1.2.1 Data mining (KDD process) 9 1.2.2 Hierarchical clustering 11 1.2.3 Post-processing techniques 12 1.2.4 Traffic Light Panel (TLP) 12 1.2.5 Metadata 12 1.2.5.1 Categorical variable label description 13 1.3 Stakeholders 14 1.4 Justification 15 1.5 Scope 15 1.5.1 Generic Objectives and sub objectives 15 1.5.2 Functional objectives and non-functional objectives 16 1.5.2.1 Functional objectives 16 1.5.2.2 Non-functional objectives 16 1.5.3 Risks and obstacles 16 1.6 Methodology and rigor 17 Chapter 2: Project planning 19 2.1 Task description 19 T1 management tasks 19 T1.1 Introduction and contextualization 19 T1.1.1 Introduction 19 T1.1.2 Important definitions 19 T1.1.3 Stakeholders 19 T1.2 Justification 20 T1.3 Scope 20 T1.3.1 Generic objectives and sub-objectives 20 T1.3.2 Functional and non-functional objectives 20 T1.3.3 Risk and obstacles 20 T1.4 Methodology and rigor 20 T1.5 Project planning 20 T1.5.1 Task description 20 T1.5.2 Summary table 20 T1.5.3 Gantt diagram 20 T1.5.4 Risk management 21 1 T1.6 Economic management and sustainability 21 T1.6.1 Identification and estimation of the costs 21 T1.6.2 Sustainability report 21 T1.7 Meetings 21 T2 Main tasks 21 T2.1 Data collection 21 T2.1.1 Taking measures 22 T2.1.2 Transportation 22 T2.2 Data selection 23 T2.3 Preprocess 23 T2.3.1 Type code rectification 23 T2.3.2 Data visualization 23 T2.3.3 Outliers 23 T2.4 Transformation 24 T2.5 Data Mining/Experimentation 24 T2.5.1 Adjusting the metrics 24 T2.5.2 Adjusting K 24 T2.6 Clustering 25 T2.7 Profiling 25 T2.8 Trajectories 25 T2.8 Geographical trajectories 25 T3 Documentation 25 T3.1 Data collection 25 T3.2 Data selection 25 T3.3 Preprocess 26 T3.4 Transformation 26 T3.5 Data mining/Experimentation 26 T3.6 Clustering 26 T3.7 Profiling 26 T3.8 Trajectories 26 T3.9 Geographical trajectories 26 2.2 Roles Implied 26 2.3 Summary table 27 2.4 Gantt diagram 29 2.5 Risk management: alternative plans and obstacles 30 2.6 Deviations 30 2.7 Budget 31 2.7.1 Staff cost 31 2.7.2 Generic costs 34 2.7.2.1 Amortizations 34 2.7.2.1.1 Hardware 34 2.7.2.1.2 Software 34 2.7.2.2 Power consumption 34 2.7.2.4 Transportation cost 35 2 2.7.2.3 Gasoline consumption 35 2.7.2.5 IDEAI office 35 2.7.3 Contingency 35 2.7.4 Incidental costs 35 2.7.4.1 Be ill 35 2.7.4.2 Another pandemic 35 2.7.4.3 Laptop stop working 36 2.7.6 Management control 36 2.8: Sustainability 37 2.8.1 Self-assessment 37 2.8.2 Economic dimension 37 2.8.3 environmental dimension 38 2.8.4 Social dimension 40 2.9 Laws and regulations 41 Chapter 3: Data and model experimentation 42 3.1 Data collection 42 3.2 Data selection 42 3.3 Preprocess 42 3.3.1 Type code rectification 42 3.3.2 Data visualization 43 3.3.2.1 Numerical data 43 3.3.2.1.1 General Visualization 43 3.3.2.2 Year by Year 47 3.2.3 Comparing general vs year by year 52 3.2.4 Outlyer treatment 55 3.3.2.2 Categorical variables 55 3.3.2.2.1 General visualization 56 3.3.2.2.2 Year by year visualization 57 3.3.2.2.3 General vs year by year visualization 58 3.4 Transformation 58 3.5 Data Mining/Experimentation 58 3.5.1 Deciding the metric 58 3.5.1.1 General experimentation 59 3.5.1.1.1 Normalizing by range 59 3.5.1.1.2 Normalizing by typical deviation 59 3.5.1.1.3 Without normalization 60 3.5.2 Decision of the metric 60 3.5.2.1 Metric of year by year 60 3.6 Clustering 62 3.6.1 General clustering 62 3.6.2 Year by year clustering 64 3.7 Profiling 64 3.7.1 Interpretation of the data quality 64 3.7.2 General profiling 64 3 3.7.2.1 CPG 64 3.7.2.2 Statistics and TLP 65 3.7.3 Year by year profiling 67 3.7.3.1 CPGs 67 3.7.3.2 Statistics 68 3.7.3.3 TLP 70 3.8 Trajectories 72 3.8.1 Deciding the general or year by year profiling 72 3.8.2 Context of the trajectories 73 3.8.3 Making trajectories 73 3.9 Geographical trajectories 74 4. Conclusions and future works 77 5. References 79 6. Annexes 81 List of Figures: Figure 1: beginning part in KDD process scheme (from slides in MD subject) 10 Figure 2: Continuation part of the KDD process scheme (from slides in MD subject) 10 Figure 3: water wells geolocalization (extracted from Python program, own elaboration) 22 Figure 4: Collage of screenshots of a Gantt diagram, own elaboration 29 Figure 5: Types imported (own elaboration) 42 Figure 6: numerica variables types modification(own elaboration) 42 Figure 7: CE histogram (own elaboration) 43 Figure 8: NE histogram (own elaboration) 43 Figure 9: Medium temperature 43 Figure 10: pH histogram (own elaboration) 43 Figure 11: Altitude, Slope and Distance to the sea histogram (own elaboration) 44 Figure 12: Altitude, CE and NE boxplots, (own elaboration) 44 Figure 13: Medium Temperature boxplot 44 Figure 14: Distance to the sea boxplot 44 Figure 15: pH boxplot (own elaboration) 45 Figure 16: Slope boxplot (own elaboration) 45 Figure 17: General correlation matrix(own elaboration) 46 Figure 18: DIstance to the sea, Altitude and Slope histogram Year by year (own elaboration) 47 Figure 19: CE and Medium Temperature histogram Year by year (own elaboration) 47 Figure 20: pH and NE histogram Year by year (own elaboration) 47 Figure 21: CE and pH boxplot of every year 50 Figure 22: NE and Medium Temperature boxplot of every year 50 Figure 23: Correlation matrix of the starting year (year 0) 51 Figure 24: Correlation matrix of the last year (year 4) 51 Figure 25: General and Year by Year CE histograms 52 4 Figure 26: General and Year by Year NE histograms 53 Figure 27: General and Year by Year pH histograms 53 Figure 28: CE comparative between general and year by year 54 Figure 29: PH comparative between general and year by year 54 Figure 30: PH comparative between general and year by year 55 Figure 31: General Lithology and Lodging pieChart 56 Figure 32: General Vegetation and Land use pieChart 56 Figure 33: Lodging pie charts of the in year 1 and 2 57 Figure 34: Lithology pie charts of the year 1 and 2 57 Figure 35: Vegetation and land use pie charts of the year 1 and 2 57 Figure 36 general dendrogram with Ward and Euclidean distance normalized by range 59 Figure 37 general dendrogram with euclidean distance normalized by typical deviation 59 Figure 38: General dendrogram with euclidean distance without normalization 60 Figure 39: Year by year dendrogram without normalization. Year 1 61 Figure 40: Year by year dendrogram without normalization. Year 2 61 Figure 41: Year by year dendrogram without normalization. Year 3 61 Figure 42: Year by year dendrogram without normalization. Year 4 62 Figure 43: Year by year dendrogram without normalization. Year 5 62 Figure 45: general TLP 66 Figure 46: CPG Year 1 67 Figure 47: CPG Year 2 67 Figure 48: CPG Year 3 68 Figure 49: CPG Year 4 68 Figure 50: CPG Year 5 68 Figure 51: Transitions of the wells 1 to 9 73 Figure 52: transitions of the wells 28 to 36 74 Figure 53: Initial state of each water well 75 Figure 54: Final state of each water well 75 5 List of Tables Table 1: Metadata explanation, own elaboration. 13 Table 2: Role description, own elaboration. 26 Table 3: Summary table of the task description (own elaboration). 28 Table 4: Roles implied and general description, own elaboration. 31 Table 5: Cost per hour by the roles implied in the project, own elaboration. 32 Table 6: Staff cost summary (own elaboration). 34 Table 7: table summarizing the Incidental costs (own elaboration). 36 Table 8: Summary of the costs of the project (own elaboration). 36 Table 9: NE comparison between years (own elaboration). 48 Table 10: Year by year CE comparative (own elaboration). 49 Table 11: Year by year pH comparative (own elaboration). 49 Table 12: Summary table of the relevant correlations with year by year data (own elaboration) 52 Table 13: stats cutting the dendrogram with K = 4, euclidean distance and without normalization. Own elaboration 63 Table 14: Stats of the dendrogram with euclidean distance, without normalization and K = 5. Own elaboration 63 Table 15: Table summarizing the best cuts for every year according to the expert. Own elaboration 64 Table 16: Decision of each variable with the p-value when doing Kruskal-Wallis Test 65 Table 17: Tendencies or patterns of the clusters with all years. Own elaboration 66 Table 18: Extended profiling showing the stats of the rest of numerical variables. Own elaboration 67 Table 19: Extended profiling showing the stats of the categorical variables. Own elaboration 68 Table 20, 21, 22, 23 and 24:Statistics of the year 1 to 5 respectively. Own elaboration 68-70 Table 25: Compilation of the year by year TLP to make it general. Own elaboration. 71 Table 26: Compilation of the different classes of all Year by Year TLP of Table 25. Own elaboration. 72 Table 27: Punctuation of the clusters by his water quality and with a explanation about the tendency. Own elaboration. 73 6 Abstract The Environment Ministry of Margarita State Delegation wants to take control of 36 underground water wells in the zone with the finality of using this water for the Pedro González population. To make the control, they were taking data about the water quality and open data related to vegetation, urbanity and lithology over 5 years. This project tries to help against water scarcity, acquiring general tendencies of the wells through clustering and post-processing techniques. Thus, the Environment Ministry of Margarita State will be able to use this information to know the state of the water quality by knowing the use that the Pedro González population can give it. During the project, the KDD (Knowledge Discovery in Databases) process has been followed, analyzing, understanding, and pre-processing the database provided. Experiments have also been done to obtain the significant variables, the best metrics used to obtain the different groups, and the best number of classes. Once obtained, post-processing techniques such as CPG (Class Panel Graph) and TLP (Traffic Light Panel) have been applied to obtain the trends from the obtained groups. Key-Words: KDD (Knowledge Discovery in Databases), CPG (Class Panel Graph), TLP (Traffic Light Panel), Clustering, Profiling, Metadata, Data Mining Resum El Ministeri del medi ambient de l'estat de Margarita vol establir un control de l'aigua de 36 pous subterranis de la zona amb la finalitat de poder utilitzar-la per la població. Per fer el control, van estar recollint dades ( mesurant la qualitat de l'aigua com el pH o observant l'entorn del pou, com la vegetació y litologia) durant 5 anys. Aquest projecte intenta ajudar contra l'escassetat d'aigua, adquirint les tendències generals dels pous, mitjançant tècniques de clusterització i postprocessament. Així, el Ministeri de Medi Ambient de l'estat de Margarita, podria fer servir aquesta informació per saber quin tipus d'aigua tenen els pous amb respecte l'ús que li poden donar els habitants de la població de Pedro González. Durant el projecte s'ha seguit el procés KDD, analitzant, entenent y preprocessant la base de dades proporcionada. També s'han dut a terme experiments per obtenir les variables significants, les millors mètriques utilitzades per obtenir els diferents grups i el millor número de classes. Una vegada hem aconseguit els millors, s'apliquen tècniques de postprocessat com TLP per obtenir les tendències dels grups obtinguts. PARAULES CLAU: KDD, CPG, TLP, Profiling, Clustering, Metadades, Mineria de dades 7 Resumen El Ministerio del Medio Ambiente del estado de Margarita quiere establecer un control del agua de 36 pozos subterráneos de la isla con el fin de poder usarla para la población mencionada. Para hacer el control, estuvieron recogiendo datos durante 5 años, ya sean medidas de la calidad del agua o del entorno de los pozos. Este proyecto intenta ayudar contra la escasez de agua, mediante esta base de datos, adquiriendo las tendencias generales de los pozos mediante técnicas de clusterización y post-procesado. Así, el Ministerio de Medio ambiente del estado de Margarita, podría usar esta información para saber que tipo de agua tienen los pozos con respecto al uso que le pueden dar los habitantes de la población de Pedro González. Durante el proyecto, se ha seguido el proceso KDD, analizado, entendido y preprocesado la base de datos que nos proporcionaron. También se han hecho experimentos para obtener las variables significativas, las mejores métricas utilizadas para obtener los diferentes grupos y el mejor número de clases. Una vez obtenidos, se han aplicado técnicas de postprocesado como CPG y TLP para obtener las tendencias de dichos grupos. PALABRAS CLAVE: KDD, CPG, TLP, Profiling, Clustering, Metadatos, Minería de datos 8 1.4 Justification Here, we present some related case studies that can be represented as the state of the art related to my project. Researches (Conti D., Gibert K., 2008), (Gibert et al., 2012) are previous works developed in the field with the same case study but with a static analysis approach and with different data. Several significant research papers show how a Data Mining approach can provide useful knowledge to address different situations. In 2011, researchers from Gazi University in Ankara, Turkey, analyzed Gökçekaya Lake for three years, to identify water quality variations depending on the season of the year (B. Akin et al, 2011). A Principal Component Analysis (PCA) and Hierarchical Clustering techniques were performed over a set of variables composed of pH, Oxygen Dissolved in Water, Number of Dissolved Solids, Temperature, Electric Conductivity, Water Depth, and Salinity; for determining seasonal variations caused by urban settlement processes and the own dynamics of the lake. Another research analyzed the water quality in Hong Kong’s Victoria Harbor (I. Yeung, 1999). In Reference (K. Gibert et al, 2012) authors applied a rule-based clustering to bias the hierarchical clustering method for the analysis of the performance of a Water Treatment Plant in Slovenia and get more interpretable clusters. In addition, it included a post-processing tool, called Traffic Light Panel (TLP), to allow non-technical experts an easier interpretation of the results. By assigning one Traffic Light color to the values of each variable, for each class, non-statistician experts could access an easier and more symbolic characterization of the results (Gibert et al, 2012). These last references used data-driven models to analyze water quality over the years using data mining and analyzed water quality using clustering and post-processing tools. This project is going to use the same approaches. The idea is to use the same techniques to see the differences in the quality over the years of each water well instead of all wells in general. 1.5 Scope 1.5.1 Generic Objectives and sub objectives The main objective is to obtain a temporal dynamic analysis (general and by years) based on data-driven models for the quality of the water wells with clustering, advanced profiling, and temporal-descriptive trajectories techniques. To achieve that objective, some sub-objectives should be done before: - To know the meaning of variables to get a better understanding of the data and use it to make some decisions. - To compare the descriptive statistics and multivariate analysis year by year and all the years to know if there was any evolution during the years. - To experiment with hierarchical clustering to see the best cut of the tree, to get a better clustering separation. - To use visualization techniques of profiling to know the characteristics of the clusters. - To determine the temporal trajectories for each water well concerning the evolution of its water quality. - To analyze the water well evolution over the years. 15 1.5.2 Functional objectives and non-functional objectives 1.5.2.1 Functional objectives The functional objective is about the final product, in our case, this will be the knowledge obtained from the data. This knowledge, ideally, will be clear patterns or tendencies about groups of data. According to the clustering definition, the members of this group of data will have similar characteristics in each group and different characteristics from the others. Knowing the tendencies of the water wells, the final user can assess the situation of the water of each water well and make some decisions about how to improve the water quality if it is possible. Initially, this knowledge is unknown, because we only have some information about the water wells and their environment. The only thing that we can do is guess about it, so, the unique functional objective was mentioned before, so we want to obtain clear patterns or tendencies about the water well groups. 1.5.2.2 Non-functional objectives -As a research project to find knowledge about the data, there are no restrictions imposed by the minister of Environment of Margarita Island, but we will try to impose some quality restrictions to have a good performance in the steps needed during the process: -We will follow the KDD process but adapt to the data. -In the whole process, the values of the data won’t be modified. Only, if needed, it will be transformed into another representation to have a good performance with the data mining algorithm or to have a better understanding of the data representation. -In the data selection task, the non-significant data will be omitted because it is data that doesn’t give information about the water wells in real life and with a justification. -In clustering, the results will be obtained with the best cut of the dendrogram. -When applying data mining algorithms or techniques, if it has hyperparameters, they will be adjusted with a justification. For example, a hyperparameter will be the K in the clustering mining algorithm (the K indicates the number of groups that will have). - A data understanding will be needed to make some decisions about the data. For example to evaluate the clusters with punctuation to identify if they improve his water quality or not during the years. -The code used to make all the tasks in this project has to be efficient and legible -All the work done will have a purpose. 1.5.3 Risks and obstacles During the project, external factors can negatively affect the project. In this section we will try to analyze some of the facts that can occur to have a plan or procedure to know what to do if it happens, minimizing the negative effects: -I can have, for instance, health problems or one of the members of my family can have serious health problems and it can affect me emotionally. A solution can be to plan the tasks with a higher estimated time. -There can be another pandemic: if it happens, we should work online. I think this won’t be a problem because I think this project can be done with online meetings and hard work. 16 -My computer can stop working due to different factors such as a virus, physical damage, software problems, etc. To mitigate the impact, I will have an actualized copy of the work in the cloud (as google Drive for instance). And I have another computer to work on while the other one is being repaired. The only thing that I need to do is prepare the work environment to work with it if needed. Also, I can use the computers of the university if I need to write the final document of the research. Some obstacles or difficulties are present for me in this project: - We will work with JavaKlass which is a new tool for me. I will have to learn how it works and how to use it. -I took to doing and defending the project in English, but it could be more difficult for me than talking and writing in Spanish or Catalan. 1.6 Methodology and rigor We are going to follow the KDD methodology explained in the definitions in section 1.1.2 but with the following adaptations: Step 0: Data collection The data was collected as we can see in section 1.2 Metadata. Step 1: Selection In this project, we cannot see all the variables in the metadata that were initially in the dataset, because we considered that were irrelevant. Initially, we had an identifier for the water wells, but this is not important to the algorithm. Moreover, there were 2 variables called cluster1 and cluster2. Those variables came from the previous studies mentioned in Chapter 2: Justification and they are to know if a water well belongs to cluster 1 or cluster 2 of the results performed, but in this project, we will do another cluster classification, so it doesn’t need to have the same clusters. Step 2: Preprocess For the preprocess, we will do a type of transformation because the data when it is read, the format of some variables is a different type, so it is needed to continue working. Also, we will do descriptive statistics by doing a visualization of the data to see the distribution, the correlation between the variables, and if there are outliers. After that, we will transform the variables in an appropriate format and do a treatment or study to know what we can do with the outliers because some algorithms can negatively affect the performance. Finally, we will do a split of the data by year. We know that there aren’t missing values, so we won’t need to look for them. Step 3: Transformation We have categorical and numerical variables, but if we need to use categorical variables for the data mining algorithm in Step 4, we can do some treatment to the categorical variables to numerical variables. Step 4: Data mining In this step, we will use Hierarchical approach for the clustering algorithm. We will experiment to get the best results by changing the K value and metrics in general 17 and year by year. Also, we will select different representations of some variables to see if they have some changes in the results. Step 5: Interpretation and evaluation. The descriptive statistics and profiling will be used to know which profile has every cluster and how it has evolved over the years. CPG and TLP are used to visualize the clusters/groups results. Meetings To be sure we are going in a good direction, we will have weekly meetings with the director to guarantee the project’s development. 18 Chapter 2: Project planning This project started on September 12th, 2023. It will finish the experimentation at most on the 15th of December 2023 (98 days including weekends and festivities) and the documentation at most 14th of January, 2024 (128 days including weekends and festivities), but I will try to have it at most 30th December, 2023 (111 days including weekends and festivities). It will need about 478,33 hours, but the data collection was done before, so I will need to do 223 hours. It implies that, on average, between 223/128 = 1,75 hours approximately = 1 hour and 45 minutes and 223/111 = 2 hours approximately will need to be done on average every day. After that, the defense date is not decided, but I realize that will be the first date that can be done (between the 22nd and 26th of January 2024). 2.1 Task description I consider that we have 3 different groups of tasks: - One of the groups is the tasks done as project management. With that, the intention is to have, at the beginning, a clear vision of the project. - The other group is the main tasks, which consist of technical development. We are going to subdivide the tasks group once or twice to have small tasks and then, we will explain the bottom task level, do an estimation of the time needed, the things that need to be done to have a successful execution of the task and also a human profile that will do the task. T1 management tasks The management tasks will start as T1. T1.1 Introduction and contextualization Here I will need to redact the introduction and contextualization at the beginning of the project. For that, I will need a PC with internet access to search and redact the necessary information. T1.1.1 Introduction This will be the introduction to the project. To redact it I think that I will need 1 hour and 3 more to search for information about it (4 hours). T1.1.2 Important definitions Here I will add some important definitions that will be needed to get a better understanding of the project. It can take me about 2 hours to search for the information and 2 more to redact (4 hours) T1.1.3 Stakeholders Here I will add the stakeholders that are implied directly or indirectly in the project. To search for information about it, I will need 1 hour and 1 more to redact (2 hours). 19 T1.2 Justification In this task, the idea is to adapt an existing solution of another project to that and compare them. I will need a PC with internet access. I think it will take 4 hours to research similar projects, understand similar projects if they exist, compare them, and make the documentation. T1.3 Scope To make the scope, I will need a PC with internet access to make the documentation and search for information. We can subdivide into three subtasks: T1.3.1 Generic objectives and sub-objectives For the generic objectives and sub-objectives, I think it will take an hour to think about them, clarify them with the tutor, and write them. It can take over 2 hours T1.3.2 Functional and non-functional objectives For that, I need to research what are the definitions, and with knowledge of the project, make the redaction. I think 1 hour for functional and 1 hour for non-functional objectives can be done. T1.3.3 Risk and obstacles In this task, the idea is to think, define and write potential risks and obstacles that can happen to the project. With 2 hours it should be done. T1.4 Methodology and rigor To do it, we need to explain the theoretical methodology and adapt it to the project. To do it, I will need to search for information and redact the process. It can take me about 2 hours searching for information and 1 redacting (3 hours in total). T1.5 Project planning The planning can be subdivided into other subtasks: T1.5.1 Task description We will explain all the tasks and subtasks done in the project, the time estimation, and the things we will need to do. I suppose that 12 hours will be enough. T1.5.2 Summary table Make a summary table of all the tasks with the identifier, name, time estimated and resources needed, I think that 2 hours will be enough to recompile the information for the task description T1.5.3 Gantt diagram A Gantt diagram is needed for the planning during the time. To create it, I assume that it will take me about 2 hours. 20 T1.5.4 Risk management Get alternative plans or methodologies to affront the risks if they appear as obstacles. It can take me about 2 hours. T1.6 Economic management and sustainability T1.6.1 Identification and estimation of the costs Make documentation about what will be the costs of the project. It includes roles and searches the cost by hour for each one (2 hours) and computes the cost that will be needed (including contingency) (2 hours), make a summary table of the tasks to know what it needs (estimated hours and role needed with time) (2 hours). The material needed and his amortization and the computation of the incidental cost (2 hours). Including all the subtasks needed, it will take about 8 hours. T1.6.2 Sustainability report This consists of documenting the economic, environmental, and social aspects that we can subdivide into three tasks. For that, we need research to get information about the three aspects mentioned before (economic, environmental, and social) (2 hours), a reflection about that (1 hour), what is the impact of this project in each aspect, and redact (1 hour), so I think that with 4 hours for each aspect will be enough. T1.7 Meetings I will have meetings with my director to show him the progress and see if I am going in the right direction or if I need to change something. We are going to have weekly meetings every week starting the 15th of September 2023 to the 15th of December 15th (14 times during the project), with approximately 1 hour of duration for each meeting, so it will be 14 times but also. In total 14 meetings * 1 hour approximately = 14 hours approximately, but in the meeting will be my director and me, so it needs to compute the hours of us, so it will be 14*2 = 28 h. T2 Main tasks The tasks will be principally those explained in section 1.1.2 Data mining (KDD process), but we will add a time estimation and the things will need to be done for each task. This group of tasks will start with T2. T2.1 Data collection Compilation of the measures of all 36 water wells 1 time a year for 5 years was done by researchers of Margarita Island. Although I didn’t participate, I will have an estimation of the tasks, because they are imprescindible for the project. 21 T2.1.1 Taking measures To do the water quality measures, an expert will use the necessary instrumentation to take the measures of the subterranean water wells. Also, they will need an expert that once it is on the water well, by looking at the environment, can classify correctly the variables lithology, vegetation and land Use, and lodging. Due to the water wells being underground, I suppose that to do the measures of the water well they spent 1 hour for each one, so for all the 5 years and the 36 water wells, they spent 1*5*36 = 180 hours. T2.1.2 Transportation Transportation of the researchers to the 36 water wells. I don’t know how much time they spend, so I will try to overestimate with 1 hour to transport from 1 point to another which can be the starter point, the finish point, or a water well, because I don’t know the accessibility that can have the water wells, the velocity of the roads if they went with a vehicle or if they were to all the water wells in a day or a few days. To get a better estimation we can see the distribution of the water in the Island wells according to the location obtained in the database with latitude and longitude as shown in the following figure: Figure 3: water wells geolocalization (extracted from Python program, own elaboration) The time to go from the beach to the farthest water well is 1 hour and 15 minutes walking and 11 min by car by looking at Google Maps. Assuming the hour that they need to make the measurements, they will only do in 8 hours 6 water wells measured per day because they need to travel from one to another, and on the right side of the map there are a lot of water wells close (at most 10 minutes walking). So in a day, they will do 6 water wells and 10*6 = 60 minutes of walking travel from one water well to the closest water well. In total, they will do 7 hours and the last 1 hour is used if needed to go and return from the place that they meet to go to the water wells. they can do it for 24 water wells on the right side (24/6 * 8 = 32 hours) and the last 12 water wells I think can be done with 5 water wells by day (5 hours measuring) and with at most 20 minutes of travel to one water well to the closest non measured (5 * 20 = 100 minutes = 1 hour 40 minutes). 6 hours 40 minutes. 22 The remaining time of the 8 hours, I assume that the time to go from the place that they used to take the measuring instruments to the water wells. This will be done for 10 of the water wells remaining (16 h) and for the last 2 days, it will need 2 hours for the measurements, 20 minutes for travel from one water well to the other, and 1 hour to go from the place to take the instruments to the water wells (3 hours 20 minutes). Sumaring, It will need 36 hours of measurements and 32h + 16h + 3h 20 min - 36h = 15 h 20 minutes of traveling that 7 h can be in a vehicle and the rest walking. But this is for 1 year and the measurements were taken from 5. So, the total time needed for the transportation is (15 h 20 min) * 5 = 76 h 20 min, it is described as: - Using a car going and returning from the palace: 7 h*5 years = 35 hours. - Walking from one water well to another: 76 hours 20 min - 35 hours = 41 h 20 min. 7h * 5 = 35 hours that they keep the measurement instruments to a water well and 15 h 20 min - 7 = 8 h 20 min walking from one water well to another in a year. For the 5 years: 8h 20 min *5 = 41 h 40 min in the 5 years walking from one water well to another. T2.2 Data selection The objective of this task is to identify if a variable of the data collection doesn't provide any information to the study and if this is the case, omit it. In our case, there were 2 of them. Those variables were to mention in which cluster of the previous studies were well classified with a 1 if it were in cluster 1 or cluster 2 and 0 otherwise. They do not provide knowledge of the study because the clusters aren’t done yet, the water wells can have a different classification or the cluster can be different from 2. The estimated time I suppose is about 0,5 hours. T2.3 Preprocess T2.3.1 Type code rectification When importing the data into the program, every variable is read with a type, but sometimes, the type that the program induced can be different from the expected. For that, I assume that we can spend 1 hour. T2.3.2 Data visualization Do a general visualization and a visualization by years of the categorical and numerical variable statistics (correlations, distributions, outliers) by doing plots. The plots will be a univariate, bivariate plot for the numerical variables and the categorical variables (depending on the type of variables, we will need different plots), a boxplot of the numerical variables to know if there are outliers and a correlation matrix. Those plots will be done to know the statistics for general data and the same plots but changing the data splitting it by years. This task will take over 12 hours to remember which plot can be done for numerical variables and categorical variables, consulting the libraries of the plots and implementing them. T2.3.3 Outliers See if there are outliers. We should see the outliers for numerical data by plotting boxplots and then we should think about what to do with them. It should take about 1 hour to search for how to do the boxplot in Python, implement it, and execute it. 23 T2.4 Transformation In some cases, the models will need to be in a specific format to get better performance, so in this case, we will apply some techniques like one-hot encoding for categorical data and maybe standardize the data. It will take about 2 hours. T2.5 Data Mining/Experimentation To get some groups of similar water wells, we will apply a data mining algorithm based on the hierarchical approach (dendrograms). To get a better performance, we will experiment with the adjustments of K values inside the dendrogram. To do that, I will need a computer with JavaKlass to run the algorithm and take the data and statistics. T2.5.1 Adjusting the metrics To construct the tree (dendrogram), some different metrics possibilities can change the results. To get a better performance with the further steps, we are going to experiment with the distance (to evaluate similarity within individuals) and always use the Ward criterion. We will construct the dendrograms by using Euclidean distance if we have numerical variables only and try 3 possibilities: euclidean distance normalized by the typical deviation, normalized by range, or without normalization. If we use categorical and numerical variables, we will use only Gower distance because the Euclidean distance only works with numerical variables and Gower distance accepts numerical and also categorical variables. To estimate the time, we are going to see the method that requires more time than the other. It is working with only numerical variables, because we have to build more trees and time. Building a tree and saving the results can take me about 15 minutes for each one. But we have to do with general data and year by year, so it will be needed about 1*3 = 3 trees in general and 5 years * 1 tree/year 3 different metrics/tree = 15 trees with different metrics in year by year. So 15 + 3 = 18 trees * 15 minutes each one = 270 minutes = 4 hours and a half. T2.5.2 Adjusting K The process to adjust the K will be the following: 1. Generate the trees with the different metrics For each tree: 2. Evaluate what can be the best cut by looking at the tree and doing the cut. 3. Evaluate the results 4. If we don’t have results that make sense or we think that with more or fewer groups, the results will be better, return to step 2 without doing the same cut. 5. Once we have the definitive K value, obtain the statistics generated from JavaKlass that will be needed to make the profiling. To estimate that is a bit difficult because we don’t know how many iterations of the 2 to 4 step will be done. I will assume that different 2 cuts of each tree will be enough. The trees, to make the estimation, I assume that can be done with one or two iterations to get the optimal K. Also we will keep the data with the clusters with the definitive K value and metric. To make it I think that will be needed 15 minutes for each cut, so it will take me about 15*18*2 = 540 minutes = 9 hours. 24 Initially, I underestimated the tasks and it took me more time. Now, this planning is more adapted according to the time I spend on tasks that are done. Also, I separated interpretation and evaluation into clustering which corresponds to evaluation, and profiling which corresponds to interpretation because it is better separated. Finally, we add two sections to conclude the evolution during the years of the quality of water wells by plotting the trajectories of each one in the Trajectories section and a visualization of the initial state and last year state by looking at the wells in the map in Geographical trajectories section. 2.7 Budget To make a cost estimation of the project, I will explain in detail the cost of each task defined in section 2.1 Task description in the second deliverable and with the level of the Gantt diagram. Firstly, I will estimate the costs of the people that will work on it and then I will analyze the cost of the materials needed with the amortization. 2.7.1 Staff cost To estimate the cost needed for the people that are working on it, I will compute the time in hours that they will work according to the time estimation in the section 2.1 task description and I will see the average salary in Spain of the roles that the people have and multiplying the time of the role needed by the average salary of it. We can see the roles implied and a general description about the things that will be done in the project in Table 4. Role name Description Director (D) Will make decisions and give some feedback about the project Data scientist (DS) Will do the project Project manager (PM) Will make estimations of the project Researcher (R) Will take the measures of the water wells Table 4: Roles implied and general description, own elaboration To get an idea of the salaries I searched it on the internet. For this project, I assumed that the roles that I used were the average salary people with experience and not a junior who will have less salary than the average and this is what I will have. According to the asime association (https://asime.es/wp-content/uploads/2022/12/DISTRIBUCION-DE-LA-JORNADA-LABORAL -PARA-2023.pdf), I will compute the same estimation of the time in the year 2023, with 222 days of work with 8 hours each day (from Monday to Friday), it takes 1776 hours/year. To estimate the staff cost, I will calculate the average salary in hours, taking into account that I can search on the internet the average salary by year of each role, multiply it by 1,35 which will be 35% of the social security cost, and divide the result by the 1776 hours/year to take the cost/hour. This computation is done in the table 5: 31 - DS: https://es.talent.com/salary?job=analista+de+datos - D: https://es.indeed.com/career/director-de-proyecto/salaries - R: https://es.talent.com/es/salary?job=investigador - PM: https://es.talent.com/es/salary?job=gestor%20de%20proyectos Role name Annual Salary (€) Total including SS (€) Price per hour (€) Director (D) 45.783,00 61.807,05 34,80 Data scientist (DS) 23.307,00 31.464,45 17,72 Project manager (PM) 28.256,00 38.145,60 21,48 Researcher (R) 25.356,00 34.230,60 19,27 Table 5: Cost per hour by the roles implied in the project In Table 6, we can see the time that will be needed for each task with the cost of the tasks, only taking in mind the role and the time needed, according to the task estimation and the average salary of the roles in Spain. Task ID Task or task group Name estimated time (h) Role needed in hours Cost D PM DS R T1 Management tasks 71 T1.1 Introduction and contextualization 10 T1.1.1 Introduction 4 0,00 4,00 0,00 0,00 85,92 T1.1.2 Important definitions 4 1,00 0,00 3,00 0,00 87,96 T1.1.3 Stakeholders 2 0,00 2,00 0,00 0,00 42,96 T1.4 Justification 4 0,00 4,00 0,00 0,00 85,92 T1.5 Scope 5 T1.5.1 Generic objectives and sub-objectives 2 1,00 1,00 0,00 0,00 56,28 T1.5.2 Functional and non-functional objectives 1 0,00 1,00 0,00 0,00 21,48 T1.5.3 Risk and obstacles 2 0,00 2,00 0,00 0,00 42,96 T1.6 Methodology and rigor 3 1,00 0,00 2,00 0,00 70,24 T1.7 Project planning 18 T1.7.1 Task description 12 3,00 0,00 9,00 0,00 263,88 T1.7.2 Summary table 2 0,00 0,00 2,00 0,00 35,44 T1.7.3 Gantt diagram 2 0,00 0,00 2,00 0,00 35,44 32 T1.7.4 Risk management 2 0,00 2,00 0,00 0,00 42,96 T1.8 Economic management and sustainability 12 T1.8.1 Identification and estimation of the costs 8 0,00 8,00 0,00 0,00 171,84 T1.8.2 Sustainability report 4 0,00 4,00 0,00 0,00 85,92 T1.9 Meetings 28 28,00 0,00 28,00 0,00 1470,56 T2 Main tasks 354,33 T2.1 Data collection 255,33 T2.1.1 Physically measures 180 0,00 0,00 0,00 180,00 3468,6 T2.1.2 Transportation 76,33 0,00 0,00 0,00 76,33 1470,88 T2.2 Data selection 0,5 0,00 0,00 0,50 0,00 8,86 T2.3 Preprocess 15 T2.3.1 Type code rectification 1 0,00 0,00 1,00 0,00 17,72 T2.3.2 Data visualization 12 0,00 0,00 12,00 0,00 212,64 T2.3.3 Outliers 1 0,00 0,00 1,00 0,00 17,72 T2.4 Transformation 1 0,00 0,00 0,75 0,00 13,29 T2.5 Data Mining/Experimentation 13.5 T2.5.1 Adjusting the metrics 4.5 0,00 0,00 4,50 0,00 79,74 T2.5.2 Adjusting K 9 0,00 0,00 9,00 0,00 159,48 T2.6 Clustering 10 0,00 0,00 10,00 0,00 177,2 T2.7 Profiling 2 0,00 0,00 2,00 0,00 35,44 T2.8 Trajectories 3 0,00 0,00 3,00 0,00 53,16 T2.9 Geographical trajectories 2 0,00 0,00 2,00 0,00 35,44 T3 Documentation Task 53 T3.1 Document data collection 2 0,00 0,00 2,00 0,00 35,44 T3.2 Document data selection 1 0,00 0,00 1,00 0,00 17,72 T3.3 Document preprocess 8 0,00 0,00 8,00 0,00 141,76 T3.4 Document transformation 2 0,00 0,00 2,00 0,00 35,44 T3.5 Document data mining/experimentation 18 0,00 0,00 18,00 0,00 318,96 33 T3.6 Document clustering 8 0,00 0,00 8,00 0,00 141,76 T3.7 Document profiling 8 0,00 0,00 8,00 0,00 141,76 T3.8 Document trajectories 3 0,00 0,00 3,00 0,00 53,16 T3.9 Document geographical trajectories 3 0,00 0,00 3,00 0,00 53,16 Total Cost 9289,09 Table 6: Staff cost summary (own elaboration) 2.7.2 Generic costs 2.7.2.1 Amortizations 2.7.2.1.1 Hardware For the development of this project, we will use a laptop Lenovo Ideapad-330s. All the tasks can be done on this laptop except the transportation and physical measures. If another person needs to use a laptop, I will assume that it is the same laptop that I mentioned. If we see the total estimated time, the time spent on the tasks that need a laptop is 118 hours and a cost of 850 €. Amortization = 850/118 = 7,2€/h The researcher needed an instrument to measure the pH, NE, and CE, the costs are 200 €, 150, and 250 € respectively, with a use of 90/3 = 30 hours for each one. According to the time estimation to take the 3 physical measurements, the amortization is the next: pH measure instrument amortization = 200/30 = 6,67 €/h NE measure instrument amortization = 150/30 = 5 €/h CE measure instrument amortization = 250/30 = 8,33 €/h Also, the researcher needed a car to go to the water wells. The cost of an average car is 18.000€ and the time that the researcher used it was 180 h according to the time estimated, so: car amortization = 18000/180 = 100 €/h 2.7.2.1.2 Software The software used in this project is free, so, the amortization cost is 0. 2.7.2.2 Power consumption The laptop mentioned that we used has a consumption of 200 Wh = 0,2 kWh. As we said, the estimated time was 223 hours. Assuming that the electricity cost is the same all the days and that the electricity cost in mean that we have today is 0.1823 €/kWh: Electricity cost = 223 h * 0,2 kWh * 0,1823 €/kWh = 8,13 € in total 34 2.7.2.4 Transportation cost To go to the 36 water wells a car should be needed, so I will assume that the car will be a cost for the project. The car should take about 18.000 € but it can be 0 if the researcher uses his car. But I will assume that the car cost is for the project because if they want to make more measurements in the future, the car amortization will be higher. 2.7.2.3 Gasoline consumption As I said, the car will count as part of the project and it needs gasoline. Today, gasoline has a cost of 1,713 €/L. According to the estimation done in the 1.7.1 Task description, the task T2.1.2 Transportation, the time of transportation was 35 hours with a vehicle and 41 h 20 min walking. Assuming that the gasoline cost is the same as today and the car was traveling an average of 50 km/h. In one hour, it traveled 50 km, so the total travel was 50 * 35 = 1750 km. Assuming the car wastes 8 L of gasoline every 100 km on average. Gasoline cost = 1750 Km * 8 L gasoline /100 Km * 1,713€/L gasoline = 239,82 € in total. 2.7.2.5 IDEAI office We have an office of an external firm to meet once a week. This office will have the same cost if I go or not, so I will compute that the cost of the office is assumed by the IDEAI and not in our project because I go there to have meetings and not to do the whole project. 2.7.3 Contingency Due to possible deviations in the timing of the staff's work, a contingency percentage has to be defined to adapt the project's resources in the best possible way. To establish a contingency, by searching on the internet, I found that the research projects have a contingency between 10 % and 20 %. I will take the average contingency for this research project (15 %) and it will be computed as PCA multiplied by the stipulated value (9289,09*0,15 = 1393,36 €). 2.7.4 Incidental costs We have some risks and obstacles that we saw in the section 2.5 Risks and obstacles. That cost is not figured in the previous estimation, but it can affect. 2.7.4.1 Be ill This should not affect the cost, because in the time task estimation is computed an extra time to it. 2.7.4.2 Another pandemic This should not affect us, because the only thing that will change is that we don’t have the transportation cost because the other tasks can be done at home with or with online meetings, so the cost of electricity consumption will increase, but this cost is lower than the transportation cost to go to the meetings. 35 2.7.4.3 Laptop stop working If the laptop stop working, I will use my personal desktop computer, that I need to establish the working environment with the free software. This is not an extra cost, because I had it before the project. The only thing that could change is that the desktop computer consumes 20 w more than the other and it have a screen that should consume a bit more than the screen in the other pc. I will assume a 10 % more of the electricity consumption when the pc is repairing (0,8 € extra). For that I the cost will depend on the failure, so the most expensive case will be that can not work more, I should assume buy another of the pc (over 850 €). Table 7: table summarizing the Incidental costs (own elaboration) 2.7.5 Final budget Here I will put a summary table of all the concepts shown before to have a better vision of the project costs: Cost of: Cost (€) PCA 9289,09 Generic cost 19.697,95 Contingency 1393,36 Incidents 850,8 Total 31231,2 Table 8: Summary of the costs of the project (own elaboration) 2.7.6 Management control With the estimations of the time and cost, we can make an idea of the time and cost of the project, but the real project does not have to be the same, for some reasons (the time estimated is higher or lower than needed, the risks planned doesn’t happen or appears risks that we didn’t spect and it affects to the cost too). To have control over the time that the roles spend on each task when a role finishes a task, put the time he spends in a table of the task and the time they spend depending on the role, and also, when they use something, it could be a good idea making a list of the material used after the project, recompute all the costs (CPA, Generic cost, Contingency, incidental cost and risks). 36 Incident Risk (%) Cost (€) Be ill 50 0 Another pandemic 10 0 laptop stop working 30 850,8 2.8: Sustainability 2.8.1 Self-assessment Sustainability for me was a product that has a cost to produce, advantages to the population, and an impact on the environment. But reading the paper, it shows me that there are more aspects than this. All the ambits are higher than this. For example, not only in the social dimension is the interaction between the product and a single person, but there is a social impact that can affect all kinds of people including some minorities, and also can put jobs at risk. The cost of the project is not only the materials and the people implied, there are some risks and obstacles that can happen and you have to affront it with a cost. With the ambiental aspect, I know that all the materials implied in the project have an impact on the environment. Now I think that sustainability is important to do before a project to concentrate on and know the advantages and disadvantages of the three dimensions of sustainability. A good performance will try to have a balance between the economic and environmental impact and will try to make it fit well throughout society. 2.8.2 Economic dimension Previous questions Have you estimated the cost of undertaking the project (human and material resources)? Yes, I have. An estimation of the cost of the project is done. In section 2.1 we describe the tasks needed in the project, the material and human resources, and in section 2.7 Budget, there is a cost estimation. There were some deviations explained in the 2.6 section because the initial plan is not shown, but there we explained the modifications. How is the problem that you wish to address resolved currently (state of the art)? Water is a necessity for human life (personal consumption, agriculture, livestock, etc), but at this moment there is a scarcity of it. To get water, the Environmental Minister of Margarita wants to use water wells, but they need to control the water quality in every water well. The idea of this project is to take knowledge about the water quality of each water well with clustering techniques, grouping the water wells in groups of similar characteristics and see its evolution over the years. In what ways will your solution economically improve existing solutions? There are some similar studies to control the water quality with exit, and we are applying similar methodologies. This study will perform economic benefits because, in the future years, it will not need to take all the measures in the 36 water wells to have control of the water quality, because with only 2 or 3 measures of the most representative water wells in the same group will be enough. 37 After all, according to the clustering definition, the members of this group of data will have similar characteristics in each group and different characteristics with the other water wells, so the water wells in the same members of the group will have a similar tendency or pattern. It implies that in the future, fewer measures can be taken, so it will cost less. Final questions Have you quantified the cost (human and material resources) of undertaking the project? What decisions have you taken to reduce the cost? Have you quantified these savings? Yes, an estimation of the cost of the project is done. In section 2.1 we describe the tasks needed in the project, the material and human resources, and in section 2.7 Budget, there is a cost estimation. Any decision to reduce the cost is done, because we tried to use only the necessary without wasting resources. Is the expected cost similar to the final cost? Have you justified any differences (lessons learnt)? In the initial planning, I underestimated the time of the tasks and, some of them did not appear. So the final cost increases a little. On the other hand, contingencies would not be necessary to consider, because they were all done more or less without expecting any risk. In general, the costs are more or less the same if we do not consider the unforeseen part. What cost do you estimate the project will have during its useful life? Could this cost be reduced to increase viability? This project will allow fewer measurements to be taken to take control of the water wells in the Pedro González population. So if necessary, they can make some changes. I have no idea how long the cluster trends will last, but I hope it will be many years if don't happen any rare thing as it can be natural disasters or water contamination by humans because in 5 years they have had a certain stability, therefore, they should continue like this. Have you considered the cost of adaptations/updates/repairs during the useful life of the project? No, the study is done, and if with the pass of time, the tendencies change, it will be needed to make another study. Also, I encourage training a model to predict the water quality of the wells in the future and see if it has good performance. Could situations occur that are detrimental to the project’s viability? Yes, as I mentioned in other questions, we have been working with the stability of the 5 years with normal conditions. But it can be affected in the future if humans contaminate the water or a natural disaster occurs. 2.8.3 environmental dimension Previous questions Have you estimated the environmental impact of undertaking the project? Have you considered how to minimize the impact, for example by reusing resources? 38 In this project, the environmental impact is not estimated. Nevertheless, we don’t waste resources, but it has gasoline consumption to transport the researcher and electricity consumption because we will use laptops for the rest of the project and the environmental cost of building the IDEAI office and the car, and also, the environmental cost of building the rest of instruments used like the laptop or the measuring instruments. How is the problem that you wish to address resolved currently (state of the art)? In what ways will your solution environmentally improve existing solutions? With the reduction of measuring fewer water wells than before, the transportation and measuring instruments will be less, so the toxic gasses resulting from burning gasoline to feed the car motor will be less. Furthermore, as the car and measuring instruments are used less, their wear should be less and therefore it is assumed that they should last longer, so the environmental impact of manufacturing another car or instrument will be less. Final questions Have you quantified the environmental impact of undertaking the project? What measures have you taken to reduce the impact? Have you quantified this reduction? As I answered before, in this project, the environmental impact is not estimated. But we are only using the necessary things to do the project. If you carried out the project again, could you use fewer resources? As a research project, I think we will carry on as before, doing experimentations and obtaining the information. The only thing that can be modified is the experiments with the cuts, following the expert decisions and not trying to justify them by looking at all the other possibilities and making the same conclusion. What resources do you estimate will be used during the useful life of the project? What will be the environmental impact of these resources? As a research project that is only creating knowledge about the quality of the water wells, I think that it will only be useful to know the water quality in the present, and make some decisions about what they can do. But, for example, they can take fewer measures, because they know the tendencies and by taking for example 2 or 3 water wells of each cluster and maybe making a look to the outliers if a cluster will be enough, because with the first measures they can make an idea of the general tendency of the cluster and see if it changed or not, and taking a look to the wells that are outliers because it has more possibilities to do not follow the general tendency. Will the project enable a reduction in the use of other resources? Overall, does the use of the project improve or worsen the ecological footprint? As I mentioned in the last question, they will need fewer measures to take future control of the water quality. It implies that if the instrumentation is less used, his life will be longer. Also, the necessities of the persons that will do the measurements, will be less (like less gasoline for transportation implies less toxic gases). If the measurements are done for years, the ecological footprint will have a moment that the savings will be higher than the needed for the project. 39 Could situations occur that could increase the project’s ecological footprint? As a research project, we now know the water wells trends. But it may happen that, for some reason, the measurements obtained do not resemble those of the cluster trend. It will be necessary to do another study of the cluster or the complete wells. But this is more difficult to happen because we have had stability for about 5 years, and it will be necessary for something strange to happen for significant modifications to occur, such as the population contaminating the well or any natural disaster. 2.8.4 Social dimension Previous questions What do you think undertaking the project has contributed to you personally? I think that trying to fight water scarcity is a good idea, because water always was needed for consumption or human uses, and now, with climate change and other phenomena, the water warehouse has less water than before, so, there exists a general water scarcity. In this project, we are trying to take control of the water quality to use, in the future, natural reservoirs of water to fight the water scarcity in Margarita Island. How is the problem that you wish to address resolved currently (state of the art)? In what ways will your solution socially improve (quality of life) existing? Is there a real need for the project? As I mentioned in the other questions, there is water scarcity in Margarita Island. With this project, we are trying to get some knowledge about the water quality of 36 water wells in Margarita Island to deliver it to an expert who will have some theoretical bases to perform control and make some improvements to the water quality of the wells. With a good performance, the people of the municipality Pedro Gonzalez of Margarita’s Island will use the water wells for his consumption and have less scarcity of the water. Final questions Has undertaking this project led to meaningful reflections at the personal, professional or ethical level among the people involved? Doing the sustainability analysis made me realize the impact of many things that I didn't even consider before. Who will benefit from the use of the project? Could any group be adversely affected by the project? To what extent? The main indirect beneficiaries will be the population of Pedro González in Margarita Island, Venezuela, because in this project we will know the general tendencies of the quality in water wells, that the Environment Ministry of Margarita Island with the finality to give water of the wells to the population of Pedro González because they have water scarcity. To what extent does the project solve the problem that was established initially? In this project, we are only obtaining the general tendencies about the water wells and giving them to the experts (Environment Ministry of Margarita Island). But the real problem that they have is the water scarcity. With this knowledge, the experts can use it to determine if they can use the water and, if it is possible, give it to the population of Pedro González. 40 3.3.2.2 Year by Year With the year-by-year representation, we are trying to see the water quality evolution of the wells. To see the differences, we are going to do histograms and boxplots of the variables but with the data split in years with different colors for each one as it indicates his respective legend. To see the distribution about the numerical variables, we are doing a histogram representation: Figure 18: DIstance to the sea, Altitude and Slope histogram Year by year (own elaboration) Figure 19: CE and Medium Temperature histogram Year by year (own elaboration) Figure 20: pH and NE histogram Year by year (own elaboration) 47 There are different colors assigned to different years, as we can see in the legend. However, some variables only appear in one color. This is because in all the years, it has the same values and, when it is printed, the colors are superposed and the fusion of all of them makes the unique brown-gray color. We can see it in the Distance to the sea, Altitude, and Slope because during the years, those variables depended on the position of the water well and they didn’t move. The rest of the variables plotted, as we can see, have some changes, because we can appreciate all the different colors of the legend. So, we can compare the changes. But before it, we have to see in the right plot of Figure 19, that medium temperature over the years is more or less the same (between 28.1 and 28.8 ºC). We will assume that it doesn’t make a significant change and we will consider the medium temperature as a constant value during the years. To make the comparison between the years, I made a table for each variable, that, for each year, has a description of the distribution and then, a comparison between the last years. NE Year Description Comparing the actual year vs last years 0 It follows a normal distribution with the peak in 14 - 1 It looks like an exponential distribution The values were lower than the last year 2 The distribution was more displaced to the left middle with two normals, The distribution was more displaced to the left middle with two normals, so, in general, some of the wells that had low values were displaced to the right and some of the higher values were a little bit lower. 3 It follows a normal distribution with the peak in 11 The general tendency is to decrease and increase with lower or higher values than 11 respectively 4 It looks like a log-normal distribution with the peak between the 6 and 14 The tendency is to concentrate in those values, so the lower than 6 increased and the higher than 14 decreased Table 9: NE comparison between years (own elaboration) For CE, in general, all the years have a kind of outlier (values higher than 5), the year 0 has 2 more and the rest 2. 48 CE Year Description Comparing the actual year vs last years 0 All the values are concentrated between 1 and 3, with higher values when ascending. Some values are under 1 and a little bit over 4 - 1 Has values between 1 and 3, but more concentrated between 1 and 2, so the lower values increase a bit, but in general, the rest of the values decrease a bit. The tendency is the same: the lower values (under 2) increase, and the higher values (over 2) decreases. 2 The majority of the values are between 1.5 to 3. there is a peak in 1.5-2 and is uniform between 2 and 3 The tendency is to be more compacted (between 1.5 and 3). So, the lower values than 1.5 increases and the higher than 3 decreased 3 It follows a normal distribution with the peak in 2.3. In general, the tendency is to decrease for the higher values (over 2.3) and increase for the lower values (under 2.3). 4 It follows a log-normal distribution between 1 to 3 with a peak in 1.8, but with a little value in 3.4. The general tendency is to increase with lower values than 1.8 and decrease with higher values than 1.8, except for the little values over 3.2 maybe the values increase or decrease. Table 10: year by year CE comparative PH Year Description Comparing the actual year vs last years 0 There is a concentration of values between 7.1 and 7.6 and some values under 7 - 1 It follows a log-normal distribution over the values 7.25 to 8.75 The values increase significantly over 0,5 points concerning the year 0. 2 It follows a normal distribution between 6.75 and 8 with a peak in 7.4 All the values decrease from respect year 1 significantly and respect year 0 3 The values are from 7.3 to 8.75, but the data are more or less uniform with a bit more values over 7.3 to 7.75 than in the other higher values In general, all the values increase, especially if we compare the years 0 and 2. 4 It follows a normal distribution between the values 7 and 8, with the peak in 7.5 In general the lower values than the peak (7.5 increases) and higher values than 7.5 decreases. Table 11: year by year pH comparative 49 The Medium Temperature are more or less the same because they defer over 0.7 from the maximum one to the lowest. We will assume that it doesn’t make a significant change and we will consider the medium temperature as a constant value during the years To see the outliers, median and deviation, we will see the boxplots of the variables that have significant changes: Figure 21: CE and pH boxplot of every year Figure 22: NE and Medium Temperature boxplot of every year As we can see in the figure 22, the Medium temperature only changes 0,7 ºC at most, so we will consider that it is a constant value. As we can see in Figure 21 and 22 the boxplots agree with histogram distribution. Also, excepting Medium Temperature, all the variables have outliers in every year, The mean and variance in the NE and CE variables changes a bit and in the pH it varies a more. 50 Figure 23: Correlation matrix of the starting year (year 0) Figure 24: Correlation matrix of the last year (year 4) The Figure 23 and 24 are only the first and last year matrix correlation, but in the program dataVisualization.ipynb, we can see the 5 correlation matrix (one for each year). 51 Year Value CE with Distance to the sea Value NE with Distance to the sea Value NE and longitude 0 -0.40 0.65 0.61 1 -0.53 0.67 0.62 2 -0.56 0.72 0.69 3 -0.49 0.65 0.67 4 -0.71 0.64 0.57 Table 12: summary table of the relevant correlations with year by year data (own elaboration) By looking at the 5 correlation matrices on dataVisualization.ipynb program, I did the Table 12. There appears the most significant correlation between variables (higher than 0,5 in absolute value). As we can see, we have that CE and NE are correlated with Distance to the sea and NE with longitude. All those correlations are higher than 0.5 in all the years, except CE with distance to the sea, which are -0,4 and -0,49 in the years 0 and 3 respectively. I keep it because those are values close to 0.5, we can appreciate a higher inverse correlation (-0,71) in year 4, and in the general correlation matrix, it appeared with -0,53, which is a significant correlation. 3.2.3 Comparing general vs year by year Finally, to conclude the numerical visualization, we will compare the data by years with the general data for each variable. Figure 25: General and Year by Year CE histograms As we can see in Figure 25, all the years follow more or less the same normal distribution as in the general, but it is a little bit displaced to the right or the left depending on the year. 52 Figure 26: General and Year by Year NE histograms As we can see in Figure 26, the general distribution is a mix of an exponential and a normal distribution. It is more visible in the year by year distribution because year 1 follows an exponential distribution and the rest of the years, are more similar to a normal distribution with the peak over 11 more displaced to the left or the right depending on the year with the difference that in the year 4 is log-normal with the peak over 9 and the year 2 that has two normals (one with the peak over 10 and the other over 30). Figure 27: General and Year by Year pH histograms As we can see in the general plot, the values follow a normal distribution. If we have a look at the year by year, we can see that they follow a normal or log-normal distribution with a peak over 7.5. Now let’s see the variance, deviation, and media better with boxplots. On the left side will have the year by year boxplots and on the right side the general boxplot of the corresponding variables: 53 Figure 28: CE comparative between general and year by year As we can see, the general media is over 2.3, and year by year media is more or less the same. In years 1, 2, and 4, the media is a little bit below, and in years 2 and 3 a little bit higher. Also, we can see that the variance is reduced year by year than in general, especially in year 3. All the years have outliers. Figure 29: PH comparative between general and year by year As we can see in Figure 29, the tendency of NE is more or less constant, because the median doesn’t have significant changes, it is more or less as the general median. The variance decreased in all the years except in the last one, which increased a bit the Q1 and Q3. 54 Figure 30: PH comparative between general and year by year As we can see in Figure 30, the tendency of the pH over the years is to increase. Also, we can see that the mean and the variance aren’t more or less the same as we saw before. Now it is variating more. In addition, the mean of the years 0 and 2 are lower than the general median. The years 3 are higher and the year 1 and 4 are very similar to the general mean. 3.2.4 Outlyer treatment As we saw in Figures 21 and 22, the variables CE, NE, and pH have outliers because we can see points out of the whiskers. Each point represents an outlier. It is important to know if there are because it can affect the data mining algorithm. In our case, the data mining algorithm includes centroids for each class/cluster. The values of the centroid are the mean of the group. Due to the mean being sensitive to outliers, they will affect the results by increasing or decreasing them significantly, depending if it is higher or lower than the values between the whiskers. There are some processes to treat outliers, but this is by doing some modifications only to them or removing them. The problem with doing that is that we are modifying the data of the real values that can appear in real life, so, if we modify them, we are manipulating the data and the results. Consequently, the knowledge of the manipulated data can be wrong because it is not needed to coincide with the real knowledge of the real data. 3.3.2.2 Categorical variables There are 3 categorical variables as explained in section 1.2.5 Metadata. To do the data visualization of the categorical variables we will use pieplots. With that we can see the percentage of the labels that appear in all the water wells. 55 3.3.2.2.1 General visualization Figure 31: General Lithology and Lodging pieChart Figure 32: General Vegetation and Land use pieChart As we can see in the pie charts of Figures 31 and 32, Lithology and Lodging only have 4 different labels and one of them corresponds to the majority of the data, with 72,22 % of the total. Its labels are Arenas and No respectively. Concerning the Vegetation and land use, 10 different values can be taken and the most higher values are ZAgroUrb with almost half of the whole data (47,22 %), then MatRal with 19,44 %, after that CenProTrad with 11,48%, MatDens with 5,56% and the rest with a 2,78%. We don’t have an equal distribution of the labels. 56 Table 13: stats cutting the dendrogram with k = 4, euclidean distance and without normalization Table 14: stats cutting the dendrogram with k = 5, euclidean distance and without normalization As we can see in Tables 13 and 14, the differences are that in Table 13, the cluster C175 is divided into C174 and C160 of Table 14. If we compare them, we can see that the CE is with a difference of 0,995 in the media and with less deviation than before. With NE, the media remains similar in cluster C174 and has a significant change in C160 with 45,61 - 29 = 16,61 meters of difference, also, the deviation increased a bit, but still is a big difference. Finally, the pH is similar. Also, as we can see that with K = 5 we obtain more precision than with 4, it doesn’t make sense to try to see the results with a cut less than 4, because we will obtain the same conclusion. We will cut in the parts where the parent is at a high distance from his children. We will do it because the distance is a measure of the similarity between the groups. With higher distances they should be more different and with lower distances they should be more similar. In addition, we don’t want to take one water well for each group. We have to strike a balance. Also, we did it with the other metrics and compared them, and we obtained better results. 63 3.6.2 Year by year clustering For the year by year clustering, we decided the better cut for each year without normalization, by looking at the dendrograms shown in Figures 39 to 43 that corresponds to the years 1 to 5. According to the expert, the cuts are those shown in the following table: Year 1 Year 2 Year 3 Year 4 Year 5 Best cut 5 5 4 4 5 Table 15: Best cuts for every year 3.7 Profiling In this section, we will try to get the general tendencies or patterns of the clusters. To do it, we will see the general levels that the water quality variables can have, a CPG to know if the wells have different values depending on the cluster or not, the statistics of each cluster and a TLP that uses different colors for each cluster and water quality variable, depending on the ranges, according to the quality levels. With that, we will be able to take some patterns or tendencies about the clusters. 3.7.1 Interpretation of the data quality For the profiling, we have to know the meaning about the quality of the water to do a good interpretation of the data. Those variables are CE, NE and pH. According to Conti D. and Gibert K, 2014. “Discovering…”, it have the following ranges: -CE: values ranging from 0 mS/cm to 1.2 mS/cm guarantee drinkable water; from 1.2 to 2.5 mS/cm indicate suitable domestic uses (non drinkable); more than 2.5 mS/cm indicates polluted water or sea water. -NE: NE longer than 20 meters is associated with low potential supply wells; NE from 5 to 20 meters indicates risky wells; NE shorter than 5 meters corresponds to optimal wells, i.e., appropriated to good supply levels. -Ph: commonly drinkable water has values from 6.5 to 8. 3.7.2 General profiling 3.7.2.1 CPG To take the knowledge of the clusters, we will use 2 different post-processing techniques. The first one will be to know if there will be a good differentiation between the clusters by looking at his boxplots with the Class Panel Graph: Figure 44: Class panel Graph (CPG) for the relevant variables. 64 As we can see in Figure 44, the NE has a clear differentiation about the data, because it has different ranges in all the clusters. Also, CE has a small differentiation in the distribution, especially C160 with the rest. Longitude differentiates cluster C148 from the rest and latitude has small variations. But Year and pH are so similar between the clusters. These values were validated with a statistical test called the Kuskal-Wallis test to see if the variables are discriminant to differentiate the obtained clusters. Kruskal-Wallis is a non-parametric method for testing whether samples originate from the same distribution. After computing a statistic (H), we suppose that the null hypothesis or H0 means that the media of the variables are the same in all the classes, so, it won’t be a discriminant. We also can have an alternative hypothesis (Ha). It means that at least one mean of a variable is different from the rest (slides from data mining subject). By using a p-value of 5%, we can see for each variable if it is relevant or not. If the p-value is higher than 0.05 we will have the null hypothesis (H0), otherwise, we will discard the H0 and accept the Ha. We can see the results in the Table 16: Variable p-value Kruskal-Wallis Test Decision CE 5.35 e-08 Discriminant Variable. Keep it to analyze profiles NE 2.12 e-15 Discriminant Variable. Keep it to analyze profiles Latitude 2.12 e-15 Discriminant Variable. Keep it to analyze profiles Longitude 1.98 e-16 Discriminant Variable. Keep it to analyze profiles pH 0.20 Not a Discriminant Variable. Do not use in profiling results Year 0.35 Not a Discriminant Variable. Do not use in profiling results Table 16: Decision of each variable with the p-value when doing Kruskal-Wallis Test As we can see in Table 16, the results of the Kruskal-Wallis method show that CE, NE, Latitude, and Longitude are discriminant variables. In other words, these variables have differences between the classes, so they are important to describe (getting profiles) within the classes/clusters. The variable pH remains almost the same in all clusters, so it is not important to discriminate between the clusters obtained in all the experiments performed in this research. Here is an example of p-values obtained for the overall clustering described in this section. Furthermore, this method was also done in the year by year with similar results. 3.7.2.2 Statistics and TLP To have a better knowledge of the clusters, we have statistics about the clusters in Table 14. There we can see the media, median, typical deviation, etc. This will be useful to know about the general tendency of each cluster. Now, we can make a TLP by looking, for each cluster and water quality variable, his median and assign a color according to the indicators of the 3.7.1 section. We chose the median instead of the media because it is a statistic that is less affected by the outliers 65 Cluster CE NE pH C148 C170 C174 C169 C160 Figure 45: general TLP We can see in Figure 45 the resulting TLP. The meaning of the colors are the following: CE: - Intense red: Salty or contaminated water - Light red: Slightly saline water with the possibility of domestic use - Yellow: Domestic use NE: - Red: Depending on the intensity of the red, will be very dry with intense red, dry with the middle red, or moderated risk to be dry with light red. - Yellow: well at risk to be dry - Green: well full of water pH: - Green: water that is in the commonly drinkable water With that information, we know the tendency of each cluster as we can see in the following table: Cluster Description C148 The well is full of salty or contaminated water C170 Slightly saline water with possibility of domestic use and in risk to be dry C174 The well is dry, but his water can be for domestic use C169 The well has moderated risk to be dry and this water can be for domestic use C160 The well is very dry and the water that it have can be for domestic use Table 17: Tendencies or patterns of the clusters with all years We can see the extended profiling to get the mean of the rest of numerical variables and top 3 Label to the rest of categorical variables as following: 66 Table 18: profiling with the rest of numerical variables Table 19: profiling with the rest of categorical variables As we can see in Tables 19 and 20, the worst cluster (C148), we can see that the altitude and the slope is lower than the rest and also is the closest to the sea with 0.92 km rather than 2.34 km or more. Also in Lodging, the rest of the clusters are principally with No Label, but this one has more Resorts than No. Concerning vegetation and land use they are usually with ZAgroUrb and bush, but C148 has all except SuDesDef. Those include different bushes and other areas influenced by human activities (Zagro, ZAgroUrb, Ztur, and CenPoTrad). The rest of the variables are more or less the same. 3.7.3 Year by year profiling 3.7.3.1 CPGs Figure 46: CPG Year 1 Figure 47: CPG Year 2 67 Figure 48: CPG Year 3 Figure 49: CPG Year 4 Figure 50: CPG Year 5 As we can see in Figures 46 to 50, which corresponds to the Class Panel Graphs (CPG) of the years 1 to 5 respectively, the NE has a clear distinction of each cluster because no plot overlaps another. CE and latitude have changes in the clusters especially in the years 2 and 5 longitude has significant changes in years 3 and 5. So, we have variables that can help to distinguish the meanings of the clusters. 3.7.3.2 Statistics Table 20: Statistics of the year 1 68 Table 21: Statistics of the year 2 Table 22: Statistics of the year 3 Table 23: Statistics of the year 4 69 Table 24: Statistics of the year 5 As we can see in Tables 20-24, there are the statistics of the centroid of the clusters, which indicates the mean, media, deviation, and others. This will be useful to make the TLP. 3.7.3.3 TLP To build the TLP for all the years, I made a TLP table for each year by looking at the media of Tables 19-23 and the water indicators explained in section 3.7.1 and then, I made the following general table by using each TLP and put the colors in the corresponding year and water well:: ID Y1 Y2 Y3 Y4 Y5 CE NE pH CE NE pH CE NE pH CE NE pH CE NE pH P01 P02 P03 P04 P05 P06 P07 P08 P09 P10 P11 P12 P13 P14 70 P15 P16 P17 P18 P19 P20 P21 P22 P23 P24 P25 P26 P27 P28 P29 P30 P31 P32 P33 P34 P35 P36 Table 25: compilation of the year by year TLP to make it general The meaning of the colors is the same as in the 3.7.2.2 section of the general data, but now, we have one extra in CE. This is the orange, which means that it is for domestic use but with little possibility of being salty or contaminated. This is because if we have a look at the statistics, the media and median of CE is close to 2.5 and under. A very good example is seen in Table 23 which corresponds to year 4, where the median is 2.45. It is so close to 2.5 and it has a deviation of 0.78 approximately, so if we have a look at his mean, it is 2.625. it means that the values will be in [2.625 - 0.78, 2.625 + 0.78] = [1.845, 3,405]. We have that the values of CE will be, according to the indicators of the 3.7.1 section, domestic use or salty/contaminated. In this case, the median is under 2,5 (2,455). It is less affected by the outliers and it means that half of the data have a value of 2,455 or under it. Also, it is lower than the media, so it indicates that there are outliers with higher CE. Finally, the orange color in CE means that at least half of the wells will be in domestic use and the rest in salty or contaminated water, which in other words can be domestic use with possibilities to be salty or contaminated water. Something similar happens with NE. That means that at least half of 71 the water wells will be at risk of being dry and the rest will be dry, in other words, the wells will be at risk of being dry but with the possibility to be dry. 3.8 Trajectories 3.8.1 Deciding the general or year by year profiling In this section, we will try to see the evolution of the water wells during the years. To do that, we can use two different TLP, one obtained when doing the general profiling or year by year. To compare them, I summarized the TLP of Table 25 which corresponds to the year by year to build a table of the different classes that every water well can have in a year. By looking at the Table 25 and distinguishing the different colors obtained, I made the following table: Clases Class number CE NE pH 1 2 3 4 5 6 7 8 9 10 11 Table 26: different classes in Year by Year TLP Also, we can summarize it in Figure 45, which is the TLP of the general data. We will obtain it by mixing clusters of the Year by Year: - C148 class 1 and 3 - C170: class 2 and 11 - C174: class 4 and 8 - C169: class 9, 10, 5 and 6 - C160: class 7 72 5. References Laws and regulations of the degree final project FIB UPC, 2020 (last look at 7/12/23). https://www.fib.upc.edu/en/studies/bachelors-degrees/bachelor-degree-informatics-engineeri ng/degree-final-project. Amjad el Baba (Aug 4, 2021) K Means Clustering in a Straightforward Explanation: https://medium.com/@amjadelbaba/k-means-clustering-in-a-straightforward-explanation-f87 8c71770a Conti D., Gibert K. (2008) Discovering Comprehensible Hydrogeological Profiles in the Margarita Island’s Aquifers including Post-processing in a data mining process Gibert K., Conti D., Arregui I. (2012) Open data and experimental data source combination’s impact on underground water analysis in Isla Margarita - Venezuela B. Akin, T. Atici, H. Katircioglu, and F. Keskin, Investigation of water quality on Gokcekaya dam lake using multivariate statistical analysis Environ Earth Sci, vol. 63, pp. 1251-1261, 2011. I.Yeung, Multivariate analysis of the Hong Kong Victoria harbor water quality data Environmental Monitoring and Assessment, vol. 59, pp. 331-342, 1999. K. Gibert, D. Conti, and D. Vrecko, “Assisting the end-user in the interpretation of profiles for decision support: an application to wastewater treatment plants Environmental Engineering and Management Journal , vol. 11 (5), pp. 931-944, 2012 Data Mining slides (subject in the FIB) https://www-eio.upc.edu/teaching/DocenciaMultivariant/GEI/ Unir university (2021). Clustering: qué es y cuál es su uso en Big Data. https://www.unir.net/ingenieria/revista/clustering/ Broadcom (May 22, 2023) Broadcom documentation Traffic Light Panel: https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-d ashboards/SaaS/Introduction-to-DX-Dashboards-UI/New-Dashboard---Edit-Panel/Panel-Plu gins/Traffic-Light-Panel.html “Distribución de la jornada laboral 2023” for the secion 6.1 Staff cost https://asime.es/wp-content/uploads/2022/12/DISTRIBUCION-DE-LA-JORNADA-LABORAL- PARA-2023.pdf Resource of the average salary in Spain for researcher for the table 5, data scientist and project manager is the talent is https://es.talent.com/salary, finding the role in spanish Resource of the average salary in Spain for project director for the table 5 is https://es.indeed.com/career/director-de-proyecto/salaries 79 Asime journal distribution, that was take in reference to know the total amount of hour in this year for the computation of the cost by hour of each role in Table 5 https://asime.es/wp-content/uploads/2022/12/DISTRIBUCION-DE-LA-JORNADA-LABORAL- PARA-2023.pdf) Conti D. & Gibert K., 2014. Discovering Comprehensible Hydrogeological Profiles in the Margarita Island’s Aquifers from Data Mining approach including Post-processing Hierarchial Clustering article published in LearnDataSci published in 2024 by a Professor of Computer Engineering called Fatih Karabiber. https://www.learndatasci.com/glossary/hierarchical-clustering/ 80 6. Annexes All the code used in this project for the 3.3 Preprocess section will be attached in this section. If someone wants to remake it with Google Collab, the only thing that can be modified is the absolute path of the data. They have to upload the data in their drive and then put the path to the downloaded data. After that, the only thing that can be done is execute all the cells. It can also have a look at the last execution in the following links for the collabs: - Link to the original data: https://drive.google.com/file/d/1V8KqwsONNL42j8yuvATpDwZXruxaEHVh/view?usp =drive_link - Link to the data after section 3.2 Data selection: https://drive.google.com/file/d/1iN7gn8KFWG3CAZdFMsFI4YBhtYAER2m_/view?usp =drive_link - Collab of the preprocess and visualization. From there were obtained the pictures 3.3 Preprocess of the type code rectification and data visualization. https://drive.google.com/file/d/1up5fD2IUMTQBRCOZzIX43tiEVoRslBx6/view?usp=dr ive_link - Kruskal-Wallis code used with all the wells in Table 16 and the year by year that is not shown: https://www-eio.upc.edu/teaching/DocenciaMultivariant/refmaterial/labos/3Profiling/Pr ofilingCleanRevisitedIncludingDates.R - Link to the Coolab to make the picture of the Figure 3 https://colab.research.google.com/drive/1ljBjYp0kEdmd_4wqgTk3yS0MoOH718TR?u sp=drive_link 81