scieee AI-readable full text Open interactive document viewer

Variable selection for meaningful clustering of multitopic territorial data

Angerri Torredeflot, Xavier,Gibert, Karina

Abstract

This paper proposes a new methodology to improve territorial cohesion in clustering processes where many variables from different topics are considered. Clustering techniques provide added value to identify typologies, but there are still unsolved challenges when data contain an unbalanced number of variables from different topics. The territorial feature selection method (TFSM) is presented as a method to select the representative variable of each topic such that the interpretability of resulting clusters is preserved and the geographical cohesion is improved with respect to classical approaches. This paper also introduces the thermometer as a new knowledge acquisition tool that allows experts to transfer semantics to the data mining process. TFSM proposes the index of potential explainability (𝐸𝑘 ) as the criteria to select the most promising variables for clustering. 𝐸𝑘 is based on the combination of inferential testing and metrics such as support. The proposal is applied with the INSESS-COVID19 database, where territorial groups of vulnerable populations were found. A set of 195 variables with 21 unbalanced thematic blocks is used to compare the results with a traditional multiview clustering analysis with promising results from both the geographical and the thematic point of view and the capacity to support further decision making.

Full text

Citation: Angerri, X.; Gibert, K. Variable Selection for Meaningful Clustering of Multitopic Territorial Data. Mathematics 2023,11, 2863. https://doi.org/10.3390/math11132863 Academic Editor: Manuel Alberto M. Ferreira Received: 9 May 2023 Revised: 18 June 2023 Accepted: 21 June 2023 Published: 26 June 2023 Copyright: © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). mathematics Article Variable Selection for Meaningful Clustering of Multitopic Territorial Data Xavier Angerri * and Karina Gibert * Intelligent Data Science and Artificial Intelligence Research Center and Institut de Ciència i Tecnologia de la Sostenibilitat, Universitat Politècnica de Catalunya-BarcelonaTech, 08034 Barcelona, Spain *Correspondence: xavier[email protected] (X.A.); [email protected] (K.G.) Abstract: This paper proposes a new methodology to improve territorial cohesion in clustering processes where many variables from different topics are considered. Clustering techniques provide added value to identify typologies, but there are still unsolved challenges when data contain an unbalanced number of variables from different topics. The territorial feature selection method (TFSM) is presented as a method to select the representative variable of each topic such that the interpretability of resulting clusters is preserved and the geographical cohesion is improved with respect to classical approaches. This paper also introduces the thermometer as a new knowledge acquisition tool that allows experts to transfer semantics to the data mining process. TFSM proposes the index of potential explainability ( Ek ) as the criteria to select the most promising variables for clustering. Ek is based on the combination of inferential testing and metrics such as support. The proposal is applied with the INSESS-COVID19 database, where territorial groups of vulnerable populations were found. A set of 195 variables with 21 unbalanced thematic blocks is used to compare the results with a traditional multiview clustering analysis with promising results from both the geographical and the thematic point of view and the capacity to support further decision making. Keywords: data science; intelligent decision support; COVID-19; traffic light panels; thermometer; feature selection; explainable AI; maps; Catalonia MSC: 68T05; 68T30; 97K80; 90B50 1. Introduction Making global territorial decisions might not be a good option when the territory involves heterogeneity. Very often, several parts of the population behave differently from others. Making sustainable decisions quite often means making different decisions associated with the different scenarios occurring in the different areas of the territory and associating these decisions to smaller areas where individuals are sufficiently similar. However, designing policies for local territorial units might be inconvenient because statistical secrecy might be in danger when the affected groups become too small. Finding mechanisms to identify groups of similar territorial units that can share the same policies is a good option to support policy making at an intermediate level of territorial granularity that preserves statistical secrecy and goes further than global territory’s more general and imprecise decisions. To find a suitable grouping of territorial units, clustering processes oriented to identify blocks of similar individuals to receive the same treatment are indicated. The resulting clusters will contain groups of territorial units sharing a single decision per group. However, applying clustering directly to datasets of individuals does not ensure that the results are consistent from a territorial point of view. This means that clusters might be formed with similar individuals coming from very different locations in the territory, and this will make it impossible to design policies from a territorial perspective. This was one of the main challenges of that paper and where difficulties have been met. Mathematics 2023,11, 2863. https://doi.org/10.3390/math11132863 https://www.mdpi.com/journal/mathematics Mathematics 2023,11, 2863 2 of 33 This paper presents a methodology able to find clusters with territorial coherence from individual databases (microdata). The proposal also addresses a second challenge that is also common in the field of clustering citizen data, which is dealing with data about different topics that are often represented in an unbalanced way. Indeed, when clusters have to be discovered on a database containing information from different topics and the number of variables from each of the topics is unbalanced, classical clustering is biased towards more represented topics (those with more variables). Multiview clustering is an approach often used to mitigate these biases. However, territorial coherence is not taken into account by the original multiview approach. Therefore, a modification of the multiview clustering is proposed based on selecting representative variables per each topic, thus maintaining territorial coherence. Thus, the main goal of this paper is to define a new methodology for finding territorial clusters from individual datasets with territorial coherence and the balanced impact of all topics tackled in the data. The resulting clusters will guarantee that all locations in a cluster are close and similar. The presented proposal gives a central role to the location variable. In the general case, the territorial variable describes a certain level of administrative division of the territory (cities, regions, etc.). Our solution is the territorial feature selection methodology (TFSM). The following are the specific subgoals addressed in this paper with the aim of achieving our overall goal: • We introduce the semantics of the variables through a new formalism because there is a need to drive the meaning of the variables to the interpretation of results through the analysis process. Our solution is the thermometer. • We design a new automatic methodology of building a conceptual interpretation of profiles based on the traffic light panel (presented in Section 2.4) method of automatization, which helps the final user understand the results because there is a need for automatically building TLPs, including the semantics of the variables. Our solution is the creation of a TLP based on the thermometer. • We create new data-driven variables to sum up variables from the same topic because there is the need to balance the number of variables per thematic block for the final global analysis. Our solution is the data-driven 2nd generation indicator. • We discover which variables should be included in the global clustering to guarantee clusters with territorial coherence because there is a need for objective criteria to choose the most appropriate variable from each thematic block. Our solution is the index of potential explainability. Accordingly, the main contributions of this paper are: • The territorial feature selection method: This methodology is used to discover which clusters have territorial coherence. This method is the main contribution proposed in this paper and includes the identification of the variable with more significance in a set of territories. • The thermometer: This is a new tool that assigns basic traffic light colors (green, yellow, or red) to ranges of values of the numerical variables or to the modalities of qualitative variables so that colors are associated with the semantics of the variable. It is a knowledge acquisition tool that allows domain experts to transfer semantics to the machine. It is enhanced with a fourth color (violet), which is used to represent missing values. • TLP based on the thermometer: This is a new method to automatically determine the color of each cell using the knowledge and semantics given by the thermometer. • Data-driven 2nd generation indicators (DD2gI): This is a new methodology that enriches the data-driven 3rd generation variable creation presented in [ 1 ] with the introduction of the thermometer, combined with clustering and the traffic light panel. Mathematics 2023,11, 2863 3 of 33 • Index of potential explainability: This is a new index based on the Lebart test values for qualitative variables computed versus location. It is used as the metric to select candidate variables inside TFSM. To summarize, a new feature selection methodology is created based on multiview clustering applied with the thermometer tool. The proposal is applied to a real case study from the INSESS-COVID19 database [ 2 ], a database resulting from research on the impact of the first COVID-19 lockdown on vulnerable Catalan populations. That study started collecting data from vulnerable citizens from Catalonia between April and 6 December 2020, and by 15 December 2020, the INSESSCOVID19 general report was publicly presented in front of governmental authorities [3]. Our proposal is applied to discover what the specific results were for local territories, and it is an improvement to the methodology proposed in [ 2 ]. Concretely, the second- and third-generation variables announced in [ 3 ] are now built on the basis of a new tool proposed in this work called the thermometer, which allows us to extract more information from the database. The INSESS-COVID19 database contains variables from several topics; thus, multiview clustering is convenient. In order to mitigate the bias provided by unbalanced views (with different numbers of variables), a new approach is developed, combining some feature selection tasks with the creation of new variables. The new methodology introduces a new tool called the thermometer, which is formalized here for the first time and allows the injection of semantics into the automatic interpretation of clusters, which are based on traffic light panels. This paper also shows how using the proposed methodology based on AI tools and methods is useful in supporting decision-making. The structure of this paper is as follows. After this introduction in the Section 1, in Section 2, the materials and methods are shown. Within this section, Section 2.1 is dedicated to the state of the art; research related to feature selection and multiview clustering is presented. Sections 2.2–2.5 present tools that might be known to understand this paper, and Section 2.6 contains the main contributions of this paper, the thermomenter and the creation of TLP, which is based on the thermometer. Sections 2.6.1 and 2.6.2 describe the creation of the data-driven second-generation indicator (DD2gI). Section 2.6.3 describes the territorial feature selection method, and Section 2.6.4 describes its validation. In Section 3, our methodology is applied to a case study (the INSESS-COVID19 project), giving examples and details of the methodological development, such as the creation of the data-driven second-generation variable in the coexistence unit block. The practical validation is also shown (see Section 3.2.4). Section 4draws conclusions. In this paper, we present a new methodology that can be used in decision making and which has real-world applications. The data used in this paper are from the INSSES-COVID19 project. These reasons have moved the authors to present this paper to the journal. 2. Materials and Methods 2.1. State of the Art 2.1.1. Multiview Clustering Multiview clustering deals with high-dimensionality data, as explained in [ 4 ], where nutritional patterns are identified through multiview clustering, or [ 5 ], where a new methodology is presented to discover and understand complex patterns with multiview clustering techniques. In this approach, the variables are split into several groups according to different themes or topics referred to in the dataset (such as anagraphics, working situations, biomarkers, opinions, etc.). Each group or view is analyzed independently from the other, although some views can be grouped into a bigger group and analyzed together; this helps when the topics of several views are related or when views contain few variables, so several blocks that make sense are grouped. Then, subjects are clustered under each group of variables or views. Once all views are clustered and analyzed, a new qualitative variable appears. In multiview clustering, to make a general cluster, the class variables resulting from each view Mathematics 2023,11, 2863 4 of 33 are used. Multiview clustering techniques are used in [ 6 ], where variables are split into two independent groups according to their meaning. 2.1.2. Feature Selection Which are the best variables to use in the final clustering? This is the main question to solve before clustering variables. This problem has been researched several times, and there are several papers summarizing proposed methods. Ref. [ 7 ] provides a comprehensive and structured overview of recent advances in feature selection research. Additionally, Ref. [ 7 ] revisits feature selection research from a data perspective and reviews representative feature selection algorithms for conventional data, structured data, heterogeneous data, and streaming data. For each type of data, several methods are presented. Similarity-based methods, information-theoretical-based methods, sparse-learning-based methods, and statistical-based methods are defined for conventional data. For structured features, there are some methods for group feature structures, tree feature structures, and graph feature structures. Methods for feature selection algorithms with linked data, multi-source feature selection, and feature selection algorithms with multiview data exist in the case of heterogeneous data. Algorithms with feature streams and algorithms with data structures with data streams exist for streaming data. Out of all the methods described in [ 7 ], the methods with more impact are the following: • The Laplacian score, which was used in [ 8 ], where the methodology is based on the observation that data points from the same class are close. It was compared to one supervised and another unsupervised procedure. ReliefF, which was used in [ 9 ], is a similarity-based method for conventional data. Ref. [ 9 ] investigated and discussed how and why ReliefF methods work and all their characteristics (proprieties, parameters, dependencies, scalability, robustness, etc.) • Mutual information feature selection, which was used in [ 10 ], which investigated the application of this kind of feature selection method to evaluate a set of variables and select an informative subset to be used for a neural network classifier. The minimum redundancy maximum relevance method was used in [ 11 ], which studied how to select good features as a function of the maximization of the maximal statistical dependency criterion based on mutual information. Conditional mutual information maximization was used in [12], where features were selected if they maximized their mutual information with the class to predict the conditions of any feature already selected. This method ensures that selected variables are individually informative. A fast correlation-based filter was used in [ 13 ], where the authors proposed a filter method that identified relevant features as well as redundancy among relevant features without a pairwise correlation analysis. All these methods are information-theoretical- based methods for conventional data. • Feature selection with a lp-norm regularizer was used in [ 14 ], where the authors proposed a new method for making estimations in linear models by minimizing the residual sum of squares. This method is a sparse-learning-based method for conventional data. • In Ref. [ 15 ], which presents statistical techniques applied in geology, the T-score appears as a statistical-based feature selection method for conventional data. • Group lasso was used in [ 16 ], where efficient methodologies were proposed for the extensions of lassos for variable selection and were shown to improve the performance. The overlapping sparse group lasso method used in [ 17 ] proposed a new penalty method that leads to sparse estimators when it is used as a form of regularization to minimize the empirical risk. Both are methods of creating group feature structures for structured features. In the field, unsupervised methods, such as those in [ 18 ], have tested how powerful feature-weighting techniques are for predictive tasks within different domains. Mathematics 2023,11, 2863 5 of 33 2.1.3. Selecting Discriminant Variables It is necessary to take variables with significant differences between modalities for good feature selection. In sustainability datasets, locations are usually a modality of one variable in the dataset. To know if a variable behaves in a different way in one territory compared to another, it is necessary to use the test value proposed in [ 19 ]. This new methodology is based on [ 20 ], the original book where Lebart presented his test, which was mostly used during the profiling part when the obtained classes from a clustering should be discovered. 2.2. Creation of New Variables Preprocessing is an important step in the data mining process because, by using accurate methods, greater quantities and quality of information can be obtained. In [ 21 ], preprocessing techniques, such as transformations and the creation of new variables, are presented. One preprocessing technique involves creating new variables corresponding to the reasoning behind parameters from the expert. Several methods of creating new variables are presented in [ 1 ]. Indicators and counts are examples of these methods. Additionally, in [ 22 ], a simplified index for water quality is presented that uses a new variable as a mathematic operation of other variables. Additionally [ 23 ], binary variables are created in the medical field. Ref. [ 24 ] presents a method of transforming correlated nonnormal variables to independent standard normal ones. Many databases are full of variables corresponding to the same topic, which are called a block in this paper. Ref. [ 1 ] presents a method of creating a new data-driven third-generation indicator. 2.3. Clustering Clustering is applied when which group the data belongs to is unknown and it is necessary to find those groups. As said in [ 25 ], clustering is a process of grouping data into classes or clusters so that data from the same cluster are quite similar and data from different clusters are different. Nevertheless, when clustering is applied, several elements should be decided. For example, partitioned or hierarchical methods could be applied. The authors of one paper applied a hierarchical ascendant method with Ward’s aggregation criteria [ 26 ]. Ward’s aggregation criteria are used in several studies, such as in [ 27 ], which presented unsupervised learning methodologies related to the field of the simulation of data, or in [ 28 ], where Ward’s method was used for an application related to COVID-19. Moreover, related to hierarchical clustering, in [ 29 ], several algorithms for hierarchical clustering are presented. In order to be able to perform this grouping of data, it is necessary to consider the measurement of distance in front of two objects. There are a large number of distance measurements. In this project, the Gibert mixed metric is used [ 30 ] since the INSESSCOVID19 instrument combines numerical and qualitative data together. Additionally, clustering can be conditional or not. In this paper, conditional clustering is used in our proposal of our new methodology. It is used when individuals with a certain characteristic should be in the same clustering. In projects where the main object is making territorial groups, conditional clustering is a good option. Ref. [ 31 ] is a paper that presents several examples of conditional clustering, the new methodology to be applied. 2.4. TLP (Traffic Light Panel) The TLP technique is a profiling method introduced in [ 32 ] to assist experts in the final process of conceptualizing the obtained classes. The steps to build a TLP from a clustered database are as follows: 1. Represent all variables versus the discovered variables in a class panel graph (CPG), a compact graphic tool with the conditional distributions of the variables vs. classes where the particularities of each class are easily shown. Mathematics 2023,11, 2863 6 of 33 2. Calculate the mean, standard deviation, minimum, and maximum for numerical variables and the absolute and relative frequencies for qualitative variables. 3. Using the results from Steps 1 and 2, identify variables or combinations of variables with specific ranges of values that distinguish the class from others. 4. Assign qualitative levels (high values, medium values, and low values) to the variables identified in step 3 by detecting the area where the mass of the distribution is placed. 5. Perform a TLP for the variables using the qualitative values assigned in Step 4. 6. Show the TLP to an expert and ask him to select a label for the class, which could be good or positive, neutral or medium, and bad or negative. The expert is conceptualizing the class up to this step on the basis of the traffic light panel. Colors are assigned in accordance with the interpretive codes of the expert. Green is assigned to positive or good values of the variable, yellow is assigned to medium or neutral values, and red is assigned to negative or bad values. The context and meaning of each color must be related to some latent concept of the domain that allows the association between the variable polarity and the idea of improvement or worsening. The authors of [ 33 ] propose two basic ways to assign colors to the scale of the variable. a. Direct color coding (red–yellow–green) for low–medium–high values. b. Inverse color coding (green–yellow–red) for low–medium-high values. 7. Perform significance tests (ANOVA, Kruskall–Wallis, or χ2 independence tests) to assess the relevance of differences for the variables implied in the above steps. A good method for TLP validation is to see at a glance how each class is distinguishable from another class. Each class must be different from another class, and two classes cannot have the same color for each variable. 2.5. Annotated TLP (aTLP) In the TLP described in Section 2.4, only 3 colors are shown. Red always represents negative or bad values, yellow represents neutral or medium values, and green represents positive or good values. Therefore, in the original TLP, the associated uncertainty (measured by the variation coefficient) associated is omitted, and related ambiguities appear. Ref. [ 34 ] presented annotated TLP (aTLP) to improve the interpretation of TLP. Building aTLP requires the quantification of the homogeneity of the local distributions inside the classes because the tone of the color changes as a function of the heterogeneity. Therefore, a darker cell represents higher heterogeneity among the class individuals in that variable, and more uncertainty about the standard behavior of that variable in that class is propagated. Therefore, the darker an aTLP is, the higher the uncertainty related to the final profiles is; also, purer colors appearing in a TLP indicates that less variability in the central tendency of the variable is present. A color-based model for the automatic calculation of the saturation of each color is presented in [27]. 2.6. Methodological Contributions 2.6.1. Thermometer In ref. [ 35 ], two methodologies to automatically build the TLP are presented. These methods are based on different central trend statistics of variables inside the class. In this section, a new method based on expert knowledge is shown. A thermometer (T) is a knowledge acquisition tool that allows the representation of the semantics associated with a variable in a formal way so that it can be injected into further data analysis methods. A T represents a symbolic abstraction of these semantics according to two main principles: (a) There is a latent reference concept that can guide the evaluation of the variable values as promoting or not promoting the individuals regarding these latent concepts (i.e., water quality, the goodness of a care system, the availability of services...). This latent reference concept is aligned with the goals of the analysis. Mathematics 2023,11, 2863 7 of 33 (b) A set of traffic light colors (red (r), yellow (y), and green (g)) is associated with the semantics of the values of the variables according to the latent reference concept. For example, variables indicating dirty water will be associated with red for water quality problems, and clean water will be associated with green. Violet will be used for missing values. The formal representation of a thermometer is described in the following: • I is a set of individuals I={i1, . . . , in} described by K variables {X 1 , X 2 , . . . , X j , . . . X K }. •Dk= {m1, m2, m3, . . . , mk} is the set of modalities for a qualitative variable Xk. • T = {t 1 , t 2 , t 3 , ..., t K } is the available thermometer panel, where t k , k ∈ {1:K} is the thermometer for the variable Xk∈K. •When Xkis qualitative, tk= {(m1;q1),(m2,q2), . . . ,(mk,qk)}, where: a. M ∈Dkis a modality of variable Xk; b. qkis the color assigned to mk. •When Xkis quantitative: tk= {r1, r2, o}, where: a. r1is a numerical value for Xksuch that min(Xk)≤r1≤max(Xk); b. r2is a numerical value for Xk, such that r1≤r2≤max(Xk); c. o is the semantic polarity of the variable (o ∈ {direct, inverse}). It represents a direct association of the variable’s meanings with the traffic light colors or their inverse meanings (high values of numerical variables can link to red if they measure water pollutants or can link to green if they measure, for example, biodiversity in water quality problems). A. NUMERICAL VARIABLES The thermometer of a numerical variable indicates the cutpoints of a cutoff, thus building three intervals in a variable’s range, which can be associated with three zones of color according to the previous experts’ knowledge and thermometer principles. By convention, due to the strong relationship that this visual model maintains with traffic lights, only a maximum of three zones with the colors red, yellow and green are allowed, and violet is used for missing values. This restricted model with three colors is oriented to take advantage of all implicit interpretation codes associated with traffic lights so that the concept’s induction from the analysis results is empowered. The colored areas are arranged in such a way that: •The first color zone ranges from min(Xk) to r1; •The second color zone ranges from r1to r2; •The third color zone ranges from r2to max(Xk). The idea is that the expert can indicate on T three areas where the semantics of the variable move between low, normal, and high values, and the cutpoints r 1 and r 2 determine the values where the variable changes meaning. From this first structure, a second semantic layer of the variable is transferred to the system in a second component: the color, which associates green with the most benevolent strip in terms of the interpretation of the variable and red with the least benevolent, always according to the expert on the topic studied. The association between colors (green, yellow, and red) and qualitative levels (low, medium, and high) can be done in two ways: •Direct: low values are red, and high values are green. •Inverse: green values are low, and high values are red. Determining the direct or inverse color association depends on the semantics of the variable and their values and is entirely the choice of the expert. Keeping the expert in the loop becomes critical for the construction of the thermometer. Figure 1visualizes a tkfrom a numerical variable. It shows the following elements: •Variable name: Name of the quantitative variable represented in the thermometer. •Minimum: Minimum value of Xkobserved in the sample. Mathematics 2023,11, 2863 8 of 33 •Maximum: Maximum value of Xkobserved in the sample. •Scale: A graduated axis with possible values of Xk. •r1: The upper bound of the first color zone. •r2: The lower bound of the third color zone Mathematics 2023, 11, x FOR PEER REVIEW 8 of 35 Determining the direct or inverse color association depends on the semantics of the variable and their values and is entirely the choice of the expert. Keeping the expert in the loop becomes critical for the construction of the thermometer. Figure 1 visualizes a tk from a numerical variable. It shows the following elements: • Variable name: Name of the quantitative variable represented in the thermometer. • Minimum: Minimum value of Xk observed in the sample. • Maximum: Maximum value of Xk observed in the sample. • Scale: A graduated axis with possible values of Xk. • r1: The upper bound of the first color zone. • r2: The lower bound of the third color zone When o is direct, the green value is in the third zone; if it is inverse, it is in the first zone. Figure 1. Numerical variable thermometer design. The result obtained using this technique is a very powerful visual model that provides a lot of information to the system and the profane agents in the damaged nature of the data through a very visual, intuitive and intelligible representation. Due to its compact shape, in a small space, thermometers of several variables can be shown together as rows of a single panel that, at a very quick glance, allows the expert to understand the conceptualization of the variables in a very intuitive way. The thermometer is a technical tool that collects the semantics of the variable and facilitates the creation of a new qualitative variable, catching the semantics associated with the low, middle or high values of a variable through symbolic colors red ®, yellow (y), green (g), and violet (v). It can be very often used as an auxiliary tool to automatically produce an interpretation of data analysis results. B. QUALITATIVE VARIABLES When the variable is qualitative, the thermometer provides a direct re-coding between the original modalities of the variable and the symbolic colors. As there are no cutoff zones, thermometers for qualitative variables are designed in such a way that all the modalities can take any of the 3 colors. In this way, it is guaranteed that the expert can assign semantics to each modality separately due to being allowed to assign the same color to several modalities. For ordinal qualitative variables, the modalities should be represented with the correct ordering, and colors should be assigned following this order (see Figure 2). Figure 2. Qualitative variable thermometer design. Figure 1. Numerical variable thermometer design. When o is direct, the green value is in the third zone; if it is inverse, it is in the first zone. The result obtained using this technique is a very powerful visual model that provides a lot of information to the system and the profane agents in the damaged nature of the data through a very visual, intuitive and intelligible representation. Due to its compact shape, in a small space, thermometers of several variables can be shown together as rows of a single panel that, at a very quick glance, allows the expert to understand the conceptualization of the variables in a very intuitive way. The thermometer is a technical tool that collects the semantics of the variable and facilitates the creation of a new qualitative variable, catching the semantics associated with the low, middle or high values of a variable through symbolic colors red ® , yellow (y), green (g), and violet (v). It can be very often used as an auxiliary tool to automatically produce an interpretation of data analysis results. B. QUALITATIVE VARIABLES When the variable is qualitative, the thermometer provides a direct re-coding between the original modalities of the variable and the symbolic colors. As there are no cutoff zones, thermometers for qualitative variables are designed in such a way that all the modalities can take any of the 3 colors. In this way, it is guaranteed that the expert can assign semantics to each modality separately due to being allowed to assign the same color to several modalities. For ordinal qualitative variables, the modalities should be represented with the correct ordering, and colors should be assigned following this order (see Figure 2). Mathematics 2023, 11, x FOR PEER REVIEW 8 of 35 Determining the direct or inverse color association depends on the semantics of the variable and their values and is entirely the choice of the expert. Keeping the expert in the loop becomes critical for the construction of the thermometer. Figure 1 visualizes a tk from a numerical variable. It shows the following elements: • Variable name: Name of the quantitative variable represented in the thermometer. • Minimum: Minimum value of Xk observed in the sample. • Maximum: Maximum value of Xk observed in the sample. • Scale: A graduated axis with possible values of Xk. • r1: The upper bound of the first color zone. • r2: The lower bound of the third color zone When o is direct, the green value is in the third zone; if it is inverse, it is in the first zone. Figure 1. Numerical variable thermometer design. The result obtained using this technique is a very powerful visual model that provides a lot of information to the system and the profane agents in the damaged nature of the data through a very visual, intuitive and intelligible representation. Due to its compact shape, in a small space, thermometers of several variables can be shown together as rows of a single panel that, at a very quick glance, allows the expert to understand the conceptualization of the variables in a very intuitive way. The thermometer is a technical tool that collects the semantics of the variable and facilitates the creation of a new qualitative variable, catching the semantics associated with the low, middle or high values of a variable through symbolic colors red ®, yellow (y), green (g), and violet (v). It can be very often used as an auxiliary tool to automatically produce an interpretation of data analysis results. B. QUALITATIVE VARIABLES When the variable is qualitative, the thermometer provides a direct re-coding between the original modalities of the variable and the symbolic colors. As there are no cutoff zones, thermometers for qualitative variables are designed in such a way that all the modalities can take any of the 3 colors. In this way, it is guaranteed that the expert can assign semantics to each modality separately due to being allowed to assign the same color to several modalities. For ordinal qualitative variables, the modalities should be represented with the correct ordering, and colors should be assigned following this order (see Figure 2). Figure 2. Qualitative variable thermometer design. Figure 2. Qualitative variable thermometer design. 2.6.2. Creation of TLP based on Thermometer In Section 2.4, the process of creating a classic TLP is shown. Here, the original methodology is updated to incorporate the semantic information provided in the thermometer. Let {X 1 , X 2 , X 3 , . . . , X K } be the qualitative or quantitative set of variables to be represented in a TLP, let T be the available thermometer for the same set of variables, and let P be the class variable, which is the target categorical variable to be explained in the TLP. The generation of the TLP based on T is composed of the following vector: Mathematics 2023,11, 2863 9 of 33 1. The discretization/re-coding phase: Create Z k , a new qualitative variable resulting from the re-coding or discretization of X K according to its original type and the thermometer information: a. If X k is quantitative, create Z k = dis(X k , t k ) by discretizing X k according to the cutoff values indicated in the thermometer and the associated colors. b. If X k is qualitative, create Z k = rec(X k , t k ) by re-coding X k according to the colors given in the thermometer for each modality. c. If t k/∈ T, then assign yellow to all values of X k ; the user can manually edit this. Discretization (Xk: quantitative): For all i ∈ [1 : n], where x i is the value of X k for individual I, the value z i of Z k is as follows : •If xiis a valid value of Xk, a. If xi≤r1: i. If o = direct, then zi= “r”; ii. If o = inverse, then zi=”g”; b. If (xi> r1)∧(xi≤r2)→zi= “y”; c. If xi> r2: i. If o = direct, then zi= “g”; ii. If o = inverse, then zi= “r”. •If xiis missing, then zn= “v”. Re-codification (Xk: qualitative): For all i∈[1 : n], where xiis the value of Xkfor individual I, the value ziof Zkis as follows: Given tk= {mm,qm}m=1:nk, a. If (xi = mm), then zi= qm; b. If xiis missing, then zi= “v”. 2. The cross-matrix creation phase can be represented as follows: Mk=P x Z =       n11 n12 n13 n14 n21 n22 n23 n24 n31 n32 n33 n34 . . . nc1· · · ncq · · ·        , (1) where D Z = {r,g,y,v} are the colors associated with the M K columns, and given c ∈ Pand q∈DZ, the element ncq is the number of individuals of class cwith Zk= q. nc=∑4 q=1ncq,N=∑∀c∈Pnc(2) 3. The color assignment phase. Let Fc ∈ Mk be a row of the above matrix. The cell color is denoted as SC and is expressed as follows: a. Binary qualitative variables: i. If argmax(Fc) = 4, then SC= v. ii. If argmax(Fc) = 3, then SC= y. iii. If argmax(Fc) = 1: 1. If nc1/nc≥γ, then Sc= r; 2. If nc1/nc<γ, then Sc= y. iv. If argmax(Fc) = 2: 1. If nc2/nc≥γ, then Sc= g; 2. If nc2/nc<γ, then Sc= y. where γ∈ [0,1] and determines the threshold proportion of a modality to be considered a non-yellow color. This is required because the binary variables have only Mathematics 2023,11, 2863 16 of 33 Table 1. Cont. Block Number Block Name Original Variables Preprocessed Variables DD2gI KB2g 3gV B07 DigitalGap 4 6 1 1 B08 DependentEcolution 4 1 1 B09 UseofTimes (peopleincharge) 15 4 1 B10 UsdelTempsDINt1T2 16 9 1 B11 ConvRel 3 1 B11 Violence 19 5 4 36 1 B12 Allparticipation 12 3 1 B13 Labour 17 1 1 B13 LaborBussiness 5 1 B14 Telework 8 1 B15 Economy 18 1 14 1 B15 Gethelp 14 2 B18 Health 9 1 B18 Addiction 12 1 B18 MentalHealth 9 1 3.2. Creating New Variables 3.2.1. Creation of Location Variable The participants were asked about their municipality of living. Nevertheless, that variable is not useful for achieving our aim. In Catalonia, there are 947 municipalities. Each town belongs to one BASS, so a new variable is created in the database called BASS. The experts gave us the list of municipalities belonging to each BASS, and we created a new variable called BASS, which indicated the BASS of residence of the participant. 3.2.2. Creation of Data-Driven Second-Generation Indicators (DD2gI) In Section 2.6.2, a new methodology for creating data-driven second-generation indicators is presented, which summarizes the main idea of creating new variables. Below, we present a demonstration of how second-generation variables could be built using our new methodology. 1. Select the component variables to be synthesized In the questionnaire, there are several questions providing information about the situation of respondents in January 2020, July 2020 and January 2021, so they can be analyzed together. In this case, participants were asked about their living coexistence. Each participant answered the question: “Who do you live with”. The possible options were: “1. Alone: I live alone.; 2. MM-MP: Single-mother or single-parent family.; 3. Nucleus: Family of father and mother and own children (if there are children).; 4. Regrouped: Regrouped families (children of several couples).; 5: Extended: Extended family (fathers, mothers, children, grandparents, aunts, etc.).; 6: Non-Family: I live with people who are not family.”; 7. No answer. This question was answered 3 times, creating 3 different variables. We analyzed these variables by making them components of a new variable. 2. Cluster the selected component variables Using the Ward’s method aggregation criteria presented in [ 22 ] with Gibert’s mixed metrics, selected variables were clustered, resulting in a new class variable. Figure 4shows the resulting dendrogram. Mathematics 2023,11, 2863 17 of 33 Mathematics 2023, 11, x FOR PEER REVIEW 17 of 35 Using the Ward’s method aggregation criteria presented in [22] with Gibert’s mixed metrics, selected variables were clustered, resulting in a new class variable. Figure 4 shows the resulting dendrogram. Using Calinski–Harabasz criteria [40], the database was divided into 8 clusters. Figure 4. Coexistance Unit Dendogram. 3. Create the CPG The CPG was created and is shown in Figure 5. Figure 4. Coexistance Unit Dendogram. Using Calinski–Harabasz criteria [40], the database was divided into 8 clusters. 3. Create the CPG The CPG was created and is shown in Figure 5. Mathematics 2023, 11, x FOR PEER REVIEW 18 of 35 Figure 5. Living Coexistence Class Pannel Graph. 4. Create the Thermometer Following the methodology presented in Section 2.6.1, a thermometer was created (see Figure 6), and together with the field expert, a color was assigned to each modality. • Green was assigned to the modalities “2.MM-MP” and “3.Nucleus” because the expert considered that someone living with their nuclear family and people who love them is a positive situation. In this instance, an individual has people who can help them in case of necessity, and difficulties are easy to overcome. Figure 6. Living Coexistence Thermometer. • Yellow was assigned to the modalities “4.Regrouped” and “5.Extended” because the expert considered that living with people that belong to one’s family group is positive. On the other hand, these kinds of families usually are composed of many members, and the apparition of conflicts between members is possible. Therefore, as this possible aspect is negative, the modality was marked yellow. • Red was assigned to the modalities “1.Alone” and “6.NoFamily”. Living with people who are not one’s own family where there is, therefore, no emotional attachment is akin to living alone. It is more difficult to find help. Moreover, if one lives with people that are not one’s family, it is easier for conflicts to appear. 5. Create the TLP based on the Thermometer In Figure 7 is shown the TLP based on Thermometer Figure 5. Living Coexistence Class Pannel Graph. Mathematics 2023,11, 2863 18 of 33 4. Create the Thermometer Following the methodology presented in Section 2.6.1, a thermometer was created (see Figure 6), and together with the field expert, a color was assigned to each modality. Mathematics 2023, 11, x FOR PEER REVIEW 18 of 35 Figure 5. Living Coexistence Class Pannel Graph. 4. Create the Thermometer Following the methodology presented in Section 2.6.1, a thermometer was created (see Figure 6), and together with the field expert, a color was assigned to each modality. • Green was assigned to the modalities “2.MM-MP” and “3.Nucleus” because the expert considered that someone living with their nuclear family and people who love them is a positive situation. In this instance, an individual has people who can help them in case of necessity, and difficulties are easy to overcome. Figure 6. Living Coexistence Thermometer. • Yellow was assigned to the modalities “4.Regrouped” and “5.Extended” because the expert considered that living with people that belong to one’s family group is positive. On the other hand, these kinds of families usually are composed of many members, and the apparition of conflicts between members is possible. Therefore, as this possible aspect is negative, the modality was marked yellow. • Red was assigned to the modalities “1.Alone” and “6.NoFamily”. Living with people who are not one’s own family where there is, therefore, no emotional attachment is akin to living alone. It is more difficult to find help. Moreover, if one lives with people that are not one’s family, it is easier for conflicts to appear. 5. Create the TLP based on the Thermometer In Figure 7 is shown the TLP based on Thermometer Figure 6. Living Coexistence Thermometer. • Green was assigned to the modalities “2.MM-MP” and “3.Nucleus” because the expert considered that someone living with their nuclear family and people who love them is a positive situation. In this instance, an individual has people who can help them in case of necessity, and difficulties are easy to overcome. • Yellow was assigned to the modalities “4.Regrouped” and “5.Extended” because the expert considered that living with people that belong to one’s family group is positive. On the other hand, these kinds of families usually are composed of many members, and the apparition of conflicts between members is possible. Therefore, as this possible aspect is negative, the modality was marked yellow. • Red was assigned to the modalities “1.Alone” and “6.NoFamily”. Living with people who are not one’s own family where there is, therefore, no emotional attachment is akin to living alone. It is more difficult to find help. Moreover, if one lives with people that are not one’s family, it is easier for conflicts to appear. 5. Create the TLP based on the Thermometer In Figure 7is shown the TLP based on Thermometer Mathematics 2023, 11, x FOR PEER REVIEW 19 of 35 Figure 7. Living Coexistence T-TLP. • Nuclear: People in this group answered “3.Nucleus” for the 3 periods of time. • MM-MP: People in this group answered “2.MM-MP” for the 3 periods of time. • Regrouped: People in this group answered “4.Regrouped” for the 3 periods of time. • Extended: People in this group answered “5.Extended” for the 3 periods of time. • Coexistence: People did not know what to do in January 2021 (note that the questionnaire was answered in 2020, during the first COVID-19 wave). During 2020, they had different situations. • Alone: People in this group answered “1.Alone” for the 3 periods of time. • No family: People in this group answered “6.Non-Family” for the 3 periods of time. • NA: People in this group answered “7.No Answer” for the 3 periods of time. To summarize, there were 8 classes. Seven encompass people without changes in their living status, i.e., people that answered with the same option in January 2020, July 2020, and January 2021. In the last group, people changed their answer. 6. Create the interpreted new indicator P and name P: As this new variable comes from the variable F2.CoexMYY, where M corresponds to the month and YY to the year, it was labeled F2.CoexLab, where lab represents labeled and Uconv represents living coexistence. 7. Add P to the general database: Once all steps were complete, P was added to the general database. During this process, this procedure was repeated several times, as several DD2gI were created. Additionally, the new data-driven third-generation indicators presented in [1] were added to the general database. Figures 8–10 represent all variables and indicators in the database. Figure 7. Living Coexistence T-TLP. •Nuclear: People in this group answered “3.Nucleus” for the 3 periods of time. •MM-MP: People in this group answered “2.MM-MP” for the 3 periods of time. •Regrouped: People in this group answered “4.Regrouped” for the 3 periods of time. •Extended: People in this group answered “5.Extended” for the 3 periods of time. Mathematics 2023,11, 2863 19 of 33 • Coexistence: People did not know what to do in January 2021 (note that the questionnaire was answered in 2020, during the first COVID-19 wave). During 2020, they had different situations. •Alone: People in this group answered “1.Alone” for the 3 periods of time. •No family: People in this group answered “6.Non-Family” for the 3 periods of time. •NA: People in this group answered “7.No Answer” for the 3 periods of time. To summarize, there were 8 classes. Seven encompass people without changes in their living status, i.e., people that answered with the same option in January 2020, July 2020, and January 2021. In the last group, people changed their answer. 6. Create the interpreted new indicator Pand name P: As this new variable comes from the variable F2.CoexMYY, where M corresponds to the month and YY to the year, it was labeled F2.CoexLab, where lab represents labeled and Uconv represents living coexistence. 7. Add Pto the general database: Once all steps were complete, Pwas added to the general database. During this process, this procedure was repeated several times, as several DD2gI were created. Additionally, the new data-driven third-generation indicators presented in [ 1 ] were added to the general database. Figures 8–10 represent all variables and indicators in the database. Mathematics 2023, 11, x FOR PEER REVIEW 20 of 35 Figure 8. Indicator components I. Figure 8. Indicator components I. Mathematics 2023,11, 2863 20 of 33 Mathematics 2023, 11, x FOR PEER REVIEW 21 of 35 Figure 9. Indicator components II. Figure 9. Indicator components II. Mathematics 2023,11, 2863 21 of 33 Mathematics 2023, 11, x FOR PEER REVIEW 22 of 35 Figure 10. Indicator components III. Figure 10. Indicator components III. Mathematics 2023,11, 2863 22 of 33 3.2.3. Feature Selection and Final Clustering In the following, we show how the variables that were clustered were selected. As an example, we used Block XI: Use of Time (Caretakers) as an indicator. This indicator was composed of 4 variables. These variables indicated if the participant had children in charge or Grade I, II or III dependency people in charge. These variables were second-generation variables built using the methodology proposed in [1] 1. Select the location variable: The territorial variable was the BASS. That variable was created in Section 3.2.1. This was a variable coming from the original variable for the municipality of residence. 2. Select the block We used the case of Block XI: Use of Time (Caretakers), which was constructed above. 3. Select the candidate variables As can be seen, 4 second-generation variables are the components of the indicator. Therefore, Children, GI, GII and GIII were the candidate variables we selected for inclusion in the final cluster. 4. Compute a ranking of variables according to their capacity to explain the territorial distribution: All results were calculated using the methodology explained in Section 2.6.3. Table 2 is the result of the application of the methodology explained in step 4 of TFSM explained in Section 2.6.4. Table 2. Rk,∼ ΠLock,Ekvalues for each component. Indicator/ Component Block XI: Use of Time (Caretakers) Children GI GII GIII Rk0.7 0.5 0.5 0.43 0.45 ∼ ΠLock 0.47 0.56 0.58 0.54 0.57 Ek0.329 0.28 0.29 0.23 0.26 5. Variable selection: In this case, the variable that represents the block was the selected variable, which, here, was Block XI: Use of Time (Caretakers). Once all variables from the model were selected and the feature selection was carried out, the final selected variables were R3 RelConvG21(R3), B06UConvivencial (B06), S3SuportCovid19J20 (S3), B11VioG21 (B11), B02-B03-B04Origen (B02-03-04), B09UsTempsPC1FentCarrec (B09), E210AcollidaO (E210), 5Economia (5), B15E2Labelled (B15E2), L32L33SituacioLab (L32L33), B12ParticipacioTot (B12), VariacioCuraCOVID (VAR), D3EsXCOVID19 (D3), and L6NegociG20 (L6). 6. Clustering selected variables: All of the selected variables and the BASS were clustered using a method of conditional clustering incorporating the Ward criteria and the mixed Gibert distance. The resulting dendrogram is shown in Figure 11. Mathematics 2023,11, 2863 23 of 33 Mathematics 2023, 11, x FOR PEER REVIEW 24 of 35 Figure 11. Final Dendogram. Using the Calinski–Harabasz criteria [39], the database was divided into 11 clusters. 7. Creating CPG After the dendrogram, a CPG was created as it is shown in Figure 12 Figure 11. Final Dendogram. Using the Calinski–Harabasz criteria [39], the database was divided into 11 clusters. 7. Creating CPG After the dendrogram, a CPG was created as it is shown in Figure 12 Mathematics 2023, 11, x FOR PEER REVIEW 25 of 35 Figure 12. Final CPG. 8. Creating Thermometer The final thermometer was then built. The variables that were selected were indicators or indicator components. In case the selected variable was an indicator component, the thermometer built for that item was reused in this step. In case the selected variable was an indicator, a new thermometer was built using expert knowledge and the resulting TLP to build the third-generation data-driven indicator. Every single variable has its own thermometer. Figure 13 shows the thermometers for all the variables. Figure 13. Final Thermometer. Figure 12. Final CPG. Mathematics 2023,11, 2863 24 of 33 8. Creating Thermometer The final thermometer was then built. The variables that were selected were indicators or indicator components. In case the selected variable was an indicator component, the thermometer built for that item was reused in this step. In case the selected variable was an indicator, a new thermometer was built using expert knowledge and the resulting TLP to build the third-generation data-driven indicator. Every single variable has its own thermometer. Figure 13 shows the thermometers for all the variables. Mathematics 2023, 11, x FOR PEER REVIEW 25 of 35 Figure 12. Final CPG. 8. Creating Thermometer The final thermometer was then built. The variables that were selected were indicators or indicator components. In case the selected variable was an indicator component, the thermometer built for that item was reused in this step. In case the selected variable was an indicator, a new thermometer was built using expert knowledge and the resulting TLP to build the third-generation data-driven indicator. Every single variable has its own thermometer. Figure 13 shows the thermometers for all the variables. Figure 13. Final Thermometer. Figure 13. Final Thermometer. 9. Create aTLP based on a Thermometer 10. Profile the classes After carrying out clustering, applying the thermometer to the TLP (see Figure 14), and using the automatic conceptualization of the TLP to the natural language descriptions described in [5], the result was 11 groups, which are described in the following section. Mathematics 2023, 11, x FOR PEER REVIEW 26 of 35 9. Create aTLP based on a Thermometer 10. Profile the classes After carrying out clustering, applying the thermometer to the TLP (see Figure 14), and using the automatic conceptualization of the TLP to the natural language descriptions described in [5], the result was 11 groups, which are described in the following section. Figure 14. Final T-aTLP. • Vilassar de Mar: This group does not present with relationship problems within their units of coexistence, and members of this group comprise families living in houses that they own or rent. Members of this group did not need psychological support due to COVID-19. They are mostly of Catalan origin. The people in charge of familities in this group do not waste any time caring for their unit. They did not need any aid due to COVID-19. Some have pending lawsuits related to the economic field. Some did not need social assistance during COVID-19. This group is comprised of working people as well as people with unconventional work situations. Their socialization with the environment has diminished or is nonexistent. • C35: This group does not present with relationship problems regarding their unit of coexistence, and members of this group comprise familial cohabitation units (extensive, traditional, or single-parent) in houses they own or rent. They did not need psychological support due to COVID-19. They are mostly of Catalan origin. The people in charge of families in this group do not waste any time caring for their units. They did not need any aid due to COVID-19. They have no pending economic decisions, and some people need help with food. This group is comprised of people with other unconventional work situations and people who do not work. They do not participate in their environment. • Pallars: This group does not present with relationship problems within their units of coexistence, and members of this group comprise familial coexistence units (extensive, traditional, or single-parent) in houses that they own or rent. They did not need psychological support due to COVID-19. They are mostly of Catalan origin. The people in charge of families in this group do not waste any time caring for their family units. They did not need any aid due to COVID-19. They have no pending economic situations, and some of them need help with food. This group is comprised of people Figure 14. Final T-aTLP. Mathematics 2023,11, 2863 25 of 33 • Vilassar de Mar: This group does not present with relationship problems within their units of coexistence, and members of this group comprise families living in houses that they own or rent. Members of this group did not need psychological support due to COVID-19. They are mostly of Catalan origin. The people in charge of familities in this group do not waste any time caring for their unit. They did not need any aid due to COVID-19. Some have pending lawsuits related to the economic field. Some did not need social assistance during COVID-19. This group is comprised of working people as well as people with unconventional work situations. Their socialization with the environment has diminished or is nonexistent. • C35: This group does not present with relationship problems regarding their unit of coexistence, and members of this group comprise familial cohabitation units (extensive, traditional, or single-parent) in houses they own or rent. They did not need psychological support due to COVID-19. They are mostly of Catalan origin. The people in charge of families in this group do not waste any time caring for their units. They did not need any aid due to COVID-19. They have no pending economic decisions, and some people need help with food. This group is comprised of people with other unconventional work situations and people who do not work. They do not participate in their environment. • Pallars: This group does not present with relationship problems within their units of coexistence, and members of this group comprise familial coexistence units (extensive, traditional, or single-parent) in houses that they own or rent. They did not need psychological support due to COVID-19. They are mostly of Catalan origin. The people in charge of families in this group do not waste any time caring for their family units. They did not need any aid due to COVID-19. They have no pending economic situations, and some of them need help with food. This group is comprised of people who work and who have other unconventional work situations. They do not participate in their environment. • Garrigues: This group does not present with relationship problems within their units of coexistence, and members of this group comprise familial coexistence units (extensive, traditional, or single-parent) in houses that they own or rent. They did not need psychological support due to COVID-19. They are mostly of Catalan origin. The people in charge of families in this group do not waste any time caring for their family units. Their situation of dependency has not diminished due to COVID-19. Some members of this group need help from social services due to COVID-19. They have pending economic decisions; furthermore, some people in this group have not needed food-related help, while others have needed food-related help. This group is comprised of people who work and people who have other unconventional work situations. Their participation in their social environment is varied. Some participate a lot, some demonstrate decreased participation, and some do not participate at all. • C30: This group does not present with relationship problems within their units of coexistence, and members of this group comprise familial coexistence units (extensive, traditional, or single-parent) in houses that they own or rent. They did not need psychological support due to COVID-19. They are mostly of Catalan origin. The members of this group have no people in charge of their familial units. Some of them need help from social services due to COVID-19. They have pending financial decisions, and some people have needed food-related assistance and other specific types of aid that arose during the pandemic. This group is comprised of people who work and people who have other unconventional work situations. They do not participate in their environment and have not cared for people with COVID-19. • C25: This group does not present with relationship problems within their units of coexistence, and members of this group comprise familial coexistence units (extensive, traditional, or single-parent) in houses that they own or rent. They did not need psychological support due to COVID-19. They are mostly of Catalan origin. Most of them have dependent children who take up part of their time. They did not need Mathematics 2023,11, 2863 32 of 33 future education. This last initiative was developed under the gender equality plan at UPC and the activities to reduce the gender gap in STEAM. Author Contributions: Conceptualization and methodology, K.G. and X.A.; software development, K.G. and X.A.; validation, X.A. and K.G.; formal analysis, X.A.; investigation, X.A. and K.G.; resources, X.A.; data curation, led by K.G. and carried out by X.A.; writing—original draft preparation, X.A.; writing—review and editing, X.A. and K.G.; visualization, X.A. and K.G.; supervision, K.G.; project administration, K.G.; funding acquisition, K.G. and X.A. All authors have read and agreed to the published version of the manuscript. Funding: This research was partially funded by the Development Cooperation Centre (CCD) of the UPC under a special COVID-19 call (CCD-COVID-L019) and by Generalitat de Catalunya with the predoc grant no.: 2021-FISDU-00409. Data Availability Statement: As the research uses the personal data of vulnerable people, the data are hosted in a UPC server compliant with the current RGPD, and individual data are not available from this project, as agreed with the respondents. Only aggregated data can be provided. Acknowledgments: The authors want to thank their partner iSocial and especially Toni Codina for his contributions to the project. Conflicts of Interest: The authors declare no conflict of interest. References 1. Angerri, X.; Gibert, K. Preprocessing and Artificial Intelligence for increasing explainability in Mental Health. Int. J. Artif. Intell. Tools 2023,32, 2. [CrossRef] 2. Gibert, K.; Angerri, X. The INSESS-COVID19 Project. Evaluating the impact of the COVID19 in social vulnerability while preserving privacy of participants from minority subpopulations. Appl. Sci. 2021,11, 3110. [CrossRef] 3. Gibert, K.; Codina, T.; Angerri Torredeflot, X. Informe INSESS-COVID19: Identificacióde Necessitats Socials Emergents Com a Conseqüència de la COVID19 i Efecte Sobre els Serveis Socials del Territori; Intelligence Data Science and Artificial Intelligence Research Center (IDEAI): Barcelona, Spain, 2020. 4. Sevilla-Villanueva, B.; Gibert, K.; Sànchez-Marrè, M. Identifying nutritional patterns through integrative multiview clustering. Artif. Intell. Res. Dev. 2015,277, 185. [CrossRef] 5. Sevilla-Villanueva, B.; Gibert, K.; Sànchez-Marrè, M. A methodology to discover and understand complex patterns: Interpreted Integrative Multiview Clustering (I2MC). Pattern Recognit. Lett. 2017,93, 85–94. [CrossRef] 6. Bickel, S.; Scheffer, T. Multi-view clustering. In Proceedings of the 4th IEEE International Conference on Data Mining, Brighton, UK, 1–4 November 2004; pp. 19–26. 7. Jundong, L.I.; Cheng, K.; Wang, S.; Morstatter, F.; Trevino, R.P.; Tang, J.; Liu, H. Feature selection: A data perspective. ACM Comput. Surv. (CSUR) 2017,50, 1–45. [CrossRef] 8. He, X.; Cai, D.; Niyogi, P. Laplacian score for feature selection. Adv. Neural Inf. Process. Syst. 2005,18. 9. Robnik-Šikonja, M.; Kononenko, I. Theoretical and empirical analysis of ReliefF and RReliefF. Mach. Learn. 2003 ,53, 23–69. [CrossRef] 10. Battiti, R. Using mutual information for selecting features in supervised neural net learning. IEEE Trans. Neural Netw. 1994 , 5, 537–550. [CrossRef] [PubMed] 11. Peng, H.; Long, F.; Ding, C. Feature selection based on mutual information criteria of max-dependency, max-relevance, and min-redundancy. IEEE Trans. Pattern Anal. Mach. Intell. 2005,27, 1226–1238. [CrossRef] [PubMed] 12. Fleuret, F. Fast binary feature selection with conditional mutual information. J. Mach. Learn. Res. 2004,5, 1531–1555. 13. Yu, L.; Liu, H. Feature selection for high-dimensional data: A fast correlation-based filter solution. In Proceedings of the 20th International Conference on Machine Learning (ICML-03), Washington, DC, USA, 21–24 August 2003; pp. 856–863. 14. Tibshirani, R. Regression shrinkage and selection via the lasso. J. R. Stat. Soc. Ser. B Methodol. 1996,58, 267–288. [CrossRef] 15. Davis, J.C.; Sampson, R.J. Statistics and Data Analysis in Geology; Wiley: New York, NY, USA, 1986. 16. Yuan, M.; Lin, Y. Model selection and estimation in regression with grouped variables. J. R. Stat. Soc. Ser. B Stat. Methodol. 2006 , 68, 49–67. [CrossRef] 17. Jacob, L.; Obozinski, G.; Vert, J.-P. Group lasso with overlap and graph lasso. In Proceedings of the 26th Annual International Conference on Machine Learning, Montreal, QC, Canada, 14–18 June 2009; pp. 433–440. [CrossRef] 18. Núñez, H.; Sànchez-Marrè, M. Instance-based learning techniques of unsupervised feature weighting do not perform so badly! ECAI 2004,16, 102. 19. Lebart, L.; Morineau, A.; Fénelon, J.P. Traitement Statistique Des Données; Dunod: Paris, France, 1990; p. 34. 20. Gibert, K.; Sevilla-Villanueva, B.; Sànchez-Marrè, M. The role of significance tests in consistent interpretation of nested partitions. J. Comput. Appl. Math. 2016,292, 623–633. [CrossRef] Mathematics 2023,11, 2863 33 of 33 21. Gibert, K.; Sànchez–Marrè, M.; Izquierdo, J. A survey on pre-processing techniques: Relevant issues in the context of environmental data mining. AI Commun. 2016,29, 627–663. [CrossRef] 22. Torres, P.; Cruz, C.H.; Patiño, P.J. Índices de calidad de agua en fuentes superficiales utilizadas en la producción de agua para consumo humano: Una revisión crítica. Rev. Ing. Univ. Medellín2009,8, 79–94. 23. Vergara, C.; Arregui, I.; Balaguer, A.; Gómez, T.; Sandoval, C.; Sànchez Marrè, M.; Gibert, K. Learning on the relationships between respiratory disease and the use of traditional stoves in Bangladesh households. In Proceedings of the 8th International Congress on Environmental Modelling and Software Met, Toulouse, France, 10–14 July 2016. 24. Zhao-Hui, L.U.; Cai, C.-H.; Zhao, Y.-G.; Leng, Y.; Dong, Y. Normalization of correlated random variables in structural reliability analysis using fourth-moment transformation. Struct. Saf. 2020,82, 101888. 25. Karina, G.I.O. The use of symbolic information in automation of statistical treatment for ill-structured domains. AI Commun. 1996,9, 36–37. [CrossRef] 26. Ward, J.R.; Joe, H. Hierarchical grouping to optimize an objective function. J. Am. Stat. Assoc. 1963,58, 236–244. [CrossRef] 27. Glielmo, A.; Husic, B.E.; Rodriguez, A.; Clementi, C.; Noé, F.; Laio, A. Unsupervised learning methods for molecular simulation data. Chem. Rev. 2021,121, 9722–9758. [CrossRef] 28. Minghua, L.I.; Ferretti, M.; Ying, B.; Descamps, H.; Lee, E.; Dittmar, M.; Lee, J.S.; Whig, K.; Kamalia, B.; Dohnalová, L.; et al. Pharmacological activation of STING blocks SARS-CoV-2 infection. Sci. Immunol. 2021,6, eabi9007. 29. Murtagh, F.; Contreras, P. Algorithms for hierarchical clustering: An overview. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 2012,2, 86–97. [CrossRef] 30. Gibert, K.; Cortés García, C.U. Weighting quantitative and qualitative variables in clustering methods. Mathw. Soft Comput. 1997 , 4, 1997. 31. Lefkovitch, L.P. Conditional clustering. Biometrics 1980,36, 43–58. [CrossRef] 32. Gibert, K.; Garcia-Rudolph, A.; Garcia-Molina, A.; Roig-Rovira, T.; Bernabeu, M.; Tormos, J. Response to TBI-neurorehabilitation through an AI& Stats hybrid KDD methodology. Med. Arch. 2008,62, 132–135. 33. Gibert, K.; Conti, D.; Vrecko, D. Assisting the end-user in the interpretation of profiles for decision support. an application to wastewater treatment plants. Environ. Eng. Manag. J. 2012,11, 931–944. [CrossRef] 34. Gibert, K.; Conti, D. aTLP: A color-based model of uncertainty to evaluate the risk of decisions based on prototypes. AI Commun. 2015,28, 113–126. [CrossRef] 35. Gibert, K.; Conti, D.; Sànchez-Marrè, M. Decreasing uncertainty when interpreting profiles through the traffic lights panel. In Advances in Computational Intelligence, Proceedings of the 14th International Conference on Information Processing and Management of Uncertainty in Knowledge-Based Systems, IPMU 2012, Catania, Italy, 9–13 July 2012; Springer: Berlin/Heidelberg, Germnay, 2012; pp. 137–148. [CrossRef] 36. De Rham, C. La classification hiérarchique ascendante selon la méthode des voisins réciproques. Cah. De L’analyse Des Données 1980,5, 135–144. 37. COVID-19. Web del Project INSESS-COVID19. Available online: https://insess-covid19.upc.edu/ (accessed on 27 April 2023). 38. DIXIT Centre de Documentacióde Serveis Socials. Available online: https://dixit.gencat.cat/ca/detalls/Noticies/tsf_presenta_ eina_cribratge_ajudar_identificar_gestionar_casos_socials_complexos.html (accessed on 15 February 2021). 39. Pla Estratègic de Serveis Socials. Available online: https://treballiaferssocials.gencat.cat/web/.content/03ambits_tematics/15 serveissocials/pla_estrategic_serveis_socials/Pla_estrategic_serveis_socials_catalunya_NOU/01_Plana_principal/1.-2020-12 -29-Pla-estrategic-de-serveis-socials-2021-2024.pdf (accessed on 15 February 2021). 40. Cali´nski, T.; Harabasz, J. A dendrite method for cluster analysis. Commun. Stat.-Theory Methods 1974,3, 1–27. [CrossRef] Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.