Keywords

1 Introduction

Natural disasters, in the case of earthquakes, have been over the last years a very broad discussion topic as these events unleashed great negative effects, especially in those urban regions constituting the basic poles of a city system and densely populated [1]. Because of these continuous telluric movements due to the sliding of the tectonic plates, a high level of uncertainty is induced, followed by great social, environmental, infrastructure consequences, as well as a destabilization in the economy and finally human losses; these factors depend on the intensity of the natural phenomenon [2,3,4]. Few works have been carried out regarding seismic disasters, amongst which we can find a study carried out by the Geophysical Institute of the National Polytechnic School of Ecuador. It is important to indicate that these works were carried out in an empirical way since prevention methods were used rather than prediction ones to minimize any damage from seismic hazard, which means an accurate seismic risk assessment cannot be achieved. Fuzzy logic yet offers significant advantages over such approaches thanks to its ability to represent qualitative aspects of examination data in a natural way and to apply flexible inference rules [5].

One of the main tools for computational intelligence is fuzzy logic, which is why this tool has been very helpful in the field of seismic engineering, allowing dealing with uncertainty due to imprecision of data, achieving favorable results and providing a wide knowledge. For instance, there are many uncertainties in the assessment of seismic hazard during calculation phases, such as the definition of seismic sources and wave attenuation models that present a greater degree of imprecision in the data, unlike other phases, while these data are more relevant in their result, as shown in [6,7,8,9]. Therefore, it has been considered in this paper to use a fuzzy approach with fuzzy sets to evaluate earthquakes and to use it to study the earthquake registered in Ecuador on April 16, 2016, having a magnitude of 7.8 degrees on the Richter scale. [1, 10,11,12].

2 Fuzzy Logic Techniques

Fuzzy logic techniques, initiated by [13], are used to define processes that are imprecise and ambiguous. Fuzzy sets are used to define the membership of data that don’t belong to a particular group, but are rather part of a set. An important point within fuzzy logic and specifically fuzzy sets is the so-called membership function of a set, i.e. determining the fact of “belonging to a set” or “not belonging to a set” in a gradual way, where a membership function of a set A on a universe X is defined as follows: µA:X → [0,1] where µA (x) = r if r is the degree to which x belongs to A, whose characteristic will have values whose set is {0,1}, whereas, if it is fuzzy, it will have them in the closed interval of [0,1]. If μA (x) = 0 the element does not belong to the set, otherwise if μA (x) = 1 the element does belong completely to the set [14].

Fuzzy logic allows transferring sophisticated precepts from the natural language to a mathematical formulation, which means they give flexibility to modeling using linguistic expressions such as “much”, “little”, “severe”, “scarce”, and so on. As an example, we can determine that fuzzy sets are used to define magnitudes observed when an earthquake occurs and that can be considered as “mild”, “moderate” or “serious”; otherwise when distances from the epicenter where the earthquake originates, which are “near field”, “intermediate field” and “far field”. The degree of membership of a set describes the level by which the data belong to that particular group. As for instance, the distance from the source where the earthquake occurs. [15], is given by.

$$ {\text{r}}_{close} \left( {\text{x}} \right) \in \left[ {0,1} \right] $$
(1)

Where  \( r_{close} \left( x \right) \) is the degree of membership that X has in the fuzzy site set “near the source of the earthquake” and x is the distance between the site and the epicenter (3). The fuzzy set of the distance from the source is shown on Fig. 1

Fig. 1.
figure 1

Distance fuzzy sets

Determining seismic sources is very important because of the vagueness degree of the information, since spatial locations of earthquakes can be grouped by fuzzy grouping analysis, making it possible to specify the extent of each seismic source [14, 16].

2.1 Fuzzy Sets

Fuzzy sets are collections of elements whose characteristics are defined by linguistic values having a degree of membership between {0, 1} within a discourse universe. The notation defined for fuzzy sets is the one established by Lofti Zadeh, which combines the concepts of logic and the Lukasiewicz set by means of the degree of relationship [13]

$$ A = \left\{ {\left( {x, u_{A} \left( x \right)} \right)/x \in \cup } \right\} $$
(2)

Where A is the ordered pairs of x and the result of the membership function \( u_{A} \left( x \right) \) for every element x of the discourse universe U.

2.2 Fuzzy Sets Operations

The basic operations in fuzzy logic and fuzzy sets are Intersection, Union and Complement; these operations are performed in the membership function of the fuzzy sets [17]. The operations of fuzzy sets are used for the following properties (Table 1 and Fig. 2):

Table 1. Fuzzy sets properties
Fig. 2.
figure 2

Membership functions characteristics

2.3 Membership Functions Characteristics

$$ {\text{Core}}\,(A) = \left\{ {x \in X/u_{A} \left( x \right) = 1} \right\} $$
(3)
$$ {\text{Border}}\,(A) = \{ x \in X/0 < u_{A} \left( x \right) < 1\} $$
(4)
$$ {\text{Support}}\,(A) = \{ x \in X/u_{A} \left( x \right) > 1\} $$
(5)
$$ {\text{Crossing}}\,(A) = \left\{ {x \in X/u_{A} \left( x \right) = 0.5} \right\} $$
(6)
$$ {\text{Width}}\,(A) = \left| {x_{2} - x_{1} } \right| $$
(7)

2.4 Integration of AHP with Fuzzy Sets

In order to justify the relationship and the support of the AHP model to the theory of fuzzy sets, we can indicate that a fuzzy inference model, which allowed us to incorporate AHP, to obtain a value of membership with regard to set variables used. Using this methodology, we give account altering the process established by the model of fuzzy inference, i.e. AHP change the numbers employed in the scale of assessment of Saaty (Table 2) by fuzzy numbers, since this usually gets the value of membership by the cut of the function in the calculation of abscissas While the model AHP does so by its evaluation, allowing that the fuzzy inference only gets a level of risk.

Table 2. Saaty’s evaluation scale.

3 Study of the Seismic Case Through the Analytic Hierarchy Process (AHP)

For this research study, we chose the cantons of Manabí that were affected by the earthquake in April 2016, whose epicenter was located in the city of Pedernales. The seismic risk will be assessed from a physical and social damage approach since the degree of seismic threat in those areas is high; in addition, the information obtained from the reports of the SGR (Secretariat for Risk Management) and the INEC (National Institute of Statistics and Censuses), both for damages and for resources used to solve the emergency, are available. It is important to emphasize that during the process to determine the exact number of casualties situation reports were generated by the risk management Secretariat, in his web page (http://www.gestionderiesgos.gob.ec/informes-de-situacion-actual-terremoto-magnitud-7-8/), from the number 1 status report until the number 71, in order to be able to clearly demonstrate the official results of the most relevant variables, which caused inconsistencies during the analysis of weights of importance. The results obtained will help us identify areas of greater risk and thus contribute to the decision making helping to mitigate the seismic threat (Fig. 3).

Fig. 3.
figure 3

Seismic intensities registered in the Ecuadorian coastline

The technique to make decisions using the ranking proposed by Saaty (Table 2), it is in essence the reduction of the complexity of the evaluation of multiple attributes, replacing it with a series of comparisons by pairs, which are grouped into a matrix reciprocal positive.

The values in the array will be numeric and the method to guarantee the results imposed by a couple of logical constraints: (i) when you compare an alternative against itself, you are given “equal importance”, and (ii) if option A is assigned a number x to compare it with the B option, then when it is compared against the option B option value that will be assigned to this comparison is 1, in our case study when comparing the variable A variable B, for a certain period of time, the variable A, was “more important”. In any case this value may vary when analyzing another period of time.

During the process of evaluating seismic risk, the use of fuzzy sets by weighting the input variables through the Analytic Hierarchy Process (AHP) allows us to identify the level of risk in a geographic area with respect to a level of physical risk caused by the telluric event and a level of social aggravation [18]. Fuzzy inference systems help to interpret human knowledge through a set of rules helping the decision making and as an alternative to determine the digital processing of seismic signals, and in this study we decided to use the programming language of “MATLAB”, a mathematical calculation platform; it shall allow us to develop fuzzy systems that streamline the process of estimating the total risk of a given area.

The Analytic Hierarchy Process (AHP) is a basic analysis model for decision making allowing to represent a problem through a hierarchical structure in order to establish the criteria importance of a level with respect to a higher level and thus to select the best alternative [19]. The steps to follow are:

3.1 Structuring the Problem

This step is the most important one because the problem must be broken down into components that are relevant to it. The basic hierarchy is established by a goal or objective, criteria and alternatives. The Fig. 4 shows the variables of physical risk and social aggravation used in the total risk calculation process.

Fig. 4.
figure 4

Calculation of total risk, variables of physical risk and aggravation factors (social fragility and lack of resilience) with their respective weights.

3.2 Construction of the Comparison Matrix

Once the criteria and alternatives have been defined, they are hierarchized through the design of a square matrix called peer comparison matrix that is based on a relative importance where the paired comparison is made between the criteria and alternatives established.

$$ A = \left[ {\begin{array}{*{20}c} {a_{1,1} } & \ldots & {a_{1,n} } \\ \vdots & \ddots & \vdots \\ {a_{n,1} } & \cdots & {a_{n,n} } \\ \end{array} } \right] $$
(8)

To calculate the priority level between the paired comparisons we use a scale of proportions or intensities denominated by Saaty, shown in Table 2. This numerical scale is used effectively for qualitative interpretation in many applications requiring a weighting of its elements through their homogeneous comparison [19]. In addition, a type of comparison must be considered. The existing ones are:

  • Importance: Appropriate when comparing criteria with each other.

  • Preference: Appropriate when comparing alternatives.

  • Most likely: Used when you compare the probability of the results, either with criteria or alternatives.

3.3 Estimation of Relative Weights

It is being done using the eigenvalues method where weights are assigned amongst n alternatives, to do so, one only needs to perform n-1 estimates.

Once the values of the comparison matrix are calculated, the columns are normalized to 1 by dividing each element by the total sum of the columns. The eigenvector is obtained by calculating the average of each row of the normalized matrix.

$$ p = \left( {\begin{array}{*{20}c} {\frac{1}{n}\sum\nolimits_{1}^{n} {a_{1j} } } \\ {\frac{1}{n}\sum\nolimits_{1}^{n} {a_{2j} } } \\ {\begin{array}{*{20}c} \cdots \\ {\frac{1}{n}\sum\nolimits_{1}^{n} {a_{nj} } } \\ \end{array} } \\ \end{array} } \right) $$
(9)

Vector of criteria priorities is obtained as shown in 10

$$ p = \left( {\begin{array}{*{20}c} {p_{c11} } \\ {\begin{array}{*{20}c} {p_{c12} } \\ {\begin{array}{*{20}c} \ldots \\ {p_{c1n} } \\ \end{array} } \\ \end{array} } \\ \end{array} } \right) $$
(10)

3.4 Results Analysis

The AHP method allows measuring the non-consistency and sensitivity of the judgments by calculating the consistency ratio, to this extent the consistency index must first be obtained.

Calculation of the consistency index.

It is the index measuring the consistency of the comparison matrix, its formula is the following:

$$ CI = \frac{{\lambda_{max} - n}}{n - 1} $$
(11)

Where n is the size of the matrix and \( \lambda_{max} \) is the eigenvalue, which is obtained through the multiplication of matrices between the elements of the eigenvector and the original matrix, thus obtaining a quotient for each element that we must add and then divide for n elements.

Calculation of the consistency ratio.

It is obtained by dividing the consistency index for an already established random value that depends on n elements used, it is recommended not to use more than nine elements so that the method can maintain consistent (Table 3).

$$ CR = \frac{IC}{ICA} $$
(12)
Table 3. Random consistency according to the number of criteria

According to Saaty, a good accuracy of the consistency value is recommended, with CR less than 0.1, however, values ranging up to 0.2 are mentioned; if the condition is not met, the whole process must be re-run from the comparison matrix until it can have an acceptable consistency.

In this case several tests for the evaluation, in order to obtain a better accuracy of the values corresponding to each of the variables using the AHP model, with respect to the weights that were used for the evaluation by fuzzy sets, these will indicate the degree of membership of each variable were considering their level of risk. The method gives us an analysis of consistency, which if it is greater than 0.1, will indicate that the evaluation is inconsistent.

Regarding the seismic risk assessment, this methodology will help us obtain the weights of the input variables belonging to the risk factors for physical damage and social aggravation, they will be used in the application of fuzzy sets during the estimation process. Below are shown the tables of the analytic hierarchy process for the weighting of each group of factors \( ({\mathbf{F}}_{{{\mathbf{RFk}} }} ,{\mathbf{F}}_{{{\mathbf{FSk}}, }} ,{\mathbf{F}}_{{{\mathbf{FRk}}, }} ) \) shown before on Table 4 (Tables 5, 6, 7, 8 and 9).

Table 4. Comparison matrix of physical risk.
Table 5. Normalized matrix of physical risk.
Table 6. Priority Vector and Weight Allocation
Table 7. Comparison matrix of social aggravation.
Table 8. Normalized matrix of social aggravation.
Table 9. Priority vector and weight allocation

4 Seismic Risk Assessment - Set Method

For the case study, the theory of fuzzy sets was applied in order to identify the level of seismic risk of a given geographical area, considering risk variables for physical damage and social aggravation extracted from a database provided by the INEC (http://www.ecuadorencifras.gob.ec/institucional/home/) and the Secretariat for Risk Management (http://www.gestionderiesgos.gob.ec/).

Once the variables are established, we proceed to obtain their weights (\( {\text{W}}_{\text{RFk}} \), \( {\text{W}}_{\text{FSi}} \), \( {\text{W}}_{\text{FRj}} \)) corresponding to the variables of physical risk and social aggravation (social fragility and lack of resilience) (\( {\text{X}}_{\text{RFk}} \), \( {\text{X}}_{\text{FSi}} \), \( {\text{X}}_{\text{FRj}} \)) through the AHP (Analytic Hierarchy Process) method applied in Sect. 4.

With this method, the problem will be structured, i.e. the physical risk factor \( {\text{F}}_{\text{RFk}} \) and aggravation factor \( {\text{F}}_{\text{FSk}} \), then a matrix will be designed for each factor; and then values will be assigned through the Saaty comparison scale.

It is important to define the linguistic values for the calculation of the total risk. For this study five linguistic values will be used (very low, low, medium, high, very high) and using fuzzy sets, one obtains the membership functions of each variable; in this process, it is necessary to define the range of the abscissa next to their grades corresponding to the degree of membership as shown in Table 10.

Table 10. Code developed on Matlab for the design of membership functions for deceased, poverty rate and hostels/shelter

Next are presented the following nomenclatures:

  • \( {\text{L}}_{\text{RFi}} \) Physical risk level.

  • \( {\text{L}}_{\text{Fj}} \) Aggravation level.

  • \( {\text{u}}\left( {\text{x}} \right) \) Membership function.

  • \( {\text{u}}_{\text{LRF}} \) Membership function of physical risk.

  • \( {\text{u}}_{\text{LF}} \) Membership function of aggravation.

It is essential to establish the membership functions well because the fact of having a good estimate of the total seismic risk depends on them; the variables input values for the evaluation process can be considered of good quality since the fuzzy logic deals with this imprecision in the data. Once the incoming information is established, it is compared with the values of the abscissas previously defined in the membership functions in order to obtain a level of physical risk or aggravation for each variable. This process is called fuzzification and it is used in the methods of inference to obtain a fuzzy value from said comparison.

Following the sequence of the fuzzy inference model, a new output fuzzy set must be generated using the implication where a cut is made, choosing the minimum membership degree between the fuzzy value obtained and the fuzzy set of the output variable. Table 11 shows the membership functions of the variable outputs of physical risk and aggravation.

Table 11. Code developed on Matlab for the design of membership output functions, physical risk and social aggravation.

By using the fuzzy output sets we perform the aggregation through the union operation of the membership functions and then with the centroid method we defuzzify, in order to generate an index and linguistic value of physical risk or aggravation. For these two processes, the following formulas are defined:

Physical Risk

Union

$$ {\text{u}}_{\text{RF}} \left( {{\text{X}}_{\text{RF}} } \right) = \hbox{max} \left( {{\text{W}}_{{{\text{RF}}1}} {\text{u}}_{{{\text{LRF}}1}} \left( {{\text{L}}_{{{\text{RF}}1}} } \right), \ldots , {\text{W}}_{\text{RFk}} {\text{u}}_{\text{LRFk}} \left( {{\text{L}}_{\text{RFk}} } \right)} \right) $$
(1)

It is the union (max) of the output sets relative to the physical risk input membership functions, weighted with their weights and risk level of each variable.

Defuzzification

$$ .{\text{R}}_{\text{F}} = [\hbox{max} \left( {{\text{W}}_{{{\text{RF}}1}} {\text{u}}_{{{\text{LRF}}1}} \left( {{\text{L}}_{{{\text{RF}}1}} } \right), \ldots ,{\text{W}}_{\text{RFk}} {\text{u}}_{\text{LRFk}} \left( {{\text{L}}_{\text{RFk}} } \right)} \right)]_{\text{centroid}} $$
(2)

It is the center calculation of the area under the union curve of the membership functions of the physical risk \( {\text{R}}_{\text{F}} \).

Aggravation

Union

$$ {\text{u}}_{\text{F}} \left( {{\text{X}}_{\text{FS}} ,{\text{X}}_{\text{FR}} } \right) = \hbox{max} \left( {{\text{W}}_{{{\text{FS}}1}} {\text{u}}_{{{\text{LF}}1}} \left( {{\text{L}}_{{{\text{F}}1}} } \right), \ldots , {\text{W}}_{\text{FRj}} {\text{u}}_{\text{LFj}} \left( {{\text{L}}_{\text{Fj}} } \right)} \right) $$
(3)

It is the union (max) of the output sets relative to the social fragility and lack of resiliency input membership functions, weighted with their weights and aggravation level of each variable.

Defuzzification

$$ .{\text{F}} = [\hbox{max} \left( {{\text{W}}_{{{\text{FS}}1}} {\text{u}}_{{{\text{LF}}1}} \left( {{\text{L}}_{{{\text{F}}1}} } \right), \ldots ,{\text{W}}_{\text{FRi}} {\text{u}}_{\text{LFi}} \left( {{\text{L}}_{\text{Fi}} } \right)} \right)]_{\text{centroid}} $$
(4)

It is the center calculation of the area under the union curve of the membership functions of the aggravation \( {\text{F}} \).

Figures 5 and 6 show the union process of the weighted membership functions with their weights and later defuzzification to obtain the risk index.

Fig. 5.
figure 5

Weighted membership functions with their respective weights

Fig. 6.
figure 6

Union and defuzzification to obtain physical risk index

Once the physical risk and the aggravation indexes have been calculated, we assign a level to each factor using the linguistic values defined in the membership functions and the comparison of the input values with their respective abscissas. For the final calculation of the total risk assessment, we compare the levels of each factor with the fuzzy rules established in Table 12.

Table 12. Fuzzy rules to estimate total risk.

4.1 Fuzzy Logic Toolbox - Matlab

Matlab is a mathematical calculation development platform that facilitates the analysis, design and visualization of results. For this study, we used the fuzzy logic toolbox using inference modeling functions, it facilitates the design and simulation of fuzzy systems.

In the estimation of the total seismic risk it shall help us model the membership functions of each variable, as well as execute the inference process (fuzzification, implication, aggregation and defuzzification) allowing us to obtain the resulting indexes. In Fig. 7, we can see that the greatest physical risk are in the cities of Puerto Lopez, Portoviejo, Jama, El Carmen, and the greatest social aggravation is in the cities of Puerto Lopez, El Carmen, Jama, Portoviejo.

Fig. 7.
figure 7

Indices of the physical risk level and aggravation of the cantons of the province of Manabí.

Table 13 shows the qualitative value of the total risk obtained through the fuzzy rules established.

Table 13. Total risk level of the Manabí province cantons

Table 13 shows the qualitative value of the total risk obtained through the fuzzy rules. The case in the proposed study, the total risk level is “very high” in almost all of the variables, when comparing the abscissas of the crisp output value from Fig. 6, (which indicates that the rate of physical risk of the canton Portoviejo is 0.73) and Fig. 7 (both physical risk levels as social aggravation of 22 cantons) This indicates the index of the level of risk that will be used in the diffuse tables (Table 12), and in this case it is to us that it is “very high”, this same procedure is done for all other situations, where the level of overall risk resulting in “high”; It is worth highlighting that the design of the membership function of fuzzy sets, were analyzed on the basis of reports published on the website of the Secretariat of management of risk, however other potential extension of the proposal is to allow opinions without interaction of several experts and working on a method previously established consensus-based comparisons of experts within the framework of fuzzy systems.

5 Conclusions

The study focused on the 22 cantons of the province of Manabí, where data of the potential losses suffered by these areas during the earthquake of April 2016 were obtained. The information was classified for physical risk and social aggravation scenarios, the fuzzy sets theory was applied to it, in order to identify the risk levels of each zone.

The physical risk and social aggravation indices of each canton; according to the results shown in Fig. 7, all of the cantons of Manabí were severely affected: with respect to physical damages, the most affected ones were Pedernales, El Carmen and Portoviejo, while the one with the smallest damage is 24 de Mayo. With respect to the aggravation, the biggest situation was seen in Santa Ana, and the smallest was Manta.

Total risk was assessed using fuzzy rules with the risk levels assigned by the calculation of their indices, and just like in the previous analysis, we observed that the situation in the affected areas was of high gravity. The context of material losses was the most influent one for social impact, as it is the case in the Pedernales canton which was totally destroyed, leaving its population in extreme poverty. Others were impacted by the scarcity of resources and basic services that led the inhabitants to stay in shelters until they found a way to recover in a socio-economic way.

Fuzzy set generations allow obtain high quality pattern easily understood. In future research, it is expected to improve the results by delving deeper in the study of data sets.