scieee AI-readable full text Open interactive document viewer

Using Genetic Algorithms for Attribute Grouping in Multivariate Microaggregation

BaIasch i Masoliver, Jordi

Full text

Tftol: Using Genetic Algorithms for Attribute Grouping in Multivariate Microaggregation Volum: 1 Alumne: lordi BaIasch i Masoliver Director/Ponent: Victor Muntés Mulero Departament: Arquitectura de Computadors Data: 29 de gener de 2010 Facultat d'Informittica de Barcelona Universitat Politecnica de Catalunya PROJEeTE FINAL DE CARRERA U sing Genetic AIgorithms for Attribute Grouping in M ultivariate Microaggregation Alumne: Director: Jordi Balasch i Masoliver Victor Muntés Mulero 2 Acknowledgements Foremost, I would like to thank my daily supervisors Victor Muntés and Jordi Nin for their support and guidance during the development of this project. Without their help, this thesis would have not been possible. Also my gratitude to Josep LluÍs Larriba for giving me the opportunity to develop the project at the DAMA-UPC research group. I would also want to thank the people from the CRISES research group of the Universitat Rovira i Virgili for providing useful source code of several quality measures for protected microdata. Very special thanks to Joan Guisado, Arnau Prat and David Dominguez for making my work enjoyable during this year. Last but not least, to my parents, my brother and Laia for their love, support and encouragement. ii Contents Acknowledgments Contents List of Figures List of Tables 1 Introduction 1.1 Motivation 1.2 Basic Concepts: Anonymization . 1.3 Goals ....... . 1.4 Document Structure 2 Preliminaries 2.1 Microaggregation ........... . 2.1.1 MDAV Algorithm ...... . 2.1.2 Multivariate Microaggregation 2.2 Evolutionary Algorithms . . . . . . . . 2.2.1 The Grouping Genetic Algorithm . 3 GOMM: Genetic Optimizer for Multivariate Microaggrega- i iv vi vii 1 2 3 6 7 9 9 10 11 13 16 tion 19 3.1 Methodology .. . 19 3.2 Encoding ..... 20 3.3 The Cost Function 22 3.4 Genetic Operations . 25 3.4.1 Crossover 25 3.4.2 Mutations .. 26 3.4.3 Selection .. 29 3.5 Performance Analysis 30 iii 4 GOMM Analysis 4.1 Testing Scenario 4.2 Utilization .... 4.3 Average Lifetime 4.4 Efficacy . . . . . 4.5 Efficiency . . . . 4.6 Best Cost Evolution 4.7 Conclusions of the Analysis 5 Experimental Results 5.1 Solution Validation . 5.2 Solution Quality .. 5.3 Performance Results 6 Economic Analysis and Project Schedule 6.1 Project Schedule 6.2 Project Costs ............... . 7 Conclusions 7.1 Conclusions ..... 7.2 Personal conclusions 7.3 Future work ..... A Hand-made Attribute Groupings A.1 Census dataset ..... . A.2 Water-treatment dataset . B Extended Analysis B.1 Census Dataset with k = 25 . B.2 Water-treatment Dataset with k = 100 . Bibliography iv 33 33 34 38 41 45 49 51 53 53 54 56 59 59 61 65 65 66 66 67 67 68 69 70 74 80 List of Figures 1.1 Microdata anonymization process. ...... 4 2.1 Clusters generated by the MDAV algorithm. . 10 3.1 Parts of a simple cbromosome. . 21 3.2 Clone chromosomes. .... . . . 21 3.3 Steps of the crossover operation. 26 3.4 Group renaming of the crossover operation. 27 3.5 Steps of GOMM's mutation operations. .. 28 4.1 Utilization of crossover and mutation operations for the Watertreatment dataset with clusters of 25 records. . . . . . . . .. 35 4.2 Utilization of crossover and mutation operations for the Watertreatment dataset with clusters of 25 records when used combined. ... . . . . . . . . . . . . . . . . . . . . . . . . . . .. 37 4.3 Average Lifetime of crossover and mutation operations for the Water-treatment dataset with clusters of 25 records. . . . .. 39 4.4 Average Lifetime of crossover and mutation operations for the Water-treatment dataset with clusters of 25 records when used combined. . . . . . . . . . . . . . . . . . . . . . . . . .. 40 4.5 Eflicacy of crossover and mutation operations for the Watertreatment dataset with clusters of 25 records. . . . . . . . .. 43 4.6 Eflicacy of crossover and mutation operations for the Watertreatment dataset with clusters of 25 records when used combined. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 44 4.7 Eflicacy of crossover and mutation operations for the Watertreatment dataset with clusters of 25 records. . . . . . . . .. 47 4.8 Eflicacy of crossover and mutation operations for the Watertreatment dataset with clusters of 25 records when used combined. ... . . . . . . . . . . . . . . . . . . . . . . . . . . .. 48 4.9 Scaled best cost evolution compared to the combination of all the genetic operations for the Water-treatment dataset. ... 50 4.10 Scaled best cost evolution compared to the combination of all the genetic operations for the Census dataset. . . . . . . . .. 50 v Usually, when releasing a dataset, the scenario depicted in Figure 1.1 is followed. As identifiers are not needed for statistical or research purposes, they are either removed or encrypted. Normally, the most useful information is contained in the confidential attributes, so they are not modified. In order to preserve the privacy of the individuals, an anonymization method is applied to non-confidential quasi-indentifier attributes. This scenario aI- lows third parties to have precise information on confidential data without revealing to whom the confidential data belongs too R R' Figure 1.1: Microdata anonymization process. The goal of any protection method is to achieve an acceptable level of privacy. Nevertheless, as third parties want to perform reliable statistical analysis, the protection method should guarantee that the protected dataset is as similar as possible to the original data. Therefore, the main objectives of any anonymization method must be: • Protecting the privacy of individuals. Data has to be sufficiently modified to make identification diflicult. The measure used to evaluate the risk of re-identification is called Disclosure Risk. • Preserving data utility. The anonymization method should introduce as smal! noise as possible into the data to preserve its utility. The Information Loss measure is used in this case. As it can be seen, these two goals are inversely related: as one of them increases, the other one decreases. One could think in two different extreme examples: if the original data is encrypted and released, the disdosure risk is (almost) zero, but the information loss is maximum. On the contrary, if the original data is released; the information loss is zero, but the disdosure risk is maximum. There are several measures to evaluate the quality of a data protection method. One ofthe most accepted and used is the score [41, which is defined 4 as the average of the two values considered: IL+DR score = 2 where 1 L stands for information loss measure and D R stands for disclosure risk measure. On the one hand, the information loss measure takes into account five general parameters of the microdata distribution, which are compared to establish the silmilariry between the original and the protected microdata. These parameters are: a. 1 L¡. Mean absolute error of the original microdata R with respect to the protected data R' . b. IL 2• Mean variation of the attribute average vector. c. 1 L3. Mean variation of the attribute covariace matrix. d. 1 L4. Mean variation of the attribute variance vector. e. 1 L5. Mean variation of the attribute correlation matrix. The overall 1 L is computed as follows: IL = lOO(O.2IL¡ + O.2IL2 + O.2IL3 + O.2IL4 + O.2IL5) On the other hand, in order to compute the disclosure risk, usually two approaches are considered. The first one is the Interval Disclosure Risk ID which is the average percentage of protected values falling into an interval around their corresponding original values. This measure was introduced in [1]. The second considered one is the entity disclosure risk. This measure is usually implemented using Record Linkage RL methods, which consider the scenario where intruders have access to an externa! dataset containing sorne non-confidential quasi-identifiers anc of a set of original records (r E R). Then, they try to link each record of their with the corresponding protected record r' E R'. The percentage of correct links achieved by the intruder is taken as the RL measure. Basically, there are two families of such methods [19]: • Distance based Linkage Disclosure risk (DLD). Each original record obtained from an external dataset is linked to the closest protected record using the Euclidean distance. Generally, it is assumed that the intruder has several different sets of non-confidential quasi-identifiers and the risk is computed as the average risk of all those sets. 5 • Probabilistic Linkage Disclosure risk (PLD). The link between the original record and the protected record is assigned in a probabilistic way, according to sorne criteria.s on a coincidence vector. When computing disclosure risk, the importance of record interval disclosure and record linkage is distributed evenly. Then, the record linkage is defined as the average of the two methods defined aboye. Therefore, the overall DR is computed as follows: DR = O.5ID + O.25DLD + O.25PLD Regarding record linkage, it is important to say that it is used for other different purposes. For instance, when two organizations want to merge their databases, record linkage is used to identify information belonging to the same entity, so that the merge process ends with a consistent database. 1.3 Goals The main purpose of this project is to design and implement a genetic algorithm to find quasi-optimal solutions to the problem of attribute grouping in multivariate microaggregation, along with different mechanisms to monitorize it and thoroughly analyze its behavior. Our genetic optimizer is called GOMM, which stands for Genetic Optimizer for Multivariate Microaggregation. In more detail, the objectives of this project are: • To study the state of the art of multivariable microaggregation: before starting the design of the genetic optimizer, the problem and sorne approaches proposed in the literature will be thoroughly studied. • To design and implement GOMM: the procedure of any genetic algorithm is well known: a collection of instances (population) that represent solutions to the problem suffers a set of transformations (genetic operations) to generate new instances and evaluate their quality, discarding the worst ones; thereby after several iterations (generations) the survivor instances represent near-optimal solutions. This objective also includes: -To study and implement a representation of the solution (chromosome): a way to encode any solution to the problem will be found in order to facilitate the task of genetic operators. -To propose and implement the genetic operations: two types of operators will be defined: a crossover operation, which creates new instances who inherit properties from two parent instances, and mutation operations, which introduce new properties to the generated instances and aIlow the exploration of the entire solution space. 6 -To define and implement a cost function: its job is to evaluate the quality of a particulax solution; since the methods used in literature to evaluate the information loss and the disclosure risk axe complex and inefficient, we will study different alternatives for their efficient calculation. • To perform a thorough analysis of the evolution of the quality of the solutions and the behavior of operators during the execution of the algorithm: to understand the mechanisms that lead the algorithm to a paxticulax solution we will implement monitorization tools, which will generate useful information in order to propose improvements. • To propose new dynamic techniques to improve the optimizer in terms of quality and time convergence: when an eaxly version of the optimizer is running, we will seek measures to improve its performance; for example, as operators will be monitored, we will have information to determine its behavior and thus, to introduce mechanisrns that dynamically control how many operations of each type axe made. • To make a compaxison of the experimental results and evaluate their quality: once the algorithm is working and providing solutions, the coherence and quality of the solution will be compaxed with other methods proposed in the literature. • To write the project thesis: we will write this document, that includes all the work done, explaining the properties of the final genetic algorithm and the analysis of its behavior, along with the discaxded alternatives. 1.4 Document Structure The structure of this document is organized as follows. Chapter 2 gives sorne theoretical background about microaggregation and evolutionary algorithms, which axe the two main pilaxs of this project. Afterwards, Chapter 3 presents the Genetic Optimizer for Multivariate Microaggregation (GOMM), with a detailed explanation of its implementation. In Chapter 4, an inside analysis of our genetic approach is given in order to understand its behavior and propose new features to improve its performance. The experimental results given by GOMM and a compaxison with other attribute grouping strategies axe presented in Chapter 5. Then, Chapter 6 shows the project scheduling and its economic analysis. This report finishes with Chapter 7, where the conclusions and future work axe presented. 7 8 Chapter 2 Preliminaries This chapter explains the basic concepts to understand the work done in this project. First of all we introduce microaggregation and algorithms to implement this technique, and specially, we describe multivariate microaggregation and its advantages and disadvantages. Moreover, we give a complete view of the problem of grouping attributes in order to achieve a protected dataset with both low information loss and disclosure risk, presenting related work found in the literature. Secondly, we present a brief description of evolutionary algorithms and the reasons for choosing this kind of approach to solve our problem. 2.1 Microaggregation Microaggregation is an anonymization technique which allows the publication of the entire dataset, although intead of exact values, modified values are given. This method achieves data protection from a twofold perspective. Firstly, if data is modified, reidentification by means of record linkage is harder and uncertain. Secondly, even when an intruder is able to re-identify an individual, she cannot be confident that the released data is consistent with the original data. Microaggregation was first proposed in [2] as a statistical disclosure method for numerical variables. If we consider a dataset R containing m records of n attributes, the idea is to replace an observed record r with the centroid computed on a small cluster of individuals, including the investigated one. The clusters contain a minimum predefined number of k records, which will be represented in the released file by the same value. Thus, the microaggregation mechanism achieves data privacy by ensuring that for every protected record r' there are at least k -1 records with the same value in the dataset, which means that the dataset is k-anonymous. Regarding data utility, the issue consists in determining the partition of the whole dataset in clusters of at least k individuals minimizing the informa- 9 tion loss. Therefore, the clusters are constructed according to a criterion of maximum similarity between them. Each record r can be viewed as a point in a multidimensional space defined by the number of attributes. If records are characterized as points, r = {al, ... ,an}, similarity between them can be measured using a distance measure such as the Euclidean ditance [15J. A common measure to evaluate the information loss of a protected dataset using microaggregation is the total Sum of the Square Error SSE. This measure is the sum of squared distances from the centroid of each cluster to every record in the cluster, and is defined as: N SSE = L L h - Tif(rj -Ti), i=l TjENf. where Tj are the records of the dataset R, N is the total number of clusters, Ni is the i-th cluster and Ti is the centroid of Ni. The restriction is INil :::: k, for aH i = 1, ... , N. Exactly solving the microaggregation problem, that is, finding the way to cluster the records which minimizes the SSE where clusters have a size at least k, was shown to be a NP-hard problem [14J. Because of this, it is necessary to resort to heuristic approaches. 2.1.1 MDAV Algorithm The best-known example of heuristic microaggregation methods is the Maximum Distance to Average Vector (MDAV) [6J. MDAV produces clusters of fixed cardinality k and, when the number of records is not divisible by k, one cluster with a cardinality between k and 2k-1. The MDAV algorithm is described in Algorithm 1. • • ~OB · ."." ............... 'T""------ e ..........................•......... 1 Figure 2.1: Clusters generated by the MDAV algorithm. A simple example of the clustering strategy foHowed by the MDAV algorithm is shown in Figure 2.1, assuming a k value of 3. First of all, the 10 average point of al! the points is calculated. Then, the algorithm searches the most distant point T r to the average point, which in this case is the rightmost upper point. The next step is to built cluster A, that contains Tr and the k -1 closest points to it. Afterwards, MDAV searches the furthest point Ts to Tr, which is the leftmost lower point. Then, it builds cluster B around it. Finally, as only three points are ungrouped, MDAV creates cluster C. Algorithm 1: MDAV Data: R: original microdata, k: integer Result: R': protected microdata 1 begin 2 while (IRI > k) do 3 4 5 6 7 8 9 10 Compute the average record r of al! records in R Consider the most distant record T r to the average record r Form a cluster around Tr. The cluster contains Tr together with the k -1 closest records to Xr Remove these records from R if nRI > k) then l Find the most distant record T s from record T r Form a cluster around Ts. The cluster contains T, together with the k -1 closest records to T s Remove these records from file R 11 Form a cluster with the remaining records 12 end MDAV algorithm can be instantiated for different data types, using appropriate definitions for distance and average. As we focus on numerical attributes, the most distant record and the closest records are computed using the Euclidean distance, and the average record is defined as the arithmetic mean of the records. The average record is used to replace the original records when building the protected dataset. MDAV has proven to be one of the best performers in terms of time and one of the best regarding the homogeneity of the resulting clusters. Its computational complexity is OG~), although sorne minor changes can be done to improve its performance; as we will see later on. 2.1.2 Multivariate Microaggregation As we have explained before, if a microaggregation method is applied to all the attributes of the original dataset R at the same time; then, the resulting protected dataset R' satisfies the property of k-anonymity. Nevertheless, when the amount of attributes is large, the data utility of the protected 11 dataset is diminished. This is so because the larger the number of attributes, the larger the distance between the original records in the dataset and their corresponding centroids. Then, in order to increase the data utility of the protected dataset, multivariate microaggregation is used: the dataset is split into smaller sets of attributes and the microaggregation method is independently applied to each one of the sets. In this way, the information loss is lower since the microaggregation method deals with less dirnensions and the centroids are closer to the records. Nevertheless, this improvement in data utility is at the cost of a loss in the achieved level of privacy. For example, k records which are in the same cluster taking into account the first set of attributes, might be in different clusters when al! the other sets are considered. Therefore, when replaced by the respective centroids for all the attribute partitionings, these records are not undistinguishable anymore and, moreover, no k-anonimity will be achieved in general [12). This problem is illustrated in Table 2.1, where the set of attributes has been splitted in two groups, containing an attribute each. After applying multivariate microaggregation, all the records in the protected dataset are different. Thus, this method does not guarantee k-anonimity. Original Data R Protected Data R' al a2 aí a~ 1 2 2 1.5 3 6 2 7 5 3 6.5 1.5 8 9 6.5 9.5 12 8 12.5 7 13 10 12.5 9.5 Table 2.1: Example of applying multivariate microaggregation with two attribute groups and clusters of k = 2 records. Tbere is a special case called univariate microaggregation, when each attribute is microaggregated separately. This is the easiest configuration in terms of attribute grouping complexity, and there are polynomial time algorithms to obtain the optimal microaggregation [9). However, the main drawback of univariate microaggregation is that it provides abad level of privacy, due to its high number of attribute sets. The case depicted in Table 2.1 is also an example of univariate microaggregation. For this reason, multivariate microaggregation is the most widely used. Nevertheless, when using multivariate microaggregation, other factors influence the quality of the protected dataset. Beyond the value of the k parameter and the specific microaggregation method, the microaggregation problem has to take into account the number of groups into which the dataset 12 is split, the number of attributes in each group and, definitely, how to select which attributes form each group. The way the attributes are grouped is a problem as difficult as the microaggregation itself. Note that the search space grows exponentially with regard to the number of attributes and, therefore, finding the most appropriate attribute grouping configuration is far from trivial. Two approaches were presented for attribute selection [13], both based on the correlations among attributes. The first approach is based on cluster in the same group attributes that are highly correlated, minimizing in this way the intra-cluster distance between the centroid and the records. This approach has a low information loss but a high disclosure risk as in the case of univariate microaggregation. The second approach is based on cluster highly correlated attributes in different groups. The goal of this second approach is to increase the resulting anonyrnity. The rationale of this approach is the foIlowing one: If two records Ti and Tj are in the same cluster for sorne blocks, this means that the first attribute values of these records are more or less close to each other, and the same for the second attribute of the block, etc. Then, when we consider another block, if the j-th attribute of this new block is (highly) correlated with the j-th attribute of the latter block, records Ti and Tj will probably be close to each other as weIl, with respect to the attributes in the second block. Therefore, with sorne non-negligible probability, Ti and Tj wiIl fall in the same cluster, reducing in this way the disclosure risk and obtaining a similar level of privacy than the basic microaggregation. Of course, the information loss of this latter approach is larger than the former ane. These two approaches show the importance of finding an appropriate attribute grouping in order to achieve a protected dataset with both low disclosure risk and information loss. Opposite to the optimal microaggregation, this problem has been disregarded in the literature assuming that attributes are grouped considering sorne background knowledge, such as attribute correlations when we are interested on minimizing the information loss, or considering that if the intruder only has access to a subset of attributes, then such attributes are grouped together. 2.2 Evolutionary Algorithms Inspired by the theory of natural selection, evolutionary algorithms use sorne mechanisms based on evolutionary biology such as inheritance, mutation, selection and crossover to solve an optimization problem. Genetic algorithms are one of most used evolutionary approaches. During the execution of the algorithm, a population of representations of possible solutions to the optimization problem evolves towards better solutions. 13 sorted according to this litness, so that the chromosomes with a better cost occupy the top positions of the population vector. The objective of this sorting is to simplify the work of the selection method, which is described later on. At this point, the evolution process starts: during successive generations, the algorithm proceeds from one population to the next, this last being obtained by the application of various genetic operations. These operations are crossover operations, which combine properties of the existing members in the population; mutation operations, which introduce new properties to the population; and a selection method, which chooses the chromosomes that will form the next population. GOMM performs C crossover operations, which choose two random parent chromosomes and generate two child chromosomes; and M mutation operations, which generate a child chromosome from a single parent. After this process, an offspring vector has been filled with 2C + M new chomosornes. Then, like in the lirst population, the litness of aH the new generated chromosomes is evaluated and the offspring vector sorted, so the best litted children are placed in the top positions. In order to keep the size P of the population constant, the selection operation is used to discard the worst litted members. In GOMM; the selection method merges the population and the offspring vectors, so that it obtains the P best litted chromosomes within the old and the new generated ones. These survivors wiH form the population of the next genetion, which the selection method stored already sorted. This process is repeated iteratively until a stop condition is meto GOMM has no delined stop conditions and performs a concrete number G of generations. When this number is reached, the best solution is taken from the top of the linal population. Even though there is not a stop criterion delined in GOMM, the algorithm includes mechanisms to easily implement it. For example, if the algorithm is wanted to perform until no improvements are achieved in sucessive generations, GOMM is provided with a method which displays the mean litness of the current population. If two successive populations have the same average litness, no improvements have been introduced in the new population and the algorithm can stop. 3.2 Encoding A genetic algorithm works with representations of solutions rather than the solutions themselves. Thus, a way to map any solution to a chromosome is required. The solutions of the attribute grouping problem of multivariate microaggregation are, as the name states, groups of attributes. GOMM uses the same encoding scheme as the Grouping Genetic Algo- 20 rithm (GGA) [81. Every chromosome c eontains an objeet part cap, where each gene represents the membership of the eorresponding attribute in a group, and a group part c gp , which eontains the groups. For example, the chromosome shown in Figure 3.1 represents a solution where the attributes 1, 2 and 5 are grouped together and attributes 3 and 4 are in another group, with the group part written after the thiek lineo IAIAIBIBIAJAIBj 1 2 3 4 5 A = ('" '2' "s) B={":".,) Figure 3.1: Parts of a simple chromosome. The ehromosomes used by GOMM have variable length. If the original dataset has n attributes, the shortest ehromosomes have n + 1 genes and eorrespond to the solution where all the attributes are in a single group. On the eontrary, the longest ehromosomes, whieh represent the solution where every attribute is grouped alone (univariate mieroaggregation), have 2n genes. The goal of this eneoding is to facilitate the work of the operators which treat groups rather than objeets. This is so because the groups are the meaningful parts of a solution. It is important to remark that this eneoding allows for the presenee of clones, whieh are different ehromosomes that represent the same attribute grouping and have the same associated titness. For instanee, Figure 3.2 represents clone ehromosomes which map exactly the same solution as the chromosome shown in Figure 3.1. IBIBIDIDIBIDIBI 1 2 3 4 5 D = ('" ',) B = ('" '2' ',) IclclAIAlclclAI 1 2 3 4 5 A = ('" ',) e = ('" '2' "s) Figure 3.2: Clone ehromosomes. The alphabet used is the set of charaeters provided by ANSI C, thus, GOMM's chromosomes are strings with a maximum number of 128 different symbols. This implies that GOMM supports datasets with a maximum number n = 128 attributes. 21 3.3 The Cost Functíon After encoding a solution in a chromosome ci, a genetic algorithrn needs a litness function F(c i) to evaluate its quality. Chromosomes in our case represent attribute groupings for multivariate microaggregation. Rence, first of all a protection method is needed in order to generate a protected dataset and, secondly, a way to evaluate this protected dataset is required. Microaggregation method Before evaluating the quality of a protected dataset, GOMM's cost function needs to generate this protected dataset. Every chromosome encodes attribute parlitionings to whom the microaggregation process will be applied. Therefore, the first step of GOMM's cost function is the application of a multivariate microaggregation method. For this purpose, we chose the MDAV algorithrn, previously described in Section 2.1.1. This algorithrn is one one of the most well-known and flexible multivariate microaggregation methods and also one of the best regarding time performance. Rowever, the algorithm can be implemented in a faster way. Following, we propose two mechanisms to improve MDAV's performance: • Re-calculating the dataset centroid from the cluster centroid: Every iteration of the MDAV algorithrn the centroid of the remaining records T is calculated. This implies that the algorithrn has to explore the whole dataset again. Nevertheless, when a cluster Ni is built, MDAV also calculates its centroid Ti in order to substitute the value of the clustered records. We use the calculation of Ti to re-calculate the centroid T without visiting all the remaining records again. To compute the cluster centroid Ti requires three loops: l. Initialize to zero the value of every component rij of the centroid 2. Calculate the total sum of every attribute for all the k records in the cluster 3. Divide the previous addition by the number k of elements in the cluster To re-calculate the dataset centroid T, we use loops 1 and 3. In the first loop, we multiply every component of the centroid for the number nr of records of the dataset in the begining of the iteration. Thus, we get the sum of every attribute for all the nr records in the dataset. 22 Afterwards, in the third loop, we subtract the eluster sum calculated in loop 2 from the dataset sum, obtaining the sum of every attribute for the nr -k values that will remain in the dataset when the elustered records are deleted. Then, we only have to divide this value by nr -k in order to obtain the new dataset centroid. Formally: EruER Tu - Er¡EN i Tl nr -k • Matrix of distances: There are three steps of the MDAV algorithm where the distance between records is calculated. The first one is when the algorithm searches the k -1 elosest records to rr. Then, the distances are calculated again to find the furthest record r s to r r and a third time to search the k -1 elosest records around it. Al! these distance calculations, repeated in every iteration of the algorithm, could be avoided if a matrix of distances is filled at the begining of the algorithm. GOMM incorporates the first optimization, but the second one is not implemented. This is so because at the moment, GOMM deals with smal! datasets and mantaining a matrix of distaces could be counterproductive. However, it is important to take this optimization into account if the algorithm has to work with larger datasets. Microaggregation quality It is wel!-know that a good anonymization method is the one that minimize the trade-off between information loss and diselosure risk. In Chapter 1 we introduced the score measure, which computes this trade-off as the arithmetic mean of both measures. The score is one of the most used measures to evaluate any protection method. Therefore, we deline our litness function the same way: F(ci) = IL~DR, where I L stands for information loss measure and D R stands for diselosure risk measure. Like in the score case, GOMM aims at minimizing this function; therefore, lowest litnesses imply better solutions. However, because of the frequent use of the litness function during the evolutionary process, we cannot use such a high computationally intensive function. Thus, we use sorne simplilications for reducing the complexity of the original IL and DR measures in our litness function F(ci ). Several proposals have been used in the literature in order to calculate the information loss. Depending on the alternatives, they take into account several general parameters of the data distribution such as the average vector, covariance matrix, variance vector or correlation matrix. 23 Since the goal of microaggregation is to minimize the SSE, which is a specilic infonnation loss measure for any k-anonymity model, we use it as the IL measure. However, the SSE itselfis not snitable for the F(ci) formulation since it is not upper bounded. The most cornmon way to normalize the SSE range into the [O .. lJ interval is to divide it by the sum of squares total SST of the original dataset R. This approach is used in many other works as [3, 6J. The SST is delined as N SST = L L (rj - rf(rj -r), i=l TjENi where r is the centroid of alI the original records. Note that, the SST must be computed only once during the execution since its value is constant. Then, the 1 L component in the litness function of our genetic algorithm is computed as IL = SSE .100 SST ' in this way, 1 L range is between [O, 100J. In order to compute DR, we explained in Chapter 1 that two approaches are considered. The first considered disclosure risk measure is the Interval Disclosure Risk ID which is the average percentage of protected values falling into an interval around their corresponding original values. Usually, the interval length is a parameter defined by the user. In our case, the interval is defined as [h - rj . 10%), (rj + rj . 10%)J. The second one is the entity disclosure risk and , basically, there are two families of such methods, on the one hand, those based on (in)conditional probabilities and, on the other hand, those based on distances calculations. The former (probability based family) are too inefficient to be used inside a cost function of a genetic algorithm. For this reason, we only use distancebased methods as it was done in [16J for similar reasons. This is not a problem since distance-based methods outperform probabilistic ones for numerical attributes [5J. Generally, it is assumed that the intruder has several different sets of non-conlidential quasi-identiliers and the risk is computed as the average risk of alI those sets. However, for reducing the execution time of the record linkage process, we consider only the worst, and unrealistic, scenario, i. e. when the intruder has access the complete original dataset R (all records r and non-confidential quasi-identiliers ano) and she links them with the protected dataset R'. In this case, if the closest record to a known record r in R is the corresponding one r' in R', we assUlle that the intruder is able to find the correct link, and then, she is able to breach the privacy of such data owner. Again, as we are interested in a value litted between [0,100J, 24 Distance Linkage disclosure (DLD) is computed as DLD = links . 100 IRI ' where links is the total number of correct links achieved and IRI is the number of records of the dataset R. To calculate the number of links, the intruder has to compute the Euclidean distance between the record ri she wants to deanonyrnize and al! the protected records r' and then check if the closest protected record is r: to establish a correct link. This means that in order to compute the distance-based disclosure risk the Euclidean distance function is cal!ed m 2 times, being m the number of records. In GOMM's cost function, we implemented an improvement to speedup the whole process. The distance is initialized with the value of the link distance, that is, with the distance between ri and r:. Then, the search algorithm looks for a smaller distance and, when found, the search loop is stopped. In conclusion, every time there is not a link the Euclidean distance function will be called less times. Finally, the overal! DR is computed as DR = (0.5ID + 0.5DLD) 3.4 Genetic Operations The evolution process of any genetic algorithm is based in three operations. The number of crossover and mutation operations performed in each generation can be manually modified to adapt the algorithm to different situations and al!owing the study of its effect. Following, we describe the crossover operation, the set of mutation operations and the selection operation designed and implemented in GOMM. 3.4.1 Crossover The aim of the crossover operator cf>( ePI, eP 2) is to generate new members by combinig properties from different chromosomes in the current population. Two parent chromosomes ePI and eP 2 are selected randomly from the population and two new child chromosomes cc1 and c<!l. are produced containing information from both parents. Figure 3.3 shows the three steps of our crossover operation cf>(ePl, eP 2), which is an adaptation of the Grouping Genetic AIgorithm (GGA) crossover [81. In GOMM's crossover, first of al!, two crossing sites are selected from the group part of both parents (1). Then, the groups contained in the crossing site of the first parent ePI are injected at the group part of the first child cc1, along with the attributes that belong to those groups (2). The rest 25 of the attributes are grouped as they were in the second parent d'2 (3), so the resulting child ¿l has inherited properties from both parents. For the second child cc2, the process is repeated exchanging the role of the parents. C"IAIBleIA!BIAjBlel. (1) .IDIDIDI~IEIDIElc" (2)! . \. i i (2)' . ¡ \ /' ¡ ) IBlel: lB IBlel X IDIDID) I IDI e" IDIB lelE lB lB lelDIE 1(3)jDID IDIA lB IDIAIB I Figure 3.3: Steps of the crossover operation. The main difference between the crossover proposed by the GG A and the one implemented in GOMM is in the order of the different steps. GGA's crossover first copies the whole parent chromosome e pl into the child eel. Then, it injects the crossing section of the second parent d'2 in the group part of ¿l. Therefore, a fourth step is requlred to check that the old groups copied from e pl are not empty because, when injecting the crossing section from d'2, the attributes that belong to those groups are also injected. In conclusion, GOMM's crossover is implemented in a simpler way, aIthough the resulting offspring of both crossover operations is the same. In the example shown in Figure 3.3, the parent chromosomes do not share any group identifiers and these identifiers are directly injected in the child chromosomes. This is done to show in an easier way which groups are inherited from each parent. However, GOMM's crossover operation implements a renaming process of the groups as they are injected in the child. Thus, if the parent chromosomes share any group identifier, the resulting child chromosomes will not have coherence problems. Figure 3.4.a illustrates the problem when not renaming the groups. The renaming process of the GOMM's crossover operation is depicted in Figure 3.4.b. Every time a group, aIong with the respective attributes, is injected in the child, its group identifier is changed, starting with the identifier A, then B and so respectively. Beyond avoiding the generation of incoherent childs, this method simplifies the injection process as no control of the identifier is requlred. 3.4.2 Mutations As crossover operations only combine existing properties from the current population, a way to introduce new information is needed in order to explore the whole search space; i.e., ensuring that any possible chromosome in the 26 a) Crossover without renaming C"IA lB lelAIB IAIB lel IAIA IAIB lB IAIB IC" I ' \\ / l' , cJ IAIBI:IAIAIBI X IAIAIAj I IAl c " leIAIBIDIAIAIBleID( lAIAIAIBlelAIBlel b) Crossover with renaming Figure 3.4: Group renaming of the crossover operation. search space can be generated. Mutation operations 'P(cP) proceed by performing random modifications to a chromosome cP, thus generating a new member ce with sorne cbaracteristics not present in the current population. We propose five different mutations in GOMM, which are represented in Figure 3.5; three working with the group part of the chromosome, and two with the object parto The former allow the exploration of distant parts of the search space, while the latter work in a finer manner. • Group Create( 'PGc) builds a new group of attributes randomly, whicb is injected in the child ¿. The rest of attributes are grouped as they were in the parent cP. Figure 3.5.a shows a basic example of its procedure. It is the most aggresive of al! the mutations. In an extreme case a single 'PGC operation can transform any chromosome cP to the one that contains only one group. The goal of 'PGC is to make radical transformations to the members in the population to introduce diversity. However, it is in general very disruptive and may cause the new chromosomes to contain lethal traits that lead them to the immediate elimination. Like in the crossover operation, a renaming method is implemented in Group Create. • Group Eliminate('PGE) selects randomly a group from the Group Part of the parent cP and distributes all its attributes between the 27 remaning groups, also randomly. As a result, the child ¿ has a group less than its parent d', except in the base case that the parent has all the attributes in a single group, then a clone is generated. The steps followed by Group Eliminate are depicted in Figure 3.5.b. • Group Split('I'Gs) chooses a group at random and splits it into two different groups with the same number of attributes (if possible). The resulting child ¿ has a group more than its parent d', except in the cases where the group that is splitted is a singleton. The Group Split example illustration is found in Figure 3.5.c • Element Swap('I'Es) works with the object part ofthe chromosome; two attributes are selected at random and their groups are swapped, so the group part of the child ce is identical to that of the parent d'. Figure 3.5.d shows the functioning of Element Swap. • Element Move('I'EM) selects randomly an attribute from the object part of the parent d' and moves it to a different existing group. The resulting child ¿ has the same number of groups than his parent d' or a group less if the element moved belonged to a singleton. Finally, an example of a simple Element Move operation is presented in Figure 3.5.e. C" lA lB lA I B I A lA lB l· ...... ,. C" lel I I lelel ") leIBIAIB¡eleIBIA~ a)Group Create C"IAIBlele!BIAIBlel C"IAIBIBI1IBIAIBI b)Group Eliminate C"IAIBIAIBIAIAIBI ....... / ,/ ..... C"IA lB lB lA IAIA lB I d)Element Swap IAIAIBI~IAIAIBI C" IA,IA,IB lB kIA,IA,IB I C" c)Group Split IAIB IAIB IAIA lB I C" IAIBIAIBI~IAIBIC" e)Element Mova Figure 3.5: Steps of GOMM's mutation operations. 28 3.4.3 Selection In order to preserve the number of members in the population and favor evolution, at the end of every iteration the chromosomes that will survive to the next generation are chosen. GOMM selects the best ones; i. e. those solutions with the lowest titness. Formal!y, if we have two chromosomes el and c? with an associated titness F(el) and F(c?) and F(el) < F(c?), then el is more likeable to survive. When all the C crossovers and the M mutations are performed, an offspring vector is tilled with al! the 2C + M new generated chromosome along with its associated titness. Before applying the selection method, this vector is sorted according to the titness value so that the best titted chromosomes are placed in the top part of the vector. GOMM's selection method acts the same way as the merge function of the merge sort algorithm. Given two sorted vectors, the offspring vector containing 2C + M chromosomes and the current population vector with P chromosomes, our selection algorithm outputs the next generation population vector with P and sorted by their associated titness. AIgorithm 3: Selection Data: N: current population, O: offspring Result: N': next population 1 begin 2 while (length(N') < P) do 3 if first(O) < first(N) then 4 l append tirst(O) to N' 5 0= rest(O) 6 else 7 l append fust(N) to N' 8 N = resteN) 9 if length(O) = O then 10 L break 11 if length(N') < P then 12 l while (length(N') < P) do 13 l append fust(N) to N' 14 N = resteN) 15 end Algorithm 3 shows GOMM's selection pseudocode. Two pointers are assigned to the tirst position of the input vectors, which are chromosomes with an associated titness. Then, the pointed chromosome with a lower cost is copied to the next population vector, and the corresponding pointer 29 space to explore. This is why this operation discards al! the chromosomes it produces after generation 60. Regarding 'PES and 'PEM, they explore even closer points in the search space than 'PGE and 'PGS as they do not alter the number of groups of the solution (except when 'PEM moves an element which is a singleton). Even though they work in a finer grane, they can explore more solutions than 'PGE and 'PGS as the possible attribute groupings accessible fixing the number of groups is larger than increasing or decreasing the number of groups. Finally, the crossover keeps the number of discarded chromosomes without being used around the 70%. Combined execution The plots in Figure 4.2 show the average number of chromosomes discarded without being used in a later operation for each genetic operation when combined with other genetic operations. Note that 'PGC, 'PGE and 'PGS are doing useless work more or less after generation 25 since 100% of the generated chromosomes are discarded without being used. In contrast, 'PES and 'P EM gradual!y lose potential, but their best behaviour is shown between generations 20 and 30, where less than half of the chromosomes they produce are discarded without being used. The results for the crossover operations show that the percentage of chromosomes discarded without being used is always around 75%, being a little lower in the first generations. Census dataset with clusters of 25 records The utilization results obtained when using the Census dataset are vey similar to the Water-treatment ones. The plots can be found in Section B.l. The only significant difference is that the charts stabilize faster with the Census dataset, because it has a lower number of attributes. Water-treatment dataset with clusters of 100 records When the k value is high, the information loss of all the possible solutions increases because more records are cluster together. Therefore, the genetic operations have a very different behaviour, as showed in Section B.2. Regarding utilization, the main difference between the executions with k = 25 and k = 100 can be found in the group-oriented mutations, which discard more chromosomes during the whole execution process. However, they are able to introduce changes in the last generations, which did not happen when k = 25. 36 ~ iI o .. Discarded using Group Creale Discardad using Group Split 12,----------------------------, 10 I . iI O .. Qa .... ratIon Di.cardad u.ing Semen! Move I . iI o .. Discardad u.ing Group Siminale 1 o .. Di.cardad using Semen! Swap 12,----------------------------, 10 • I · o .. Di.cardad using Crossover I o .. Figure 4.2: Utilization of crossover and mutation operations for the Watertreatment dataset with clusters of 25 records when used combined. 37 4.3 Average Lifetime Another way to evaluate the effect of a genetic operator is to analyze the average lifetime of the new generated chromosomes, which is the number of generations they survive. Longer lifetimes imply a higher probability for a given chromosome to be used in the next generations. As happened in the utilization plots, the average lifetime is skewed in the last generations. Obviously, if a chromosome is created in the last generation, its lifetime is zero because the algorithm ends in the same generation. Water-treatment dataset with cIusters of 25 record s The average lifetime plots for every genetic operation when used alone are depicted in Figure 4.3, which shows the lifetime of the attribute grouping conligurations grouped by the generation in which they were created. The lirst chart shows the average lifetime of the chromosomes generated by 'PGC· We observe that the chromosomes created in the lirst generations live a lot more than those created afterwards. This indicates that, after reducing the number of groups of the solution, Group Create has difficulties in evolving the population, that is, the number of succesful transformations introduced by 'PGC when the solutions have a reduced number of groups is very low. The 'PGS plot shows two interesting features. Firstly, the chart presents a peak between generation 35 and 45 similar to the one produced by 'PGC and, in the successive generations, lifetime rapidly decreases until all the chromosomes die at the same generation they are created. The explanation to this phenomenon is that 'PGS evolves the population until it reaches a local maxima solution. At this point, it only generates worse chromosomes or clones, which are the ones that survive during the last generation. The crossover operation and the liner grane mutations 'PES and 'PEM along with 'PGE have very similar charts, keeping the average lifetime of their generated chromosomes always around 2. This indicates that these operators slowly, but continuously, introduces interesting properties in the population, and the new generated chromosomes substitute the ones generated more or less two generations ago. Combined execution The information on the average lifetime for each genetic operation when used combined with other operators is presented Figure 4.4. Again, the plots show that 'PGC, 'PGE and 'PGS carry out unnecessary operations after generation 25 as the average lifetime of aH the chromosomes created by these operations is zero, that is, they die as soon as they are created. On the other hand, the other two mutations, 'PEM and 'PES, improve their performance after generation 20 since the chromosomes they create live longer. The 38 Average Ufetime using Group Creste 12 Generdon Average Ufetime using Group Split 1.,---------------------------, • 10 < j • ~ & • .E i ~ Average Ufetime using Semen! Move 12 • 10 < j • ~ & 6 .E ! • ¡¡ 2 ~ Average Ufetime using Group Siminale . i • ~ & • .E ! • ~ 2 o GeneraHon Average Ufetime using Semen! Swep 12 Average Ufetime using Crossover 1.,-----------------------------, 10 ! t • ! & 6 < j • ¡¡ 2 ~ CJllneration Figure 4.3: Average Lifetime of crossover and mutation operations for the Water-treatment dataset with clusters of 25 records. 39 Average Ufetime using Group Creele 7 ~ . 1 • &4 E , ~ . " ~ 1 o !!tt!Ji(:;'Z,t8¡¡G;J!I!:&(;; Qrneratlon Average Ufetime using Group Split . .---------------------------, 7 . < • t • ! &4 E 3 Average Ufetime using 8ernent Move 7 ~ . t • ! 8, 4 E , i · ~ 1 o Qtnerdon Average Ufetime using Group 8iminate .,-------.-------------------, 7 • < • t 5 ! &4 E • i · ~ 1 o Gllnerdon Average Ufetime using 8emen! Swap Average Ufetime using Crossover 7 t" 8,4 E 3 i ~ 1 Baneratkm Figure 4.4: Average Lifetime of crossover and mutation operations for the Water-treatment dataset with clusters of 25 records when used combined. 40 average lifetime of the chromosomes produced by 'P EM does not decrease until generatiou 50, and in the case of 'PES until generation 70. Regarding the crossover operation, we can see that average lifetime is always very stable in values between 2 and 3. Census dataset with clusters oí 25 records The average lifetime charts for the Census dataset are found in Section B.l. Again, when executing GOMM with the Census dataset, the plots are very similar to the ones generated when using the Water-treatment dataset. However, the group-oriented mutations ('PGO, 'PGE and 'PGs), start performing useless work a few generations before. Water-treatment dataset with clusters oí 100 records Section B.2 presents the average lifetime plots for the Water-treatment dataset when k = 100. Like in the utilization analysis, the important changes are in the behaviour of the group-oriented mutations. When k = 25, all the chromosomes generated by these mutations after generation 25 were discarted in the same generation they were born. N ow, these operators present more regular charts: the average lifetime of the members produced by 'PGO is very low because this operation is very destructive when dealing with chromosomes that have a higher number of groups. In the case of 'PGE and 'PGS, their plot is very similar to the one presented by the crossover operation, which means that they behave in a more conservative way. 4.4 Efficacy The utilization and the average lifetime of the chromosomes give us a lirst impression of the amount of useful work that a genetic operation is producing during al! the algorithm execution. However, these two approaches do not show if the operations are really introducing good properties into the population; that is, if the new generated chromosomes have a better cost than their parents, in the case of mutation operations; or a better cost than the average lituess of both parents, in crossover operations. This measure is called efficacy. The efficacy plots presented show the number of improved chromosomes along with the number of worsened ones for every generation. It seems reasonable to assume that the addition of the two parts should be the number of chromosomes generated for every operation in a certain generation (10 for each mutation and 50 for the crossover when used combined and 100 for every operation when used alone). Nevertheless, this is not true when the generarated chromosomes contain clones as they have the same cost of their parents. 41 Water-treatment dataset with cIusters of 25 records The genetic operation efficacy charts when used alone are shown in Figure 4.5. The first thing we notice is that the 'PGS chart is thinner that the other operations, meaning that Group Split generates a lot of clones when the number of groups of the solution is high. After generation 50, only worse chromosomes or clones are generated as we pointed out before. 'PGO produces better chromosomes in the first generations and from generation 20 in very few cases improved solutions are generated. This strenghtens the theory that Group Create does not favor evolution when the number of groups of the solutions is low. The rest of the mutations 'PGE, 'PES and 'PEM , present a similar chart patron: the efficacy slightly decreases during the evolution process. Regarding the crossover operation, all the generations have similar improvements during the evolution process. However, the decrease of the worsements in the last generations point that the diversity of the population decreases. This happens because crossover combines existing properties of the population, so no new properties are introduced. Combined execution Figure 4.6 shows the efficacy plots when the genetic operations are used in combination among them. The first thing we notice is that, again, 'PGO, 'PGE and 'PGO only generate worse chromosomes from generation 25. However, the only operation that loses potential gradually is 'PGE, as 'PGO and 'PGS show a peak near generations 18-19. This is because the average number of groups of the first population is large, and creating small groups or spliting them does no generate better chromosomes. However, as the number of groups decreases due to the creation of large groups and the elimination of others, these operations start working better. In the case of 'PES, the plot shows the following effect: this is an operation that generates a lot of clones, but until the end of the execution is capable of generating improved chromosomes. This also happens in 'P EM, where we also notice that near generations 16-17 the number of clones generated increases. The only case that 'P EM produces clones is when the parent chromosome has a single group, which is exactly when 'PGS and 'PGO start working well. The crossover results show that after generation 20 the number of improvements is very constant, standing in the 5% of the chromosomes generated. Census dataset with cIusters of 25 records The most important difference in the efficacy plots between using the Census or the Water-treatment dataset is that, in the first generations for the Census dataset, all the genetic operations achive a higher number of improvements. 42 Group Creale Blicacy Group Siminate Blicacy 100 '" i lO i ~ «l @ I , ~ ~ ~ ji • • Qmerlllion G8neration Group Split Blicacy Semen! Swap Blicacy 100 10 i lO i «l ~ Zl @ I o I -Zl ~ -«l ~ ji -ti) ji • -10 • -100 1111 =¡;Si GlltnerllHon Qaneration Semen! Move BlicBCy Cro •• ovar Blicacy 10 ~ i lO ~ @ «l I I ~ ~ ji ji • .. Q8nerdon Glllneratlon Figure 4.5: Eflicacy of crossover and mutation operations for the Watertreatment dataset with clusters of 25 records. 43 Group Craale Blicaey Group 8iminale Blicecy 1 1 ~ ~ I I o ~ ~ .!i .!i • • Qll'Ntration CiBnerdon Graup Split Blicecy 8emen! Swep Blicaey • 1 1 • 4 ~ ~ 2 I I ~ ~ Ji .!i • • CJa,..rllÜOn CJltneratlon 8emen! Move Blicaey Crassover Blicaey 10 1 • 1 ~ ~ I 1 ~ ~ .!i .!i • • GlBneration GIt ... ratIon Figure 4.6: Efficacy of crossover and mutation operations for the Watertreatment dataset with clusters of 25 records when used combined. 44 Nevertheless, trus improvements last a lower number of generations. For instance, even the crossover operation only produces clones or worse offspring in the last generations. This is so because of the fewer number of attributes of the Census dataset, which also causes the search space to be smaller. The eflicacy plots for the Census dataset can be found in section B.1. Water-treatment dataset with clusters of 100 records The eflicacy plots of the Water-treatment dataset with k = 100 can be found in Section B.2. Along with the group-oriented mutations, the crossover operation also presents changes with respect to the eflicacy charts when using a k value equal to 25. The number of improvements of the grouporiented mutations in the first generations is lower, even though they last longer. The increasement of the k parameter causes the information loss of all the possible solutions to increase too, thus, the solutions with a smal! number of groups are not preferred anymore. The case of the crossover operation is very interesting because it presents a decreasing pattern, which reveals that the recombination plays an important role in these conditions. 4.5 Efficiency Finally, even though the previous analysis provide us with an approximate picture of the behavior of genetic operations, it does not directly reveal how much better or worse is the cost of the new generated chromosomes. For this reason, we evaluate the efliciency of the operations by i=ediately calculating the percentage of improvement or worsement of the chromosome costs after the application of the genetic operation. To calculate the average percentage of maximum improvement and worsening for mutation operations we use Formula (4.1). ¿ is the child chromosorne and ¿p the parent chromosome. For crossover operations we use (4.2) and (4.3) where ¿pI and ¿p2 are the parents. The idea berund the equation for the crossover operation is to calculate whether the new chromosome is better than the average cost between both parents. { eo,' e" . 100 cost(cP e08' cP • 100 cost ce if cost( ¿) :s; cost( ¿p) if cost( ¿) > cost( ¿p) 2 . cost(c e) rimp = cost(cPI) + cost(cP2) %c= { (1 -rimp) . 100 (_1_ - 1) . 100 r lmp 45 if rimp :s; 1 if rimp > 1 (4.1) (4.2) (4.3) "'GS) contribute to evolve the population modifying the number of groups; secondly, these operators only generate useless work and the object-oriented mutations, along with the crossover, introduce improvements in a lower scale. To illustrate these two phases, we monitored the average number of attribute groups in the population for the two considered datasets. The results are shown in Figure 4.11. Note that for both datasets there is a first phase where the number of groups of the population is adjusted and a second phase where it is constant. For the Water-treatment dataset, the second phase starts near generation 30 while for the Census dataset it starts earlier, in generation 20. This behaviour shows that GOMM adjustes the number of groups in the first phase, and then, moves elements between groups or recombines them to generate the quasi-optimal solution. If a control mechanism is able to detect the point where the second phase starts, GOMM could stop performing the group-oriented mutations, which produce only useless work in this phase. This is exactly what D-GOMM (see Section 3.5), tries to achieve. 52 Chapter 5 Experimental Results This chapter presents the execution results given by GOMM using the same datasets as in the previous chapter. In first place, we check the validity of the solutions given by the algorithm in order to ensure that they are coherent with the multivariate microaggregation contexto Afterwards, the solutions are compared with other attribute grouping strategies proposed in the literature. Finally, we compare GOMM with the improved version proposed in Section 3.5, called D-GOMM, in terms of execution time. 5.1 Solution Validation Before comparing the solutions given by GOMM with other attribute partitioning approaches, we must ensure that these solutions are correcto To do this, we want to demonstrate that when the value of the k parameter increases, the number of attribute groups of the solution given by GOMM also increases. Intuitively, when k increases, the size of the clusters grows producing an increment in the information loss of each cluster. This effect, combined with the fact that information loss also increases when a large number of attributes are grouped together, causes, with large k values, configurations with a large number of groups to be preferred to configurations with only one or two groups, as in the case of low k values. Tables 5.1 and 5.2 show the components of the cost function and the number of groups of the solution proposed by GOMM with different values of the k parameter. The former presents the results for the Water-treatment dataset while the latter shows the results when using the Census dataset. Note that in both tables, when k increases, the number of groups of the best solution also increases as we predicted. This means that the solutions given by GOMM are coherent with the multivariate microaggregation scenario. 53 Water-treatment k IL ID DLD score groups 5 35.74 27.93 0.00 24.85 1 10 48.05 25.07 0.00 30.29 1 25 49.52 24.14 6.05 32.31 2 50 52.78 23.85 7.89 34.32 3 100 58.33 22.92 5.79 36.34 5 Table 5.1: Components, score and number of groups of the best configuration found by GOMM with diferent parameterizations using the Water-treatment dataset Census k IL ID DLD score groups 5 8.01 32.01 0.00 12.01 1 10 11.97 25.90 0.00 12.46 1 25 13.67 22.12 2.87 13.08 2 50 15.64 20.31 1.30 13.22 2 100 16.28 18.60 3.80 13.74 3 Table 5.2: Components, score and number of groups ofthe best configuration found by GOMM with diferent parameterizations using the Census dataset 5.2 Solution Quality In this section we compare the solutions provided by GOMM with the handmade solutions used in practice. To do that, we have executed GOMM with different k values (from 5 to 100) to study the impact of such parameter in the groups configuration of the best solution. In order to compare our results with the different strategies presented in the literature, we manually split both datasets following the reco=endations described in [131. The resulting configurations are depicted in Tabies A.1 and A.2. Configurations vary from few groups of many attributes to many groups of few attributes. In such configurations, we also considered the correlation between attributes. On the one hand, we grouped correlated attributes together (to minimize the information loss), and on the other hand, we grouped correlated attributes in different groups (to minimize the disclosure risk). G~ stands for groups of n correlated attributes and G~c stands for groups of n non-correlated attributes. Finally, we also consider two special scenarios: in the first one, all attributes are grouped together, ensuring k anonymity. In the second one, we consider the univariate microaggregation scenario where each attribute is microaggregated separately. The results presented in Tables 5.3 and 5.4 show the fitness values of 54 Water-treatment k=5 k=lO k=25 k=50 k=100 e"" 24.8 (1) 30.2 (1) 36.2 (1) 41.7 (1) 50.4 (1) e' 49.3 (38) 48.9 (38) 47.2 (38) 45.0 (38) 46.1 (38) elO c 43.8 (4) 45.3 (4) 44.0 (4) 40.9 (4) 40.4 (4) elO nc 43.4 (4) 45.9 (4) 44.0 (4) 41.1 (4) 44.7 (4) e5 c 42.1 (8) 43.9 (8) 47.0 (8) 49.5 (8) 45.5 (8) G~c 42.7 (8) 45.3 (8) 48.7 (8) 49.8 (8) 49.7 (8) e3 c 42.4 (13) 43.2 (13) 46.6 (13) 50.1 (13) 52.3 (13) G~c 42.2 (13) 43.3 (13) 46.1 (13) 49.7 (13) 52.2 (13) eOMM 24.8 (1) 30.2 (1) 32.3 (2) 34.3 (3) 36.3 (5) Table 5.3: Fitness of sorne hand-made grouping and the solution given by GOMM using the Water-treatment dataset with different values of the k parameter. Number of groups are depicted in parenthesis. Census k=5 k=lO k=25 k=50 k=100 e'" 12.0 (1) 12.4 (1) 14.2 (1) 15.5 (1) 17.9 (1) e' 48.9 (12) 48.1 (12) 45.3 (12) 41.8 (12) 37.6 (12) e4 c 39.7 (3) 37.3 (3) 31.4 (3) 24.4 (3) 16.6 (3) G;c 34.5 (3) 27.8 (3) 19.6 (3) 14.9 (3) 15.1 (3) e3 c 40.4 (4) 38.0 (4) 33.1 (4) 27.0 (4) 20.1 (4) e~c 38.0 (4) 34.3 (4) 27.5 (4) 20.9 (4) 16.2 (4) eOMM 12.0 (1) 12.4 (1) 13.0 (2) 13.2 (2) 13.7 (3) Table 5.4: Fitness of sorne hand-made grouping and the solution given by GOMM using the Census dataset with different values of the k parameter. N umber of groups are depicted in parenthesis. al! the hand-made conligurations along with the litness values obtained by GOMM for different values of k. If we compare the results obtained using the same k value, we observe that GOMM has always the best cost, unless when the quasi-optimal solution given by GOMM solution is one of the hand-made grouping we executed. For instance, if we compare the Watertreatment results (Table 5.3) obtained with k = 50, we see that GOMM achieves a litness equal to 34.3 splitting the dataset in three different groups, whilst the best hand-made conliguration only achieves a litness value equal to 40.9 dividing the dataset into four groups. Similar results are obtained with the remaining k values. Also, if we compare GOMM results with the Census dataset, we observe very similar results. For example, with k = 25 GOMM achieves a litness value equal to 13.0 dividing the Census dataset into two groups and the best hand-made solution is equal to 14.3 without splitting the dataset. 55 5.3 Performance Results The aim of this last section is to compare the two versions of our genetic approach in terms of execution time. In Section 3.5 we introduced D-GOMM, which is a version of the GOMM algorithm that detects when a genetic operation is producing useless work and in this case, it stops executing it. Therefore, the number of new generated chromosomes per generation decreases along with the number of fitness evaluations of this offspring. As 99% of the execution time of GOMM algorithm is spent in cost function evaluations, we expect that this reduction helps to improve the algorithm performance. It is important to notice that D-GOMM only stops the execution of the genetic operations that perform unnecessary work during several generations. Thus, for aH the executions performed the quality of the solution given by D-GOMM is always equal to the one resulting of GOMM's execution. The execution time comparison between the two genetic optimizers is depicted in Figure 5.1 for different values of the k parameter. The left chart has been obtained by executing the algorithms with the Census dataset and the right plot with the Water-treatment. First of aH, if we compare the two datasets we observe that the executions with the Census dataset are slower than the Water-treatment ones. This is because Census has a higher number ofrecords, which causes the MDAV algorithm to take longer execution time. Execution time comparison e Execution time comparison W DD,-------.----.-----, ''''' ~----------------_., o ka'OO .... ka'OO Figure 5.1: Execution time of GOMM and D-GOMM using the Watertreatment dataset and the Census dataset for different values of the k parameter Regarding the execution time of the genetic optimizers, D-GOMM is faster in aH the considered scenarios. However, the speed-up achieved varies depending on the value of the k parameter. We computed the speed-ups in all the scenarios and the results show that as k increases, the speed-up 56 decreases. The explanation to this phenomenon is that when k is small, the solution given by the algorithm has less groups of attributes, thus, the optimizer converges faster and the group-oriented mutations stop doing useful work before. 57 58 Chapter 6 Economic Analysis and Project Schedule After presenting the design, the implementation, the analysis and the results given by GOMM, it is time to give a detailed view on the economic issues related to this project. In first place, we describe the project schedule and present it in a Gantt chart. Afterwards, we analyze the specific cost of each one of the tasks defined in the scheduling, along with other costs associated to the project in order to calculate the total project economic budget. 6.1 Project Schedule Before starting any engineering project, a schedule has to be defined to demonstrate its viability. This schedule shows a prediccion of the begin and the end dates of every task that has to be realized during the project. When the project advances, sorne deviations from the original plan may appear. Then, the schedule has to be adapted and corrected in order to deliver the project in the appointed date. An Informatics Engineering Degree Project has to be completed in one semester (15 weeks) working fuI! time (40 hours per week). However, our project has been realized during ayear working half time (20 hours per week) in DAMA-UPC reasearch group. Thus, the workload of this project is a little higher than a typical Informatics Engineering Degree Project. Figure 6.1 shows the schedule of this project. To simplify, the deviations from this schedule are not presented because they were not so important as the project and the documentation have been delivered in time. Regarding the tasks, note that the fact that this project has been realized in a research group has marked the way to proceed. The methodology followed includes analysis, design, implementation and testing for every version of the algorithm implemented. 59 g >rj ~. ro ?' >-' Q ~ ~ [ ~ ~ JJO ~ g" §' e. '" l s, ~ g '" 'O 8 ~. ~ 6.2 Project Costs To evaluate the total cost of the project we have to study it from two different points of view. Firstly, we calculate the cost of every task defined in the project schedule, which is assigned to a human role that has an associated salary. Afterwards, we take into account the material resourees eost, whieh includes both software and hardware used to develop this project. Human resources After presenting the projeet schedule, we have to assign human resources to every task in order to ealculate its eost. As this is an Informatics Engineering Degree Project, it has been realized by a single student under the supervision of a tutor. Therefore, to obtain a reliable eost estimation we assume that this student plays different roles depending on the task realized. These roles are: analyst, designer and developer. In this eeonomic analysis, we assume that the project manager role corresponds to the analyst. Table 6.1 displays the typical salaries of the three roles considered to ealculate the cost of every task defined in the seheule. Role Analyst Designer Developer Salary 40 €/hour 30 €/hour 20 €/hour Table 6.1: Typical salary of the different roles eonsidered The assignation of human resources to every task defined in the schedule is presented in Table 6.2, along with the duration (in hours) and the total cost of every task. In the project schedule, the task duration is presented in days. As we assume half-time dedication to this project, every day is counted as four hours. The last row of the table shows the total amount of hours dedicated to the project and the total costo This project has been realized in 1.017 hours of work, having a cost of 33.480 €, whieh means it is a middle-size project. Material resources To complete the economic analysis, we have to evaluate the eost of the material resourees employed to realize the project. These resourees can be classified into two eategories: • Software resourees. AH the software used to complete this project is open source, so its cost is zero. This software includes Linux Ubuntu 61 A.2 Water-treatment dataset Water-treatment (a1,a4,a5,a6,a7,a11,aI3,a17,a20,a36) (a3,a9,a10,aI5,a16,a18,a21,a22,a23,a29) (a2, as, a12, a14, a19, a26, a28, a311 a33, a37) (a24, a25, a27, a30, a32, a34, a35, a38) (a1,a2,a3,a24,a4,a9,a8,a25,a5,a10) (a12, a27, a6, a1S, a14, a30, a7, a16, a19, a32) (a11) a18, a26, a34, a13, a21, a28, a3S, a17, a22) (a20, a36, a29, a23, a31, a33, a37, a38) (al) a4, as, a6, a7 )(al1, a13, a17, a20, a36)(a3, a9, a10, a15, a16) (a1S, a21, a22, a23, a29) (a2, as, a12, a14, a19) (a26, a2S, a3l, a33, a37 ) (a24, a25, a27, a30)(a32, a34, a35, a3S) (al, a2, a3, a24, a4)(a9, as, a25, as, alO)(a12, a27, a6, a1S, a14, a30) (a7, a16, a19, a32)(a11, a1S, a26, a34, a13, a21) (a28, a3S, a17, a22) (a2O, a36, a29, a23)(a31 , a33, a37, a3S) (al, a4, a5)(a6, a7, al1)(al3, a17, a20)(a3, a9, aJO) (al5, al6, alS) (a21, a22, a23)(a2, as, al2)(al4, al9, a26)(a2S, a3l, a33) (a29, a36, a37) (a24, a25, a27 )(a30, a32, a34)(a35, a3S) (al,a2,a3)(a24,a4,a9)(as,a25,a5)(al2,a27,a6) (al5, al4, a30) (a7, a16, al9)(al1, alS, a26) (a34, al3, a2l)(a2S, a35, al7) (aJO, a32, a22) (a20, a36, a29) (a23, a3l, a33) (a37, a3S) Table A.2: Hand-made group configurations for the Water-treatment dataset 68 Appendix B Extended Analysis Due to the extension of the analysis performed on GOMM, in Chapter 4 we decided to present only the results for the Water-treatment dataset with k = 25. In this appendix we present the rest of the plots corresponding to the Census dataset with k = 25; and the Water-treatment dataset with k = 100 which have already been analyzed and commented. 69 B.I Census Dataset with k U tilization analysis I K iS .. I ~ D .. Discarded using Group Creale GBneratlon Discarded using Group Split 12~-------------------------, 10 2 O Discarded using Semen! Move I . ~ .. . 1 iS .. 2 O 25 Discarded using Group Siminale Qrrwraticn Discarded using Semen! Swap Discarded using Crossover m,--------------------------, oaneratlon Figure B.l: Utilization of crossover and mutation operations for the Census dataset with clusters of 25 records when used combined. 70 A verafe Lifetime analysis Average Ufetima uBing Group Craala • • I e t 7 ! • & • " . ! • Ji 2 ::¡ o ~~~!."~~'~G~~~~m~ Gll:nerldlon Average Ufetima uBing Group Split 10,-----------------------------------, • ~ . t 7 ! & " I Average Ufetima uBing 8eman! Mova Gltneration Average Ufetima uBing Greup 8iminala 10~-------------------------, • o -~~~I~~~.le¡~~=m¡ Qanerallan Average Ufetima uBing 8eman! Swap 10,--------------------------, • ~ . ti 7 i! • & • " . i : ~ o -~~!.~~~'I¡¡~~=;¡ CJllnerdon Average Ufetima using Crossover GDnendion Figure B.2: Average Lifetime of crossover and mutation operations for the Census dataset with clusters of 25 records when used combined. 71 Efficacy analysis Group Craale 8ficacy Group 8iminale 8ficacy 10 • l 8 l • ~ • ~ I O I -. ~ -. ~ j¡ -e j¡ .. -, .. -10 CJllneratton Qeneratlon Group Splij 8ficaey 8emen! Swap 8ficecy 10 , ~ • ~ • ~ • ~ I O I -. ~ -. a j¡ -e j¡ .. -, .. -10 ClBner.tlon Oeneratlon 8emen! Move 8ficacy Crossover 8ficecy 10 l • l • ~ • ~ t O I -. ~ -. ~ j¡ -6 j¡ .. -, .. -10 -~~~~~~~'1¡¡~~15¡ -~~!m~~~'ID~~~~5~ Ganerldlon ClDnerdon Figure B.3: Efficacy of crossover and mutation operations for the Census dataset with clusters of 25 records when used combined. 72 Efficiency analysis Graup Creale Bliciency Graup 8imin8le Bliciency Gll:nerdon CJllnerdon Graup Split Bliciency 8emen! Swap Bliciency -- - ~ ~ ~ _!!!lQ¡;I;!I'III¡;Ii;I'!I!!.¡;;1;; GI".rdon 8emen! Mave Bliciency Crassaver Bliciency '" Generdon Figure B.4: Efficacy of crossover and mutation operations for the Census dataset with clusters of 25 records when used combined. 73 B.2 Water-treatment Dataset with k 100 Utilization analysis Discarded using Group Creale Discarded using Group Siminale 12 '0 I I • • j ~ e • .. .. • O CillnerllHon Qlnaration Discarded using Group Split Discarded using Semen! Swap ,. '0 I I • • j e • .. .. • O CJltnendlon Qaneration Discarded using Semen! Move Discarded using Crossover 12 '0 I • I Ii j o • e .. .. • O CIIJ ... rtdlon ~,..ratIon Figure B.5: Utilization of crossover and mutation operations for the Watertreatment dataset with clusters of 100 records when used combined. 74 A verafe Lifetime analysis Average Ufetime using Graup Creele 6,-----------------------, • ! t • ! &" s ! 2 1, ~ -~~~~~~~.IG~~~=m¡ Gll:neratlon Average Ufetime using Graup Split Average Uletime using Semen! Mave 6,--------------------------. o Average Uletime using Graup Siminale 6 • ! t • l· s ! 2 I , ~ o Gll:neratlon Average Ufetime using Semen! Swap 6 . 1 s ! i , ~ Gll:nendion Average Uletime using Crassaver CIItneratlon Figure B.6: Average Lifetime of crossover and mutation operations for the Water-treatment dataset with clusters of 100 records when used combined. 75 Efficacy analysis Group Creale Blicacy Group 8iminele Blicacy 10 10 • 1 • 1 • • t • ~ O I -. ~ -4 ~ S -8 S .. -, .. -10 Qaneratlon <J8neratlon Group Splk Blicecy 8emen! Swap Blicacy 10 10 1 • 1 • • • ~ 2 ~ • I O , O -. -. ~ -. ~ -. S -8 S -8 .. -, .. -, -10 -10 <J8neratlon <iDneration 8emenl MoYe Blicacy Crossover Blicecy 10 1 • ~ , ~ S .. Qarwration Qaner.tton Figure B.7: Efficacy of crossover and mutation operations for the Watertreatment dataset with clusters of 100 records when used combined. 76 Efficiency analysis Group Craale Bliciency Group Siminale Bliciency QII ... ration QllnerdDn Group Split Bliciency Semen! Swap Bliciency Zl '" " 15 " " ~ ~ ~ ~ o ~ ~ Ji Ji .,. .,. -Zl -Zl -os -25 QIonondion CJllnerdOn Semen! Move Bliciency Cros.ovar Bliciency ,. Zl " " ! • ~ o ~ -. Ji .,. -1' -Zl -Zl -os -os QIIrwratiOn a. .... rdDn Figure B_8: Eflicacy of crossover and mutation operations for the Watertreatment dataset with clusters of 100 records when used combined. 77